1 2017-08-21 Richard Sandiford <richard.sandiford@linaro.org>
3 * stor-layout.h (vector_type_mode): Move to...
4 * tree.h (vector_type_mode): ...here.
5 * stor-layout.c (vector_type_mode): Move to...
6 * tree.c (vector_type_mode): ...here. Include rtl.h and regs.h.
8 2017-08-21 Richard Biener <rguenther@suse.de>
10 * debug.h (struct gcc_debug_hooks): Add die_ref_for_decl and
11 register_external_die hooks.
12 (debug_false_tree_charstarstar_uhwistar): Declare.
13 (debug_nothing_tree_charstar_uhwi): Likewise.
14 * debug.c (do_nothing_debug_hooks): Adjust.
15 (debug_false_tree_charstarstar_uhwistar): New do nothing.
16 (debug_nothing_tree_charstar_uhwi): Likewise.
17 * dbxout.c (dbx_debug_hooks): Adjust.
18 (xcoff_debug_hooks): Likewise.
19 * sdbout.c (sdb_debug_hooks): Likewise.
20 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
21 * dwarf2out.c (macinfo_label_base): New global.
22 (dwarf2out_register_external_die): New function for the
23 register_external_die hook.
24 (dwarf2out_die_ref_for_decl): Likewise for die_ref_for_decl.
25 (dwarf2_debug_hooks): Use them.
26 (dwarf2_lineno_debug_hooks): Adjust.
27 (struct die_struct): Add with_offset flag.
28 (DEBUG_LTO_DWO_INFO_SECTION, DEBUG_LTO_INFO_SECTION,
29 DEBUG_LTO_DWO_ABBREV_SECTION, DEBUG_LTO_ABBREV_SECTION,
30 DEBUG_LTO_DWO_MACINFO_SECTION, DEBUG_LTO_MACINFO_SECTION,
31 DEBUG_LTO_DWO_MACRO_SECTION, DEBUG_LTO_MACRO_SECTION,
32 DEBUG_LTO_LINE_SECTION, DEBUG_LTO_DWO_STR_OFFSETS_SECTION,
33 DEBUG_LTO_STR_DWO_SECTION, DEBUG_STR_LTO_SECTION): New macros
34 defining section names for the early LTO debug variants.
35 (reset_indirect_string): New helper.
36 (add_AT_external_die_ref): Helper for dwarf2out_register_external_die.
37 (print_dw_val): Add support for offsetted symbol references.
38 (get_ultimate_context): Split out from is_cxx.
39 (is_cxx): Use get_ultimate_context.
40 (is_fortran): Add decl overload.
41 (compute_comp_unit_symbol): Split out worker from
42 compute_section_prefix.
43 (compute_section_prefix): Call compute_comp_unit_symbol and
44 set comdat_type_p here.
45 (output_die): Skip DIE symbol output for the LTO added one.
46 Handle DIE symbol references with offset.
47 (output_comp_unit): Guard section name mangling properly.
48 For LTO debug sections emit a symbol at the section beginning
49 which we use to refer to its DIEs.
50 (add_abstract_origin_attribute): For DIEs registered via
51 dwarf2out_register_external_die directly refer to the early
52 DIE rather than indirectly through the shadow one we created.
53 Remove obsolete call to dwarf2out_abstract_function for
54 non-function/block origins.
55 (gen_array_type_die): When generating early LTO debug do
56 not emit DW_AT_string_length.
57 (gen_formal_parameter_die): Do not re-create DIEs for PARM_DECLs
58 late when in LTO. As suggested place a gcc_unreachable for
59 the DECL_ABSTRACT_P case.
60 (gen_subprogram_die): Avoid another specification DIE
61 for early built declarations/definitions for the late LTO case.
62 (gen_variable_die): Add type references for late duplicated VLA dies
64 (gen_inlined_subroutine_die): Do not call dwarf2out_abstract_function,
65 we have the abstract instance already.
66 (process_scope_var): Adjust decl DIE contexts in LTO which
67 first puts them in limbo.
68 (gen_decl_die): Do not generate type DIEs late apart from
69 types for VLAs or for decls we do not yet have a DIE. Do not
70 call dwarf2out_abstract_function late.
71 (dwarf2out_early_global_decl): Make sure to create DIEs
72 for abstract instances of a decl first.
73 (dwarf2out_late_global_decl): Adjust comment.
74 (output_macinfo_op): With multiple macro sections use
75 macinfo_label_base to distinguish labels.
76 (output_macinfo): Likewise. Update macinfo_label_base.
77 Pass in the line info label.
78 (note_variable_value_in_expr): When generating LTO resolve
79 all variable values here by generating DIEs as needed.
80 (init_sections_and_labels): Add early LTO debug flag parameter
81 and generate different sections and names if set. Add generation
82 counter for the labels so we can have multiple of them.
83 (reset_dies): Helper to allow DIEs to be output multiple times.
84 (dwarf2out_finish): When outputting DIEs to the fat part of an
85 LTO object first reset DIEs.
86 (dwarf2out_early_finish): Output early DIEs when generating LTO.
87 (modified_type_die): Check for decl_ultimate_origin being self
89 (gen_type_die_with_usage): Likewise.
90 (gen_typedef_die): Allow decl_ultimate_origin being self.
91 (set_decl_abstract_flags): Remove.
92 (set_block_abstract_flags): Likewise.
93 (dwarf2out_abstract_function): Treat the early generated DIEs
94 as the abstract copy and only add DW_AT_inline and
95 DW_AT_artificial here and call set_decl_origin_self.
96 If the DIE has an abstract origin don't do anything.
97 * tree.c (free_lang_data): Build a dummy TRANSLATION_UNIT_DECL
98 if we have none yet (Go fails to build one, PR78628).
99 (variably_modified_type_p): Prevent endless recursion for Ada
100 cyclic pointer types.
101 * lto-streamer-in.c: Include debug.h.
102 (dref_queue): New global.
103 (lto_read_tree_1): Stream in DIE references.
104 (lto_input_tree): Register DIE references.
105 (input_function): Stream DECL_DEBUG_ARGS.
106 * lto-streamer-out.c: Include debug.h.
107 (lto_write_tree_1): Output DIE references.
108 (DFS::DFS_write_tree_body): Follow DECL_ABSTRACT_ORIGIN.
109 Force a TRANSLATION_UNIT_DECL DECL_CONTEXT for file-scope decls.
110 (output_function): Stream DECL_DEBUG_ARGS.
111 * tree-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
112 Stream DECL_ABSTRACT_ORIGIN.
113 * tree-streamer-out.c (write_ts_decl_common_tree_pointers): Likewise.
114 (write_ts_decl_minimal_tree_pointers): Force a TRANSLATION_UNIT_DECL
115 DECL_CONTEXT for file-scope decls.
116 * lto-streamer.h (struct dref_entry): Declare.
117 (dref_queue): Likewise.
118 * cfgexpand.c (pass_expand::execute): Do not call the
119 outlining_inline_function hook here.
120 * lto-wrapper.c (debug_obj): New global.
121 (tool_cleanup): Unlink it if required.
122 (debug_objcopy): New function.
123 (run_gcc): Handle early debug sections in the IL files by
124 extracting them to separate files, partially linkin them and
125 feeding the result back as result to the linker.
126 * config/darwin.h (DEBUG_LTO_INFO_SECTION, DEBUG_LTO_ABBREV_SECTION,
127 DEBUG_LTO_MACINFO_SECTION, DEBUG_LTO_LINE_SECTION,
128 DEBUG_STR_LTO_SECTION, DEBUG_LTO_MACRO_SECTION): Put early debug
129 sections into a separate segment.
130 * config/darwin.c (darwin_asm_named_section): Handle __GNU_DWARF_LTO
132 (darwin_asm_dwarf_section): Likewise.
133 (darwin_asm_output_dwarf_offset): Likewise.
134 * config/i386/i386.c (make_resolver_func): Set DECL_IGNORED_P.
136 2017-08-21 Richard Sandiford <richard.sandiford@linaro.org>
137 Alan Hayward <alan.hayward@arm.com>
138 David Sherwood <david.sherwood@arm.com>
140 * read-md.h (md_reader::record_potential_iterator_use): Replace
141 pointer argument with an rtx and an index.
142 * read-rtl.c (iterator_group::apply_iterator): Likewise.
143 (apply_mode_iterator): Likewise.
144 (apply_code_iterator): Likewise.
145 (apply_int_iterator): Likewise.
146 (apply_subst_iterator): Likewise.
147 (record_iterator_use): Likewise.
148 (record_attribute_use): Likewise.
149 (md_reader::record_potential_iterator_use): Likewise. Update calls
150 to record_iterator_use and apply_iterator.
151 (iterator_use): Replace ptr with x and index.
152 (attribute_use): Likewise.
153 (apply_attribute_uses): Update calls to apply_iterator.
154 (apply_iterators): Likewise. Update initialization of iterator_use.
155 (rtx_reader::read_rtx_code): Update calls to record_iterator_use
156 and record_potential_iterator_use.
157 (rtx_reader::read_rtx_operand): Likewise.
159 2017-08-21 Richard Sandiford <richard.sandiford@linaro.org>
160 Alan Hayward <alan.hayward@arm.com>
161 David Sherwood <david.sherwood@arm.com>
163 * varasm.c (const_rtx_hash_1): Don't hash in the mode of a
166 2017-08-21 Richard Biener <rguenther@suse.de>
169 * tree-ssa-alias.c (stmt_kills_ref_p): Handle array accesses
170 at struct end conservatively when comparing common bases.
172 2017-08-21 Richard Biener <rguenther@suse.de>
174 * tree-ssa-loop-im.c (struct lim_aux_data): Add ref index member.
175 (mem_ref_in_stmt): Remove.
176 (determine_max_movement): Use ref index to get at the reference.
177 (invariantness_dom_walker::before_dom_children): Deal with
178 lim data already initialized.
179 (gather_mem_refs_stmt): Initialize lim data and record ref index.
181 2017-08-19 Uros Bizjak <ubizjak@gmail.com>
183 * config/i386/i386.h (OPTION_MASK_ISA_ROUND): Remove.
184 (TARGET_ISA_ROUND): Ditto.
185 (TARGET_ROUND): Ditto.
186 * config/i386/i386.c: Substitute TARGET_ROUND with TARGET_SSE4_1.
187 * config/i386/i386.md: Ditto.
188 * config/i386/sse.md: Ditto.
189 * config/i386/i386-builtin.def: Substitute OPTION_MASK_ISA_ROUND
190 with OPTION_MASK_ISA_SSE4_1.
192 2017-08-19 Uros Bizjak <ubizjak@gmail.com>
195 * doc/extend.texi (x86 Built-in Functions): Correct the name of
196 __builtin_ia32_lzcnt_u16.
198 2017-08-18 Peter Bergner <bergner@vnet.ibm.com>
201 * config/rs6000/rs6000.c (rs6000_activate_target_options): New function.
202 (rs6000_set_current_function): Rewrite function to use it.
204 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
207 * print-tree.c (print_node): Support DECL_WARN_IF_NOT_ALIGN
208 and TYPE_WARN_IF_NOT_ALIGN.
209 * stor-layout.c (do_type_align): Merge DECL_WARN_IF_NOT_ALIGN.
210 (handle_warn_if_not_align): New.
211 (place_union_field): Call handle_warn_if_not_align.
212 (place_field): Call handle_warn_if_not_align.
213 Copy TYPE_WARN_IF_NOT_ALIGN.
214 (finish_builtin_struct): Copy TYPE_WARN_IF_NOT_ALIGN.
215 (layout_type): Likewise.
216 * tree-core.h (tree_type_common): Add warn_if_not_align. Set
218 (tree_decl_common): Add warn_if_not_align.
219 * tree.c (build_range_type_1): Copy TYPE_WARN_IF_NOT_ALIGN.
220 * tree.h (TYPE_WARN_IF_NOT_ALIGN): New.
221 (SET_TYPE_WARN_IF_NOT_ALIGN): Likewise.
222 (DECL_WARN_IF_NOT_ALIGN): Likewise.
223 (SET_DECL_WARN_IF_NOT_ALIGN): Likewise.
224 * doc/extend.texi: Document warn_if_not_aligned attribute.
225 * doc/invoke.texi: Document -Wif-not-aligned and -Wpacked-not-aligned.
227 2017-08-17 Martin Liska <mliska@suse.cz>
230 * tree-loop-distribution.c (ddrs_table): Change type to pointer type.
231 (get_data_dependence): Use it as pointer type.
232 (distribute_loop): Likewise.
234 2017-08-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
236 * config/rs6000/altivec.md (UNSPEC_VMRGOW_DIRECT): New constant.
237 (p8_vmrgew_v4sf_direct): Generalize to p8_vmrgew_<mode>_direct.
238 (p8_vmrgow_<mode>_direct): New define_insn.
239 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Properly
240 handle endianness for vmrgew and vmrgow permute patterns.
242 2017-08-17 Peter Bergner <bergner@vnet.ibm.com>
244 * config/rs6000/altivec.md (VParity): Remove TARGET_VSX_TIMODE.
245 * config/rs6000/rs6000-cpus.def: Remove comment.
246 (ISA_2_7_MASKS_SERVER): Delete OPTION_MASK_VSX_TIMODE;
247 (POWERPC_MASKS): Likewise.
248 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Remove unneeded
249 use of TARGET_VSX_TIMODE.
250 (rs6000_setup_reg_addr_masks): Change TARGET_VSX_TIMODE to TARGET_VSX.
251 (rs6000_init_hard_regno_mode_ok): Remove unneeded uses of
252 TARGET_VSX_TIMODE. Change use of TARGET_VSX_TIMODE to TARGET_VSX.
253 (rs6000_option_override_internal): Remove dead code.
254 (rs6000_legitimize_address): Change TARGET_VSX_TIMODE to TARGET_VSX.
255 (rs6000_legitimize_reload_address): Likewise.
256 (rs6000_legitimate_address_p): Likewise.
257 (rs6000_opt_masks): Delete "vsx-timode".
258 (rs6000_disable_incompatible_switches): Remove mention of -mvsx-timode
259 from function comment.
260 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Delete.
261 * config/rs6000/rs6000.md (FMOVE128_GPR): Remove TARGET_VSX_TIMODE.
262 (V16QI, V8HI, V4SI, V4SF, V2DI, V2DF, V1TI): Remove useless empty
264 * config/rs6000/rs6000.opt (mvsx-timode): Replace with stub.
265 * config/rs6000/vector.md (VEC_IP): Remove TARGET_VSX_TIMODE.
266 * config/rs6000/vsx.md (VSX_LE_128): Likewise.
269 (define_peephole2): Likewise.
271 2017-08-17 Martin Sebor <msebor@redhat.com>
274 * pretty-print.c (pp_format): Use strnlen in %.*s to avoid reading
275 past the end of an array.
276 (test_pp_format): Add test cases.
278 2017-08-17 Richard Sandiford <richard.sandiford@linaro.org>
280 * internal-fn.def (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): Add
281 missing ECF_NOTHROW flags.
283 2017-08-17 Peter Bergner <bergner@vnet.ibm.com>
286 * config/rs6000/vsx.md (*vsx_le_permute_<mode>): Add support for
287 operands residing in integer registers.
288 (*vsx_le_perm_load_<mode>): Likewise.
289 (*vsx_le_perm_store_<mode>): Likewise.
290 (define_peephole2): Add peepholes to optimize the above.
292 2017-08-17 Marek Polacek <polacek@redhat.com>
295 * fold-const.c (operand_equal_for_comparison_p): Remove code that used
296 to mimic what shorten_compare did. Change the return type to bool.
297 (fold_cond_expr_with_comparison): Update call to
298 operand_equal_for_comparison_p.
299 (fold_ternary_loc): Likewise.
301 2017-08-17 Jackson Woodruff <jackson.woodruff@arm.com>
303 * aarch64-simd.md (mov<mode>): No longer force zero immediate into
305 (*aarch64_simd_mov<mode>): Add new case for stp using zero immediate.
307 2017-08-17 Richard Biener <rguenther@suse.de>
309 * tree-ssa-structalias.c (solve_graph): When propagating
310 to successors update the graphs succ edges and avoid duplicate work.
312 2017-08-17 Maxim Ostapenko <m.ostapenko@samsung.com>
315 * config/i386/i386.c (ix86_option_override_internal): Save target
316 specific options after ix86_stack_protector_guard_reg was changed.
318 2017-08-17 Richard Biener <rguenther@suse.de>
320 PR tree-optimization/81827
321 * tree-ssa-structalias.c (struct variable_info): Add is_reg_var flag.
322 (new_var_info): Initialize it conservatively.
323 (get_call_vi): Mark register vars.
324 (new_scalar_tmp_constraint_exp): Likewise.
325 (handle_rhs_call): Likewise.
326 (handle_const_call): Likewise.
327 (create_function_info_for): Likewise.
328 (solve_constraints): Sort varinfos to separate register from
329 non-register vars to pack points-to solution bitmaps during
332 2017-08-17 Marek Polacek <polacek@redhat.com>
334 * gimplify.c (gimplify_adjust_omp_clauses): Compare with 0 instead of 1.
336 2017-08-17 Richard Biener <rguenther@suse.de>
338 * tree-vrp.c (vrp_int_const_binop): Do not set *overflow_p
339 to true when overflow is undefined and we saturated the result.
341 2017-08-17 Alan Modra <amodra@gmail.com>
344 * config/rs6000/rs6000.c (rs6000_savres_strategy): Revert 2017-08-09.
345 Don't use store multiple if only one reg needs saving.
346 (interesting_frame_related_regno): New function.
347 (rs6000_frame_related): Don't emit frame info for regs that
349 (rs6000_emit_epilogue): Likewise.
351 2017-08-16 Nathan Sidwell <nathan@acm.org>
353 * tree-core.h (tree_type_non_common): Rename binfo to lang_1.
354 * tree.h (TYPE_BINFO): Use type_non_common.maxval.
355 (TYPE_LANG_SLOT_1): Use type_non_common.lang_1, for any type.
356 * tree.c (free_lang_data_in_type): Use else-if chain. Always
357 clear TYPE_LANG_1. Remove obsolete member-function stripping.
358 (find_decls_types_r): Comment about TYPE_MAX_VALUES_RAW.
359 (verify_type): Adjust for TYPE_BINFO move.
360 * lto-streamer-out.c (DFS::DFS_write_tree_body): No need to
361 process TYPE_BINFO directly.
362 (hash_tree): Likewise.
363 * tree-streamer-in.c (lto_input_ts_type_non_common_tree_pointers):
365 * tree-streamer-out.c (write_ts_type_non_common_tree_pointers):
368 2017-08-16 David Malcolm <dmalcolm@redhat.com>
370 * diagnostic-show-locus.c (colorizer::m_caret): Remove unused field.
372 2017-08-16 Uros Bizjak <ubizjak@gmail.com>
375 * config/i386/i386.md (*anddi_1_btr): Change predicates of
376 operand 0 and operand 1 to nomimmediate_operand. Add "m" constraint.
377 Add ix86_binary_operator_ok to insn constraint.
378 (*iordi_1_bts): Ditto.
379 (*xordi_1_btc): Ditto.
380 (*btsq): Change predicate of operand 0 to nonimmediate_operand.
381 Update corresponding peephole2 pattern.
385 2017-08-16 Bin Cheng <bin.cheng@arm.com>
387 PR tree-optimization/81832
388 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Don't
389 copy loop header which has IFN_LOOP_DIST_ALIAS call.
391 2017-08-16 Marek Polacek <polacek@redhat.com>
394 * fold-const.c (fold_indirect_ref_1): Restore original behavior
395 regarding size_zero_node.
397 2017-08-16 Martin Liska <mliska@suse.cz>
400 * config.gcc: Respect previously set extra_objs in case
403 2017-08-16 Richard Sandiford <richard.sandiford@linaro.org>
405 PR tree-optimization/81835
406 * tree-vect-loop.c (vect_is_simple_reduction): Simply checks for
407 the phi SSA_NAME. Check that the condition in a COND_EXPR does
408 not depend on the phi.
410 2017-08-16 Alan Modra <amodra@gmail.com>
412 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Delete
415 2017-08-16 Alan Modra <amodra@gmail.com>
417 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Merge..
418 (save_reg_p): ..into this. Update all callers.
419 (first_reg_to_save): Simplify.
421 2017-08-16 Alan Modra <amodra@gmail.com>
423 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't restore
426 2017-08-15 Joseph Myers <joseph@codesourcery.com>
430 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Only unroll for
431 constant count if that count is less than 32.
433 2017-08-15 Nathan Sidwell <nathan@acm.org>
435 * gcc.c (execute): Emit friendlier message if inferior is killed
436 by an external cause.
438 2017-08-15 Richard Biener <rguenther@suse.de>
440 PR tree-optimization/81790
441 * tree-ssa-sccvn.c (vn_lookup_simplify_result): Handle both
442 CONSTRUCTORs from simplifying and VN.
444 2017-08-14 Martin Sebor <msebor@redhat.com>
446 * builtin-attrs.def: Add comments.
448 2017-08-14 Martin Sebor <msebor@redhat.com>
451 * doc/extend.texi (attribute nonstring): Document new attribute.
453 2017-08-14 Martin Sebor <msebor@redhat.com>
456 * tree-diagnostic.c (default_tree_printer): Handle %G.
457 * gimple-pretty-print.h (percent_G_format): Declare new function.
458 * gimple-pretty-print.c (percent_G_format): Define.
459 * tree-pretty-print.c (percent_K_format): Add argument.
461 2017-08-14 Martin Sebor <msebor@redhat.com>
464 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
465 Remove a stray space.
467 2017-08-14 Uros Bizjak <ubizjak@gmail.com>
470 * config/i386/i386.md (*anddi_1_btr): New insn_and_split pattern.
471 (*iordi_1_bts): Ditto.
472 (*xordi_1_btc): Ditto.
474 2017-08-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
477 * config/rs6000/linux64.h (INVALID_64BIT): Use quoted strings.
478 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
480 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Use
481 quoted strings, and make more translator-friendly.
482 (darwin_rs6000_override_options): Likewise.
483 (rs6000_option_override_internal): Likewise.
484 (rs6000_return_in_memory): Fix overlong line.
485 (init_cmulative_args): Use quoted strings, and make more
487 (rs6000_pass_by_reference): Fix overlong line.
488 (def_builtin): Use quoted strings.
489 (altivec_expand_predicate_builtin): Use quoted strings, and make
490 more translator-friendly.
491 (htm_expand_builtin): Use quoted strings.
492 (cpu_expand_builtin): Use quoted strings, and make more
494 (altivec_expand_builtin): Likewise.
495 (paired_expand_predicate_builtin): Likewise.
496 (rs6000_invalid_builtin): Likewise.
497 (builtin_function_type): Use quoted strings.
498 (rs6000_expand_split_stack_prologue): Use quoted strings, and make
499 more translator-friendly.
500 (rs6000_trampoline_init): Likewise.
501 (rs6000_handle_altivec_attribute): Likewise.
502 (rs6000_inner_target_options): Use quoted strings.
503 (rs6000_disable_incompatible_switches): Likewise.
504 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Use quoted
505 strings, and make more translator-friendly.
506 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use quoted strings.
508 2017-08-14 Bin Cheng <bin.cheng@arm.com>
510 PR tree-optimization/81799
511 * tree-loop-distribution.c (version_loop_by_alias_check): Force
512 cond_expr to simple gimple operand.
514 2017-08-14 Wilco Dijkstra <wdijkstr@arm.com>
517 * doc/sourcebuild.texi (autoincdec): Add autoincdec description.
519 2017-08-14 Georg-Johann Lay <avr@gjlay.de>
523 * config/avr/avr.opt (mgas-isr-prologues): New Var avr_gasisr_prologues.
524 * config/avr/avr.md (gasisr, *gasisr): Use it instead of
525 TARGET_GASISR_PROLOGUES.
526 * config/avr/avr.c (avr_option_override): Same.
527 (avr_pass_pre_proep::execute): Same.
529 2017-08-13 H.J. Lu <hongjiu.lu@intel.com>
532 * config/i386/i386.c (ix86_finalize_stack_frame_flags): Replace
533 frame pointer with stack pointer - UNITS_PER_WORD in debug insns.
535 2017-08-13 Uros Bizjak <ubizjak@gmail.com>
537 * config/i386/i386.md (*load_tp_<mode>): Redefine as
538 define_insn_and_split. Split to a memory load from 0 in
539 DEFAULT_TLS_SEG_REG address space. Merge with *load_tp_x32
540 using PTR mode iterator.
541 (*load_tp_x32_zext"): Redefine as define_insn_and_split.
542 Split to a memory load from 0 in DEFAULT_TLS_SEG_REG address space.
543 (*add_tp_<mode>): Redefine as define_insn_and_split.
544 Split to an add with a memory load from 0 in DEFAULT_TLS_SEG_REG
545 address space. Merge with *add_tp_x32 using PTR mode iterator.
546 (*add_tp_x32_zext"): Redefine as define_insn_and_split.
547 Split to an add with a memory load from 0 in
548 DEFAULT_TLS_SEG_REG address space.
550 2017-08-12 Andrew Pinski <apinski@cavium.com>
552 * config/aarch64/aarch64-option-extensions.def (rdma):
553 Fix feature string to what Linux prints out in /proc/cpuinfo.
555 2017-08-12 Pierre-Marie de Rodat <derodat@adacore.com>
558 * dwarf2out.c (modified_type_die): For C typedef types that have
559 an ultimate origin, process the ultimate origin instead of the
561 (gen_typedef_die): Assert that input DECLs have no ultimate
563 (gen_type_die_with_usage): For typedef variants that have an
564 ultimate origin, just call gen_decl_die on the original DECL.
565 (process_scope_var): Avoid creating DIEs for local typedefs and
566 concrete static variables.
568 2017-08-12 Alan Modra <amodra@gmail.com>
572 * config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Upgrade to
573 match gnu-user.h startfile.
574 (ENDFILE_LINUX_SPEC): Similarly.
576 2017-08-11 Thomas Schwinge <thomas@codesourcery.com>
579 * config/nvptx/nvptx.c (nvptx_override_options_after_change):
581 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Remove definition.
583 2017-08-11 Tamar Christina <tamar.christina@arm.com>
584 * config/aarch64/aarch64.md (mov<mode>): Change.
585 (*movhf_aarch64, *movsf_aarch64, *movdf_aarch64):
586 aarch64_reg_or_fp_float into aarch64_reg_or_fp_zero.
587 * config/aarch64/predicates.md (aarch64_reg_or_fp_float): Removed.
589 2017-08-11 Eric Botcazou <ebotcazou@adacore.com>
591 * tree-sra.c (build_access_from_expr_1): Use more precise diagnostics
592 for storage order barriers.
594 2017-08-11 Martin Liska <mliska@suse.cz>
597 * tree-chkp.c (chkp_get_bounds_for_decl_addr): Do not instrument
598 variables of void type.
600 2017-08-11 Martin Liska <mliska@suse.cz>
602 * asan.c (asan_protect_global): Replace ASM_OUTPUT_DEF with
603 TARGET_SUPPORTS_ALIASES.
604 * cgraph.c (cgraph_node::create_same_body_alias): Likewise.
605 * ipa-visibility.c (can_replace_by_local_alias): Likewise.
606 (optimize_weakref): Likewise.
607 * symtab.c (symtab_node::noninterposable_alias): Likewise.
608 * varpool.c (varpool_node::create_extra_name_alias): Likewise.
609 * defaults.h: Introduce TARGET_SUPPORTS_ALIASES.
611 2017-08-11 Martin Liska <mliska@suse.cz>
614 * config/i386/i386.c (make_resolver_func): Do complete
615 refactoring of the function.
617 2017-08-10 Uros Bizjak <ubizjak@gmail.com>
620 * config/i386/i386.opt (mstack-protector-guard-symbol=): New option
621 * config/i386/i386.c (ix86_stack_protect_guard): Use
622 ix86_stack_protect_guard_symbol_str to generate varible declaration.
623 * doc/invoke.texi (x86 Options): Document
624 -mstack-protector-guard-symbol= option.
626 2017-08-10 Uros Bizjak <ubizjak@gmail.com>
628 * config/i386/i386-protos.h (ix86_split_stack_guard): New prototype.
629 * config/i386/i386.c (ix86_split_stack_guard): New function.
630 (ix86_xpand_split_stack_prologue): Call ix86_split_stack_guard.
631 (ix86_legitimate_address_p) <case UNSPEC_STACK_CHECK>: Remove.
632 (i386_asm_output_addr_const_extra) <case UNSPEC_STACK_CHECK>: Ditto.
633 (optput_pic_addr_const): Remove UNSPEC_STACK_CHECK handling.
634 * config/i386/i386.md (unspec): Remove UNSPEC_STACK_CHECK.
635 (split_stack_space_check): Call ix86_split_stack_guard.
637 2017-08-10 Martin Sebor <msebor@redhat.com>
639 * print-tree.c (print_node): Print location using the established
641 Replace spaces with colons.
642 (debug_raw, debug): Ditto.
644 2017-08-10 Martin Sebor <msebor@redhat.com>
647 * pretty-print.c (pp_format): Correct the handling of %s precision.
649 2017-08-10 H.J. Lu <hongjiu.lu@intel.com>
652 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Renamed
654 (ix86_finalize_stack_frame_flags): This. Also clear
655 frame_pointer_needed if -fno-omit-frame-pointer is used without
657 (ix86_expand_prologue): Replace ix86_finalize_stack_realign_flags
658 with ix86_finalize_stack_frame_flags.
659 (ix86_expand_epilogue): Likewise.
660 (ix86_expand_split_stack_prologue): Likewise.
661 * doc/invoke.texi: Add a note for -fno-omit-frame-pointer.
663 2017-08-10 Martin Liska <mliska@suse.cz>
666 * c-attribs.c (handle_target_attribute):
667 Report warning for an empty string argument of target attribute.
669 2017-08-09 Jakub Jelinek <jakub@redhat.com>
672 * omp-low.c (omp_copy_decl): Don't remap FORCED_LABEL or DECL_NONLOCAL
674 * tree-cfg.c (move_stmt_op): Don't adjust DECL_CONTEXT of FORCED_LABEL
675 or DECL_NONLOCAL labels.
676 (move_stmt_r) <case GIMPLE_LABEL>: Adjust DECL_CONTEXT of FORCED_LABEL
677 or DECL_NONLOCAL labels here.
679 2017-08-09 Will Schmidt <will_schmidt@vnet.ibm.com>
681 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add blurb
682 to indicate when early gimple folding has been disabled.
683 (rs6000_gimple_fold_builtin): Add debug content.
684 (rs6000_invalid_builtin): Fix whitespace.
685 (rs6000_expand_builtin): Fix whitespace.
686 * config/rs6000/rs6000.opt: Add option for -mfold-gimple.
688 2017-08-09 Segher Boessenkool <segher@kernel.crashing.org>
691 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
692 SAVE_MULTIPLE if not all the registers that saves, should be saved.
694 2017-08-09 Jim Wilson <jim.wilson@linaro.org>
696 * config/aarch64/aarch64-cores.def (falkor): Use falkor pipeline.
698 * config/aarch64/aarch64.md: Include falkor.md.
699 * config/aarch64/falkor.md: New.
701 2017-08-09 Marek Polacek <polacek@redhat.com>
704 * diagnostic-core.h (emit_diagnostic_valist): Add declaration.
705 * diagnostic.c (emit_diagnostic): Add a comment.
706 (emit_diagnostic_valist): New function.
708 2017-08-09 Marek Polacek <polacek@redhat.com>
711 * input.c (make_location): New overload.
712 * input.h (make_location): Declare.
714 2017-08-08 Alan Modra <amodra@gmail.com>
715 H.J. Lu <hongjiu.lu@intel.com>
718 * gcc.c (NO_PIE_SPEC): Delete.
719 (PIE_SPEC): Define as !no-pie/pie. Move static|shared|r
721 (LINK_PIE_SPEC): ..to here.
722 (LINK_COMMAND_SPEC): Support -no-pie.
723 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Correct
724 chain of crtbegin*.o selection, update for PIE_SPEC changes and
726 (GNU_USER_TARGET_ENDFILE_SPEC): Similarly.
727 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Similarly.
728 (ENDFILE_CRTEND_SPEC): Similarly.
730 2017-08-08 Uros Bizjak <ubizjak@gmail.com>
733 * config/i386/i386.opt (mstack-protector-guard-reg=): New option
734 (mstack-protector-guard-offset=): Ditto.
735 * config/i386/i386.c (ix86_option_override): Handle
736 -mstack-protector-guard-reg= and -mstack-protector-guard-offset=
738 (ix86_stack_protect_guard): Use ix86_stack_protect_guard_reg and
739 ix86_stack_protect_guard_offset variables.
740 (TARGET_STACK_PROTECT_GUARD): Always define.
741 * doc/invoke.texi (x86 Options): Document -mstack-protector-guard-reg=
742 and -mstack-protector-guard-offset= options.
744 2017-08-08 Bin Cheng <bin.cheng@arm.com>
746 * tree-ssa-loop-ivopts.c (relate_compare_use_with_all_cands): Handle
747 boundary case for the last candidate.
749 2017-08-08 Bin Cheng <bin.cheng@arm.com>
751 * doc/invoke.texi: Document -ftree-loop-distribution for O3.
752 * opts.c (default_options_table): Add OPT_ftree_loop_distribution.
754 2017-08-08 Tamar Christina <tamar.christina@arm.com>
757 * config/aarch64/aarch64.md (xorsign<mode>3): New optabs.
758 * config/aarch64/aarch64-builtins.c
759 (aarch64_builtin_vectorized_function): Added CASE_CFN_XORSIGN.
760 * config/aarch64/aarch64-simd-builtins.def: Added xorsign BINOP.
761 * config/aarch64/aarch64-simd.md: Added xorsign<mode>3
763 2017-08-08 Tamar Christina <tamar.christina@arm.com>
764 Andrew Pinski <pinskia@gmail.com>
767 * internal-fn.def (XORSIGN): New.
768 * optabs.def (xorsign_optab): New.
769 * tree-ssa-math-opts.c (is_copysign_call_with_1): New.
770 (convert_expand_mult_copysign): New.
771 (pass_optimize_widening_mul::execute): Call
772 convert_expand_mult_copysign.
774 2017-08-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
776 PR tree-optimization/81354
777 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
778 Insert on edges rather than explicitly creating landing pads.
779 (analyze_candidates_and_replace): Commit edge inserts.
781 2017-08-08 Richard Biener <rguenther@suse.de>
784 * tree-ssa-loop-niter.c: Include tree-dfa.h.
785 (expand_simple_operations): Also look through ADDR_EXPRs with
786 MEM_REF bases treating them as POINTER_PLUS_EXPR.
788 2017-08-08 Richard Biener <rguenther@suse.de>
790 PR tree-optimization/81723
791 * tree-vect-slp.c (struct bst_traits): New hash traits.
792 (bst_fail): New global.
793 (vect_build_slp_tree_2): New worker, split out from ...
794 (vect_build_slp_tree): ... this now wrapping it with using
795 bst_fail set to cache SLP tree build fails. Properly handle
797 (vect_analyze_slp_instance): Allocate and free bst_fail.
799 2017-08-08 Martin Liska <mliska@suse.cz>
802 * ipa-icf-gimple.c (func_checker::compare_cst_or_decl): Consider
803 LABEL_DECLs that can be from a different function.
805 2017-08-08 Bin Cheng <bin.cheng@arm.com>
807 PR tree-optimization/81744
808 * tree-predcom.c (prepare_finalizers_chain): Deep copy expr of
809 loop's number of iterations.
811 2017-08-08 Martin Liska <mliska@suse.cz>
813 * asan.c: Include header files.
814 * attribs.c (build_decl_attribute_variant): New function moved
816 (build_type_attribute_qual_variant): Likewise.
817 (cmp_attrib_identifiers): Likewise.
818 (simple_cst_list_equal): Likewise.
819 (omp_declare_simd_clauses_equal): Likewise.
820 (attribute_value_equal): Likewise.
821 (comp_type_attributes): Likewise.
822 (build_type_attribute_variant): Likewise.
823 (lookup_ident_attribute): Likewise.
824 (remove_attribute): Likewise.
825 (merge_attributes): Likewise.
826 (merge_type_attributes): Likewise.
827 (merge_decl_attributes): Likewise.
828 (merge_dllimport_decl_attributes): Likewise.
829 (handle_dll_attribute): Likewise.
830 (attribute_list_equal): Likewise.
831 (attribute_list_contained): Likewise.
832 * attribs.h (lookup_attribute): New function moved from tree.[ch].
833 (lookup_attribute_by_prefix): Likewise.
834 * bb-reorder.c: Include header files.
835 * builtins.c: Likewise.
837 * cfgexpand.c: Likewise.
838 * cgraph.c: Likewise.
839 * cgraphunit.c: Likewise.
840 * convert.c: Likewise.
841 * dwarf2out.c: Likewise.
843 * fold-const.c: Likewise.
844 * function.c: Likewise.
845 * gimple-expr.c: Likewise.
846 * gimple-fold.c: Likewise.
847 * gimple-pretty-print.c: Likewise.
848 * gimple.c: Likewise.
849 * gimplify.c: Likewise.
850 * hsa-common.c: Likewise.
851 * hsa-gen.c: Likewise.
852 * internal-fn.c: Likewise.
853 * ipa-chkp.c: Likewise.
854 * ipa-cp.c: Likewise.
855 * ipa-devirt.c: Likewise.
856 * ipa-fnsummary.c: Likewise.
857 * ipa-inline.c: Likewise.
858 * ipa-visibility.c: Likewise.
860 * lto-cgraph.c: Likewise.
861 * omp-expand.c: Likewise.
862 * omp-general.c: Likewise.
863 * omp-low.c: Likewise.
864 * omp-offload.c: Likewise.
865 * omp-simd-clone.c: Likewise.
866 * opts-global.c: Likewise.
867 * passes.c: Likewise.
868 * predict.c: Likewise.
869 * sancov.c: Likewise.
870 * sanopt.c: Likewise.
871 * symtab.c: Likewise.
872 * toplev.c: Likewise.
873 * trans-mem.c: Likewise.
874 * tree-chkp.c: Likewise.
875 * tree-eh.c: Likewise.
876 * tree-into-ssa.c: Likewise.
877 * tree-object-size.c: Likewise.
878 * tree-parloops.c: Likewise.
879 * tree-profile.c: Likewise.
880 * tree-ssa-ccp.c: Likewise.
881 * tree-ssa-live.c: Likewise.
882 * tree-ssa-loop.c: Likewise.
883 * tree-ssa-sccvn.c: Likewise.
884 * tree-ssa-structalias.c: Likewise.
885 * tree-ssa.c: Likewise.
886 * tree-streamer-in.c: Likewise.
887 * tree-vectorizer.c: Likewise.
888 * tree-vrp.c: Likewise.
891 * varasm.c: Likewise.
892 * varpool.c: Likewise.
893 * tree.c: Remove functions moved to attribs.[ch].
895 * config/aarch64/aarch64.c: Add attrs.h header file.
896 * config/alpha/alpha.c: Likewise.
897 * config/arc/arc.c: Likewise.
898 * config/arm/arm.c: Likewise.
899 * config/avr/avr.c: Likewise.
900 * config/bfin/bfin.c: Likewise.
901 * config/c6x/c6x.c: Likewise.
902 * config/cr16/cr16.c: Likewise.
903 * config/cris/cris.c: Likewise.
904 * config/darwin.c: Likewise.
905 * config/epiphany/epiphany.c: Likewise.
906 * config/fr30/fr30.c: Likewise.
907 * config/frv/frv.c: Likewise.
908 * config/ft32/ft32.c: Likewise.
909 * config/h8300/h8300.c: Likewise.
910 * config/i386/winnt.c: Likewise.
911 * config/ia64/ia64.c: Likewise.
912 * config/iq2000/iq2000.c: Likewise.
913 * config/lm32/lm32.c: Likewise.
914 * config/m32c/m32c.c: Likewise.
915 * config/m32r/m32r.c: Likewise.
916 * config/m68k/m68k.c: Likewise.
917 * config/mcore/mcore.c: Likewise.
918 * config/microblaze/microblaze.c: Likewise.
919 * config/mips/mips.c: Likewise.
920 * config/mmix/mmix.c: Likewise.
921 * config/mn10300/mn10300.c: Likewise.
922 * config/moxie/moxie.c: Likewise.
923 * config/msp430/msp430.c: Likewise.
924 * config/nds32/nds32-isr.c: Likewise.
925 * config/nds32/nds32.c: Likewise.
926 * config/nios2/nios2.c: Likewise.
927 * config/nvptx/nvptx.c: Likewise.
928 * config/pa/pa.c: Likewise.
929 * config/pdp11/pdp11.c: Likewise.
930 * config/powerpcspe/powerpcspe.c: Likewise.
931 * config/riscv/riscv.c: Likewise.
932 * config/rl78/rl78.c: Likewise.
933 * config/rx/rx.c: Likewise.
934 * config/s390/s390.c: Likewise.
935 * config/sh/sh.c: Likewise.
936 * config/sol2.c: Likewise.
937 * config/sparc/sparc.c: Likewise.
938 * config/spu/spu.c: Likewise.
939 * config/stormy16/stormy16.c: Likewise.
940 * config/tilegx/tilegx.c: Likewise.
941 * config/tilepro/tilepro.c: Likewise.
942 * config/v850/v850.c: Likewise.
943 * config/vax/vax.c: Likewise.
944 * config/visium/visium.c: Likewise.
945 * config/xtensa/xtensa.c: Likewise.
947 2017-08-07 Michael Meissner <meissner@linux.vnet.ibm.com>
950 * config/rs6000/vsx.md (vsx_concat_<mode>, VSX_D): Cleanup
951 constraints since the -mupper-regs-* switches have been
953 (vsx_concat_<mode>_1): New combiner insns to recognize inserting
954 into a vector from a double word element that was extracted from
955 another vector, and eliminate extra XXPERMDI instructions.
956 (vsx_concat_<mode>_2): Likewise.
957 (vsx_concat_<mode>_3): Likewise.
958 (vsx_set_<mode>, VSX_D): Rewrite vector set in terms of vector
959 concat to allow optimizing inserts from previous extracts.
961 2017-08-07 Uros Bizjak <ubizjak@gmail.com>
963 * config/i386/i386.c (ix86_stack_protect_guard): Generate
964 memory reference to a SSP offset in TLS address space.
965 (ix86_print_operand) <case '@'>: Remove.
966 (ix86_print_operand_punct_valid_p): Remove '@' code.
967 * config/i386/i386.md (unspec): Remove UNSPEC_SP_TLS_SET and
969 (stack_tls_protect_set_<mode>): Remove.
970 (stack_protect_set): Do not call gen_stack_tls_protect_set_<mode>.
971 (stack_tls_protect_test_<mode>): Remove.
972 (stack_protect_test): Do not call gen_stack_tls_protect_test_<mode>.
974 2017-08-07 Olivier Hainque <hainque@adacore.com>
977 * config/vxworksae.h (VXWORKS_HAVE_TLS): Define.
979 2017-08-07 Douglas Rupp <rupp@adacore.com>
981 * Makefile.in (install-mkheaders): Fix typo, where the multi_dir
982 variable was referenced as multidir in command.
984 2017-08-07 Jakub Jelinek <jakub@redhat.com>
987 * gimplify.c (goa_stabilize_expr): Handle BIT_INSERT_EXPR and
990 2017-08-07 Martin Liska <mliska@suse.cz>
992 * config/m32c/m32c.c: Add include of stringpool.h and attribs.h.
993 * config/rl78/rl78.c: Add include of attribs.h.
994 * config/sh/sh.c: Likewise.
995 * config/v850/v850.c: Likewise.
997 2017-08-07 Tom de Vries <tom@codesourcery.com>
1000 * omp-expand.c (expand_oacc_for): Ensure diff_type is large enough.
1002 2017-08-07 Martin Liska <mliska@suse.cz>
1004 * config/mips/mips.c: Include attribs.h.
1006 2017-08-07 Thomas Koenig <tkoenig@gcc.gnu.org>
1009 * doc/invoke.texi: Document change in behvaior for -Ofast for
1012 2017-08-07 Wilco Dijkstra <wdijkstr@arm.com>
1014 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg):
1016 (aarch64_pop_regs): Likewise.
1017 (aarch64_gen_load_pair): Likewise.
1018 (aarch64_save_callee_saves): Likewise.
1019 (aarch64_restore_callee_saves): Likewise.
1021 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
1023 * config/i386/i386.c: Revert the last change.
1025 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
1028 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Renamed
1030 (ix86_finalize_stack_frame_flags): This. Also clear
1031 frame_pointer_needed if -fno-omit-frame-pointer is used without
1033 (ix86_expand_prologue): Replace ix86_finalize_stack_realign_flags
1034 with ix86_finalize_stack_frame_flags.
1035 (ix86_expand_epilogue): Likewise.
1036 (ix86_expand_split_stack_prologue): Likewise.
1038 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
1041 * config/i386/i386.c (get_builtin_code_for_version): Set priority
1042 to P_AES for Westmere.
1044 2017-08-07 Jonathan Yong <10walls@gmail.com>
1046 * config/i386/mingw.opt (fset-stack-executable): Removed.
1047 * config/i386/cygming.opt (fset-stack-executable): Moved
1049 * config/i386/cygwin.h: Define CHECK_EXECUTE_STACK_ENABLED.
1051 2017-08-07 Segher Boessenkool <segher@kernel.crashing.org>
1053 * print-rtl.c (print_exp): Print NOT as "~" instead of as "!".
1055 2017-08-07 Marek Polacek <polacek@redhat.com>
1058 * fold-const.c (fold_indirect_ref_1): Check type_domain.
1060 2017-08-07 Martin Liska <mliska@suse.cz>
1062 * attribs.h (canonicalize_attr_name): New function.
1063 (cmp_attribs): Move from c-format.c and adjusted.
1064 (is_attribute_p): Moved from tree.h.
1065 * tree-inline.c: Add new includes.
1066 * tree.c (cmp_attrib_identifiers): Use cmp_attribs.
1067 (private_is_attribute_p): Remove.
1068 (private_lookup_attribute): Likewise.
1069 (private_lookup_attribute_by_prefix): Simplify.
1070 (remove_attribute): Use is_attribute_p.
1071 * tree.h: Remove removed declarations.
1073 2017-08-07 Jakub Jelinek <jakub@redhat.com>
1076 * stmt.c (emit_case_dispatch_table): Add DEFAULT_EDGE argument,
1077 instead of computing it in the function. Formatting fix.
1078 (expand_case): Don't rely on default_edge being the first edge,
1079 clear it if removing it, pass default_edge to
1080 emit_case_dispatch_table.
1081 (expand_sjlj_dispatch_table): Pass NULL as DEFAULT_EDGE, formatting
1084 2017-08-06 Uros Bizjak <ubizjak@gmail.com>
1086 * config/alpha/alpha.c (alpha_reorg): If trap is the last active
1087 insn in the function, emit NOP after the insn.
1089 2017-08-06 Tom de Vries <tom@codesourcery.com>
1091 * omp-expand.c (expand_oacc_for): Add missing edge probability for tile
1094 2017-08-06 Tom de Vries <tom@codesourcery.com>
1096 * omp-expand.c (expand_oacc_for): Add missing edge probability for chunk
1099 2017-08-04 Yury Gribov <tetra2005@gmail.com>
1101 PR tree-optimization/57371
1102 * match.pd: New pattern.
1104 2017-08-04 Marek Polacek <polacek@redhat.com>
1107 * fold-const.c (fold_indirect_ref_1): For ((int *)&a + 4 -> a[1],
1108 perform the computation in offset_int.
1110 2017-08-04 Richard Sandiford <richard.sandiford@linaro.org>
1112 PR tree-optimization/81136
1113 * tree-vectorizer.h: Include tree-hash-traits.h.
1114 (vec_base_alignments): New typedef.
1115 (vec_info): Add a base_alignments field.
1116 (vect_record_base_alignments): Declare.
1117 * tree-data-ref.h (data_reference): Add an is_conditional_in_stmt
1119 (DR_IS_CONDITIONAL_IN_STMT): New macro.
1120 (create_data_ref): Add an is_conditional_in_stmt argument.
1121 * tree-data-ref.c (create_data_ref): Likewise. Use it to initialize
1122 the is_conditional_in_stmt field.
1123 (data_ref_loc): Add an is_conditional_in_stmt field.
1124 (get_references_in_stmt): Set the is_conditional_in_stmt field.
1125 (find_data_references_in_stmt): Update call to create_data_ref.
1126 (graphite_find_data_references_in_stmt): Likewise.
1127 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
1128 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
1129 (vect_record_base_alignment): New function.
1130 (vect_record_base_alignments): Likewise.
1131 (vect_compute_data_ref_alignment): Adjust base_addr and aligned_to
1132 for nested statements even if we fail to compute a misalignment.
1133 Use pooled base alignments for unconditional references.
1134 (vect_find_same_alignment_drs): Compare base addresses instead
1136 (vect_analyze_data_refs_alignment): Call vect_record_base_alignments.
1137 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
1139 2017-08-04 Richard Sandiford <richard.sandiford@linaro.org>
1141 * tree-vectorizer.h (vec_info): Add a constructor and destructor.
1142 Add an explicit name for the enum. Use auto_vec for slp_instances
1144 (_loop_vec_info): Add a constructor and destructor. Use auto_vec
1146 (_bb_vec_info): Add a constructor and destructor.
1147 (vinfo_for_stmt): Return NULL for uids of -1 as well.
1148 (destroy_loop_vec_info): Delete.
1149 (vect_destroy_datarefs): Likewise.
1150 * tree-vectorizer.c (vect_destroy_datarefs): Delete.
1151 (vec_info::vec_info): New function.
1152 (vec_info::~vec_info): Likewise.
1153 (vectorize_loops): Use delete instead of destroy_loop_vec_info.
1154 * tree-parloops.c (gather_scalar_reductions): Use delete instead of
1155 destroy_loop_vec_info.
1156 * tree-vect-loop.c (new_loop_vec_info): Replace with...
1157 (_loop_vec_info::_loop_vec_info): ...this.
1158 (destroy_loop_vec_info): Replace with...
1159 (_loop_vec_info::~_loop_vec_info): ...this. Unconditionally delete
1160 the stmt_vec_infos. Leave handling of vec_info information to its
1161 destructor. Remove explicit vector releases.
1162 (vect_analyze_loop_form): Use new instead of new_loop_vec_info.
1163 (vect_analyze_loop): Use delete instead of destroy_loop_vec_info.
1164 * tree-vect-slp.c (new_bb_vec_info): Replace with...
1165 (_bb_vec_info::_bb_vec_info): ...this. Don't reserve space in
1166 BB_VINFO_GROUPED_STORES or BB_VINFO_SLP_INSTANCES.
1167 (destroy_bb_vec_info): Replace with...
1168 (_bb_vec_info::~_bb_vec_info): ...this. Leave handling of vec_info
1169 information to its destructor.
1170 (vect_slp_analyze_bb_1): Use new and delete instead of
1171 new_bb_vec_info and destroy_bb_vec_info.
1172 (vect_slp_bb): Replace 2 calls to destroy_bb_vec_info with a
1175 2017-08-04 Richard Sandiford <richard.sandiford@linaro.org>
1177 * tree-data-ref.h (subscript): Add access_fn field.
1178 (data_dependence_relation): Add could_be_independent_p.
1179 (SUB_ACCESS_FN, DDR_COULD_BE_INDEPENDENT_P): New macros.
1180 (same_access_functions): Move to tree-data-ref.c.
1181 * tree-data-ref.c (ref_contains_union_access_p): New function.
1182 (access_fn_component_p): Likewise.
1183 (access_fn_components_comparable_p): Likewise.
1184 (dr_analyze_indices): Add a reference to access_fn_component_p.
1185 (dump_data_dependence_relation): Use SUB_ACCESS_FN instead of
1187 (constant_access_functions): Likewise.
1188 (add_other_self_distances): Likewise.
1189 (same_access_functions): Likewise. (Moved from tree-data-ref.h.)
1190 (initialize_data_dependence_relation): Use XCNEW and remove
1191 explicit zeroing of DDR_REVERSED_P. Look for a subsequence
1192 of access functions that have the same type. Allow the
1193 subsequence to end with different bases in some circumstances.
1194 Record the chosen access functions in SUB_ACCESS_FN.
1195 (build_classic_dist_vector_1): Replace ddr_a and ddr_b with
1196 a_index and b_index. Use SUB_ACCESS_FN instead of DR_ACCESS_FN.
1197 (subscript_dependence_tester_1): Likewise dra and drb.
1198 (build_classic_dist_vector): Update calls accordingly.
1199 (subscript_dependence_tester): Likewise.
1200 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Check
1201 DDR_COULD_BE_INDEPENDENT_P.
1202 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Test
1203 comp_alias_ddrs instead of may_alias_ddrs.
1204 * tree-vect-data-refs.c (vect_analyze_possibly_independent_ddr):
1206 (vect_analyze_data_ref_dependence): Use it if
1207 DDR_COULD_BE_INDEPENDENT_P, but fall back to using the recorded
1208 distance vectors if that fails.
1209 (dependence_distance_ge_vf): New function.
1210 (vect_prune_runtime_alias_test_list): Use it. Don't clear
1211 LOOP_VINFO_MAY_ALIAS_DDRS.
1213 2017-08-04 Richard Biener <rguenther@suse.de>
1216 * fold-const.c (fold_binary_loc): Properly restrict
1217 minus_var0 && minus_var1 case when associating undefined overflow
1220 2017-08-04 Tom de Vries <tom@codesourcery.com>
1222 * omp-simd-clone.c (simd_clone_adjust): Add missing edge probability.
1224 2017-08-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1226 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1227 Don't start diagnostic messages with a capital letter.
1228 * config/rs6000/rs6000.c (rs6000_option_override_internal):
1230 (rs6000_invalid_builtin): Likewise.
1231 (rs6000_trampoline_init): Likewise.
1233 2017-08-03 Jakub Jelinek <jakub@redhat.com>
1236 * bb-reorder.c (pass_partition_blocks::execute): Return TODO_df_finish
1237 after setting changeable df flags.
1239 2017-08-03 Richard Biener <rguenther@suse.de>
1241 * tree-ssa-reassoc.c (should_break_up_subtract): Also break
1242 up if the use is in USE - X.
1244 2017-08-03 Alexander Monakov <amonakov@ispras.ru>
1246 * toplev.c (dumpfile.h): New include.
1247 (internal_error_reentered): New static function. Use it...
1248 (internal_error_function): ...here to handle reentered internal_error.
1250 2017-08-03 Richard Biener <rguenther@suse.de>
1253 * fold-const.c (split_tree): Add minus_var and minus_con
1254 arguments, remove unused loc arg. Never generate NEGATE_EXPRs
1255 here but always use minus_*.
1256 (associate_trees): Assert we never associate with MINUS_EXPR
1257 and NULL first operand. Do not recurse for PLUS_EXPR operands
1258 when associating as MINUS_EXPR either.
1259 (fold_binary_loc): Track minus_var and minus_con.
1261 2017-08-03 Tom de Vries <tom@codesourcery.com>
1264 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers): If
1265 ACCEL_COMPILER, apply finish_options on
1266 DECL_FUNCTION_SPECIFIC_OPTIMIZATION.
1268 2017-08-03 Tom de Vries <tom@codesourcery.com>
1271 * config/nvptx/nvptx.c (nvptx_option_override): Emit sorry if
1272 function_entry_patch_area_size > 0.
1274 2017-08-03 Jakub Jelinek <jakub@redhat.com>
1277 * calls.c (alloc_max_size): Use HOST_WIDE_INT_UC (10??)
1278 instead of 10??LU, perform unit multiplication in wide_int,
1279 don't change alloc_object_size_limit if the limit is larger
1282 PR tree-optimization/81655
1283 PR tree-optimization/81588
1284 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle also
1285 the case when ranges[i].low and high are 1 for unsigned type with
1289 * omp-low.c (diagnose_sb_0): Handle flag_openmp_simd like flag_openmp.
1290 (pass_diagnose_omp_blocks::gate): Enable also for flag_openmp_simd.
1292 2017-08-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1294 * tree-vrp.h: Add include guard.
1296 2017-08-02 Uros Bizjak <ubizjak@gmail.com>
1299 * config/i386/i386.md (unspecv): Add UNSPECV_UD2.
1300 (ud2): New insn pattern.
1301 * config/i386/i386.c (ix86_expand_epilogue):
1302 For naked functions, generate ud2 instead of trap insn.
1304 2017-08-02 Marek Polacek <polacek@redhat.com>
1307 * alloc-pool.h (base_pool_allocator): Initialize m_elt_size.
1309 2017-08-02 Tom de Vries <tom@codesourcery.com>
1310 Cesar Philippidis <cesar@codesourcery.com>
1312 * config/nvptx/nvptx.c (nvptx_lockless_update, nvptx_lockfull_update):
1313 Add missing edge probabilities.
1315 2017-08-02 Tamar Christina <tamar.christina@arm.com>
1317 * config/aarch64/aarch64.c (aarch64_reinterpret_float_as_int):
1320 2017-08-02 Jakub Jelinek <jakub@redhat.com>
1323 * function.c (thread_prologue_and_epilogue_insns): Determine blocks
1324 for find_many_sub_basic_blocks bitmap by looking up BLOCK_FOR_INSN
1325 of first NONDEBUG_INSN_P in each of the split_prologue_seq and
1326 prologue_seq sequences - if any.
1328 2017-08-02 Richard Biener <rguenther@suse.de>
1330 * tree-vect-stmts.c (vectorizable_store): Perform vector extracts
1331 via vectors if supported, integer extracts via punning if supported
1332 or otherwise vector extracts.
1334 2017-08-02 Richard Biener <rguenther@suse.de>
1336 * tree-ssa-pre.c (bitmap_insert_into_set_1): Remove and inline
1338 (bitmap_insert_into_set): ... this.
1340 2017-08-02 Richard Biener <rguenther@suse.de>
1342 PR tree-optimization/81633
1344 2015-08-17 Alan Hayward <alan.hayward@arm.com>
1346 PR tree-optimization/71752
1347 * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
1349 2017-08-01 Daniel Santos <daniel.santos@pobox.com>
1351 * config/i386/i386.h (ix86_frame::outlined_save_offset): Remove field.
1352 (machine_function::call_ms2sysv_pad_out): Remove field.
1353 * config/i386/i386.c (xlogue_layout::get_stack_space_used): Modify.
1354 (ix86_compute_frame_layout): Likewise.
1356 2017-08-01 H.J. Lu <hongjiu.lu@intel.com>
1359 * config/i386/i386.c (ix86_set_func_type): Disallow naked
1360 attribute with interrupt attribute.
1362 2017-08-01 Andrew Pinski <apinski@cavium.com>
1364 * tree-ssa-scopedtables.c (hashable_expr_equal_p): Check
1365 BIT_INSERT_EXPR's operand 1
1366 to see if the types precision matches.
1368 2017-08-01 Martin Liska <mliska@suse.cz>
1371 * builtins.c (expand_builtin_memcpy_args): Remove.
1372 (expand_builtin_memcpy): Call newly added function
1373 expand_builtin_memory_copy_args.
1374 (expand_builtin_memcpy_with_bounds): Likewise.
1375 (expand_builtin_mempcpy): Remove last argument.
1376 (expand_builtin_mempcpy_with_bounds): Likewise.
1377 (expand_builtin_memory_copy_args): New function created from
1378 expand_builtin_mempcpy_args with small modifications.
1379 (expand_builtin_mempcpy_args): Remove.
1380 (expand_builtin_stpcpy): Remove unused argument.
1381 (expand_builtin): Likewise.
1382 (expand_builtin_with_bounds): Likewise.
1384 2017-08-01 Martin Liska <mliska@suse.cz>
1387 Make mempcpy more optimal (PR middle-end/70140).
1389 2017-08-01 Jakub Jelinek <jakub@redhat.com>
1392 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): For
1393 __builtin_vec_cmpne verify both arguments are compatible vectors
1394 before looking at TYPE_MODE on the element type. For __builtin_vec_ld
1395 verify arg1_type is a pointer or array type. For __builtin_vec_st,
1396 move computation of aligned to after checking the argument types.
1400 * config/rs6000/vsx.md (vextract_fp_from_shorth,
1401 vextract_fp_from_shortl): Add element mode after mode in gen_vec_init*
1404 2017-08-01 Jerome Lambourg <lambourg@adacore.com>
1405 Doug Rupp <rupp@adacore.com>
1406 Olivier Hainque <hainque@adacore.com>
1408 * config.gcc (arm-wrs-vxworks*): Rework to handle arm-wrs-vxworks7 as
1409 well as arm-wrs-vxworks. Update target_cpu_name from arm6 (arch v3) to
1411 * config/arm/vxworks.h (MAYBE_TARGET_BPABI_CPP_BUILTINS): New, helper
1412 for TARGET_OS_CPP_BUILTIN.
1413 (TARGET_OS_CPP_BUILTIN): Invoke MAYBE_TARGET_BPABI_CPP_BUILTINS(),
1414 refine CPU definitions for arm_arch5 and add those for arm_arch6 and
1416 (MAYBE_ASM_ABI_SPEC): New, helper for SUBTARGET_EXTRA_ASM_SPEC,
1417 passing required abi options to the assembler for EABI configurations.
1418 (EXTRA_CC1_SPEC): New macro, to help prevent the implicit production
1419 of .text.hot and .text.unlikely sections for kernel modules when
1420 using ARM style exceptions.
1421 (CC1_SPEC): Remove obsolete attempt at mimicking Diab toolchain
1422 options. Add EXTRA_CC1_SPEC.
1423 (VXWORKS_ENDIAN_SPEC): Adjust comment and remove handling of Diab
1425 (DWARF2_UNWIND_INFO): Redefine to handle the pre/post VxWorks 7
1427 (ARM_TARGET2_DWARF_FORMAT): Define.
1428 * config/arm/t-vxworks: Adjust multilib control to removal of the
1429 Diab command line options.
1431 2017-08-01 Martin Liska <mliska@suse.cz>
1433 PR gcov-profile/81561
1434 * gcov.c (unblock): Make unblocking safe as we need to preserve
1435 index correspondence of blocks and block_lists.
1437 2017-08-01 Richard Biener <rguenther@suse.de>
1439 PR tree-optimization/81181
1440 * tree-ssa-pre.c (compute_antic_aux): Defer clean() to ...
1441 (compute_antic): ... end of iteration here.
1443 2017-08-01 James Greenhalgh <james.greenhalgh@arm.com>
1445 * common.opt (ftree-vectorize): No longer set flag_tree_vectorize.
1446 (ftree-loop-vectorize): Set as EnabledBy ftree-vectorize.
1447 (ftree-slp-vectorize): Likewise.
1448 * omp-expand (expand_omp_simd): Remove flag_tree_vectorize, as it
1449 can no longer be set independent of flag_tree_loop_vectorize.
1450 * omp-general.c (emp_max_vf): Likewise.
1451 * opts.c (enable_fdo_optimizations): Remove references to
1452 flag_tree_vectorize, these are now implicit.
1453 (common_handle_option): Remove handling for OPT_ftree_vectorize,
1454 and leave it for the options machinery.
1456 2017-08-01 Martin Liska <mliska@suse.cz>
1459 * builtins.c (expand_builtin_memcpy_args): Remove.
1460 (expand_builtin_memcpy): Call newly added function
1461 expand_builtin_memory_copy_args.
1462 (expand_builtin_memcpy_with_bounds): Likewise.
1463 (expand_builtin_mempcpy): Remove last argument.
1464 (expand_builtin_mempcpy_with_bounds): Likewise.
1465 (expand_builtin_memory_copy_args): New function created from
1466 expand_builtin_mempcpy_args with small modifications.
1467 (expand_builtin_mempcpy_args): Remove.
1468 (expand_builtin_stpcpy): Remove unused argument.
1469 (expand_builtin): Likewise.
1470 (expand_builtin_with_bounds): Likewise.
1472 2017-08-01 Uros Bizjak <ubizjak@gmail.com>
1475 * config/i386/i386.c (ix86_print_operand_address_as): For -masm=intel
1476 print "ds:" only for immediates in generic address space.
1478 2017-08-01 Uros Bizjak <ubizjak@gmail.com>
1481 * config/i386/i386.c (ix86_funciton_naked): New prototype.
1482 (ix86_function_ok_for_sibcall): Return false for naked functions.
1484 2017-08-01 Richard Biener <rguenther@suse.de>
1486 * tree-ssa-pre.c (print_pre_expr): Handle NULL expr.
1487 (compute_antic): Seed worklist with exit block predecessors.
1488 * cfganal.c (dfs_find_deadend): For a cycle return the source
1489 of the edge closing it.
1491 2017-08-01 Tamar Christina <tamar.christina@arm.com>
1493 * config/aarch64/aarch64.c
1494 (aarch64_can_const_movi_rtx_p): Move 0 check.
1496 2017-08-01 Bin Cheng <bin.cheng@arm.com>
1498 * tree.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Delete.
1499 * fold-const.c (fold_comparison, fold_binary_loc): Delete use of
1501 * match.pd: Ditto in address comparison pattern.
1503 2017-08-01 Bin Cheng <bin.cheng@arm.com>
1505 PR tree-optimization/81627
1506 * tree-predcom.c (prepare_finalizers): Always rewrite into loop
1507 closed ssa form for store-store chain.
1509 2017-08-01 Bin Cheng <bin.cheng@arm.com>
1511 PR tree-optimization/81620
1512 * tree-predcom.c (add_ref_to_chain): Don't set has_max_use_after
1513 for store-store chain.
1515 2017-08-01 Jakub Jelinek <jakub@redhat.com>
1517 PR tree-optimization/81588
1518 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): If
1519 ranges[i].in_p, invert comparison code ccode. For >/>=,
1520 swap rhs1 and rhs2 and comparison code unconditionally,
1521 for </<= don't do that. Don't swap rhs1/rhs2 again if
1522 ranges[i].in_p, instead invert comparison code ccode if
1523 opcode or oe->rank is BIT_IOR_EXPR.
1526 * optabs.def (vec_extract_optab, vec_init_optab): Change from
1527 a direct optab to conversion optab.
1528 * optabs.c (expand_vector_broadcast): Use convert_optab_handler
1529 with GET_MODE_INNER as last argument instead of optab_handler.
1530 * expmed.c (extract_bit_field_1): Likewise. Use vector from
1531 vector extraction if possible and optab is available.
1532 * expr.c (store_constructor): Use convert_optab_handler instead
1533 of optab_handler. Use vector initialization from smaller
1534 vectors if possible and optab is available.
1535 * tree-vect-stmts.c (vectorizable_load): Likewise.
1536 * doc/md.texi (vec_extract, vec_init): Document that the optabs
1538 * config/i386/i386.c (ix86_expand_vector_init): Handle expansion
1539 of vec_init from half-sized vectors with the same element mode.
1540 * config/i386/sse.md (ssehalfvecmode): Add V4TI case.
1541 (ssehalfvecmodelower, ssescalarmodelower): New mode attributes.
1542 (reduc_plus_scal_v8df, reduc_plus_scal_v4df, reduc_plus_scal_v2df,
1543 reduc_plus_scal_v16sf, reduc_plus_scal_v8sf, reduc_plus_scal_v4sf,
1544 reduc_<code>_scal_<mode>, reduc_umin_scal_v8hi): Add element mode
1545 after mode in gen_vec_extract* calls.
1546 (vec_extract<mode>): Renamed to ...
1547 (vec_extract<mode><ssescalarmodelower>): ... this.
1548 (vec_extract<mode><ssehalfvecmodelower>): New expander.
1549 (rotl<mode>3, rotr<mode>3, <shift_insn><mode>3, ashrv2di3): Add
1550 element mode after mode in gen_vec_init* calls.
1551 (VEC_INIT_HALF_MODE): New mode iterator.
1552 (vec_init<mode>): Renamed to ...
1553 (vec_init<mode><ssescalarmodelower>): ... this.
1554 (vec_init<mode><ssehalfvecmodelower>): New expander.
1555 * config/i386/mmx.md (vec_extractv2sf): Renamed to ...
1556 (vec_extractv2sfsf): ... this.
1557 (vec_initv2sf): Renamed to ...
1558 (vec_initv2sfsf): ... this.
1559 (vec_extractv2si): Renamed to ...
1560 (vec_extractv2sisi): ... this.
1561 (vec_initv2si): Renamed to ...
1562 (vec_initv2sisi): ... this.
1563 (vec_extractv4hi): Renamed to ...
1564 (vec_extractv4hihi): ... this.
1565 (vec_initv4hi): Renamed to ...
1566 (vec_initv4hihi): ... this.
1567 (vec_extractv8qi): Renamed to ...
1568 (vec_extractv8qiqi): ... this.
1569 (vec_initv8qi): Renamed to ...
1570 (vec_initv8qiqi): ... this.
1571 * config/rs6000/vector.md (VEC_base_l): New mode attribute.
1572 (vec_init<mode>): Renamed to ...
1573 (vec_init<mode><VEC_base_l>): ... this.
1574 (vec_extract<mode>): Renamed to ...
1575 (vec_extract<mode><VEC_base_l>): ... this.
1576 * config/rs6000/paired.md (vec_initv2sf): Renamed to ...
1577 (vec_initv2sfsf): ... this.
1578 * config/rs6000/altivec.md (splitter, altivec_copysign_v4sf3,
1579 vec_unpacku_hi_v16qi, vec_unpacku_hi_v8hi, vec_unpacku_lo_v16qi,
1580 vec_unpacku_lo_v8hi, mulv16qi3, altivec_vreve<mode>2): Add
1581 element mode after mode in gen_vec_init* calls.
1582 * config/aarch64/aarch64-simd.md (vec_init<mode>): Renamed to ...
1583 (vec_init<mode><Vel>): ... this.
1584 (vec_extract<mode>): Renamed to ...
1585 (vec_extract<mode><Vel>): ... this.
1586 * config/aarch64/iterators.md (Vel): New mode attribute.
1587 * config/s390/s390.c (s390_expand_vec_strlen, s390_expand_vec_movstr):
1588 Add element mode after mode in gen_vec_extract* calls.
1589 * config/s390/vector.md (non_vec_l): New mode attribute.
1590 (vec_extract<mode>): Renamed to ...
1591 (vec_extract<mode><non_vec_l>): ... this.
1592 (vec_init<mode>): Renamed to ...
1593 (vec_init<mode><non_vec_l>): ... this.
1594 * config/s390/s390-builtins.def (s390_vlgvb, s390_vlgvh, s390_vlgvf,
1595 s390_vlgvf_flt, s390_vlgvg, s390_vlgvg_dbl): Add element mode after
1597 * config/arm/iterators.md (V_elem_l): New mode attribute.
1598 * config/arm/neon.md (vec_extract<mode>): Renamed to ...
1599 (vec_extract<mode><V_elem_l>): ... this.
1600 (vec_extractv2di): Renamed to ...
1601 (vec_extractv2didi): ... this.
1602 (vec_init<mode>): Renamed to ...
1603 (vec_init<mode><V_elem_l>): ... this.
1604 (reduc_plus_scal_<mode>, reduc_plus_scal_v2di, reduc_smin_scal_<mode>,
1605 reduc_smax_scal_<mode>, reduc_umin_scal_<mode>,
1606 reduc_umax_scal_<mode>, neon_vget_lane<mode>, neon_vget_laneu<mode>):
1607 Add element mode after gen_vec_extract* calls.
1608 * config/mips/mips-msa.md (vec_init<mode>): Renamed to ...
1609 (vec_init<mode><unitmode>): ... this.
1610 (vec_extract<mode>): Renamed to ...
1611 (vec_extract<mode><unitmode>): ... this.
1612 * config/mips/loongson.md (vec_init<mode>): Renamed to ...
1613 (vec_init<mode><unitmode>): ... this.
1614 * config/mips/mips-ps-3d.md (vec_initv2sf): Renamed to ...
1615 (vec_initv2sfsf): ... this.
1616 (vec_extractv2sf): Renamed to ...
1617 (vec_extractv2sfsf): ... this.
1618 (reduc_plus_scal_v2sf, reduc_smin_scal_v2sf, reduc_smax_scal_v2sf):
1619 Add element mode after gen_vec_extract* calls.
1620 * config/mips/mips.md (unitmode): New mode iterator.
1621 * config/spu/spu.c (spu_expand_prologue, spu_allocate_stack,
1622 spu_builtin_extract): Add element mode after gen_vec_extract* calls.
1623 * config/spu/spu.md (inner_l): New mode attribute.
1624 (vec_init<mode>): Renamed to ...
1625 (vec_init<mode><inner_l>): ... this.
1626 (vec_extract<mode>): Renamed to ...
1627 (vec_extract<mode><inner_l>): ... this.
1628 * config/sparc/sparc.md (veltmode): New mode iterator.
1629 (vec_init<VMALL:mode>): Renamed to ...
1630 (vec_init<VMALL:mode><VMALL:veltmode>): ... this.
1631 * config/ia64/vect.md (vec_initv2si): Renamed to ...
1632 (vec_initv2sisi): ... this.
1633 (vec_initv2sf): Renamed to ...
1634 (vec_initv2sfsf): ... this.
1635 (vec_extractv2sf): Renamed to ...
1636 (vec_extractv2sfsf): ... this.
1637 * config/powerpcspe/vector.md (VEC_base_l): New mode attribute.
1638 (vec_init<mode>): Renamed to ...
1639 (vec_init<mode><VEC_base_l>): ... this.
1640 (vec_extract<mode>): Renamed to ...
1641 (vec_extract<mode><VEC_base_l>): ... this.
1642 * config/powerpcspe/paired.md (vec_initv2sf): Renamed to ...
1643 (vec_initv2sfsf): ... this.
1644 * config/powerpcspe/altivec.md (splitter, altivec_copysign_v4sf3,
1645 vec_unpacku_hi_v16qi, vec_unpacku_hi_v8hi, vec_unpacku_lo_v16qi,
1646 vec_unpacku_lo_v8hi, mulv16qi3): Add element mode after mode in
1647 gen_vec_init* calls.
1649 2017-08-01 Richard Biener <rguenther@suse.de>
1651 PR tree-optimization/81297
1652 * tree-vrp.c (get_single_symbol): Remove assert, instead drop
1653 TREE_OVERFLOW from INTEGER_CSTs.
1655 2017-07-31 Segher Boessenkool <segher@kernel.crashing.org>
1657 * config/rs6000/rs6000.c (enum rs6000_reg_type): Delete trailing comma.
1659 2017-07-31 Carl Love <cel@us.ibm.com>
1661 * config/rs6000/rs6000-c: Add support for built-in functions
1662 vector signed char vec_xl_be (signed long long, signed char *);
1663 vector unsigned char vec_xl_be (signed long long, unsigned char *);
1664 vector signed int vec_xl_be (signed long long, signed int *);
1665 vector unsigned int vec_xl_be (signed long long, unsigned int *);
1666 vector signed long long vec_xl_be (signed long long, signed long long *);
1667 vector unsigned long long vec_xl_be (signed long long, unsigned long long *);
1668 vector signed short vec_xl_be (signed long long, signed short *);
1669 vector unsigned short vec_xl_be (signed long long, unsigned short *);
1670 vector double vec_xl_be (signed long long, double *);
1671 vector float vec_xl_be (signed long long, float *);
1672 * config/rs6000/altivec.h (vec_xl_be): Add #define.
1673 * config/rs6000/rs6000-builtin.def (XL_BE_V16QI, XL_BE_V8HI, XL_BE_V4SI)
1674 XL_BE_V2DI, XL_BE_V4SF, XL_BE_V2DF, XL_BE): Add definitions
1676 * config/rs6000/rs6000.c (altivec_expand_xl_be_builtin): Add function.
1677 (altivec_expand_builtin): Add switch statement to call
1678 altivec_expand_xl_be for each builtin.
1679 (altivec_init_builtins): Add def_builtin for _builtin_vsx_le_be_v8hi,
1680 __builtin_vsx_le_be_v4si, __builtin_vsx_le_be_v2di,
1681 __builtin_vsx_le_be_v4sf, __builtin_vsx_le_be_v2df,
1682 __builtin_vsx_le_be_v16qi.
1683 * doc/extend.texi: Update the built-in documentation file for the
1684 new built-in functions.
1686 2017-07-31 Uros Bizjak <ubizjak@gmail.com>
1689 * config/i386/i386.c (ix86_allocate_stack_slots_for_args):
1691 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
1693 2017-07-31 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1695 * config.gcc: Add z14.
1696 * config/s390/driver-native.c (s390_host_detect_local_cpu): Add
1697 CPU model numbers for z13s and z14.
1698 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Replace
1700 * config/s390/s390-opts.h (enum processor_type): Rename
1701 PROCESSOR_ARCH12 to PROCESSOR_3906_Z14.
1702 * config/s390/s390.c (processor_table): Add field for CPU name to
1703 be passed to Binutils.
1704 (s390_asm_output_machine_for_arch): Use the new field in
1705 processor_table for Binutils.
1706 (s390_expand_builtin): Replace arch12 with z14.
1707 (s390_issue_rate): Rename PROCESSOR_ARCH12 to PROCESSOR_3906_Z14.
1708 (s390_get_sched_attrmask): Likewise.
1709 (s390_get_unit_mask): Likewise.
1710 * config/s390/s390.opt: Add z14 to processor_type enum.
1712 2017-07-31 Martin Jambor <mjambor@suse.cz>
1715 * ipa-fnsummary.c (ipa_fn_summary_generate): Set versionable
1716 regardless of optimization level.
1718 2017-07-31 Jan Hubicka <hubicka@ucw.cz>
1719 Martin Liska <mliska@suse.cz>
1721 * predict.def: Remove old comment and adjust probability.
1722 * gimplify.c (should_warn_for_implicit_fallthrough): Ignore
1725 2017-07-31 Uros Bizjak <ubizjak@gmail.com>
1728 * config/i386/i386.c (ix86_function_naked): New function.
1729 (ix86_can_use_return_insn_p): Return false for naked functions.
1730 (ix86_expand_prologue): Skip prologue for naked functions.
1731 (ix86_expand_epilogue): Skip epilogue for naked functions
1732 and emit trap instruction.
1733 (ix86_warn_func_return): New function.
1734 (ix86_attribute_table): Add "naked" attribute specification.
1735 (TARGET_WARN_FUNC_RETURN): Define.
1736 * doc/extend.texi (x86 Function Attributes) <naked>: Document it.
1738 2017-07-31 Martin Liska <mliska@suse.cz>
1740 * gimple-pretty-print.c (dump_gimple_label): Never dump BB info.
1741 (dump_gimple_bb_header): Always dump BB info.
1742 (pp_cfg_jump): Do not append info about BB when dumping a jump.
1744 2017-07-31 Martin Liska <mliska@suse.cz>
1747 * convert.c (convert_to_integer_1): Guard condition with flag_sanitize_p
1748 also with current_function_decl non-null equality.
1750 2017-07-31 Jakub Jelinek <jakub@redhat.com>
1753 * ubsan.c (ubsan_type_descriptor): For UBSAN_PRINT_ARRAY don't
1754 change type to the element type, instead add eltype variable and
1755 use it where we are interested in the element type.
1757 PR tree-optimization/81603
1758 * ipa-polymorphic-call.c
1759 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Perform
1760 offset arithmetic in offset_int, bail out if the resulting bit offset
1761 doesn't fit into shwi.
1763 2017-07-31 Martin Liska <mliska@suse.cz>
1765 * gimplify.c (mostly_copy_tree_r): Remove Java specific hunk.
1766 (gimplify_save_expr): Fix comment.
1768 2017-07-30 H.J. Lu <hongjiu.lu@intel.com>
1771 * config/i386/i386.c (ix86_function_arg): Update arguments for
1773 (ix86_compute_frame_layout): Set the initial stack offset to
1774 INCOMING_FRAME_SP_OFFSET. Update red-zone offset with
1775 INCOMING_FRAME_SP_OFFSET.
1776 (ix86_expand_epilogue): Don't pop the 'ERROR_CODE' off the
1777 stack before exception handler returns.
1778 * config/i386/i386.h (INCOMING_FRAME_SP_OFFSET): Add the
1779 the 'ERROR_CODE' for exception handler.
1781 2017-07-30 Uros Bizjak <ubizjak@gmail.com>
1783 * config/i386/i386.h (ASM_PRINTF_EXTENSIONS): New macro.
1784 (ASM_OUTPUT_REG_PUSH): Rewrite with new operand modifiers.
1785 (ASM_OUTPUT_REG_POP): Ditto.
1786 * config/i386/i386.c (ix86_asm_output_function_label): Use fputs
1787 instead of asm_fprintf to output pure string.
1789 2017-07-29 Jakub Jelinek <jakub@redhat.com>
1791 * debug.h (struct gcc_debug_hooks): Add IMPLICIT argument
1792 to imported_module_or_decl hook.
1793 (debug_nothing_tree_tree_tree_bool): Remove.
1794 (debug_nothing_tree_tree_tree_bool_bool): New declaration.
1795 * debug.c (do_nothing_debug_hooks): Use
1796 debug_nothing_tree_tree_tree_bool_bool instead of
1797 debug_nothing_tree_tree_tree_bool.
1798 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
1799 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
1800 * sdbout.c (sdb_debug_hooks): Likewise.
1801 * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
1802 (gen_namespace_die): Add DW_AT_export_symbols attribute if
1804 (dwarf2out_imported_module_or_decl): Add IMPLICIT argument,
1805 if true, -gdwarf-5 and decl will have DW_AT_export_symbols
1806 attribute, don't add anything.
1808 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1810 * fold-const.c (fold_build1_stat_loc): Remove _stat from name.
1811 (fold_build2_stat_loc): Likewise.
1812 (fold_build3_stat_loc): Likewise.
1813 * fold-const.h (fold_build1, fold_build2, fold_build3): Adjust.
1814 (fold_build1_loc): Remove macro.
1815 (fold_build2_loc): Likewise.
1816 (fold_build3_loc): Likewise.
1818 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1820 * gimple.c (gimple_build_debug_bind_stat): Remove _stat from name.
1821 (gimple_build_debug_bind_source_stat): Likewise.
1822 * gimple.h (gimple_build_debug_bind): Remove macro.
1823 (gimple_build_debug_bind_source): Likewise.
1825 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1827 * bitmap.c (bitmap_alloc): Adjust.
1828 (bitmap_gc_alloc): Likewise.
1829 * bitmap.h (bitmap_initialize_stat): Remove _stat from name.
1831 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1833 * bitmap.c (bitmap_obstack_alloc_stat): Rename to bitmap_alloc.
1834 (bitmap_gc_alloc_stat): Rename to bitmap_gc_alloc.
1835 * bitmap.h (bitmap_obstack_alloc_stat): Adjust prototype.
1836 (bitmap_gc_alloc_stat): Likewise.
1837 (BITMAP_ALLOC, BITMAP_GGC_ALLOC): Adjust.
1839 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1841 * rtl.c (shallow_copy_rtx_stat): Remove _stat from name.
1842 * rtl.h (shallow_copy_rtx): Remove macro.
1844 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1846 * emit-rtl.c (gen_raw_REG): Adjust.
1847 * gengenrtl.c (gendef): Likewise.
1848 * rtl.c (rtx_alloc_stat): Remove _stat from name.
1849 * rtl.h (rtx_alloc): Remove macro.
1851 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1853 * tree.c (build_tree_list_vec_stat): Remove _stat from name.
1854 (build_tree_list_stat): Likewise.
1855 * tree.h (build_tree_list): Remove macro.
1856 (build_tree_list_vec): Likewise.
1858 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1860 * tree.c (make_vector_stat): Remove _stat from name.
1861 (build_vector_stat): Likewise.
1862 * tree.h (make_vector_stat): Remove macro.
1863 (build_vector_stat): Likewise.
1865 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1867 * tree.h (build_var_debug_value): Remove prototype.
1869 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1871 * tree.c (tree_cons_stat): Remove _stat from name.
1872 * tree.h (tree_cons): Remove macro.
1874 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1876 * tree.c (build_vl_exp_stat): Remove _stat from name.
1877 * tree.h (build_vl_exp): Remove macro.
1879 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1881 * tree.c (build_decl_stat): Remove _stat from name.
1882 * tree.h (build_decl): Remove macro.
1884 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1886 * gimple.c (gimple_build_with_ops_stat): Adjust.
1887 (gimple_alloc_stat): Remove _stat from name.
1888 * gimple.h (gimple_alloc): Remove macro.
1890 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1892 * tree.c (make_tree_vec_stat): Remove _stat from name.
1893 (grow_tree_vec_stat): Likewise.
1894 * tree.h (make_tree_vec_stat): Adjust prototype.
1895 (grow_tree_vec_stat): Likewise.
1896 (make_tree_vec): Remove macro.
1897 (grow_tree_vec): Likewise.
1899 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1901 * fold-const.c (fold_build1_stat_loc): Adjust.
1902 (fold_build2_stat_loc): Likewise.
1903 (fold_build3_stat_loc): Likewise.
1904 * tree.c (build0_stat): Remove _stat from name.
1905 (build1_stat): Likewise.
1906 (build2_stat): Likewise.
1907 (build3_stat): Likewise.
1908 (build4_stat): Likewise.
1909 (build5_stat): Likewise.
1910 * tree.h (build1_loc): Remove macro, and rename _stat function
1912 (build2_loc): Likewise.
1913 (build3_loc): Likewise.
1914 (build4_loc): Likewise.
1915 (build5_loc): Likewise.
1917 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1919 * tree.c (make_int_cst_stat): Remove _stat from name.
1920 * tree.h (make_int_cst_stat): Adjust prototype.
1921 (make_int_cst): Remove macro.
1923 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1925 * tree.c (make_tre_binfo_stat): Remove _stat from name.
1926 * tree.h (make_tree_binfo_stat): Adjust prototype.
1927 (make_tree_binfo): Remove.
1929 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1931 * tree.c (copy_node_stat): Rename to copy_node.
1932 (build_distinct_type_copy): Adjust.
1933 * tree.h (copy_node_stat): Adjust prototype.
1934 (copy_node): Remove macro.
1936 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1938 * tree.c (make_node_stat): rename to make_node.
1939 (build_tree_list_stat): Adjust.
1940 (build0_stat): Likewise.
1941 (build2_stat): Likewise.
1942 (build3_stat): Likewise.
1943 (build4_stat): Likewise.
1944 (build5_stat): Likewise.
1945 (build_decl_stat): Likewise.
1946 * tree.h (make_node_stat): Adjust prototype.
1947 (make_node): remove macro.
1949 2017-07-28 Peter Bergner <bergner@vnet.ibm.com>
1951 * config/rs6000/ppc-auxv.h (PPC_FEATURE2_DARN): New define.
1952 (PPC_FEATURE2_SCV): Likewise.
1953 * config/rs6000/rs6000.c (cpu_supports_info): Use them.
1955 2017-07-28 Tamar Christina <tamar.christina@arm.com>
1957 * config/aarch64/aarch64.c
1958 (aarch64_internal_mov_immediate): Add new special pattern.
1959 * config/aarch64/aarch64.md (*movdi_aarch64):
1960 Add reg/32bit const mov case.
1962 2017-07-28 Tamar Christina <tamar.christina@arm.com>
1963 Richard Sandiford <richard.sandiford@linaro.org>
1965 * config/aarch64/aarch64.md (mov<mode>): Generalize.
1966 (*movhf_aarch64, *movsf_aarch64, *movdf_aarch64):
1967 Add integer and movi cases.
1968 (movi-split-hf-df-sf split, fp16): New.
1969 (enabled): Added TARGET_FP_F16INST.
1970 * config/aarch64/iterators.md (GPF_HF): New.
1971 * config/aarch64/predicates.md (aarch64_reg_or_fp_float): New.
1973 2017-07-28 Tamar Christina <tamar.christina@arm.com>
1975 * config/aarch64/aarch64.c
1976 (aarch64_simd_container_mode): Add prototype.
1977 (aarch64_expand_mov_immediate): Add HI support.
1978 (aarch64_reinterpret_float_as_int, aarch64_float_const_rtx_p: New.
1979 (aarch64_can_const_movi_rtx_p): New.
1980 (aarch64_preferred_reload_class):
1981 Remove restrictions of using FP registers for certain SIMD operations.
1982 (aarch64_rtx_costs): Added new cost for CONST_DOUBLE moves.
1983 (aarch64_valid_floating_const): Add integer move validation.
1984 (aarch64_simd_imm_scalar_p): Remove.
1985 (aarch64_output_scalar_simd_mov_immediate): Generalize function.
1986 (aarch64_legitimate_constant_p): Expand list of supported cases.
1987 * config/aarch64/aarch64-protos.h
1988 (aarch64_float_const_rtx_p, aarch64_can_const_movi_rtx_p): New.
1989 (aarch64_reinterpret_float_as_int): New.
1990 (aarch64_simd_imm_scalar_p): Remove.
1991 * config/aarch64/constraints.md (Uvi): New.
1992 (Dd): Split into Ds and new Dd.
1993 * config/aarch64/aarch64.md (*movsi_aarch64):
1995 (*movdi_aarch64): Add SIMD mov case.
1997 2017-07-28 Bin Cheng <bin.cheng@arm.com>
1999 * tree-predcom.c: (struct chain): Handle store-store chain in which
2000 stores for elimination only store loop invariant values.
2001 (execute_pred_commoning_chain): Ditto.
2002 (prepare_initializers_chain_store_elim): Ditto.
2003 (prepare_finalizers): Ditto.
2004 (is_inv_store_elimination_chain): New function.
2005 (initialize_root_vars_store_elim_1): New function.
2007 2017-07-28 Bin Cheng <bin.cheng@arm.com>
2009 * tree-predcom.c: Revise general description of the pass.
2010 (enum chain_type): New enum type for store elimination.
2011 (struct chain): New field supporting store elimination.
2012 (struct component): Ditto.
2013 (dump_chain): Dump store-stores chain.
2014 (release_chain): Release resources.
2015 (split_data_refs_to_components): Compute and create component
2016 contains only stores for elimination.
2017 (get_chain_last_ref_at): New function.
2018 (make_invariant_chain): Initialization.
2019 (make_rooted_chain): Specify chain type in parameter and record it.
2020 (add_looparound_copies): Skip for store-stores chain.
2021 (determine_roots_comp): Compute type of chain and pass it to
2023 (initialize_root_vars_store_elim_2): New function.
2024 (finalize_eliminated_stores): New function.
2025 (remove_stmt): Handle store for elimination.
2026 (execute_pred_commoning_chain): Execute predictive commoning on
2028 (determine_unroll_factor): Skip unroll for store-stores chain.
2029 (prepare_initializers_chain_store_elim): New function.
2030 (prepare_initializers_chain): Hanlde store-store chain.
2031 (prepare_finalizers_chain, prepare_finalizers): New function.
2032 (tree_predictive_commoning_loop): Return integer value indicating
2033 if loop is unrolled or lcssa form is corrupted.
2034 (tree_predictive_commoning): Rewrite for lcssa form if necessary.
2036 2017-07-28 Bin Cheng <bin.cheng@arm.com>
2038 * tree-predcom.c (initialize_root): Delete.
2039 (execute_pred_commoning_chain): Initialize root vars and replace
2040 reference of non-combined chain directly, rather than call above
2043 2017-07-28 Bin Cheng <bin.cheng@arm.com>
2045 * tree-predcom.c (ref_at_iteration): Add parameter NITERS. Compute
2046 memory reference to DR at (NITERS + ITERS)-th iteration of loop.
2048 2017-07-28 Bin Cheng <bin.cheng@arm.com>
2050 * tree-predcom.c (struct chain): New field init_seq.
2051 (release_chain): Release init_seq.
2052 (prepare_initializers_chain): Record intialization stmts in above
2054 (insert_init_seqs): New function.
2055 (tree_predictive_commoning_loop): Call insert_init_seqs.
2057 2017-07-28 Bin Cheng <bin.cheng@arm.com>
2059 * tree-predcom.c (determine_roots_comp): Skip trivial components.
2061 2017-07-28 Richard Biener <rguenther@suse.de>
2063 * match.pd: Remove superfluous :c.
2064 * genmatch.c (simplify::id): Add member.
2065 (lower_commutative, lower_opt_convert, lower_cond, lower_for):
2067 (current_id): New global.
2068 (dt_node::parent): Move from ...
2069 (dt_operand::parent): ... here. Add for_id member.
2070 (is_a_helper <dt_operand *>::test): DT_TRUE is also a dt_operand.
2071 (decision_tree::find_node): Relax order requirement when
2072 merging DT_TRUE nodes to ones inbetween the current simplify
2073 and the one we try to merge with. Add diagnostic whenever
2074 we need to enforce pattern order by not merging.
2075 (decision_tree::insert): Set current_id.
2076 (decision_tree::print_node): Dump parent node and for_id.
2077 (parser::last_id): Add member.
2078 (parser::push_simplify): Assign unique id.
2079 (parser::parser): Initialize last_id.
2081 2017-07-28 Martin Liska <mliska@suse.cz>
2084 * sanopt.c (sanitize_rewrite_addressable_params): Set VALUE_EXPR after
2085 gimple_build_debug_bind.
2087 2017-07-28 Richard Biener <rguenther@suse.de>
2089 PR tree-optimization/81502
2090 * match.pd: Add pattern combining BIT_INSERT_EXPR with
2092 * tree-cfg.c (verify_expr): Verify types of BIT_FIELD_REF
2094 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR pos.
2095 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Use bitsizetype
2096 for BIT_FIELD_REF args.
2097 * fold-const.c (make_bit_field_ref): Likewise.
2098 * tree-vect-stmts.c (vectorizable_simd_clone_call): Likewise.
2100 2017-07-28 Jakub Jelinek <jakub@redhat.com>
2103 * sanopt.c (pass_sanopt::execute): Handle IFN_UBSAN_PTR.
2104 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Likewise.
2105 * flag-types.h (enum sanitize_code): Add SANITIZER_POINTER_OVERFLOW.
2106 Or it into SANITIZER_UNDEFINED.
2107 * ubsan.c: Include gimple-fold.h and varasm.h.
2108 (ubsan_expand_ptr_ifn): New function.
2109 (instrument_pointer_overflow): New function.
2110 (maybe_instrument_pointer_overflow): New function.
2111 (instrument_object_size): Formatting fix.
2112 (pass_ubsan::execute): Call instrument_pointer_overflow
2113 and maybe_instrument_pointer_overflow.
2114 * internal-fn.c (expand_UBSAN_PTR): New function.
2115 * ubsan.h (ubsan_expand_ptr_ifn): Declare.
2116 * sanitizer.def (__ubsan_handle_pointer_overflow,
2117 __ubsan_handle_pointer_overflow_abort): New builtins.
2118 * tree-ssa-tail-merge.c (merge_stmts_p): Handle IFN_UBSAN_PTR.
2119 * internal-fn.def (UBSAN_PTR): New internal function.
2120 * opts.c (sanitizer_opts): Add pointer-overflow.
2121 * lto-streamer-in.c (input_function): Handle IFN_UBSAN_PTR.
2122 * fold-const.c (build_range_check): Compute pointer range check in
2123 integral type if pointer arithmetics would be needed. Formatting
2126 2017-07-28 Martin Liska <mliska@suse.cz>
2129 * sanopt.c (sanitize_rewrite_addressable_params): Do not rewrite
2130 parameters that are of a variable-length.
2132 2017-07-28 Sebastian Huber <sebastian.huber@embedded-brains.de>
2134 * config.gcc (powerpc-*-rtems*): Remove rs6000/eabi.h. Add
2136 * config/rs6000/rtems.h (ASM_DECLARE_FUNCTION_SIZE): New macro.
2137 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
2138 (CRT_CALL_STATIC_FUNCTION): Likewise.
2139 (ASM_DEFAULT_SPEC): New define.
2140 (ASM_SPEC32): Likewise.
2141 (ASM_SPEC64): Likewise.
2142 (ASM_SPEC_COMMON): Likewise.
2143 (ASM_SPEC): Likewise.
2144 (INVALID_64BIT): Likewise.
2145 (LINK_OS_DEFAULT_SPEC): Likewise.
2146 (LINK_OS_SPEC32): Likewise.
2147 (LINK_OS_SPEC64): Likewise.
2148 (POWERPC_LINUX): Likewise.
2149 (PTRDIFF_TYPE): Likewise.
2150 (RESTORE_FP_PREFIX): Likewise.
2151 (RESTORE_FP_SUFFIX): Likewise.
2152 (SAVE_FP_PREFIX): Likewise.
2153 (SAVE_FP_SUFFIX): Likewise.
2154 (SIZE_TYPE): Likewise.
2155 (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
2156 (TARGET_64BIT): Likewise.
2157 (TARGET_64BIT): Likewise.
2158 (TARGET_AIX): Likewise.
2159 (WCHAR_TYPE_SIZE): Likewise.
2160 (WCHAR_TYPE): Undefine.
2161 (TARGET_OS_CPP_BUILTINS): Add 64-bit PowerPC defines.
2162 (CPP_OS_DEFAULT_SPEC): Use previous CPP_OS_RTEMS_SPEC.
2163 (CPP_OS_RTEMS_SPEC): Delete.
2164 (SUBSUBTARGET_EXTRA_SPECS): Remove cpp_os_rtems. Add
2165 asm_spec_common, asm_spec32, asm_spec64, link_os_spec32, and
2167 * config/rs6000/t-rtems: Add mcpu=e6500/m64 multilibs.
2169 2017-07-28 Jakub Jelinek <jakub@redhat.com>
2171 PR tree-optimization/81578
2172 * tree-parloops.c (build_new_reduction): Bail out if
2173 reduction_code isn't one of the standard OpenMP reductions.
2174 Move the details printing after that decision.
2176 2017-07-27 Peter Bergner <bergner@vnet.ibm.com>
2178 * config/rs6000/predicates.md (volatile_mem_operand): Remove code
2179 related to reload_in_progress.
2180 (splat_input_operand): Likewise.
2181 * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
2183 * config/rs6000/rs6000.c (machine_function): Remove sdmode_stack_slot
2185 (TARGET_EXPAND_TO_RTL_HOOK): Delete.
2186 (TARGET_INSTANTIATE_DECLS): Likewise.
2187 (legitimate_indexed_address_p): Delete reload_in_progress code.
2188 (rs6000_debug_legitimate_address_p): Likewise.
2189 (rs6000_eliminate_indexed_memrefs): Likewise.
2190 (rs6000_emit_le_vsx_store): Likewise.
2191 (rs6000_emit_move_si_sf_subreg): Likewise.
2192 (rs6000_emit_move): Likewise.
2193 (register_to_reg_type): Likewise.
2194 (rs6000_pre_atomic_barrier): Likewise.
2195 (rs6000_machopic_legitimize_pic_address): Likewise.
2196 (rs6000_allocate_stack_temp): Likewise.
2197 (rs6000_address_for_fpconvert): Likewise.
2198 (rs6000_address_for_altivec): Likewise.
2199 (rs6000_secondary_memory_needed_rtx): Delete function.
2200 (rs6000_check_sdmode): Likewise.
2201 (rs6000_alloc_sdmode_stack_slot): Likewise.
2202 (rs6000_instantiate_decls): Likewise.
2203 * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
2204 * config/rs6000/rs6000.md (splitter for *movsi_got_internal):
2205 Delete reload_in_progress.
2206 (*vec_reload_and_plus_<mptrsize>): Likewise.
2207 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
2208 (vsx_div_v2di): Likewise.
2209 (vsx_udiv_v2di): Likewise.
2211 2017-07-27 Peter Bergner <bergner@vnet.ibm.com>
2213 * config/rs6000/rs6000.opt (mlra): Replace with stub.
2214 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Delete OPTION_MASK_LRA.
2215 * config/rs6000/rs6000.c (TARGET_LRA_P): Delete.
2216 (rs6000_debug_reg_global): Delete print of LRA status.
2217 (rs6000_option_override_internal): Delete dead LRA related code.
2218 (rs6000_lra_p): Delete function.
2219 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mlra.
2221 2017-07-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
2223 * config.gcc (riscv*-*-elf*): Add (riscv*-*-rtems*).
2224 * config/riscv/rtems.h: New file.
2226 2017-07-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2227 Sudakshina Das <sudi.das@arm.com>
2229 * config/aarch64/aarch64.md
2230 (define_split for and<mode>3nr_compare): Move
2231 non aarch64_logical_operand to a register.
2232 (define_split for and_<SHIFT:optab><mode>3nr_compare0): Move non
2233 register immediate operand to a register.
2234 * config/aarch64/predicates.md (aarch64_mov_imm_operand): New.
2236 2017-07-27 Peter Bergner <bergner@vnet.ibm.com>
2239 * tree-cfg.c (group_case_labels_stmt): Handle already deleted blocks.
2241 2017-07-27 Richard Biener <rguenther@suse.de>
2243 PR tree-optimization/81573
2244 PR tree-optimization/81494
2245 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
2246 multi defuse cycle case.
2248 2017-07-27 Richard Biener <rguenther@suse.de>
2250 PR tree-optimization/81571
2251 * tree-vect-slp.c (vect_build_slp_tree): Properly verify reduction
2254 2017-07-27 Eric Botcazou <ebotcazou@adacore.com>
2256 * config/sparc/sparc.c (sparc_option_override): Set MASK_FSMULD flag
2257 earlier and only if MASK_FPU is set. Adjust formatting.
2259 2017-07-27 Martin Liska <mliska@suse.cz>
2261 * opt-functions.awk: Add validation of value of Init.
2262 * optc-gen.awk: Pass new argument.
2264 2017-07-27 Martin Liska <mliska@suse.cz>
2266 * auto-profile.c (autofdo_source_profile::update_inlined_ind_target):
2267 Fix wrong condition.
2269 2017-07-27 Martin Liska <mliska@suse.cz>
2271 * auto-profile.c (afdo_annotate_cfg): Assign zero counts to
2272 BBs and edges seen by autoFDO.
2274 2017-07-27 Richard Biener <rguenther@suse.de>
2276 PR tree-optimization/81502
2277 * tree-ssa.c (non_rewritable_lvalue_p): Handle BIT_INSERT_EXPR
2278 with incompatible but same sized type.
2279 (execute_update_addresses_taken): Likewise.
2281 2017-07-27 James Greenhalgh <james.greenhalgh@arm.com>
2283 * tree-ssa-loop-ch.c (pass_ch::process_loop_p): Guard on
2284 flag_tree_loop_vectorize rather than flag_tree_vectorize.
2286 2017-07-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2289 * config/s390/s390.md ("*atomic_compare_and_swap<mode>_1")
2290 ("*atomic_compare_and_swapdi_2", "*atomic_compare_and_swapsi_3"):
2291 Change s_operand to memory_operand.
2293 2017-07-27 Richard Sandiford <richard.sandiford@linaro.org>
2295 * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_permute): Declare.
2296 * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Replace with...
2297 (rs6000_emit_le_vsx_permute): ...this. Take the destination as input.
2298 Emit instructions rather than returning an expression. Handle TFmode
2299 and KFmode by casting to TImode.
2300 (rs6000_emit_le_vsx_load): Update to use rs6000_emit_le_vsx_permute.
2301 (rs6000_emit_le_vsx_store): Likewise.
2302 * config/rs6000/vsx.md (VSX_TI): New iterator.
2303 (*vsx_le_permute_<mode>): Use it instead of VSX_LE_128.
2304 (*vsx_le_undo_permute_<mode>): Likewise.
2305 (*vsx_le_perm_load_<mode>): Use rs6000_emit_le_vsx_permute to
2306 emit the split sequence.
2307 (*vsx_le_perm_store_<mode>): Likewise.
2309 2017-07-27 Jakub Jelinek <jakub@redhat.com>
2311 PR tree-optimization/81555
2312 PR tree-optimization/81556
2313 * tree-ssa-reassoc.c (rewrite_expr_tree): Add NEXT_CHANGED argument,
2314 if true, force CHANGED for the recursive invocation.
2315 (reassociate_bb): Remember original length of ops array, pass
2316 len != orig_len as NEXT_CHANGED in rewrite_expr_tree call.
2318 * attribs.c (decl_attributes): Imply noinline, noclone and no_icf
2319 attributes for noipa attribute. For naked attribute use
2320 lookup_attribute first before lookup_attribute_spec.
2321 * final.c (rest_of_handle_final): Disable IPA RA for functions with
2323 * ipa-visibility.c (non_local_p): Fix comment typos. Return true
2324 for functions with noipa attribute.
2325 (cgraph_externally_visible_p): Return true for functions with noipa
2327 * cgraph.c (cgraph_node::get_availability): Return AVAIL_INTERPOSABLE
2328 for functions with noipa attribute.
2329 * doc/extend.texi: Document noipa function attribute.
2330 * tree-ssa-structalias.c (refered_from_nonlocal_fn): Set *nonlocal_p
2331 also for functions with noipa attribute.
2332 (ipa_pta_execute): Set nonlocal_p also for nodes with noipa attribute.
2334 2017-07-26 Andrew Pinski <apinski@cavium.com>
2336 * config/aarch64/aarch64.c (thunderx_vector_cost): Decrease cost of
2337 vec_unalign_load_cost and vec_unalign_store_cost.
2339 2017-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
2341 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Delete
2342 -mvsx-small-integer option.
2343 (ISA_3_0_MASKS_IEEE): Likewise.
2344 (OTHER_VSX_VECTOR_MASKS): Likewise.
2345 (POWERPC_MASKS): Likewise.
2346 * config/rs6000/rs6000.opt (-mvsx-small-integer): Likewise.
2347 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Simplify
2348 code, only testing for DImode being allowed in non-VSX floating
2350 (rs6000_init_hard_regno_mode_ok): Change TARGET_VSX_SMALL_INTEGER
2351 to TARGET_P8_VECTOR test. Remove redundant VSX test inside of
2353 (rs6000_option_override_internal): Delete -mvsx-small-integer.
2354 (rs6000_expand_vector_set): Change TARGET_VSX_SMALL_INTEGER to
2355 TARGET_P8_VECTOR test.
2356 (rs6000_secondary_reload_simple_move): Likewise.
2357 (rs6000_preferred_reload_class): Delete TARGET_VSX_SMALL_INTEGER,
2358 since TARGET_P9_VECTOR was already tested.
2359 (rs6000_opt_masks): Remove -mvsx-small-integer.
2360 * config/rs6000/vsx.md (vsx_extract_<mode>): Delete
2361 TARGET_VSX_SMALL_INTEGER, since a test for TARGET_P9_VECTOR was
2363 (vsx_extract_<mode>_p9): Delete TARGET_VSX_SMALL_INTEGER, since a
2364 test for TARGET_VEXTRACTUB was used, and that uses
2366 (p9 extract splitter): Likewise.
2367 (vsx_extract_<mode>_di_p9): Likewise.
2368 (vsx_extract_<mode>_store_p9): Likewise.
2369 (vsx_extract_si): Delete TARGET_VSX_SMALL_INTEGER, since a test
2370 for TARGET_P9_VECTOR was used. Delete code that is now dead with
2371 the elimination of TARGET_VSX_SMALL_INTEGER.
2372 (vsx_extract_<mode>_p8): Likewise.
2373 (vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>): Likewise.
2374 (vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Likewise.
2375 (vsx_set_<mode>_p9): Likewise.
2376 (vsx_set_v4sf_p9): Likewise.
2377 (vsx_set_v4sf_p9_zero): Likewise.
2378 (vsx_insert_extract_v4sf_p9): Likewise.
2379 (vsx_insert_extract_v4sf_p9_2): Likewise.
2380 * config/rs6000/rs6000.md (sign extend splitter): Change
2381 TARGET_VSX_SMALL_INTEGER to TARGET_P8_VECTOR test.
2382 (floatsi<mode>2_lfiwax_mem): Likewise.
2383 (floatunssi<mode>2_lfiwzx_mem): Likewise.
2384 (float<QHI:mode><FP_ISA3:mode>2): Delete TARGET_VSX_SMALL_INTEGER,
2385 since a test for TARGET_P9_VECTOR was used.
2386 (float<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
2387 (floatuns<QHI:mode><FP_ISA3:mode>2): Likewise.
2388 (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
2389 (fix_trunc<mode>si2): Change TARGET_VSX_SMALL_INTEGER to
2390 TARGET_P8_VECTOR test.
2391 (fix_trunc<mode>si2_stfiwx): Likewise.
2392 (fix_trunc<mode>si2_internal): Likewise.
2393 (fix_trunc<SFDF:mode><QHI:mode>2): Delete
2394 TARGET_VSX_SMALL_INTEGER, since a test for TARGET_P9_VECTOR was
2396 (fix_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
2397 (fixuns_trunc<mode>si2): Change TARGET_VSX_SMALL_INTEGER to
2398 TARGET_P8_VECTOR test.
2399 (fixuns_trunc<mode>si2_stfiwx): Likewise.
2400 (fixuns_trunc<SFDF:mode><QHI:mode>2): Delete
2401 TARGET_VSX_SMALL_INTEGER, since a test for TARGET_P9_VECTOR was
2403 (fixuns_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
2404 (fctiw<u>z_<mode>_smallint): Delete TARGET_VSX_SMALL_INTEGER,
2405 since a test for TARGET_P9_VECTOR was used.
2406 (splitter for loading small constants): Likewise.
2408 2017-07-26 Andrew Pinski <apinski@cavium.com>
2410 * config/aarch64/aarch64.c (thunderx_vector_cost): Fix
2413 2017-07-26 H.J. Lu <hongjiu.lu@intel.com>
2416 * config/i386/i386.c (sp_valid_at): Properly check CFA offset.
2417 (fp_valid_at): Likewise.
2419 2017-07-26 James Greenhalgh <james.greenhalgh@arm.com>
2421 * config/aarch64/aarch64.c (cortexa57_addrcost_table): Remove.
2422 (qdf24xx_addrcost_table): Likewise.
2423 (cortexa57_tunings): Update to use generic_branch_cost.
2424 (cortexa72_tunings): Likewise.
2425 (cortexa73_tunings): Likewise.
2426 (qdf24xx_tunings): Likewise.
2428 2017-07-26 James Greenhalgh <james.greenhalgh@arm.com>
2430 * config/aarch64/aarch64.c (cortexa57_branch_cost): Remove.
2431 (thunderx2t99_branch_cost): Likewise.
2432 (cortexa35_tunings): Update to use generic_branch_cost.
2433 (cortexa53_tunings): Likewise.
2434 (cortexa57_tunings): Likewise.
2435 (cortexa72_tunings): Likewise.
2436 (cortexa73_tunings): Likewise.
2437 (thunderx2t99_tunings): Likewise.
2439 2017-07-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
2441 * config/sparc/sparc.c (dump_target_flag_bits): Dump MASK_FSMULD.
2442 (sparc_option_override): Honour MASK_FSMULD.
2443 * config/sparc/sparc.h (MASK_FEATURES): Add MASK_FSMULD.
2444 * config/sparc/sparc.md (muldf3_extend): Use TARGET_FSMULD.
2445 * config/sparc/sparc.opt (mfsmuld): New option.
2446 * doc/invoke.texi (mfsmuld): Document option.
2448 2017-07-26 Marek Polacek <polacek@redhat.com>
2451 * tree.c (build2_stat): Don't set TREE_CONSTANT on divisions by zero.
2453 2017-07-26 Richard Biener <rguenther@suse.de>
2455 * gimple-match-head.c (do_valueize): Return OP if valueize
2457 (get_def): New helper to get at the def stmt of a SSA name
2459 * genmatch.c (dt_node::gen_kids_1): Use get_def instead of
2460 do_valueize to get at the def stmt.
2461 (dt_operand::gen_gimple_expr): Simplify do_valueize calls.
2463 2017-07-26 Wilco Dijkstra <wdijkstr@arm.com>
2466 * auto-inc-dec.c (parse_add_or_inc): Block autoinc on sfp.
2468 2017-07-26 Martin Liska <mliska@suse.cz>
2471 * function.c (expand_function_start): Make expansion of
2472 nonlocal_goto_save_area after parm_birth_insn.
2474 2017-07-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
2476 * config/sparc/sparc.c (sparc_option_override): Remove MASK_FPU
2477 from all CPU target flags enable members.
2479 2017-07-26 Richard Biener <rguenther@suse.de>
2481 * genmatch.c (dt_simplify::gen): Make iterator vars const.
2482 (decision_tree::gen): Make 'type' const.
2483 (write_predicate): Likewise.
2485 2017-07-24 Michael Meissner <meissner@linux.vnet.ibm.com>
2487 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok):
2488 Eliminate TARGET_UPPER_REGS_{DF,DI,SF} usage.
2489 (rs6000_option_override_internal): Likewise.
2490 (rs6000_expand_vector_set): Likewise.
2491 * config/rs6000/rs6000.h (TARGET_UPPER_REGS_DF): Delete.
2492 (TARGET_UPPER_REGS_SF): Likewise.
2493 (TARGET_UPPER_REGS_DI): Likewise.
2494 (TARGET_VEXTRACTUB): Eliminate TARGET_UPPER_REGS_{DF,DI,SF}.
2495 (TARGET_DIRECT_MOVE_64BIT): Likewise.
2496 * config/rs6000/rs6000.md (ALTIVEC_DFORM): Likewise.
2497 (float<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
2498 (Splitters for DI constants in Altivec registers): Likewise.
2499 * config/rs6000/vsx.md (vsx_set_<mode>_p9): Likewise.
2500 (vsx_set_v4sf_p9): Likewise.
2501 (vsx_set_v4sf_p9_zero): Likewise.
2502 (vsx_insert_extract_v4sf_p9): Likewise.
2503 (vsx_insert_extract_v4sf_p9_2): Likewise.
2505 2017-07-25 Carl Love <cel@us.ibm.com>
2507 * doc/extend.texi: Update the built-in documentation file for the
2508 existing built-in functions
2509 vector signed char vec_cnttz (vector signed char);
2510 vector unsigned char vec_cnttz (vector unsigned char);
2511 vector signed short vec_cnttz (vector signed short);
2512 vector unsigned short vec_cnttz (vector unsigned short);
2513 vector signed int vec_cnttz (vector signed int);
2514 vector unsigned int vec_cnttz (vector unsigned int);
2515 vector signed long long vec_cnttz (vector signed long long);
2516 vector unsigned long long vec_cnttz (vector unsigned long long);
2518 2017-07-25 Andrew Pinski <apinski@cavium.com>
2520 * tree-ssa-uninit.c (warn_uninitialized_vars): Don't warn about memory
2521 accesses where the use is for the first operand of a BIT_INSERT.
2523 2017-07-25 Jim Wilson <jim.wilson@linaro.org>
2526 * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition): Look
2527 for FUNCTION_DECLs in TYPE_FIELDS rather than TYPE_METHODS.
2529 2017-07-25 Jim Wilson <jim.wilson@linaro.org>
2531 * config/i386/gstabs.h: Delete.
2532 * config/i386/openbsd.h, config/i386/t-openbsd: Likewise.
2534 2017-07-25 Uros Bizjak <ubizjak@gmail.com>
2536 * config/i386/i386.c (ix86_decompose_address): Do not check for
2537 register RTX when looking at index_reg or base_reg.
2538 * config/i386/i386.h (INCOMING_RETURN_ADDR_RTX): Use stack_pointer_rtx.
2540 2017-07-25 Eric Botcazou <ebotcazou@adacore.com>
2542 * gimple.c (gimple_assign_set_rhs_with_ops): Do not ask gsi_replace
2543 to update EH info here.
2545 2017-07-25 Alexander Monakov <amonakov@ispras.ru>
2547 * match.pd ((X * CST1) * CST2): Simplify to X * (CST1 * CST2).
2549 2017-07-25 Alexander Monakov <amonakov@ispras.ru>
2551 * match.pd ((X * CST) * Y): Reassociate to (X * Y) * CST.
2553 2017-07-25 Torsten Duwe <duwe@suse.de>
2555 * common.opt: Introduce -fpatchable-function-entry
2556 command line option, and its variables function_entry_patch_area_size
2557 and function_entry_patch_area_start.
2558 * opts.c (common_handle_option): Add -fpatchable_function_entry_ case,
2559 including a two-value parser.
2560 * target.def (print_patchable_function_entry): New target hook.
2561 * targhooks.h (default_print_patchable_function_entry): New function.
2562 * targhooks.c (default_print_patchable_function_entry): Likewise.
2563 * toplev.c (process_options): Switch off IPA-RA if
2564 patchable function entries are being generated.
2565 * varasm.c (assemble_start_function): Look at the
2566 patchable-function-entry command line switch and current
2567 function attributes and maybe generate NOP instructions by
2568 calling the print_patchable_function_entry hook.
2569 * doc/extend.texi: Document patchable_function_entry attribute.
2570 * doc/invoke.texi: Document -fpatchable_function_entry
2571 command line option.
2572 * doc/tm.texi.in (TARGET_ASM_PRINT_PATCHABLE_FUNCTION_ENTRY):
2574 * doc/tm.texi: Re-generate.
2576 2017-07-25 Jakub Jelinek <jakub@redhat.com>
2579 * config/i386/constraints.md (Yd, Ye): Use ALL_SSE_REGS for
2580 TARGET_AVX512DQ rather than TARGET_AVX512BW.
2582 2017-07-25 Tamar Christina <tamar.christina@arm.com>
2584 * config/arm/parsecpu.awk (all_cores): Remove duplicates.
2586 2017-07-25 Richard Biener <rguenther@suse.de>
2588 PR tree-optimization/81455
2589 * tree-ssa-loop-unswitch.c (find_loop_guard): Make sure to
2590 not walk in cycles when looking for guards.
2592 2017-07-25 Richard Biener <rguenther@suse.de>
2594 PR tree-optimization/81529
2595 * tree-vect-stmts.c (process_use): Disregard live induction PHIs
2596 when optimizing backedge uses.
2598 2017-07-25 David Edelsohn <dje.gcc@gmail.com>
2600 * dwarf2asm.c (dw2_asm_output_nstring): Encode double quote
2602 * dwarf2out.c (output_macinfo): Copy debug_line_section_label
2603 to dl_section_ref. On AIX, append an expression to subtract
2604 the size of the section length to dl_section_ref.
2606 2017-07-25 Segher Boessenkool <segher@kernel.crashing.org>
2608 * configure.ac: If any of the config.* scripts fail, exit 1.
2609 * configure: Regenerate.
2611 2017-07-25 Richard Biener <rguenther@suse.de>
2614 * tree-ssa-operands.c (verify_imm_links): Remove cap on number
2615 of immediate uses, be more verbose on errors.
2617 2017-07-25 Richard Biener <rguenther@suse.de>
2619 PR tree-optimization/81510
2620 * tree-vect-loop.c (vect_is_simple_reduction): When the
2621 reduction stmt is not inside the loop bail out.
2623 2017-07-25 Richard Biener <rguenther@suse.de>
2625 PR tree-optimization/81303
2626 * tree-vect-loop-manip.c (vect_loop_versioning): Build
2627 profitability check against LOOP_VINFO_NITERSM1.
2629 2017-07-25 Alexander Monakov <amonakov@ispras.ru>
2631 * domwalk.c (cmp_bb_postorder): Simplify.
2632 (sort_bbs_postorder): New function. Use it...
2633 (dom_walker::walk): ...here to optimize common cases.
2635 2017-07-25 Martin Liska <mliska@suse.cz>
2638 * ipa-visibility.c (function_and_variable_visibility): Make the
2639 redirection just on target that supports aliasing.
2640 Fix GNU coding style.
2642 2017-07-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
2645 * config/aarch64/rtems.h: Add GCC Runtime Library Exception.
2647 * config/arm/rtems.h: Likewise.
2648 * config/bfin/rtems.h: Likewise.
2649 * config/i386/rtemself.h: Likewise.
2650 * config/lm32/rtems.h: Likewise.
2651 * config/m32c/rtems.h: Likewise.
2652 * config/m68k/rtemself.h: Likewise.
2653 * config/microblaze/rtems.h: Likewise.
2654 * config/mips/rtems.h: Likewise.
2655 * config/moxie/rtems.h: Likewise.
2656 * config/nios2/rtems.h: Likewise.
2657 * config/powerpcspe/rtems.h: Likewise.
2658 * config/rs6000/rtems.h: Likewise.
2659 * config/rtems.h: Likewise.
2660 * config/sh/rtems.h: Likewise.
2661 * config/sh/rtemself.h: Likewise.
2662 * config/sparc/rtemself.h: Likewise.
2664 2017-07-25 Georg-Johann Lay <avr@gjlay.de>
2667 * hsa-brig.c (brig_init): Use xasprintf instead of asprintf.
2668 * gimple-pretty-print.c (dump_profile, dump_probability): Same.
2669 * tree-ssa-structalias.c (alias_get_name): Same.
2671 2017-07-25 Bin Cheng <bin.cheng@arm.com>
2674 * config/aarch64/cortex-a57-fma-steering.c (analyze): Skip fmul/fmac
2675 instructions if no du chain is found.
2677 2017-07-25 Georg-Johann Lay <avr@gjlay.de>
2679 * config/avr/avr-log.c (avr_log_vadump) ['T']: Print NULL-TREE.
2681 2017-07-25 Richard Biener <rguenther@suse.de>
2684 * fold-const.c (fold_negate_const): TREE_OVERFLOW should be
2687 2017-07-24 Michael Meissner <meissner@linux.vnet.ibm.com>
2689 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Delete
2691 (ISA_2_7_MASKS_SERVER): Likewise.
2692 (ISA_3_0_MASKS_IEEE): Likewise.
2693 (OTHER_P8_VECTOR_MASKS): Likewise.
2694 (OTHER_VSX_VECTOR_MASKS): Likewise.
2695 (POWERPC_MASKS): Likewise.
2696 (power7 cpu): Use ISA_2_6_MASKS_SERVER instead of using a
2697 duplicate list of options.
2698 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Remove
2699 explicit -mupper-regs options.
2700 * config/rs6000/rs6000.opt (-mvsx-scalar-memory): Delete
2701 -mupper-regs* options. Delete -mvsx-scalar-memory, which was an
2702 alias for -mupper-regs-df.
2703 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Likewise.
2704 (rs6000_init_hard_regno_mode_ok): Likewise.
2705 (rs6000_option_override_internal): Likewise.
2706 (rs6000_opt_masks): Likewise.
2707 * config/rs6000/rs6000.h (TARGET_UPPER_REGS_DF): Define upper regs
2708 options in terms of whether -mvsx or -mpower8-vector was used.
2709 (TARGET_UPPER_REGS_DI): Likewise.
2710 (TARGET_UPPER_REGS_SF): Likewise.
2711 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete the
2712 -mupper-regs-* options.
2714 2017-07-24 Segher Boessenkool <segher@kernel.crashing.org>
2716 * passes.c (emergency_dump_function): Print some empty lines and a
2717 header before the RTL dump.
2719 2017-07-24 Segher Boessenkool <segher@kernel.crashing.org>
2721 * cfgrtl.c (rtl_dump_bb): Don't call NEXT_INSN on NULL.
2723 2017-07-24 Wilco Dijkstra <wdijkstr@arm.com>
2726 * config/aarch64/aarch64.c (aarch64_classify_symbol):
2727 Avoid SYMBOL_SMALL_ABSOLUTE for literals with pc-relative literals.
2729 2017-07-24 Carl Love <cel@us.ibm.com>
2731 * config/rs6000/rs6000-c.c: Add support for built-in functions
2732 vector float vec_extract_fp32_from_shorth (vector unsigned short);
2733 vector float vec_extract_fp32_from_shortl (vector unsigned short);
2734 * config/rs6000/altivec.h (vec_extract_fp_from_shorth,
2735 vec_extract_fp_from_shortl): Add defines for the two builtins.
2736 * config/rs6000/rs6000-builtin.def (VEXTRACT_FP_FROM_SHORTH,
2737 VEXTRACT_FP_FROM_SHORTL): Add BU_P9V_OVERLOAD_1 and BU_P9V_VSX_1
2739 * config/rs6000/vsx.md vsx_xvcvhpsp): Add define_insn.
2740 (vextract_fp_from_shorth, vextract_fp_from_shortl): Add define_expands.
2741 * doc/extend.texi: Update the built-in documentation file for the
2742 new built-in function.
2744 2017-07-24 Jakub Jelinek <jakub@redhat.com>
2747 * tree.def: Remove TYPE_METHODS documentation, adjust TYPE_FIELDS
2749 * doc/generic.texi: Likewise.
2750 * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition): Look
2751 for FUNCTION_DECLs in TYPE_FIELDS rather than TYPE_METHODS.
2753 2017-07-24 Jackson Woodruff <jackson.woodruff@arm.com>
2755 * config/aarch64/aarch64-simd.md (aarch64_mla_elt_merge<mode>): New.
2756 (aarch64_mls_elt_merge<mode>): Likewise.
2758 2017-07-23 Krister Walfridsson <krister.walfridsson@gmail.com>
2760 * config.gcc (*-*-netbsd*): Remove check for NetBSD versions not
2761 having __cxa_atexit.
2763 2017-07-23 Michael Collison <michael.collison@arm.com>
2765 * config/arm/arm.c (arm_option_override): Deprecate
2766 use of -mstructure-size-boundary.
2767 * config/arm/arm.opt: Deprecate -mstructure-size-boundary.
2768 * doc/invoke.texi: Deprecate -mstructure-size-boundary.
2770 2017-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2773 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
2774 Reduce cost estimate for direct moves.
2776 2017-07-23 Uros Bizjak <ubizjak@gmail.com>
2779 * config/i386/i386.c (ix86_option_override_internal): Disable
2780 BMI, BMI2 and TBM instructions for -m16.
2782 2017-07-21 Carl Love <cel@us.ibm.com>
2784 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2785 ALTIVEC_BUILTIN_VMULESW, ALTIVEC_BUILTIN_VMULEUW,
2786 ALTIVEC_BUILTIN_VMULOSW, ALTIVEC_BUILTIN_VMULOUW entries.
2787 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin,
2788 builtin_function_type): Add ALTIVEC_BUILTIN_* case statements.
2789 * config/rs6000/altivec.md (MVULEUW, VMULESW, VMULOUW,
2790 VMULOSW): New enum "unspec" values.
2791 (altivec_vmuleuw, altivec_vmulesw, altivec_vmulouw,
2792 altivec_vmulosw): New patterns.
2793 * config/rs6000/rs6000-builtin.def (VMLEUW, VMULESW, VMULOUW,
2794 VMULOSW): Add definitions.
2796 2017-07-21 Jim Wilson <jim.wilson@linaro.org>
2798 * config/aarch64/aarch64-cores.def (falkor): Add AARCH64_FL_RDMA.
2799 (qdf24xx): Likewise.
2800 * config/aarch64/aarch64-options-extensions.def (rdma); New.
2801 * config/aarch64/aarch64.h (AARCH64_FL_RDMA): New.
2802 (AARCH64_FL_V8_1): Renumber.
2803 (AARCH64_FL_FOR_ARCH8_1): Add AARCH64_FL_RDMA.
2804 (AARCH64_ISA_RDMA): Use AARCH64_FL_RDMA.
2805 * config/aarch64/arm_neon.h: Use +rdma instead of arch=armv8.1-a.
2806 * doc/invoke.texi (AArch64 Options): Mention +rmda in -march docs. Add
2807 rdma to feature modifiers list.
2809 2017-07-21 Yury Gribov <tetra2005@gmail.com>
2812 * ipa-visibility (function_and_variable_visibility): Convert
2813 recursive PLT call to direct call if appropriate.
2815 2017-07-21 Andrew Pinski <apinski@cavium.com>
2817 * tree-ssa-sccvn.c (vn_nary_op_eq): Check BIT_INSERT_EXPR's
2818 operand 1 to see if the types precision matches.
2819 * fold-const.c (operand_equal_p): Likewise.
2821 2017-07-21 Richard Biener <rguenther@suse.de>
2823 PR tree-optimization/81303
2824 * tree-vect-data-refs.c (vect_get_peeling_costs_all_drs): Pass
2825 in datarefs vector. Allow NULL dr0 for no peeling cost estimate.
2826 (vect_peeling_hash_get_lowest_cost): Adjust.
2827 (vect_enhance_data_refs_alignment): Likewise. Use
2828 vect_get_peeling_costs_all_drs to compute the penalty for no
2829 peeling to match up costs.
2831 2017-07-21 Richard Biener <rguenther@suse.de>
2833 PR tree-optimization/81500
2834 * tree-vect-loop.c (vect_is_simple_reduction): Properly fail if
2835 we didn't identify a reduction path.
2837 2017-07-21 Tom de Vries <tom@codesourcery.com>
2838 Cesar Philippidis <cesar@codesourcery.com>
2840 PR gcov-profile/81442
2841 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Add missing edge
2844 2017-07-21 Tom de Vries <tom@codesourcery.com>
2847 * config/nvptx/nvptx.c (nvptx_override_options_after_change): New
2849 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define to
2850 nvptx_override_options_after_change.
2852 2017-07-21 Ulrich Drepper <drepper@redhat.com>
2854 * dwarf2out.c (output_file_names): Avoid double testing for
2857 2017-07-21 Georg-Johann Lay <avr@gjlay.de>
2859 * doc/invoke.texi (AVR Built-in Functions): Re-layout section.
2861 2016-07-21 Jan Hubicka <hubicka@ucw.cz>
2863 * cfgcleanup.c (flow_find_cross_jump): Do not crossjump across
2865 (try_crossjump_to_edge): Do not punt on partitioned functions.
2867 2016-07-21 Jan Hubicka <hubicka@ucw.cz>
2869 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
2870 Put all BBs reachable only via paths crossing cold region to cold
2872 * cfgrtl.c (find_bbs_reachable_by_hot_paths): New function.
2874 2016-07-21 Richard Biener <rguenther@suse.de>
2876 PR tree-optimization/81303
2877 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Take
2878 into account prologue and epilogue iterations when raising
2879 min_profitable_iters to sth at least covering one vector iteration.
2881 2017-07-21 Tamar Christina <tamar.christina@arm.com>
2883 * config/arm/arm.c (arm_test_cpu_arch_dat):
2886 2017-07-20 Nathan Sidwell <nathan@acm.org>
2888 Remove TYPE_METHODS.
2889 * tree.h (TYPE_METHODS): Delete.
2890 * dwarf2out.c (gen_member_die): Member fns are on TYPE_FIELDS.
2891 * dbxout.c (dbxout_type_fields): Ignore FUNCTION_DECLs.
2892 (dbxout_type_methods): Scan TYPE_FIELDS.
2893 (dbxout_type): Don't check TYPE_METHODS here.
2894 * function.c (use_register_for_decl): Always ignore register for
2895 class types when not optimizing.
2896 * ipa-devirt.c (odr_types_equivalent_p): Delete TYPE_METHODS scan.
2897 * tree.c (free_lang_data_in_type): Stitch out member functions and
2898 templates from TYPE_FIELDS.
2899 (build_distinct_type_copy, verify_type_variant,
2900 verify_type): Member fns are on TYPE_FIELDS.
2901 * tree-dump.c (dequeue_and_dump): No TYPE_METHODS.
2902 * tree-pretty-print.c (dump_generic_node): Likewise.
2904 2017-07-20 Jakub Jelinek <jakub@redhat.com>
2907 * config/i386/i386.c (ix86_expand_vector_init_general): Handle
2908 V2TImode and V4TImode.
2909 (ix86_expand_vector_extract): Likewise.
2910 * config/i386/sse.md (VMOVE): Enable V4TImode even for just
2911 TARGET_AVX512F, instead of only for TARGET_AVX512BW.
2912 (ssescalarmode): Handle V4TImode and V2TImode.
2913 (VEC_EXTRACT_MODE): Add V4TImode and V2TImode.
2914 (*vec_extractv2ti, *vec_extractv4ti): New insns.
2915 (VEXTRACTI128_MODE): New mode iterator.
2916 (splitter for *vec_extractv?ti first element): New.
2917 (VEC_INIT_MODE): New mode iterator.
2918 (vec_init<mode>): Consolidate 3 expanders into one using
2919 VEC_INIT_MODE mode iterator.
2921 2017-07-20 Alexander Monakov <amonakov@ispras.ru>
2923 * lra-assigns.c (pseudo_compare_func): Fix comparison step based on
2924 non_spilled_static_chain_regno_p.
2926 2017-07-20 Alexander Monakov <amonakov@ispras.ru>
2928 * gimple-ssa-store-merging.c (sort_by_bitpos): Return 0 on equal bitpos.
2930 2017-07-20 Jan Hubicka <hubicka@ucw.cz>
2932 * bb-reorder.c (connect_traces): Allow copying of blocks within
2935 2017-07-20 Richard Biener <rguenther@suse.de>
2937 * gimple.h (gimple_phi_result): Add gphi * overload.
2938 (gimple_phi_result_ptr): Likewise.
2939 (gimple_phi_arg): Likewise. Adjust index assert to only
2940 allow actual argument accesses rather than all slots available
2942 (gimple_phi_arg_def): Add gphi * overload.
2943 * tree-phinodes.c (make_phi_node): Initialize only actual
2945 (resize_phi_node): Clear memory not covered by old node,
2946 do not initialize excess argument slots.
2947 (reserve_phi_args_for_new_edge): Initialize new argument slot
2950 2017-07-20 Bin Cheng <bin.cheng@arm.com>
2952 PR tree-optimization/81388
2954 2016-07-21 Bin Cheng <bin.cheng@arm.com>
2956 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
2957 by removing computation of may_be_zero.
2959 2017-07-18 Jan Hubicka <hubicka@ucw.cz>
2960 Tom de Vries <tom@codesourcery.com>
2963 * cfgbuild.c (find_many_sub_basic_blocks): Update REG_BR_PROB note
2964 when gimple level profile disagrees with what RTL expander did.
2966 2017-07-20 Richard Biener <rguenther@suse.de>
2968 PR tree-optimization/61171
2969 * tree-vectorizer.h (slp_instance): Add reduc_phis member.
2970 (vect_analyze_stmt): Add slp instance parameter.
2971 (vectorizable_reduction): Likewise.
2972 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust.
2973 (vect_is_simple_reduction): Deal with chains not detected
2974 as SLP reduction chain, specifically not properly associated
2975 chains containing a mix of plus/minus.
2976 (get_reduction_op): Remove.
2977 (get_initial_defs_for_reduction): Simplify, pass in whether
2978 this is a reduction chain, pass in the SLP node for the PHIs.
2979 (vect_create_epilog_for_reduction): Get the SLP instance as
2981 (vectorizable_reduction): Get the SLP instance as arg.
2982 During analysis remember the SLP node with the PHIs in the
2983 instance. Simplify getting at the vectorized reduction PHIs.
2984 * tree-vect-slp.c (vect_slp_analyze_node_operations): Pass
2985 through SLP instance.
2986 (vect_slp_analyze_operations): Likewise.
2987 * tree-vect-stms.c (vect_analyze_stmt): Likewise.
2988 (vect_transform_stmt): Likewise.
2990 2017-07-20 Tom de Vries <tom@codesourcery.com>
2992 PR tree-optimization/81489
2993 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Move
2994 read of phi arg location to before loop that modifies phi.
2996 2017-07-20 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
2998 * match.pd (((m1 >/</>=/<= m2) * d -> (m1 >/</>=/<= m2) ? d : 0):
3001 2017-07-19 Jan Hubicka <hubicka@ucw.cz>
3004 * except.c (execute): Fix ordering issue.
3006 2018-07-19 Segher Boessenkool <segher@kernel.crashing.org>
3008 PR rtl-optimization/81423
3009 * combine.c (make_compound_operation_int): Don't try to optimize
3010 the AND of a SUBREG of an LSHIFTRT if that SUBREG is paradoxical.
3012 2017-07-19 Segher Boessenkool <segher@kernel.crashing.org>
3014 PR rtl-optimization/81423
3015 * simplify-rtx.c (simplify_truncation): Handle truncating an IOR
3016 with a constant that is -1 in the truncated to mode.
3018 2017-07-19 Jan Hubicka <hubicka@ucw.cz>
3020 * predict.c (propagate_unlikely_bbs_forward): Break out from ...
3021 (determine_unlikely_bbs): ... here.
3022 * predict.h (propagate_unlikely_bbs_forward): Declare.
3023 * cfgexpand.c (pass_expand::execute): Use it.
3024 * bb-reorder.c (sanitize_hot_paths): Do not consider known to be
3026 (find_rarely_executed_basic_blocks_and_crossing_edges): Use
3027 propagate_unlikely_bbs_forward.
3029 2017-07-19 Jan Hubicka <hubicka@ucw.cz>
3032 * except.c (maybe_add_nop_after_section_switch): New function.
3035 2017-07-19 Tom de Vries <tom@codesourcery.com>
3037 * gimple.h (gimple_phi_set_arg): Make assert more strict.
3039 2017-07-19 Tom de Vries <tom@codesourcery.com>
3041 * gimple.h (gimple_phi_arg): Make assert more strict.
3043 2017-07-19 Steven Munroe <munroesj@gcc.gnu.org>
3045 * config.gcc (powerpc*-*-*): Add mmintrin.h.
3046 * config/rs6000/mmintrin.h: New file.
3047 * config/rs6000/x86intrin.h [__ALTIVEC__]: Include mmintrin.h.
3049 2017-07-19 Jakub Jelinek <jakub@redhat.com>
3051 PR tree-optimization/81346
3052 * match.pd: Optimize (X - 1U) <= INT_MAX-1U into (int) X > 0.
3054 2017-07-19 Tom de Vries <tom@codesourcery.com>
3056 * config/nvptx/nvptx.md (VECIM): Add V2DI.
3058 2017-07-19 Tom de Vries <tom@codesourcery.com>
3060 * config/nvptx/nvptx-modes.def: Add V2DImode.
3061 * config/nvptx/nvptx-protos.h (nvptx_data_alignment): Declare.
3062 * config/nvptx/nvptx.c (nvptx_ptx_type_from_mode): Handle V2DImode.
3063 (nvptx_output_mov_insn): Handle lack of mov.b128.
3064 (nvptx_print_operand): Handle 'H' and 'L' codes.
3065 (nvptx_vector_mode_supported): Allow V2DImode.
3066 (nvptx_preferred_simd_mode): New function.
3067 (nvptx_data_alignment): New function.
3068 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE): Redefine to
3069 nvptx_preferred_simd_mode.
3070 * config/nvptx/nvptx.h (STACK_BOUNDARY, BIGGEST_ALIGNMENT): Change from
3072 (DATA_ALIGNMENT): Define. Set to nvptx_data_alignment.
3074 2017-07-19 Tom de Vries <tom@codesourcery.com>
3076 * config/nvptx/nvptx-modes.def: New file. Add V2SImode.
3077 * config/nvptx/nvptx.c (nvptx_ptx_type_from_mode): Handle V2SImode.
3078 (nvptx_vector_mode_supported): New function. Allow V2SImode.
3079 (TARGET_VECTOR_MODE_SUPPORTED_P): Redefine to nvptx_vector_mode_supported.
3080 * config/nvptx/nvptx.md (VECIM): New mode iterator. Add V2SI.
3081 (mov<VECIM>_insn): New define_insn.
3082 (define_expand "mov<VECIM>): New define_expand.
3084 2017-07-19 Tom de Vries <tom@codesourcery.com>
3086 * config/nvptx/nvptx.c (nvptx_print_operand): Handle v2 vector mode.
3088 2017-07-19 Jakub Jelinek <jakub@redhat.com>
3090 PR tree-optimization/81346
3091 * fold-const.h (fold_div_compare, range_check_type): Declare.
3092 * fold-const.c (range_check_type): New function.
3093 (build_range_check): Use range_check_type.
3094 (fold_div_compare): No longer static, rewritten into
3095 a match.pd helper function.
3096 (fold_comparison): Don't call fold_div_compare here.
3097 * match.pd (X / C1 op C2): New optimization using fold_div_compare
3100 2017-07-19 Nathan Sidwell <nathan@acm.org>
3102 * tree.h (TYPE_MINVAL, TYPE_MAXVAL): Rename to ...
3103 (TYPE_MIN_VALUE_RAW, TYPE_MAX_VALUE_RAW): ... these.
3104 * tree.c (find_decls_types_r, verify_type): Use
3105 TYPE_{MIN,MAX}_VALUE_RAW.
3106 * lto-streamer-out.c (DFS::DFS_write_tree_body): Likewise.
3107 (hash_tree): Likewise.
3108 * tree-streamer-in.c (lto_input_ts_type_non_common_tree_pointers):
3110 * tree-streamer-out.c (write_ts_type_non_common_tree_pointers):
3113 2017-07-18 Tom de Vries <tom@codesourcery.com>
3116 * omp-expand.c (expand_omp_for_static_chunk): Handle
3117 equal-argument loop exit phi.
3119 2017-07-18 Uros Bizjak <ubizjak@gmail.com>
3122 * config/i386/i386.md (rorx_immediate_operand): New mode attribute.
3123 (*bmi2_rorx<mode>3_1): Use rorx_immediate_operand as
3124 operand 2 predicate.
3125 (*bmi2_rorxsi3_1_zext): Use const_0_to_31_operand as
3126 operand 2 predicate.
3127 (ror,rol -> rorx splitters): Use const_int_operand as
3128 operand 2 predicate.
3130 2017-06-18 Richard Biener <rguenther@suse.de>
3132 PR tree-optimization/81410
3133 * tree-vect-stmts.c (vectorizable_load): Properly adjust for
3134 the gap in the ! slp_perm SLP case after each group.
3136 2017-07-18 Jan Hubicka <hubicka@ucw.cz>
3139 * cfgloopmanip.c (scale_loop_profile): Watch out for zero frequency
3142 2017-07-18 Jan Hubicka <hubicka@ucw.cz>
3145 * predict.c (set_even_probabilities): Cleanup; do not affect
3146 probabilities that are already known.
3147 (combine_predictions_for_bb): Call even when count is set.
3149 2017-07-18 Nathan Sidwell <nathan@acm.org>
3151 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
3154 2017-07-18 Bin Cheng <bin.cheng@arm.com>
3157 * tree-ssa-loop-niter.c (number_of_iterations_exit): Dump missed
3158 optimization for loop niter analysis.
3160 2017-07-18 Georg-Johann Lay <avr@gjlay.de>
3163 * config/avr/avr.c (avr_optimize_casesi): Don't use
3164 INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX.
3166 2017-07-18 Robin Dapp <rdapp@linux.vnet.ibm.com>
3168 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Remove
3169 body_cost_vec from _vect_peel_extended_info.
3170 (vect_peeling_hash_get_lowest_cost): Do not set body_cost_vec.
3171 (vect_peeling_hash_choose_best_peeling): Remove body_cost_vec and
3174 2017-07-18 Bin Cheng <bin.cheng@arm.com>
3176 * config/arm/arm.c (emit_unlikely_jump): Remove unused var.
3178 2017-07-18 Richard Biener <rguenther@suse.de>
3180 PR tree-optimization/80620
3181 PR tree-optimization/81403
3182 * tree-ssa-pre.c (phi_translate_1): Clear range and points-to
3183 info when re-using a VN table entry.
3185 2017-07-18 Richard Biener <rguenther@suse.de>
3187 PR tree-optimization/81418
3188 * tree-vect-loop.c (vectorizable_reduction): Properly compute
3189 vectype_in. Verify that with lane-reducing reduction operations
3190 we have a single def-use cycle.
3192 2017-07-17 Carl Love <cel@us.ibm.com>
3194 Revert commit r249424 2017-06-20 Carl Love <cel@us.ibm.com>
3196 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3197 ALTIVEC_BUILTIN_VMULESW, ALTIVEC_BUILTIN_VMULEUW,
3198 ALTIVEC_BUILTIN_VMULOSW, ALTIVEC_BUILTIN_VMULOUW entries.
3199 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin,
3200 builtin_function_type): Add ALTIVEC_BUILTIN_* case statements.
3201 * config/rs6000/altivec.md (MVULEUW, VMULESW, VMULOUW,
3202 VMULOSW): New enum "unspec" values.
3203 (vec_widen_umult_even_v4si, vec_widen_smult_even_v4si,
3204 vec_widen_umult_odd_v4si, vec_widen_smult_odd_v4si,
3205 altivec_vmuleuw, altivec_vmulesw, altivec_vmulouw,
3206 altivec_vmulosw): New patterns.
3207 * config/rs6000/rs6000-builtin.def (VMLEUW, VMULESW, VMULOUW,
3208 VMULOSW): Add definitions.
3209 2017-07-17 Uros Bizjak <ubizjak@gmail.com>
3211 * config/alpha/alpha.c: Include predict.h.
3213 2017-07-17 Yury Gribov <tetra2005@gmail.com>
3215 * tree-vrp.c (compare_assert_loc): Fix comparison function
3216 to return predictable results.
3218 2017-07-17 Claudiu Zissulescu <claziss@synopsys.com>
3220 * config/arc/arc.md (adddi3): Remove support for mexpand-adddi
3223 * config/arc/arc.opt (mexpand-adddi): Deprecate it.
3224 * doc/invoke.texi (mexpand-adddi): Update text.
3226 2017-07-17 Claudiu Zissulescu <claziss@synopsys.com>
3228 * config/arc/arc.md (clzsi2): Expand to an arc_clzsi2 instruction
3229 that also clobbers the CC register. The old expand code is moved
3231 (*arc_clzsi2): ... here.
3232 (ctzsi2): Expand to an arc_ctzsi2 instruction that also clobbers
3233 the CC register. The old expand code is moved to ...
3234 (arc_ctzsi2): ... here.
3236 2017-07-17 Claudiu Zissulescu <claziss@synopsys.com>
3238 * config/arc/arc.opt (mindexed-loads): Use initial value
3239 TARGET_INDEXED_LOADS_DEFAULT.
3240 (mauto-modify-reg): Use initial value
3241 TARGET_AUTO_MODIFY_REG_DEFAULT.
3242 * config/arc/elf.h (TARGET_INDEXED_LOADS_DEFAULT): Define.
3243 (TARGET_AUTO_MODIFY_REG_DEFAULT): Likewise.
3244 * config/arc/linux.h (TARGET_INDEXED_LOADS_DEFAULT): Define.
3245 (TARGET_AUTO_MODIFY_REG_DEFAULT): Likewise.
3247 2017-07-17 Martin Liska <mliska@suse.cz>
3250 * opts.c (finish_options): Do not allow -fgnu-tm
3251 w/ -fsanitize={kernel-,}address. Say sorry.
3253 2017-07-17 Bin Cheng <bin.cheng@arm.com>
3256 * tree-loop-distribution.c (classify_partition): Only assert on
3257 numer of iterations.
3258 (merge_dep_scc_partitions): Delete prameter. Update function call.
3259 (distribute_loop): Remove code handling loop with unknown niters.
3260 (pass_loop_distribution::execute): Skip loop with unknown niters.
3262 2017-07-17 Bin Cheng <bin.cheng@arm.com>
3265 * tree-loop-distribution.c (merge_dep_scc_partitions): Sink call to
3266 function sort_partitions_by_post_order.
3268 2017-07-17 Bin Cheng <bin.cheng@arm.com>
3270 PR tree-optimization/81374
3271 * tree-loop-distribution.c (pass_loop_distribution::execute): Record
3272 the max index of basic blocks, rather than number of basic blocks.
3274 2017-07-17 Claudiu Zissulescu <claziss@synopsys.com>
3276 * config/arc/arc-protos.h (arc_legitimate_pc_offset_p): Remove
3278 (arc_legitimate_pic_operand_p): Likewise.
3279 * config/arc/arc.c (arc_legitimate_pic_operand_p): Remove
3281 (arc_needs_pcl_p): Likewise.
3282 (arc_legitimate_pc_offset_p): Likewise.
3283 (arc_legitimate_pic_addr_p): Remove LABEL_REF case, as this
3284 function is also used in constrains.md.
3285 (arc_legitimate_constant_p): Use arc_legitimate_pic_addr_p to
3286 validate pic constants. Handle CONST_INT, CONST_DOUBLE, MINUS and
3287 PLUS. Only return true/false in known cases, otherwise assert.
3288 (arc_legitimate_address_p): Remove arc_legitimate_pic_addr_p as it
3289 is already called in arc_legitimate_constant_p.
3290 * config/arc/arc.h (CONSTANT_ADDRESS_P): Consider also LABEL for
3292 (LEGITIMATE_PIC_OPERAND_P): Use
3293 arc_raw_symbolic_reference_mentioned_p function.
3294 * config/arc/constraints.md (Cpc): Use arc_legitimate_pic_addr_p
3299 2017-07-17 Claudiu Zissulescu <claziss@synopsys.com>
3300 Andrew Burgess <andrew.burgess@embecosm.com>
3302 * config/arc/arc-protos.h (arc_compute_function_type): Change prototype.
3303 (arc_return_address_register): New function.
3304 * config/arc/arc.c (arc_handle_fndecl_attribute): New function.
3305 (arc_handle_fndecl_attribute): Add naked attribute.
3306 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
3307 (TARGET_WARN_FUNC_RETURN): Likewise.
3308 (arc_allocate_stack_slots_for_args): New function.
3309 (arc_warn_func_return): Likewise.
3310 (machine_function): Change type fn_type.
3311 (arc_compute_function_type): Consider new naked function type,
3312 change function return type.
3313 (arc_must_save_register): Adapt to handle new
3314 arc_compute_function_type's return type.
3315 (arc_expand_prologue): Likewise.
3316 (arc_expand_epilogue): Likewise.
3317 (arc_return_address_regs): Delete.
3318 (arc_return_address_register): New function.
3319 (arc_epilogue_uses): Use above function.
3320 * config/arc/arc.h (arc_return_address_regs): Delete prototype.
3321 (arc_function_type): Change encoding, add naked type.
3322 (ARC_INTERRUPT_P): Change to handle the new encoding.
3323 (ARC_FAST_INTERRUPT_P): Likewise.
3324 (ARC_NORMAL_P): Define.
3325 (ARC_NAKED_P): Likewise.
3326 (arc_compute_function_type): Delete prototype.
3327 * config/arc/arc.md (in_ret_delay_slot): Use
3328 arc_return_address_register function.
3329 (simple_return): Likewise.
3330 (p_return_i): Likewise.
3332 2017-07-17 Jakub Jelinek <jakub@redhat.com>
3334 PR tree-optimization/81428
3335 * match.pd (X / X -> one): Don't optimize _Fract divisions, as 1
3336 can't be built for those types.
3338 2017-07-17 Georg-Johann Lay <avr@gjlay.de>
3340 Remove stuff dead since r239246.
3342 * config/avr/avr-arch.h (avr_inform_devices): Remove dead proto.
3343 * config/avr/avr-devices.c (mcu_name, comparator, avr_mcus_str)
3344 (avr_inform_devices): Remove dead stuff.
3346 2017-07-17 Tamar Christina <tamar.christina@arm.com>
3348 * config/arm/arm_neon.h: Fix softp typo.
3350 2017-07-17 Jakub Jelinek <jakub@redhat.com>
3352 PR tree-optimization/81365
3353 * tree-ssa-phiprop.c (propagate_with_phi): When considering hoisting
3354 aggregate moves onto bb predecessor edges, make sure there are no
3355 loads that could alias the lhs in between the start of bb and the
3358 2017-07-17 Georg-Johann Lay <avr@gjlay.de>
3361 * config/avr/avr.c (avr_mul_highpart_cost): New static function.
3362 (avr_rtx_costs_1) [TRUNCATE]: Use it to compute mul_highpart cost.
3363 [LSHIFTRT, outer_code = TRUNCATE]: Same.
3365 2017-07-17 Jakub Jelinek <jakub@redhat.com>
3367 PR tree-optimization/81396
3368 * tree-ssa-math-opts.c (struct symbolic_number): Add n_ops field.
3369 (init_symbolic_number): Initialize it to 1.
3370 (perform_symbolic_merge): Add n_ops from both operands into the new
3372 (find_bswap_or_nop): Don't consider n->n == cmpnop computations
3373 without base_addr as useless if they need more than one operation.
3374 (bswap_replace): Handle !bswap case for NULL base_addr.
3376 2017-07-17 Tom de Vries <tom@codesourcery.com>
3379 * config/nvptx/nvptx.c (nvptx_single): Insert diverging branch as late
3382 2017-07-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
3384 * config/sparc/rtemself.h (TARGET_OS_CPP_BUILTINS): Add
3385 conditional builtin define __FIX_LEON3FT_B2BST.
3387 2017-07-17 Daniel Cederman <cederman@gaisler.com>
3389 * config/sparc/t-rtems: Add mfix-gr712rc multilibs. Replace
3390 MULTILIB_EXCEPTIONS with MULTILIB_REQUIRED. Match -mfix-gr712rc
3393 2017-07-16 Eric Botcazou <ebotcazou@adacore.com>
3395 PR rtl-optimization/81424
3396 * optabs.c (prepare_cmp_insn): Use copy_to_reg instead of force_reg
3397 to remove potential trapping from operands if -fnon-call-exceptions.
3399 2017-07-16 Jan Hubicka <hubicka@ucw.cz>
3401 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Use
3402 profile_proability for scalling.
3403 * scale_profile_for_vect_loop.c (scale_profile_for_vect_loop): Likewise.
3405 2017-07-16 Jan Hubicka <hubicka@ucw.cz>
3407 * cgraph.c (cgraph_edge::redirect_call_stmt_to_caller): Cleanup.
3409 2017-07-16 Jan Hubicka <hubicka@ucw.cz>
3411 * cfgloopmanip.c (scale_loop_profile): Avoid use of REG_BR_PROB_BASE
3412 fixpoint arithmetics.
3414 2017-07-16 Jan Hubicka <hubicka@ucw.cz>
3416 * tree-ssa-loop-unswitch.c (hoist_guard): Avoid use of REG_BR_PROB_BASE
3417 fixpoint arithmetics.
3419 2017-07-16 Jan Hubicka <hubicka@ucw.cz>
3421 * asan.c (create_cond_insert_point): Avoid use of REG_BR_PROB_BASE
3422 fixpoint arithmetics.
3424 2017-07-16 Jan Hubicka <hubicka@ucw.cz>
3426 * profile-count.h (profile_probability::from_reg_br_prob_note,
3427 profile_probability::to_reg_br_prob_note): New functions.
3428 * doc/rtl.texi (REG_BR_PROB_NOTE): Update documentation.
3429 * reg-notes.h (REG_BR_PROB, REG_BR_PRED): Update docs.
3430 * predict.c (probability_reliable_p): Update.
3431 (edge_probability_reliable_p): Update.
3432 (br_prob_note_reliable_p): Update.
3433 (invert_br_probabilities): Update.
3434 (add_reg_br_prob_note): New function.
3435 (combine_predictions_for_insn): Update.
3436 * asan.c (asan_clear_shadow): Update.
3437 * cfgbuild.c (compute_outgoing_frequencies): Update.
3438 * cfgrtl.c (force_nonfallthru_and_redirect): Update.
3439 (update_br_prob_note): Update.
3440 (rtl_verify_edges): Update.
3441 (purge_dead_edges): Update.
3442 (fixup_reorder_chain): Update.
3443 * emit-rtl.c (try_split): Update.
3444 * ifcvt.c (cond_exec_process_insns): Update.
3445 (cond_exec_process_if_block): Update.
3446 (dead_or_predicable): Update.
3447 * internal-fn.c (expand_addsub_overflow): Update.
3448 (expand_neg_overflow): Update.
3449 (expand_mul_overflow): Update.
3450 * loop-doloop.c (doloop_modify): Update.
3451 * loop-unroll.c (compare_and_jump_seq): Update.
3452 * optabs.c (emit_cmp_and_jump_insn_1): Update.
3453 * predict.h: Update.
3454 * reorg.c (mostly_true_jump): Update.
3456 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Update.
3457 * config/alpha/alpha.c (emit_unlikely_jump): Update.
3458 * config/arc/arc.c: (emit_unlikely_jump): Update.
3459 * config/arm/arm.c: (emit_unlikely_jump): Update.
3460 * config/bfin/bfin.c (cbranch_predicted_taken_p): Update.
3461 * config/frv/frv.c (frv_print_operand_jump_hint): Update.
3462 * config/i386/i386.c (ix86_expand_split_stack_prologue): Update.
3463 (ix86_print_operand): Update.
3464 (ix86_split_fp_branch): Update.
3465 (predict_jump): Update.
3466 * config/ia64/ia64.c (ia64_print_operand): Update.
3467 * config/mmix/mmix.c (mmix_print_operand): Update.
3468 * config/powerpcspe/powerpcspe.c (output_cbranch): Update.
3469 (rs6000_expand_split_stack_prologue): Update.
3470 * config/rs6000/rs6000.c: Update.
3471 * config/s390/s390.c (s390_expand_vec_strlen): Update.
3472 (s390_expand_vec_movstr): Update.
3473 (s390_expand_cs_tdsi): Update.
3474 (s390_expand_split_stack_prologue): Update.
3475 * config/sh/sh.c (sh_print_operand): Update.
3476 (expand_cbranchsi4): Update.
3477 (expand_cbranchdi4): Update.
3478 * config/sparc/sparc.c (output_v9branch): Update.
3479 * config/spu/spu.c (get_branch_target): Update.
3480 (ea_load_store_inline): Update.
3481 * config/tilegx/tilegx.c (cbranch_predicted_p): Update.
3482 * config/tilepro/tilepro.c: Update.
3484 2017-07-16 Eric Botcazou <ebotcazou@adacore.com>
3486 * gimplify.c (mostly_copy_tree_r): Revert latest change.
3487 (gimplify_save_expr): Likewise.
3489 2017-07-07 Jan Hubicka <hubicka@ucw.cz>
3491 * ipa-visibility.c (function_and_variable_visibility): Fix pasto.
3493 2017-07-07 Jan Hubicka <hubicka@ucw.cz>
3495 * ipa-fnsummary.c (pass_data_ipa_fn_summary): Use
3497 * timevar.def (TV_IPA_FNSUMMARY): Define.
3499 2017-07-16 Daniel Cederman <cederman@gaisler.com>
3501 * config/sparc/sparc.md (divdf3_fix): Add NOP to prevent back
3502 to back store errata sensitive sequence from being generated.
3503 (sqrtdf2_fix): Likewise.
3505 2017-07-07 Jan Hubicka <hubicka@ucw.cz>
3507 * tree-ssa-threadupdate.c (compute_path_counts,
3508 update_joiner_offpath_counts): Use profile_probability.
3510 2017-07-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
3513 2017-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
3515 * config/arm/arm-c.c (arm_cpu_builtins): Define
3516 __ARM_FEATURE_NUMERIC_MAXMIN solely based on TARGET_VFP5.
3518 2017-07-14 Kelvin Nilsen <kelvin@gcc.gnu.org>
3520 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3521 array entries to represent __ieee128 versions of the
3522 scalar_test_data_class, scalar_test_neg, scalar_extract_exp,
3523 scalar_extract_sig, and scalar_insert_exp built-in functions.
3524 (altivec_resolve_overloaded_builtin): Add special case handling
3525 for the __builtin_scalar_insert_exp function, as represented by
3526 the P9V_BUILTIN_VEC_VSIEDP constant.
3527 * config/rs6000/rs6000-builtin.def (VSEEQP): Add scalar extract
3528 exponent support for __ieee128 argument.
3529 (VSESQP): Add scalar extract signature support for __ieee128
3531 (VSTDCNQP): Add scalar test negative support for __ieee128
3533 (VSIEQP): Add scalar insert exponent support for __int128 argument
3534 with __ieee128 result.
3535 (VSIEQPF): Add scalar insert exponent support for __ieee128
3536 argument with __ieee128 result.
3537 (VSTDCQP): Add scalar test data class support for __ieee128
3539 (VSTDCNQP): Add overload support for scalar test negative with
3541 (VSTDCQP): Add overload support for scalar test data class
3543 * config/rs6000/vsx.md (UNSPEC_VSX_SXSIG) Replace
3545 (UNSPEC_VSX_SIEXPQP): New constant.
3546 (xsxexpqp): New insn for VSX scalar extract exponent quad
3548 (xsxsigqp): New insn for VSX scalar extract significand quad
3550 (xsiexpqpf): New insn for VSX scalar insert exponent quad
3551 precision with floating point argument.
3552 (xststdcqp): New expand for VSX scalar test data class quad
3554 (xststdcnegqp): New expand for VSX scalar test negative quad
3556 (xststdcqp): New insn to match expansions for VSX scalar test data
3557 class quad precision and VSX scalar test negative quad precision.
3558 * config/rs6000/rs6000.c (rs6000_expand_binop_builtin): Add
3559 special case operand checking to enforce that second operand of
3560 VSX scalar test data class with quad precision argument is a 7-bit
3562 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
3563 prototypes and descriptions of __ieee128 versions of
3564 scalar_extract_exp, scalar_extract_sig, scalar_insert_exp,
3565 scalar_test_data_class, and scalar_test_neg built-in functions.
3567 2016-07-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3569 PR tree-optimization/81162
3570 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Don't
3571 replace a negate with an add.
3573 2017-07-14 James Greenhalgh <james.greenhalgh@arm.com>
3575 * doc/invoke.texi (arm/-mcpu): Document +crypto.
3577 2017-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
3579 * config/arm/arm-c.c (arm_cpu_builtins): Define
3580 __ARM_FEATURE_NUMERIC_MAXMIN solely based on TARGET_VFP5.
3582 2017-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
3584 * config/arm/arm-cpus.in (cortex-r52): Add new entry.
3585 (armv8-r): Set ARM Cortex-R52 as default CPU.
3586 * config/arm/arm-tables.opt: Regenerate.
3587 * config/arm/arm-tune.md: Regenerate.
3588 * config/arm/driver-arm.c (arm_cpu_table): Add entry for ARM
3590 * doc/invoke.texi: Mention -mtune=cortex-r52 and availability of fp.dp
3591 extension for -mcpu=cortex-r52.
3593 2017-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
3595 * config/arm/arm-isa.h (isa_bit_FP_ARMv8): Delete enumerator.
3596 (ISA_FP_ARMv8): Define as ISA_FPv5 and ISA_FP_D32.
3597 * config/arm/arm-cpus.in (armv8-r): Define fp.sp as enabling FPv5.
3598 (fp-armv8): Define it as FP_ARMv8 only.
3599 config/arm/arm.h (TARGET_FPU_ARMV8): Delete.
3600 (TARGET_VFP_FP16INST): Define using TARGET_VFP5 rather than
3602 config/arm/arm.c (arm_rtx_costs_internal): Replace checks against
3603 TARGET_FPU_ARMV8 by checks against TARGET_VFP5.
3604 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Define
3605 first ARM_CHECK_BUILTIN_MODE definition using TARGET_VFP5 rather
3606 than TARGET_FPU_ARMV8.
3607 * config/arm/arm-c.c (arm_cpu_builtins): Likewise for
3608 __ARM_FEATURE_NUMERIC_MAXMIN macro definition.
3609 * config/arm/arm.md (cmov<mode>): Condition on TARGET_VFP5 rather than
3611 * config/arm/neon.md (neon_vrint): Likewise.
3612 (neon_vcvt): Likewise.
3613 (neon_<fmaxmin_op><mode>): Likewise.
3614 (<fmaxmin><mode>3): Likewise.
3615 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Likewise.
3616 * config/arm/predicates.md (arm_cond_move_operator): Check against
3617 TARGET_VFP5 rather than TARGET_FPU_ARMV8 and fix spacing.
3619 2017-07-14 Jackson Woodruff <jackson.woodruff@arm.com>
3621 * config/aarch64/aarch64.c (aarch64_print_operand): Move comments
3624 2017-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3626 * gimple-ssa-store-merging.c (clear_bit_region): Replace reference to
3627 loop in comment with memset.
3629 2017-07-14 Martin Liska <mliska@suse.cz>
3631 * cfgexpand.c (expand_gimple_basic_block): Remove dead comment.
3632 * dwarf2out.c (is_java): Remove the function.
3633 (output_pubname): Remove usage of the function.
3634 (lower_bound_default): Remove usage of DW_LANG_Java.
3635 (gen_compile_unit_die): Likewise.
3636 * gcc.c: Remove compiler defaults for .java and .zip files.
3637 * gimple-expr.c (remove_suffix): Change as there's no longer
3638 extension than 4-letter one.
3639 * gimplify.c (mostly_copy_tree_r): Remove Java-special part.
3640 (gimplify_save_expr): Likewise.
3641 * ipa-utils.h (polymorphic_type_binfo_p): Remove the comment
3642 as it's possible even for other languages than Java.
3643 * langhooks.h (struct lang_hooks): Remove Java from a comment.
3644 * lto-opts.c (lto_write_options): Remove reference to Java.
3645 * opts.c (strip_off_ending): Update file extension handling.
3646 * tree-cfg.c (verify_gimple_call): Remove comment with Java.
3647 * tree-eh.c (lower_resx): Likewise.
3648 * tree.c (free_lang_data_in_type): Remove dead code.
3649 (find_decls_types_r): Likewise.
3650 (build_common_builtin_nodes): Remove Java from a comment.
3651 (verify_type): Remove dead code.
3652 * varasm.c (assemble_external): Remove Java from a comment.
3654 2017-07-14 Martin Liska <mliska@suse.cz>
3656 * opts.c (finish_options): Add quotes.
3657 (common_handle_option): Likewise.
3659 2017-07-14 Martin Liska <mliska@suse.cz>
3661 * dbxout.c (get_lang_number): Do not handle GNU Pascal.
3662 * dbxout.h (extern void dbxout_stab_value_internal_label_diff):
3664 * dwarf2out.c (lower_bound_default): Do not handle
3666 (gen_compile_unit_die): Likewise.
3667 * gcc.c: Remove default extension binding for GNU Pascal.
3668 * stmt.c: Remove Pascal language from a comment.
3669 * xcoffout.c: Likewise.
3671 2017-07-13 David Malcolm <dmalcolm@redhat.com>
3674 * diagnostic-show-locus.c (fixit_cmp): New function.
3675 (layout::layout): Sort m_fixit_hints.
3676 (column_range::column_range): Assert that the values are valid.
3677 (struct char_span): New struct.
3678 (correction::overwrite): New method.
3679 (struct source_line): New struct.
3680 (line_corrections::add_hint): Add assertions. Reimplement memcpy
3681 calls in terms of classes source_line and char_span, and
3682 correction::overwrite.
3683 (selftest::test_overlapped_fixit_printing_2): New function.
3684 (selftest::diagnostic_show_locus_c_tests): Call it.
3686 2017-07-13 Will Schmidt <will_schmidt@vnet.ibm.com>
3688 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Return
3689 early if there is no lhs.
3691 2017-07-13 Martin Liska <mliska@suse.cz>
3693 * dwarf2out.c (gen_pointer_type_die): Remove dead code.
3694 (gen_reference_type_die): Likewise.
3695 * stor-layout.c: Remove Pascal-related comment.
3697 2017-07-13 Martin Liska <mliska@suse.cz>
3699 * opts.c (finish_options): Add quotes to error messages.
3700 (parse_sanitizer_options): Likewise.
3702 2017-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
3704 * doc/invoke.texi (armv8-r): Document +fp.sp ARMv8-R extension.
3706 2017-07-13 Richard Earnshaw <rearnsha@arm.com>
3708 * config/arm/vxworks.h (TARGET_ENDIAN_DEFAULT): Define.
3710 2017-07-13 Maxim Ostapenko <m.ostapenko@samsung.com>
3712 * asan.c (asan_emit_allocas_unpoison): Use ptr_mode for arguments
3714 * builtins.c (expand_asan_emit_allocas_unpoison): Likewise.
3716 2017-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
3719 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): If GLIBC
3720 provides the hardware capability bits, define the macro
3721 __BUILTIN_CPU_SUPPORTS__.
3722 * config/rs6000/rs6000.c (cpu_expand_builtin): Generate a warning
3723 if GLIBC does not provide the hardware capability bits. Add a
3724 gcc_unreachable call if the built-in cpu function is neither
3725 __builtin_cpu_is nor __builtin_cpu_supports.
3726 (rs6000_get_function_versions_dispatcher): Change the warning
3727 that an old GLIBC is used which does not export the capability
3728 bits to be an error.
3729 * doc/extend.texi (target_clones attribute): Document the
3730 restriction that GLIBC 2.23 or newer is needed on the PowerPC.
3731 (PowerPC built-in functions): Document that GLIBC 2.23 or newer is
3732 needed by __builtin_cpu_is and __builtin_cpu_supports. Document
3733 the macros defined by GCC if the newer GLIBC is available.
3735 2017-07-12 Jeff Law <law@redhat.com>
3737 * config/riscv/riscv.c: Remove unnecessary includes. Reorder
3738 remaining includes slightly.
3739 * config/riscv/riscv-builtins.c: Include profile-count.h.
3741 2017-07-12 Georg-Johann Lay <avr@gjlay.de>
3744 * config/avr/avr.c (avr_set_current_function): In diagnostic
3745 messages: Quote keywords and (parts of) identifiers.
3746 [WITH_AVRLIBC]: Warn for functions named "ISR", "SIGNAL" or
3749 2017-07-12 Carl Love <cel@us.ibm.com>
3751 * config/rs6000/rs6000-c.c: Add support for built-in functions
3752 vector bool char vec_revb (vector bool char);
3753 vector bool short vec_revb (vector short char);
3754 vector bool int vec_revb (vector bool int);
3755 vector bool long long vec_revb (vector bool long long);
3756 * doc/extend.texi: Update the built-in documentation file for the
3757 new built-in functions.
3759 2017-07-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3761 * config/s390/s390.md: Remove movcc splitter.
3763 2017-07-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3765 * config/s390/s390.c (s390_rtx_costs): Return proper costs for
3766 load/store on condition.
3768 2017-07-12 Georg-Johann Lay <avr@gjlay.de>
3771 * config/avr/avr.c (avr_encode_section_info)
3772 [progmem && !TREE_READONLY]: Error if progmem object needs
3775 2017-07-11 Michael Collison <michael.collison@arm.com>
3777 * config/aarch64/aarch64-simd.md (aarch64_sub<mode>_compare0):
3780 2017-07-11 Carl Love <cel@us.ibm.com>
3782 * config/rs6000/rs6000-c.c: Add support for builtins
3783 vector unsigned int vec_parity_lsbb (vector signed int);
3784 vector unsigned int vec_parity_lsbb (vector unsigned int);
3785 vector unsigned __int128 vec_parity_lsbb (vector signed __int128);
3786 vector unsigned __int128 vec_parity_lsbb (vector unsigned __int128);
3787 vector unsigned long long vec_parity_lsbb (vector signed long long);
3788 vector unsigned long long vec_parity_lsbb (vector unsigned long long);
3789 * config/rs6000/rs6000-builtin.def (VPARITY_LSBB): Add BU_P9V_OVERLOAD1.
3790 * config/rs6000/altivec.h (vec_parity_lsbb): Add define.
3791 * doc/extend.texi: Update the built-in documentation file for the
3792 new built-in functions.
3794 2017-07-11 David Malcolm <dmalcolm@redhat.com>
3796 * diagnostic-show-locus.c: Include "gcc-rich-location.h".
3797 (layout::m_primary_loc): New field.
3798 (layout::layout): Initialize new field. Move location filtering
3799 logic from here to...
3800 (layout::maybe_add_location_range): ...this new method. Add
3801 support for filtering to just the lines already specified by other
3803 (layout::will_show_line_p): New method.
3804 (gcc_rich_location::add_location_if_nearby): New method.
3805 (selftest::test_add_location_if_nearby): New test function.
3806 (selftest::diagnostic_show_locus_c_tests): Call it.
3807 * gcc-rich-location.h (gcc_rich_location::add_location_if_nearby):
3810 2017-07-11 Tom de Vries <tom@codesourcery.com>
3812 * config/nvptx/nvptx.c (WORKAROUND_PTXJIT_BUG): New macro.
3813 (bb_first_real_insn): New function.
3814 (nvptx_single): Add extra initialization of broadcasted condition
3817 2017-07-11 Nathan Sidwell <nathan@acm.org>
3819 * dwarf2out.c (gen_member_die): Remove useless check for anon ctors.
3821 2017-07-11 Georg-Johann Lay <avr@gjlay.de>
3823 * doc/extend.texi (AVR Function Attributes): Remove weblink to
3824 Binutils doc as TEXI will mess them up.
3825 * doc/invoke.texi (AVR Options): Same here.
3827 2017-07-11 Daniel Cederman <cederman@gaisler.com>
3829 * config/sparc/sparc.opt (mfix-ut700): New option.
3830 (mfix-gr712rc): Likewise.
3831 (sparc_fix_b2bst): New variable.
3832 * doc/invoke.texi (SPARC options): Document them.
3833 (ARM options): Fix warnings.
3834 * config/sparc/sparc.c (sparc_do_work_around_errata): Insert NOP
3835 instructions to prevent sequences that can trigger the store-store
3836 errata for certain LEON3FT processors.
3837 (pass_work_around_errata::gate): Also test sparc_fix_b2bst.
3838 (sparc_option_override): Set sparc_fix_b2bst appropriately.
3839 * config/sparc/sparc.md (fix_b2bst): New attribute.
3840 (in_branch_delay): Prevent stores in delay slot if fix_b2bst.
3842 2017-07-10 Uros Bizjak <ubizjak@gmail.com>
3845 * config/i386/i386.md (divsf3): Add TARGET_SSE to TARGET_SSE_MATH.
3847 (*rsqrtsf2_sse): Ditto.
3849 (div<mode>3): Macroize insn from divdf3 and divsf3
3850 using MODEF mode iterator.
3852 2017-07-10 Martin Sebor <msebor@redhat.com>
3854 PR tree-optimization/80397
3855 * gimple-ssa-sprintf.c (format_integer): Use INTEGRAL_TYPE_P()
3856 instead of testing for equality to INTEGER_TYPE.
3858 2017-07-10 Vineet Gupta <vgupta@synopsys.com>
3860 * config.gcc: Remove uclibc from arc target spec.
3862 2017-07-10 Claudiu Zissulescu <claziss@synopsys.com>
3864 * config/arc/arc.h (ADDITIONAL_REGISTER_NAMES): Define.
3866 2017-07-07 Jan Hubicka <hubicka@ucw.cz>
3869 * lto-wrapper.c (remove_option): New function.
3870 (merge_and_complain): Merge PIC/PIE options more realistically.
3872 2017-07-10 Georg-Johann Lay <avr@gjlay.de>
3874 Better ISR prologues by supporting GASes __gcc_isr pseudo insn.
3878 * configure.ac [target=avr]: Add GAS check for -mgcc-isr.
3879 (HAVE_AS_AVR_MGCCISR_OPTION): If so, AC_DEFINE it.
3880 * config.in: Regenerate.
3881 * configure: Regenerate.
3882 * doc/extend.texi (AVR Function Attributes) <no_gccisr>: Document it.
3883 * doc/invoke.texi (AVR Options) <-mgas-isr-prologues>: Document it.
3884 * config/avr/avr.opt (-mgas-isr-prologues): New option and...
3885 (TARGET_GASISR_PROLOGUES): ...target mask.
3886 * common/config/avr/avr-common.c
3887 (avr_option_optimization_table) [OPT_LEVELS_1_PLUS_NOT_DEBUG]:
3888 Set -mgas-isr-prologues.
3889 * config/avr/avr-passes.def (avr_pass_pre_proep): Add
3890 INSERT_PASS_BEFORE for it.
3891 * config/avr/avr-protos.h (make_avr_pass_pre_proep): New proto.
3892 * config/avr/avr.c (avr_option_override)
3893 [!HAVE_AS_AVR_MGCCISR_OPTION]: Unset TARGET_GASISR_PROLOGUES.
3894 (avr_no_gccisr_function_p, avr_hregs_split_reg): New static functions.
3895 (avr_attribute_table) <no_gccisr>: Add new function attribute.
3896 (avr_set_current_function) <is_no_gccisr>: Init machine field.
3897 (avr_pass_data_pre_proep, avr_pass_pre_proep): New pass data
3899 (make_avr_pass_pre_proep): New function.
3900 (emit_push_sfr) <treg>: Add argument to function and use it
3902 (avr_expand_prologue) [machine->gasisr.maybe]: Emit gasisr insn
3903 and set machine->gasisr.yes.
3904 (avr_expand_epilogue) [machine->gasisr.yes]: Similar.
3905 (avr_asm_function_end_prologue) [machine->gasisr.yes]: Add
3906 __gcc_isr.n_pushed to .L__stack_usage.
3907 (TARGET_ASM_FINAL_POSTSCAN_INSN): Define to...
3908 (avr_asm_final_postscan_insn): ...this new static function.
3909 * config/avr/avr.h (machine_function)
3910 <is_no_gccisr, use_L__stack_usage>: New fields.
3911 <gasisr, gasisr.yes, gasisr.maybe, gasisr.regno>: New fields.
3912 * config/avr/avr.md (UNSPECV_GASISR): Add unspecv enum.
3913 (GASISR_Prologue, GASISR_Epilogue, GASISR_Done): New define_constants.
3914 (gasisr, *gasisr): New expander and insn.
3915 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
3916 [HAVE_AS_AVR_MGCCISR_OPTION]: Print asm_gccisr spec.
3917 * config/avr/specs.h (ASM_SPEC) <asm_gccisr>: Add sub spec.
3919 2017-07-10 Richard Earnshaw <rearnsha@arm.com>
3921 * config/arm/parsecpu.awk (gen_comm_data): Do not escape single quotes
3924 2017-07-10 Georg-Johann Lay <avr@gjlay.de>
3926 Move jump-tables out of .text again.
3929 * config/avr/avr.c (ASM_OUTPUT_ADDR_VEC_ELT): Remove function.
3930 (ASM_OUTPUT_ADDR_VEC): New function.
3931 (avr_adjust_insn_length) [JUMP_TABLE_DATA_P]: Return 0.
3932 (avr_final_prescan_insn) [avr_log.insn_addresses]: Dump
3933 INSN_ADDRESSes as asm comment.
3934 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION): Adjust comment.
3935 (ASM_OUTPUT_ADDR_VEC_ELT): Remove define.
3936 (ASM_OUTPUT_ADDR_VEC): Define to avr_output_addr_vec.
3937 * config/avr/avr.md (*tablejump): Adjust comment.
3938 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
3939 * config/avr/avr-log.c (avr_log_set_avr_log) <insn_addresses>:
3941 * config/avr/avr-protos.h (avr_output_addr_vec_elt): Remove proto.
3942 (avr_output_addr_vec): New proto.
3943 (avr_log_t) <insn_addresses>: New field.
3945 2017-07-09 H.J. Lu <hongjiu.lu@intel.com>
3948 * config/i386/i386.c (ix86_function_arg_advance): Set
3949 outgoing_args_on_stack to true if there are outgoing arguments
3951 (ix86_function_arg): Likewise.
3952 (ix86_get_drap_rtx): Use DRAP only if there are outgoing
3953 arguments on stack and ACCUMULATE_OUTGOING_ARGS is false.
3954 * config/i386/i386.h (machine_function): Add
3955 outgoing_args_on_stack.
3957 2017-07-09 Krister Walfridsson <krister.walfridsson@gmail.com>
3959 * config.gcc (*-*-netbsd*): Remove check for NetBSD versions not
3961 * config/netbsd.h (NETBSD_LIBGCC_SPEC): Always enable pthreads.
3963 2017-07-08 Richard Sandiford <richard.sandiford@linaro.org>
3965 * Makefile.in (HOOKS_H, RTL_BASE_H, FUNCTION_H, EXPR_H, REGS_H)
3966 (REAL_H): Remove $(MACHMODE_H).
3967 (FIXED_VALUE_H, TREE_CORE_H, CFGLOOP_H): Remove $(MACHMODE_H) and
3969 (CORETYPES_H): Add signop.h, wide-int.h, wide-int-print.h,
3970 $(MACHMODE_H) and double-int.h.
3971 (build/min-insn-modes.o): Depend on $(CORETYPES_H) rather than
3973 (gengtype-state.o, gengtype.o, build/gengtype.o): Don't depend on
3976 2017-07-07 Andrew Pinski <apinski@cavium.com>
3978 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Check
3979 prev_set and curr_set for AARCH64_FUSE_ALU_BRANCH.
3981 2017-07-07 Michael Meissner <meissner@linux.vnet.ibm.com>
3983 * config/rs6000/rs6000.c (rs6000_get_function_versions_dispatcher):
3984 Add warning if GCC was not configured to link against a GLIBC that
3985 exports the hardware capability bits.
3986 (make_resolver_func): Make resolver function private and not a
3987 COMDAT function. Create the name with clone_function_name instead
3988 of make_unique_name.
3991 * config/rs6000/rs6000.md (HI sign_extend splitter): Use the
3992 correct operand in doing the split.
3994 2017-07-07 Carl Love <cel@us.ibm.com>
3996 * config/rs6000/rs6000-c: Add support for built-in function
3997 vector unsigned short vec_pack_to_short_fp32 (vector float,
3999 * config/rs6000/rs6000-builtin.def (CONVERT_4F32_8I16): Add
4000 BU_P9V_AV_2 and BU_P9V_OVERLOAD_2 definitions.
4001 * config/rs6000/altivec.h (vec_pack_to_short_fp32): Add define.
4002 * config/rs6000/altivec.md(UNSPEC_CONVERT_4F32_8I16): Add UNSPEC.
4003 (convert_4f32_8i16): Add define_expand.
4004 * doc/extend.texi: Update the built-in documentation file for the
4005 new built-in function.
4007 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
4009 * config/sparc/m8.md: New file.
4010 * config/sparc/sparc.md: Include m8.md.
4012 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
4014 * config/sparc/sparc.opt: New option -mvis4b.
4015 * config/sparc/sparc.c (dump_target_flag_bits): Handle MASK_VIS4B.
4016 (sparc_option_override): Handle VIS4B.
4017 (enum sparc_builtins): Define
4018 SPARC_BUILTIN_DICTUNPACK{8,16,32},
4019 SPARC_BUILTIN_FPCMP{LE,GT,EQ,NE}{8,16,32}SHL,
4020 SPARC_BUILTIN_FPCMPU{LE,GT}{8,16,32}SHL,
4021 SPARC_BUILTIN_FPCMPDE{8,16,32}SHL and
4022 SPARC_BUILTIN_FPCMPUR{8,16,32}SHL.
4023 (check_constant_argument): New function.
4024 (sparc_vis_init_builtins): Define builtins
4025 __builtin_vis_dictunpack{8,16,32},
4026 __builtin_vis_fpcmp{le,gt,eq,ne}{8,16,32}shl,
4027 __builtin_vis_fpcmpu{le,gt}{8,16,32}shl,
4028 __builtin_vis_fpcmpde{8,16,32}shl and
4029 __builtin_vis_fpcmpur{8,16,32}shl.
4030 (sparc_expand_builtin): Check that the constant operands to
4031 __builtin_vis_fpcmp*shl and _builtin_vis_dictunpack* are indeed
4032 constant and in range.
4033 * config/sparc/sparc-c.c (sparc_target_macros): Handle
4035 * config/sparc/sparc.h (SPARC_IMM2_P): Define.
4036 (SPARC_IMM5_P): Likewise.
4037 * config/sparc/sparc.md (cpu_feature): Add new feagure "vis4b".
4038 (enabled): Handle vis4b.
4039 (UNSPEC_DICTUNPACK): New unspec.
4040 (UNSPEC_FPCMPSHL): Likewise.
4041 (UNSPEC_FPUCMPSHL): Likewise.
4042 (UNSPEC_FPCMPDESHL): Likewise.
4043 (UNSPEC_FPCMPURSHL): Likewise.
4044 (cpu_feature): New CPU feature `vis4b'.
4045 (dictunpack{8,16,32}): New insns.
4046 (FPCSMODE): New mode iterator.
4047 (fpcscond): New code iterator.
4048 (fpcsucond): Likewise.
4049 (fpcmp{le,gt,eq,ne}{8,16,32}{si,di}shl): New insns.
4050 (fpcmpu{le,gt}{8,16,32}{si,di}shl): Likewise.
4051 (fpcmpde{8,16,32}{si,di}shl): Likewise.
4052 (fpcmpur{8,16,32}{si,di}shl): Likewise.
4053 * config/sparc/constraints.md: Define constraints `q' for unsigned
4054 2-bit integer constants and `t' for unsigned 5-bit integer
4056 * config/sparc/predicates.md (imm5_operand_dictunpack8): New
4058 (imm5_operand_dictunpack16): Likewise.
4059 (imm5_operand_dictunpack32): Likewise.
4060 (imm2_operand): Likewise.
4061 * doc/invoke.texi (SPARC Options): Document -mvis4b.
4062 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
4063 ditunpack* and fpcmp*shl builtins.
4065 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
4067 * config.gcc: Handle m8 in --with-{cpu,tune} options.
4068 * config.in: Add HAVE_AS_SPARC6 define.
4069 * config/sparc/driver-sparc.c (cpu_names): Add entry for the SPARC
4071 * config/sparc/sol2.h (CPP_CPU64_DEFAULT_SPEC): Define for
4073 (ASM_CPU32_DEFAUILT_SPEC): Likewise.
4074 (CPP_CPU_SPEC): Handle m8.
4075 (ASM_CPU_SPEC): Likewise.
4076 * config/sparc/sparc-opts.h (enum processor_type): Add
4078 * config/sparc/sparc.c (m8_costs): New struct.
4079 (sparc_option_override): Handle TARGET_CPU_m8.
4080 (sparc32_initialize_trampoline): Likewise.
4081 (sparc64_initialize_trampoline): Likewise.
4082 (sparc_issue_rate): Likewise.
4083 (sparc_register_move_cost): Likewise.
4084 * config/sparc/sparc.h (TARGET_CPU_m8): Define.
4085 (CPP_CPU64_DEFAULT_SPEC): Define for M8.
4086 (ASM_CPU64_DEFAULT_SPEC): Likewise.
4087 (CPP_CPU_SPEC): Handle M8.
4088 (ASM_CPU_SPEC): Likewise.
4089 (AS_M8_FLAG): Define.
4090 * config/sparc/sparc.md: Add m8 to the cpu attribute.
4091 * config/sparc/sparc.opt: New option -mcpu=m8 for sparc targets.
4092 * configure.ac (HAVE_AS_SPARC6): Check for assembler support for
4094 * configure: Regenerate.
4095 * doc/invoke.texi (SPARC Options): Document -mcpu=m8 and
4098 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
4100 * config/sparc/niagara7.md: Rework the DFA scheduler to use insn
4102 * config/sparc/sparc.md: Remove the `v3pipe' insn attribute.
4103 ("*movdi_insn_sp32"): Do not set v3pipe.
4104 ("*movsi_insn"): Likewise.
4105 ("*movdi_insn_sp64"): Likewise.
4106 ("*movsf_insn"): Likewise.
4107 ("*movdf_insn_sp32"): Likewise.
4108 ("*movdf_insn_sp64"): Likewise.
4109 ("*zero_extendsidi2_insn_sp64"): Likewise.
4110 ("*sign_extendsidi2_insn"): Likewise.
4111 ("*mov<VM32:mode>_insn"): Likewise.
4112 ("*mov<VM64:mode>_insn_sp64"): Likewise.
4113 ("*mov<VM64:mode>_insn_sp32"): Likewise.
4114 ("<plusminus_insn><VADDSUB:mode>3"): Likewise.
4115 ("<vlop:code><VL:mode>3"): Likewise.
4116 ("*not_<vlop:code><VL:mode>3"): Likewise.
4117 ("*nand<VL:mode>_vis"): Likewise.
4118 ("*<vlnotop:code>_not1<VL:mode>_vis"): Likewise.
4119 ("*<vlnotop:code>_not2<VL:mode>_vis"): Likewise.
4120 ("one_cmpl<VL:mode>2"): Likewise.
4121 ("faligndata<VM64:mode>_vis"): Likewise.
4122 ("alignaddrsi_vis"): Likewise.
4123 ("alignaddrdi_vis"): Likweise.
4124 ("alignaddrlsi_vis"): Likewise.
4125 ("alignaddrldi_vis"): Likewise.
4126 ("fcmp<gcond:code><GCM:gcm_name><P:mode>_vis"): Likewise.
4127 ("bmaskdi_vis"): Likewise.
4128 ("bmasksi_vis"): Likewise.
4129 ("bshuffle<VM64:mode>_vis"): Likewise.
4130 ("cmask8<P:mode>_vis"): Likewise.
4131 ("cmask16<P:mode>_vis"): Likewise.
4132 ("cmask32<P:mode>_vis"): Likewise.
4133 ("pdistn<P:mode>_vis"): Likewise.
4134 ("<vis3_addsub_ss_patname><VASS:mode>3"): Likewise.
4136 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
4138 * config/sparc/sparc.md ("subtype"): New insn attribute.
4139 ("*wrgsr_sp64"): Set insn subtype.
4140 ("*rdgsr_sp64"): Likewise.
4141 ("alignaddrsi_vis"): Likewise.
4142 ("alignaddrdi_vis"): Likewise.
4143 ("alignaddrlsi_vis"): Likewise.
4144 ("alignaddrldi_vis"): Likewise.
4145 ("<plusminus_insn><VADDSUB:mode>3"): Likewise.
4146 ("fexpand_vis"): Likewise.
4147 ("fpmerge_vis"): Likewise.
4148 ("faligndata<VM64:mode>_vis"): Likewise.
4149 ("bshuffle<VM64:mode>_vis"): Likewise.
4150 ("cmask8<P:mode>_vis"): Likewise.
4151 ("cmask16<P:mode>_vis"): Likewise.
4152 ("cmask32<P:mode>_vis"): Likewise.
4153 ("fchksm16_vis"): Likewise.
4154 ("v<vis3_shift_patname><GCM:mode>3"): Likewise.
4155 ("fmean16_vis"): Likewise.
4156 ("fp<plusminus_insn>64_vis"): Likewise.
4157 ("<plusminus_insn>v8qi3"): Likewise.
4158 ("<vis3_addsub_ss_patname><VASS:mode>3"): Likewise.
4159 ("<vis4_minmax_patname><VMMAX:mode>3"): Likewise.
4160 ("<vis4_uminmax_patname><VMMAX:mode>3"): Likewise.
4161 ("<vis3_addsub_ss_patname>v8qi3"): Likewise.
4162 ("<vis4_addsub_us_patname><VAUS:mode>3"): Likewise.
4163 ("*movqi_insn"): Likewise.
4164 ("*movhi_insn"): Likewise.
4165 ("*movsi_insn"): Likewise.
4166 ("movsi_pic_gotdata_op"): Likewise.
4167 ("*movdi_insn_sp32"): Likewise.
4168 ("*movdi_insn_sp64"): Likewise.
4169 ("movdi_pic_gotdata_op"): Likewise.
4170 ("*movsf_insn"): Likewise.
4171 ("*movdf_insn_sp32"): Likewise.
4172 ("*movdf_insn_sp64"): Likewise.
4173 ("*zero_extendhisi2_insn"): Likewise.
4174 ("*zero_extendqihi2_insn"): Likewise.
4175 ("*zero_extendqisi2_insn"): Likewise.
4176 ("*zero_extendqidi2_insn"): Likewise.
4177 ("*zero_extendhidi2_insn"): Likewise.
4178 ("*zero_extendsidi2_insn_sp64"): Likewise.
4179 ("ldfsr"): Likewise.
4180 ("prefetch_64"): Likewise.
4181 ("prefetch_32"): Likewise.
4182 ("tie_ld32"): Likewise.
4183 ("tie_ld64"): Likewise.
4184 ("*tldo_ldub_sp32"): Likewise.
4185 ("*tldo_ldub1_sp32"): Likewise.
4186 ("*tldo_ldub2_sp32"): Likewise.
4187 ("*tldo_ldub_sp64"): Likewise.
4188 ("*tldo_ldub1_sp64"): Likewise.
4189 ("*tldo_ldub2_sp64"): Likewise.
4190 ("*tldo_ldub3_sp64"): Likewise.
4191 ("*tldo_lduh_sp32"): Likewise.
4192 ("*tldo_lduh1_sp32"): Likewise.
4193 ("*tldo_lduh_sp64"): Likewise.
4194 ("*tldo_lduh1_sp64"): Likewise.
4195 ("*tldo_lduh2_sp64"): Likewise.
4196 ("*tldo_lduw_sp32"): Likewise.
4197 ("*tldo_lduw_sp64"): Likewise.
4198 ("*tldo_lduw1_sp64"): Likewise.
4199 ("*tldo_ldx_sp64"): Likewise.
4200 ("*mov<VM32:mode>_insn"): Likewise.
4201 ("*mov<VM64:mode>_insn_sp64"): Likewise.
4202 ("*mov<VM64:mode>_insn_sp32"): Likewise.
4204 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
4206 * config/sparc/sparc.md ("type"): New insn type viscmp.
4207 ("fcmp<gcond:code><GCM:gcm_name><P:mode>_vis"): Set insn type to
4209 ("fpcmp<gcond:code>8<P:mode>_vis"): Likewise.
4210 ("fucmp<gcond:code>8<P:mode>_vis"): Likewise.
4211 ("fpcmpu<gcond:code><GCM:gcm_name><P:mode>_vis"): Likewise.
4212 * config/sparc/niagara7.md ("n7_vis_logical_v3pipe"): Handle
4214 ("n7_vis_logical_11cycle"): Likewise.
4215 * config/sparc/niagara4.md ("n4_vis_logical"): Likewise.
4216 * config/sparc/niagara2.md ("niag3_vis": Likewise.
4217 * config/sparc/niagara.md ("niag_vis"): Likewise.
4218 * config/sparc/ultra3.md ("us3_fga"): Likewise.
4219 * config/sparc/ultra1_2.md ("us1_fga_double"): Likewise.
4221 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
4223 * config/sparc/sparc.md: New instruction type `bmask'.
4224 (bmaskdi_vis): Use the `bmask' type.
4225 (bmasksi_vis): Likewise.
4226 * config/sparc/ultra3.md (us3_array): Likewise.
4227 * config/sparc/niagara7.md (n7_array): Likewise.
4228 * config/sparc/niagara4.md (n4_array): Likewise.
4229 * config/sparc/niagara2.md (niag2_vis): Likewise.
4230 (niag3_vis): Likewise.
4231 * config/sparc/niagara.md (niag_vis): Likewise.
4233 2017-07-06 Jan Hubicka <hubicka@ucw.cz>
4235 * ipa-comdats.c: Remove optimize check from gate.
4236 * ipa-fnsummary.c (ipa_fn_summary_generate): do not generate summary
4237 for functions not optimized.
4238 (ipa_fn_summary_read): Skip optimize check.
4239 (ipa_fn_summary_write): Likewise.
4240 * ipa-inline-analysis.c (do_estimate_growth_1): Check that caller
4242 * ipa-inline.c (can_inline_edge_p): Not optimized functions are
4244 (can_inline_edge_p): Check flag_pcc_struct_return for match.
4245 (check_callers): Give up on caller which is not optimized.
4246 (inline_small_functions): Likewise.
4247 (ipa_inline): Do not give up when not optimizing.
4248 * ipa-visbility.c (function_and_variable_visibility): Do not optimize
4249 away unoptimizes cdtors.
4250 (whole_program_function_and_variable_visibility): Do
4251 ipa_discover_readonly_nonaddressable_vars in LTO mode.
4252 * ipa.c (process_references): Do not check optimize.
4253 (symbol_table::remove_unreachable_nodes): Update optimize check.
4254 (set_writeonly_bit): Update optimize check.
4255 (pass_ipa_cdtor_merge::gate): Do not check optimize.
4256 (pass_ipa_single_use::gate): Remove.
4258 2017-07-06 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
4260 * config/rs6000/rs6000.c (union_defs, union_uses, insn_is_load_p,
4261 insn_is_store_p, insn_is_swap_p, const_load_sequence_p, v2df_reduction_p,
4262 rtx_is_swappable_p, insn_is_swappable_p, chain_contains_only_swaps,
4263 mark_swaps_for_removal, swap_const_vector_halves, adjust_subreg_index,
4264 permute_load, permute_store, adjust_extract, adjust_splat,
4265 adjust_xxpermdi, adjust_concat, adjust_vperm, handle_special_swappables,
4266 replace_swap_with_copy, dump_swap_insn_table,
4267 alignment_with_canonical_addr, alignment_mask, find_alignment_op,
4268 recombine_lvx_pattern, recombine_stvx_pattern,
4269 recombine_lvx_stvx_patterns, rs6000_analyze_swaps,
4270 make_pass_analyze_swaps): Move all code related to p8 swap optimizations
4271 to file rs6000-p8swap.c.
4272 * config/rs6000/rs6000-p8swap.c: New file.
4273 * config/rs6000/t-rs6000: Add rule to build rs6000-p8swap.o.
4274 * config.gcc: Add rs6000-p8swap.o to extra_objs for powerpc*-*-*
4275 and rs6000*-*-* targets.
4277 2017-07-06 David Malcolm <dmalcolm@redhat.com>
4279 * Makefile.in (selftest): Remove dependency on s-selftest-c++.
4281 2017-07-06 Jan Hubicka <hubicka@ucw.cz>
4283 * lto-wrapper.c (merge_and_complain): Do not merge
4284 fexceptions, fnon_call_exceptions, ftrapv, ffp_contract_, fmath_errno,
4285 fsigned_zeros, ftrapping_math, fwrapv.
4286 (append_compiler_options): Do not track these options.
4287 (append_linker_options): Likewie
4289 2017-07-06 Jan Hubicka <hubicka@ucw.cz>
4291 * cgraphunit.c (cgraph_node::finalize_function): When
4292 !flag_toplevel_reorde set no_reorder flag.
4293 (varpool_node::finalize_decl): Likewise.
4294 (symbol_table::compile): Drop no toplevel reorder path.
4296 2017-07-06 Jan Hubicka <hubicka@ucw.cz>
4298 * bb-reorder.c (better_edge_p): Do not build traces across abnormal/eh
4299 edges; zero probability is not better than uninitialized.
4301 2017-07-06 Maxim Ostapenko <m.ostapenko@samsung.com>
4303 * asan.h (asan_sanitize_allocas_p): Declare.
4304 * asan.c (asan_sanitize_allocas_p): New function.
4305 (handle_builtin_stack_restore): Bail out if !asan_sanitize_allocas_p.
4306 (handle_builtin_alloca): Likewise.
4307 * cfgexpand.c (expand_used_vars): Do not add allocas unpoisoning stuff
4308 if !asan_sanitize_allocas_p.
4309 * params.def (asan-instrument-allocas): Add new option.
4310 * params.h (ASAN_PROTECT_ALLOCAS): Define.
4311 * opts.c (common_handle_option): Disable allocas sanitization for
4314 2017-07-06 Maxim Ostapenko <m.ostapenko@samsung.com>
4316 * asan.c: Include gimple-fold.h.
4317 (get_last_alloca_addr): New function.
4318 (handle_builtin_stackrestore): Likewise.
4319 (handle_builtin_alloca): Likewise.
4320 (asan_emit_allocas_unpoison): Likewise.
4321 (get_mem_refs_of_builtin_call): Add new parameter, remove const
4322 quallifier from first paramerer. Handle BUILT_IN_ALLOCA,
4323 BUILT_IN_ALLOCA_WITH_ALIGN and BUILT_IN_STACK_RESTORE builtins.
4324 (instrument_builtin_call): Pass gimple iterator to
4325 get_mem_refs_of_builtin_call.
4326 (last_alloca_addr): New global.
4327 * asan.h (asan_emit_allocas_unpoison): Declare.
4328 * builtins.c (expand_asan_emit_allocas_unpoison): New function.
4329 (expand_builtin): Handle BUILT_IN_ASAN_ALLOCAS_UNPOISON.
4330 * cfgexpand.c (expand_used_vars): Call asan_emit_allocas_unpoison
4331 if function calls alloca.
4332 * gimple-fold.c (replace_call_with_value): Remove static keyword.
4333 * gimple-fold.h (replace_call_with_value): Declare.
4334 * internal-fn.c: Include asan.h.
4335 * sanitizer.def (BUILT_IN_ASAN_ALLOCA_POISON,
4336 BUILT_IN_ASAN_ALLOCAS_UNPOISON): New builtins.
4338 2017-07-06 David Malcolm <dmalcolm@redhat.com>
4340 * Makefile.in (SELFTEST_FLAGS): Drop "-x c", moving it to...
4341 (C_SELFTEST_FLAGS): New.
4342 (CPP_SELFTEST_FLAGS): New.
4343 (SELFTEST_DEPS): New, from deps of s-selftest.
4344 (C_SELFTEST_DEPS): New, from deps of s-selftest.
4345 (CPP_SELFTEST_DEPS): New.
4346 (selftest): Add dependency on s-selftest-c++.
4347 (s-selftest): Rename to...
4348 (s-selftest-c): ...this, moving deps to SELFTEST_DEPS
4349 and C_SELFTEST_DEPS, and using C_SELFTEST_FLAGS rather
4350 than SELFTEST_FLAGS.
4351 (selftest-gdb): Rename to...
4352 (selftest-c-gdb): ...this, using C_SELFTEST_DEPS and
4354 (selftest-gdb): Reintroduce as an alias for selftest-c-gdb.
4355 (selftest-valgrind): Rename to...
4356 (selftest-c-valgrind): ...this, using C_SELFTEST_DEPS and
4358 (selftest-valgrind): Reintroduce as an alias for
4359 selftest-c-valgrind.
4360 (s-selftest-c++): New.
4361 (selftest-c++-gdb): New.
4362 (selftest-c++-valgrind): New.
4364 2017-07-06 Olivier Hainque <hainque@adacore.com>
4366 * gcc.c (process_command): When deciding if undefined variables
4367 should be ignored when processing specs, accept "gcc -v" as well.
4369 2017-07-06 Jan Hubicka <hubicka@ucw.cz>
4371 * auto-profile.c (afdo_set_bb_count, afdo_propagate_edge,
4372 afdo_annotate_cfg): Set counts/probabilities as determined by afdo.
4374 2017-07-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
4376 * config/arm/arm-cpus.in (armv8-r): Add new entry.
4377 * config/arm/arm-isa.h (ISA_ARMv8r): Define macro.
4378 * config/arm/arm-tables.opt: Regenerate.
4379 * config/arm/arm.h (enum base_architecture): Add BASE_ARCH_8R
4381 * doc/invoke.texi: Mention -march=armv8-r and its extensions.
4383 2017-07-06 Carl Love <cel@us.ibm.com>
4385 * ChangeLog: Clean up from mid air collision
4387 2017-07-06 Carl Love <cel@us.ibm.com>
4389 * config/rs6000/rs6000-c.c: Add support for built-in functions
4390 vector signed int vec_subc (vector signed int, vector signed int);
4391 vector signed __int128 vec_subc (vector signed __int128,
4392 vector signed __int128);
4393 vector unsigned __int128 vec_subc (vector unsigned __int128,
4394 vector unsigned __int128);
4395 vector signed int vec_sube (vector signed int, vector signed int,
4397 vector unsigned int vec_sube (vector unsigned int,
4398 vector unsigned int,
4399 vector unsigned int);
4400 vector signed __int128 vec_sube (vector signed __int128,
4401 vector signed __int128,
4402 vector signed__int128);
4403 vector unsigned __int128 vec_sube (vector unsigned __int128,
4404 vector unsigned __int128,
4405 vector unsigned __int128);
4406 vector signed int vec_subec (vector signed int, vector signed int,
4408 vector unsigned int vec_subec (vector unsigned int,
4409 vector unsigned int,
4410 vector unsigned int);
4411 vector signed __int128 vec_subec (vector signed __int128,
4412 vector signed __int128,
4413 vector signed__int128);
4414 vector unsigned __int128 vec_subec (vector unsigned __int128,
4415 vector unsigned __int128,
4416 vector unsigned __int128);
4417 * config/rs6000/rs6000.c (ALTIVEC_BUILTIN_VEC_SUBE,
4418 ALTIVEC_BUILTIN_VEC_SUBEC): Add ef_builtins.
4419 * config/rs6000/rs6000-builtin.def (SUBE, SUBEC): Add
4420 BU_ALTIVEC_OVERLOAD_X definitions.
4421 * config/rs6000/altivec.h (vec_sube, vec_subec): Add builtin defines.
4422 * doc/extend.texi: Update the built-in documentation file for the new
4425 2017-07-06 David Malcolm <dmalcolm@redhat.com>
4428 * diagnostic-show-locus.c (layout::layout): Use start and finish
4429 spelling location for the start and finish of each range.
4430 * genmatch.c (linemap_client_expand_location_to_spelling_point):
4431 Add unused aspect param.
4432 * input.c (expand_location_1): Add "aspect" param, and use it
4433 to access the correct part of the location.
4434 (expand_location): Pass LOCATION_ASPECT_CARET to new param of
4436 (expand_location_to_spelling_point): Likewise.
4437 (linemap_client_expand_location_to_spelling_point): Add "aspect"
4438 param, and pass it to expand_location_1.
4440 2017-07-06 Sebastian Peryt <sebastian.peryt@intel.com>
4442 * config/i386/avx512fintrin.h (_mm_mask_getexp_round_ss,
4443 _mm_maskz_getexp_round_ss, _mm_mask_getexp_round_sd,
4444 _mm_maskz_getexp_round_sd, _mm_mask_getmant_round_sd,
4445 _mm_maskz_getmant_round_sd, _mm_mask_getmant_round_ss,
4446 _mm_maskz_getmant_round_ss, _mm_mask_getexp_ss, _mm_maskz_getexp_ss,
4447 _mm_mask_getexp_sd, _mm_maskz_getexp_sd, _mm_mask_getmant_sd,
4448 _mm_maskz_getmant_sd, _mm_mask_getmant_ss,
4449 _mm_maskz_getmant_ss): New intrinsics.
4450 (__builtin_ia32_getexpss128_mask): Changed to ...
4451 __builtin_ia32_getexpss128_round ... this.
4452 (__builtin_ia32_getexpsd128_mask): Changed to ...
4453 __builtin_ia32_getexpsd128_round ... this.
4454 * config/i386/i386-builtin-types.def
4455 ((V2DF, V2DF, V2DF, INT, V2DF, UQI, INT),
4456 (V4SF, V4SF, V4SF, INT, V4SF, UQI, INT)): New function type aliases.
4457 * config/i386/i386-builtin.def (__builtin_ia32_getexpsd_mask_round,
4458 __builtin_ia32_getexpss_mask_round, __builtin_ia32_getmantsd_mask_round,
4459 __builtin_ia32_getmantss_mask_round): New builtins.
4460 * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_UQI_INT,
4461 V4SF_FTYPE_V4SF_V4SF_INT_V4SF_UQI_INT): Handle new types.
4462 (CODE_FOR_avx512f_vgetmantv2df_mask_round,
4463 CODE_FOR_avx512f_vgetmantv4sf_mask_round): New cases.
4464 * config/i386/sse.md
4465 (avx512f_sgetexp<mode><round_saeonly_name>): Changed to ...
4466 avx512f_sgetexp<mode><mask_scalar_name>
4467 <round_saeonly_scalar_name> ... this.
4468 (vgetexp<ssescalarmodesuffix>\t{<round_saeonly_op3>%2, %1, %0|
4469 %0, %1, %2<round_saeonly_op3>}): Changed to ...
4470 vgetexp<ssescalarmodesuffix>
4471 \t{<round_saeonly_scalar_mask_op3>%2, %1, %0<mask_scalar_operand3>|
4472 %0<mask_scalar_operand3>, %1, %2<round_saeonly_scalar_mask_op3>} ... this.
4473 (avx512f_vgetmant<mode><round_saeonly_name>): Changed to ...
4474 avx512f_vgetmant<mode><mask_scalar_name>
4475 <round_saeonly_scalar_name> ... this.
4476 (vgetmant<ssescalarmodesuffix>\t{%3, <round_saeonly_op4>%2, %1, %0|
4477 %0, %1, %2<round_saeonly_op4>, %3}): Changed to ...
4478 vgetmant<ssescalarmodesuffix>
4479 \t{%3, <round_saeonly_scalar_mask_op4>%2, %1, %0<mask_scalar_operand4>|
4480 %0<mask_scalar_operand4>, %1, %2
4481 <round_saeonly_scalar_mask_op4>, %3} ... this.
4482 * config/i386/subst.md (mask_scalar_operand4,
4483 round_saeonly_scalar_mask_operand4, round_saeonly_scalar_mask_op4,
4484 round_saeonly_scalar_nimm_predicate): New subst attributes.
4486 2017-07-06 Julia Koval <julia.koval@intel.com>
4488 * config/i386/i386.c (ix86_erase_embedded_rounding):
4489 Remove code for old rounding pattern.
4491 2017-07-06 Richard Earnshaw <rearnsha@arm.com>
4493 * config/arm/t-arm (GTM_H): Add arm-cpu.h.
4495 2017-07-06 Christophe Lyon <christophe.lyon@linaro.org>
4497 * doc/sourcebuild.texi (Test Directives, Variants of
4498 dg-require-support): Add documentation for dg-require-stack-check.
4500 2017-07-05 Sebastian Peryt <sebastian.peryt@intel.com>
4502 * config/i386/subst.md (mask_scalar, round_scalar,
4503 round_saeonly_scalar): New meta-templates.
4504 (mask_scalar_name, mask_scalar_operand3, round_scalar_name,
4505 round_scalar_mask_operand3, round_scalar_mask_op3,
4506 round_scalar_constraint, round_scalar_prefix, round_saeonly_scalar_name,
4507 round_saeonly_scalar_mask_operand3, round_saeonly_scalar_mask_op3,
4508 round_saeonly_scalar_constraint,
4509 round_saeonly_scalar_prefix): New subst attribute.
4510 * config/i386/sse.md
4511 (<sse>_vm<plusminus_insn><mode>3<mask_name><round_name>): Renamed to ...
4512 <sse>_vm<plusminus_insn><mode>3<mask_scalar_name>
4513 <round_scalar_name> ... this.
4514 (<sse>_vm<multdiv_mnemonic><mode>3<mask_name><round_name>): Renamed to ...
4515 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name>
4516 <round_scalar_name> ... this.
4517 (<sse>_vm<code><mode>3<mask_name><round_saeonly_name>): Renamed to ...
4518 <sse>_vm<code><mode>3<mask_scalar_name>
4519 <round_saeonly_scalar_name> ... this.
4520 (v<plusminus_mnemonic><ssescalarmodesuffix>
4521 \t{<round_mask_op3>%2, %1, %0<mask_operand3>|
4522 %0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}): Changed to ...
4523 v<plusminus_mnemonic><ssescalarmodesuffix>
4524 \t{<round_scalar_mask_op3>%2, %1, %0<mask_scalar_operand3>|
4525 %0<mask_scalar_operand3>, %1, %<iptr>2<round_scalar_mask_op3>} ... this.
4526 (v<multdiv_mnemonic><ssescalarmodesuffix>
4527 \t{<round_mask_op3>%2, %1, %0<mask_operand3>|
4528 %0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}): Changed to ...
4529 v<multdiv_mnemonic><ssescalarmodesuffix>
4530 \t{<round_scalar_mask_op3>%2, %1, %0<mask_scalar_operand3>|
4531 %0<mask_scalar_operand3>, %1, %<iptr>2<round_scalar_mask_op3>} ... this.
4532 (v<maxmin_float><ssescalarmodesuffix>
4533 \t{<round_saeonly_mask_op3>%2, %1, %0<mask_operand3>|
4534 %0<mask_operand3>, %1, %<iptr>2<round_saeonly_mask_op3>}): Changed to ...
4535 v<maxmin_float><ssescalarmodesuffix>
4536 \t{<round_saeonly_scalar_mask_op3>%2, %1, %0<mask_scalar_operand3>|
4537 %0<mask_scalar_operand3>, %1, %<iptr>2
4538 <round_saeonly_scalar_mask_op3>} ... this.
4540 2017-07-05 Richard Earnshaw <rearnsha@arm.com>
4542 * config/arm/arm.c (arm_fixed_condition_code_regs): New function.
4543 (TARGET_FIXED_CONDITION_CODE_REGS): Redefine.
4545 2017-07-05 Richard Sandiford <richard.sandiford@linaro.org>
4546 Alan Hayward <alan.hayward@arm.com>
4547 David Sherwood <david.sherwood@arm.com>
4549 * combine.c (simplify_if_then_else): Remove "enum" before
4551 * compare-elim.c (can_eliminate_compare): Likewise.
4552 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_std_type):
4554 (aarch64_lookup_simd_builtin_type): Likewise.
4555 (aarch64_simd_builtin_type): Likewise.
4556 (aarch64_init_simd_builtin_types): Likewise.
4557 (aarch64_simd_expand_args): Likewise.
4558 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist):
4560 (aarch64_reverse_mask): Likewise.
4561 (aarch64_simd_emit_reg_reg_move): Likewise.
4562 (aarch64_gen_adjusted_ldpstp): Likewise.
4563 (aarch64_ccmp_mode_to_code): Likewise.
4564 (aarch64_operands_ok_for_ldpstp): Likewise.
4565 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
4566 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class):
4568 (aarch64_min_divisions_for_recip_mul): Likewise.
4569 (aarch64_reassociation_width): Likewise.
4570 (aarch64_get_condition_code_1): Likewise.
4571 (aarch64_simd_emit_reg_reg_move): Likewise.
4572 (aarch64_simd_attr_length_rglist): Likewise.
4573 (aarch64_reverse_mask): Likewise.
4574 (aarch64_operands_ok_for_ldpstp): Likewise.
4575 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
4576 (aarch64_gen_adjusted_ldpstp): Likewise.
4577 * config/aarch64/cortex-a57-fma-steering.c (fma_node::rename):
4579 * config/arc/arc.c (legitimate_offset_address_p): Likewise.
4580 * config/arm/arm-builtins.c (arm_simd_builtin_std_type): Likewise.
4581 (arm_lookup_simd_builtin_type): Likewise.
4582 (arm_simd_builtin_type): Likewise.
4583 (arm_init_simd_builtin_types): Likewise.
4584 (arm_expand_builtin_args): Likewise.
4585 * config/arm/arm-protos.h (arm_expand_builtin): Likewise.
4586 * config/ft32/ft32.c (ft32_libcall_value): Likewise.
4587 (ft32_setup_incoming_varargs): Likewise.
4588 (ft32_function_arg): Likewise.
4589 (ft32_function_arg_advance): Likewise.
4590 (ft32_pass_by_reference): Likewise.
4591 (ft32_arg_partial_bytes): Likewise.
4592 (ft32_valid_pointer_mode): Likewise.
4593 (ft32_addr_space_pointer_mode): Likewise.
4594 (ft32_addr_space_legitimate_address_p): Likewise.
4595 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple):
4597 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
4598 (ix86_emit_outlined_ms2sysv_restore): Likewise.
4599 (iamcu_alignment): Likewise.
4600 (canonicalize_vector_int_perm): Likewise.
4601 (ix86_noce_conversion_profitable_p): Likewise.
4602 (ix86_mpx_bound_mode): Likewise.
4603 (ix86_operands_ok_for_move_multiple): Likewise.
4604 * config/microblaze/microblaze-protos.h
4605 (microblaze_expand_conditional_branch_reg): Likewise.
4606 * config/microblaze/microblaze.c
4607 (microblaze_expand_conditional_branch_reg): Likewise.
4608 * config/powerpcspe/powerpcspe.c (rs6000_init_hard_regno_mode_ok):
4610 (rs6000_reassociation_width): Likewise.
4611 (rs6000_invalid_binary_op): Likewise.
4612 (fusion_p9_p): Likewise.
4613 (emit_fusion_p9_load): Likewise.
4614 (emit_fusion_p9_store): Likewise.
4615 * config/riscv/riscv-protos.h (riscv_regno_mode_ok_for_base_p):
4617 (riscv_hard_regno_mode_ok_p): Likewise.
4618 (riscv_address_insns): Likewise.
4619 (riscv_split_symbol): Likewise.
4620 (riscv_legitimize_move): Likewise.
4621 (riscv_function_value): Likewise.
4622 (riscv_hard_regno_nregs): Likewise.
4623 (riscv_expand_builtin): Likewise.
4624 * config/riscv/riscv.c (riscv_build_integer_1): Likewise.
4625 (riscv_build_integer): Likewise.
4626 (riscv_split_integer): Likewise.
4627 (riscv_legitimate_constant_p): Likewise.
4628 (riscv_cannot_force_const_mem): Likewise.
4629 (riscv_regno_mode_ok_for_base_p): Likewise.
4630 (riscv_valid_base_register_p): Likewise.
4631 (riscv_valid_offset_p): Likewise.
4632 (riscv_valid_lo_sum_p): Likewise.
4633 (riscv_classify_address): Likewise.
4634 (riscv_legitimate_address_p): Likewise.
4635 (riscv_address_insns): Likewise.
4636 (riscv_load_store_insns): Likewise.
4637 (riscv_force_binary): Likewise.
4638 (riscv_split_symbol): Likewise.
4639 (riscv_force_address): Likewise.
4640 (riscv_legitimize_address): Likewise.
4641 (riscv_move_integer): Likewise.
4642 (riscv_legitimize_const_move): Likewise.
4643 (riscv_legitimize_move): Likewise.
4644 (riscv_address_cost): Likewise.
4645 (riscv_subword): Likewise.
4646 (riscv_output_move): Likewise.
4647 (riscv_canonicalize_int_order_test): Likewise.
4648 (riscv_emit_int_order_test): Likewise.
4649 (riscv_function_arg_boundary): Likewise.
4650 (riscv_pass_mode_in_fpr_p): Likewise.
4651 (riscv_pass_fpr_single): Likewise.
4652 (riscv_pass_fpr_pair): Likewise.
4653 (riscv_get_arg_info): Likewise.
4654 (riscv_function_arg): Likewise.
4655 (riscv_function_arg_advance): Likewise.
4656 (riscv_arg_partial_bytes): Likewise.
4657 (riscv_function_value): Likewise.
4658 (riscv_pass_by_reference): Likewise.
4659 (riscv_setup_incoming_varargs): Likewise.
4660 (riscv_print_operand): Likewise.
4661 (riscv_elf_select_rtx_section): Likewise.
4662 (riscv_save_restore_reg): Likewise.
4663 (riscv_for_each_saved_reg): Likewise.
4664 (riscv_register_move_cost): Likewise.
4665 (riscv_hard_regno_mode_ok_p): Likewise.
4666 (riscv_hard_regno_nregs): Likewise.
4667 (riscv_class_max_nregs): Likewise.
4668 (riscv_memory_move_cost): Likewise.
4669 * config/rl78/rl78-protos.h (rl78_split_movsi): Likewise.
4670 * config/rl78/rl78.c (rl78_split_movsi): Likewise.
4671 (rl78_addr_space_address_mode): Likewise.
4672 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
4674 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Likewise.
4675 (rs6000_reassociation_width): Likewise.
4676 (rs6000_invalid_binary_op): Likewise.
4677 (fusion_p9_p): Likewise.
4678 (emit_fusion_p9_load): Likewise.
4679 (emit_fusion_p9_store): Likewise.
4680 * config/visium/visium-protos.h (prepare_move_operands): Likewise.
4681 (ok_for_simple_move_operands): Likewise.
4682 (ok_for_simple_move_strict_operands): Likewise.
4683 (ok_for_simple_arith_logic_operands): Likewise.
4684 (visium_legitimize_reload_address): Likewise.
4685 (visium_select_cc_mode): Likewise.
4686 (output_cbranch): Likewise.
4687 (visium_split_double_move): Likewise.
4688 (visium_expand_copysign): Likewise.
4689 (visium_expand_int_cstore): Likewise.
4690 (visium_expand_fp_cstore): Likewise.
4691 * config/visium/visium.c (visium_pass_by_reference): Likewise.
4692 (visium_function_arg): Likewise.
4693 (visium_function_arg_advance): Likewise.
4694 (visium_libcall_value): Likewise.
4695 (visium_setup_incoming_varargs): Likewise.
4696 (visium_legitimate_constant_p): Likewise.
4697 (visium_legitimate_address_p): Likewise.
4698 (visium_legitimize_address): Likewise.
4699 (visium_secondary_reload): Likewise.
4700 (visium_register_move_cost): Likewise.
4701 (visium_memory_move_cost): Likewise.
4702 (prepare_move_operands): Likewise.
4703 (ok_for_simple_move_operands): Likewise.
4704 (ok_for_simple_move_strict_operands): Likewise.
4705 (ok_for_simple_arith_logic_operands): Likewise.
4706 (visium_function_value_1): Likewise.
4707 (rtx_ok_for_offset_p): Likewise.
4708 (visium_legitimize_reload_address): Likewise.
4709 (visium_split_double_move): Likewise.
4710 (visium_expand_copysign): Likewise.
4711 (visium_expand_int_cstore): Likewise.
4712 (visium_expand_fp_cstore): Likewise.
4713 (visium_split_cstore): Likewise.
4714 (visium_select_cc_mode): Likewise.
4715 (visium_split_cbranch): Likewise.
4716 (output_cbranch): Likewise.
4717 (visium_print_operand_address): Likewise.
4718 * expmed.c (flip_storage_order): Likewise.
4719 * expmed.h (emit_cstore): Likewise.
4720 (flip_storage_order): Likewise.
4721 * genrecog.c (validate_pattern): Likewise.
4722 * hsa-gen.c (gen_hsa_addr): Likewise.
4723 * internal-fn.c (expand_arith_overflow): Likewise.
4724 * ira-color.c (allocno_copy_cost_saving): Likewise.
4725 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4726 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
4727 (process_invariant_for_inheritance): Likewise.
4728 * lra-eliminations.c (move_plus_up): Likewise.
4729 * omp-low.c (lower_oacc_reductions): Likewise.
4730 * simplify-rtx.c (simplify_subreg): Likewise.
4731 * target.def (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
4732 (TARGET_CHKP_BOUND_MODE): Likewise..
4733 * targhooks.c (default_chkp_bound_mode): Likewise.
4734 (default_setup_incoming_vararg_bounds): Likewise.
4735 * targhooks.h (default_chkp_bound_mode): Likewise.
4736 (default_setup_incoming_vararg_bounds): Likewise.
4737 * tree-ssa-math-opts.c (divmod_candidate_p): Likewise.
4738 * tree-vect-loop.c (calc_vec_perm_mask_for_shift): Likewise.
4739 (have_whole_vector_shift): Likewise.
4740 * tree-vect-stmts.c (vectorizable_load): Likewise.
4741 * doc/tm.texi: Regenerate.
4743 2017-07-05 Georg-Johann Lay <avr@gjlay.de>
4745 Graceful degrade if Binutils PR21472 is not available.
4748 * configure.ac [target=avr]: WARN instead of ERROR if avrxmega3
4749 .rodata in flash test fails.
4750 (HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH): Define it if test passes.
4751 * confgure: Regenerate.
4752 * config.in: Regenerate.
4753 * config/avr/avr.c (avr_asm_named_section)
4754 [HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH]: Only trigger
4755 __do_copy_data for stuff in .rodata if flash_pm_offset = 0.
4756 (avr_asm_init_sections): Same.
4758 2017-07-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4760 * config/arm/neon.md (fma<VCVTF:mode>4): Remove %?.
4761 (fma<VH:mode>4_intrinsic): Likewise.
4762 (*fmsub<VCVTF:mode>4): Likewise.
4763 (*fmsub<VH:mode>4_intrinsic): Likewise.
4765 2017-07-05 Georg-Johann Lay <avr@gjlay.de>
4768 * config/avr/avr.c (avr_out_movhi_mr_r_xmega) [CONSTANT_ADDRESS_P]:
4769 Don't depend on "optimize > 0".
4770 (out_movhi_r_mr, out_movqi_mr_r): Same.
4771 (out_movhi_mr_r, out_movqi_r_mr): Same.
4772 (avr_address_cost) [CONSTANT_ADDRESS_P]: Don't depend cost for
4773 io_address_operand on "optimize > 0".
4775 2017-07-05 Bin Cheng <bin.cheng@arm.com>
4777 * tree-loop-distribution.c: Add general explanantion on the pass.
4778 (generate_loops_for_partition): Mark distributed loop.
4779 (pg_add_dependence_edges): New parameter. Handle alias data
4780 dependence specially and record it in the parameter if asked.
4781 (struct pg_vdata, pg_edata, pg_edge_callback_data): New structs.
4782 (init_partition_graph_vertices, add_partition_graph_edge): New.
4783 (pg_skip_alias_edge, free_partition_graph_edata_cb): New.
4784 (free_partition_graph_vdata, build_partition_graph): New.
4785 (sort_partitions_by_post_order, merge_dep_scc_partitions): New.
4786 (pg_collect_alias_ddrs, break_alias_scc_partitions): New.
4787 (data_ref_segment_size, latch_dominated_by_data_ref): New.
4788 (compute_alias_check_pairs, version_loop_by_alias_check): New.
4789 (version_for_distribution_p, finalize_partitions): New.
4790 (distribute_loop): Handle alias data dependence specially. Factor
4791 out loop fusion code as functions and call these functions.
4793 2017-07-05 Bin Cheng <bin.cheng@arm.com>
4795 * tree-loop-distribution.c (classify_partition): New parameter and
4796 better handle reduction statement.
4797 (rdg_build_partitions): Revise comment.
4798 (distribute_loop): Compute statements in all partitions and pass it
4799 to classify_partition.
4801 2017-07-05 Bin Cheng <bin.cheng@arm.com>
4803 * tree-loop-distribution.c (enum partition_type): New.
4804 (struct partition): New field type.
4805 (partition_merge_into): Add parameter. Update partition type.
4806 (data_dep_in_cycle_p, update_type_for_merge): New functions.
4807 (build_rdg_partition_for_vertex): Compute partition type.
4808 (rdg_build_partitions): Dump partition type.
4809 (distribute_loop): Update calls to partition_merge_into.
4811 2017-07-05 Bin Cheng <bin.cheng@arm.com>
4813 * tree-loop-distribution.c (struct ddr_hasher): New.
4814 (ddr_hasher::hash, ::equal, get_data_dependence): New function.
4816 (classify_partition): Call get_data_dependence.
4817 (pg_add_dependence_edges): Ditto.
4818 (distribute_loop): Release data dependence hash table.
4820 2017-07-05 Bin Cheng <bin.cheng@arm.com>
4822 * tree-loop-distribution.c (ref_base_address): Delete.
4823 (similar_memory_accesses): Rename ...
4824 (share_memory_accesses): ... to this. Check if partitions access
4825 the same memory reference.
4826 (distribute_loop): Call share_memory_accesses.
4828 2017-07-05 Bin Cheng <bin.cheng@arm.com>
4830 * tree-loop-distribution.c (struct partition): New field recording
4832 (partition_alloc, partition_free): Init and release data refs.
4833 (partition_merge_into): Merge data refs.
4834 (build_rdg_partition_for_vertex): Collect data refs for partition.
4835 (pg_add_dependence_edges): Change parameters from vector to bitmap.
4837 (distribute_loop): Remve data refs from vertice data of partition
4840 2017-07-05 Bin Cheng <bin.cheng@arm.com>
4842 * tree-loop-distribution.c (params.h): Include header file.
4843 (MAX_DATAREFS_NUM, DR_INDEX): New macro.
4844 (datarefs_vec): New global var.
4845 (create_rdg_vertices): Use datarefs_vec directly.
4846 (free_rdg): Don't free data references.
4847 (build_rdg): Update use. Don't free data references.
4848 (distribute_loop): Compute global variable for data references.
4849 Bail out if there are too many data references.
4851 2017-07-05 Bin Cheng <bin.cheng@arm.com>
4853 * tree-loop-distribution.c (loop_nest): New global var.
4854 (build_rdg): Use loop directly, rather than loop nest.
4855 (pg_add_dependence_edges): Remove loop nest parameter. Use global
4857 (distribute_loop): Compute global variable loop nest. Update use.
4859 2017-07-05 Bin Cheng <bin.cheng@arm.com>
4861 * tree-loop-distribution.c (enum fuse_type, fuse_message): New.
4862 (partition_merge_into): New parameter. Dump reason for fusion.
4863 (distribute_loop): Update use of partition_merge_into.
4865 2017-07-05 Bin Cheng <bin.cheng@arm.com>
4867 * tree-loop-distribution.c (bb_top_order_index): New.
4868 (bb_top_order_index_size, bb_top_order_cmp): New.
4869 (stmts_from_loop): Use topological order.
4870 (pass_loop_distribution::execute): Compute and release topological
4871 order for basic blocks.
4873 2017-07-05 Bin Cheng <bin.cheng@arm.com>
4875 * tree-loop-distribution.c (pass_loop_distribution::execute): Skip
4878 2017-07-05 Bin Cheng <bin.cheng@arm.com>
4880 * cfgloop.h (struct loop): Add comment. New field orig_loop_num.
4881 * cfgloopmanip.c (lv_adjust_loop_entry_edge): Comment change.
4882 * internal-fn.c (expand_LOOP_DIST_ALIAS): New function.
4883 * internal-fn.def (LOOP_DIST_ALIAS): New.
4884 * tree-vectorizer.c (fold_loop_vectorized_call): Rename to ...
4885 (fold_loop_internal_call): ... this.
4886 (vect_loop_dist_alias_call): New function.
4887 (set_uid_loop_bbs): Call fold_loop_internal_call.
4888 (vectorize_loops): Fold IFN_LOOP_VECTORIZED and IFN_LOOP_DIST_ALIAS
4891 2017-07-04 Uros Bizjak <ubizjak@gmail.com>
4894 * config/i386/i386.md (setcc + movzbl/and to xor + setcc peepholes):
4895 Require dead FLAGS_REG at the beginning of a peephole.
4897 2017-07-04 Uros Bizjak <ubizjak@gmail.com>
4900 * config/i386/adxintrin.h (_subborrow_u32): Swap _X and _Y
4901 arguments in the call to __builtin_ia32_sbb_u32.
4902 (_subborrow_u64): Swap _X and _Y arguments in the call to
4903 __builtin_ia32_sbb_u64.
4905 2017-07-04 Jakub Jelinek <jakub@redhat.com>
4908 * tree-vrp.c (compare_assert_loc): Turn into a function template
4909 with stable template parameter. Only test if a->e is NULL,
4910 !a->e == !b->e has been verified already. Use e == NULL or
4911 e != NULL instead of e or ! e tests. If stable is true, don't use
4912 iterative_hash_expr, on the other side allow a or b or both NULL
4913 and sort the NULLs last.
4914 (process_assert_insertions): Sort using compare_assert_loc<false>
4915 instead of compare_assert_loc, later sort using
4916 compare_assert_loc<true> before calling process_assert_insertions_for
4917 in a loop. Use break instead of continue once seen NULL pointer.
4919 2017-07-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
4921 * config/arm/driver-arm.c (arm_cpu_table): Add entry for ARM
4922 Cortex-R7 and Cortex-R8 processors.
4924 2017-07-04 Jan Hubicka <hubicka@ucw.cz>
4926 * ipa-utils.c (ipa_merge_profiles): Fix merging when dst is
4927 uninitialized while src is not.
4929 2017-07-04 Richard Earnshaw <rearnsha@arm.com>
4931 * common/config/arm/arm-common.c: Adjust include path for
4933 * config/arm/t-arm (TM_H): Adjust path for arm-cpu.h.
4934 (arm-cpu.h): Create in build directory. Adjust dependency rules.
4935 (arm-cpu-data.h): Likewise.
4936 (arm-cpu-cdata.h): Likewise.
4937 * config/arm/arm-cpu.h: Delete.
4938 * config/arm/arm-cpu-cdata.h: Delete.
4939 * config/arm/arm-cpu-data.h: Delete.
4941 2017-07-04 James Greenhalgh <james.greenhalgh@arm.com>
4943 * config/arm/arm-cpus.in (cortex-a55): New.
4944 (cortex-a75): Likewise.
4945 (cortex-a75.cortex-a55): Likewise.
4946 * config/arm/driver-arm.c (arm_cpu_table): Add cortex-a55 and
4948 * doc/invoke.texi (-mcpu): Document cortex-a55 and cortex-a75.
4949 * config/arm/arm-cpu-cdata.h: Regenerate.
4950 * config/arm/arm-cpu-data.h: Regenerate.
4951 * config/arm/arm-cpu.h: Regenerate.
4952 * config/arm/arm-tables.opt: Regenerate.
4953 * config/arm/arm-tune.md: Regenerate.
4955 2017-07-04 Jan Hubicka <hubicka@ucw.cz>
4957 * haifa-sched.c (sched_create_recovery_edges): Update profile.
4959 2017-07-04 Jan Hubicka <hubicka@ucw.cz>
4961 * bb-reorder.c (better_edge_p): Fix handling of uninitialized
4964 2017-07-04 Richard Sandiford <richard.sandiford@linaro.org>
4966 PR tree-optimization/81292
4967 * tree-ssa-strlen.c (handle_builtin_strlen): When setting
4968 full_string_p, also call adjust_related_strinfos if the adjustment
4969 is simple, otherwise invalidate related strinfos.
4971 2017-07-04 Martin Liska <mliska@suse.cz>
4974 * sanopt.c (sanitize_rewrite_addressable_params): Mark the
4975 newly created variable as DECL_IGNORED_P.
4977 2017-07-04 Martin Liska <mliska@suse.cz>
4980 * ipa-inline.c (inline_small_functions):
4981 Use xstrdup_for_dump.
4983 2017-07-04 Tom de Vries <tom@codesourcery.com>
4985 * graph.c (draw_cfg_edges): Save and restore EDGE_DFS_BACK.
4987 2017-07-03 Dominique d'Humieres <dominiq@lps.ens.fr>
4990 * config/darwin.c (darwin_function_switched_text_sections):
4993 2017-07-03 Jan Hubicka <hubicka@ucw.cz>
4995 * tree-vect-loop-manip.c (vect_do_peeling): Fix scaling up.
4997 2017-07-03 Richard Earnshaw <rearnsha@arm.com>
4999 * doc/invoke.texi (ARM Options): Add -mbe8 and -mbe32 to option summary.
5001 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
5003 * tree-vect-loop.c (vect_analyze_loop_2): Treat min_scalar_loop_bound,
5004 min_profitable_iters, and th as inclusive lower bounds.
5005 Fix LOOP_VINFO_PEELING_FOR_GAPS condition.
5006 (vect_estimate_min_profitable_iters): Return inclusive lower bounds
5007 for min_profitable_iters and min_profitable_estimate.
5008 (vect_transform_loop): Treat th as an inclusive lower bound.
5009 * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
5011 2017-07-03 Dominique d'Humieres <dominiq@lps.ens.fr>
5014 * config/darwin.c (darwin_function_switched_text_sections):
5015 Replace DECL_NAME with DECL_ASSEMBLER_NAME, split assemble_name_raw
5016 in two pieces, and suppress the use of buf.
5018 2017-07-03 Nathan Sidwell <nathan@acm.org>
5020 * hash-table.h (hash_table_mod1): Fix indentation.
5022 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
5025 * predict.c (force_edge_cold): Be more careful about propagation
5027 * profile-count.h (profile_probability::guessed,
5028 profile_probability::fdo, profile_count::guessed, profile_count::fdo):
5030 * tree-ssa-threadupdate.c (recompute_probabilities): Result is guessed.
5032 2017-07-03 James Greenhalgh <james.greenhalgh@arm.com>
5034 * doc/invoke.texi (rcpc architecture extension): Document it.
5036 2017-07-03 Richard Biener <rguenther@suse.de>
5038 PR tree-optimization/60510
5039 * tree-vect-loop.c (vect_create_epilog_for_reduction): Pass in
5040 the scalar reduction PHI and use it.
5041 (vectorizable_reduction): Properly guard the single_defuse_cycle
5042 path for non-SLP reduction chains where we cannot use it.
5043 Rework reduc_def/index and vector type deduction. Rework
5044 vector operand gathering during reduction op code-gen.
5045 * tree-vect-slp.c (vect_analyze_slp): For failed SLP reduction
5046 chains dissolve the chain and leave it to non-SLP reduction
5049 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
5051 * tree-data-ref.h (dr_alignment): Declare.
5052 * tree-data-ref.c (dr_alignment): New function.
5053 * tree-vectorizer.h (dataref_aux): Remove base_element_aligned.
5054 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Don't
5056 * tree-vect-stmts.c (vectorizable_store): Use dr_alignment.
5058 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
5060 * tree-data-ref.h (innermost_loop_behavior): Add base_alignment
5061 and base_misalignment fields.
5062 (DR_BASE_ALIGNMENT, DR_BASE_MISALIGNMENT): New macros.
5063 * tree-data-ref.c: Include builtins.h.
5064 (dr_analyze_innermost): Set up the new innmost_loop_behavior fields.
5065 * tree-vectorizer.h (STMT_VINFO_DR_BASE_ALIGNMENT): New macro.
5066 (STMT_VINFO_DR_BASE_MISALIGNMENT): Likewise.
5067 * tree-vect-data-refs.c: Include tree-cfg.h.
5068 (vect_compute_data_ref_alignment): Use the new innermost_loop_behavior
5069 fields instead of calculating an alignment here.
5070 (vect_analyze_data_refs): Use dr_analyze_innermost. Dump the new
5071 innermost_loop_behavior fields.
5073 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
5075 * tree-data-ref.h (innermost_loop_behavior): Add a step_alignment
5077 (DR_STEP_ALIGNMENT): New macro.
5078 * tree-vectorizer.h (STMT_VINFO_DR_STEP_ALIGNMENT): Likewise.
5079 * tree-data-ref.c (dr_analyze_innermost): Initalize step_alignment.
5080 (create_data_ref): Print it.
5081 * tree-vect-stmts.c (vectorizable_load): Use the step alignment
5082 to tell whether the step preserves vector (mis)alignment.
5083 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
5084 Move the check for an integer step and generalise to all INTEGER_CST.
5085 (vect_analyze_data_refs): Set DR_STEP_ALIGNMENT when setting DR_STEP.
5086 Print the outer step alignment.
5088 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
5090 * tree-data-ref.h (innermost_loop_behavior): Replace aligned_to
5091 with offset_alignment.
5092 (DR_ALIGNED_TO): Delete.
5093 (DR_OFFSET_ALIGNMENT): New macro.
5094 * tree-vectorizer.h (STMT_VINFO_DR_ALIGNED_TO): Delete.
5095 (STMT_VINFO_DR_OFFSET_ALIGNMENT): New macro.
5096 * tree-data-ref.c (dr_analyze_innermost): Update after above changes.
5097 (create_data_ref): Likewise.
5098 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
5099 (vect_analyze_data_refs): Likewise.
5100 * tree-if-conv.c (if_convertible_loop_p_1): Use memset before
5101 creating dummy innermost behavior.
5103 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
5105 * tree-data-ref.h (dr_analyze_innermost): Replace the dr argument
5106 with a "innermost_loop_behavior *" and refeence tree.
5107 * tree-data-ref.c (dr_analyze_innermost): Likewise.
5108 (create_data_ref): Update call accordingly.
5109 * tree-predcom.c (find_looparound_phi): Likewise.
5111 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
5113 * tree-vectorizer.h (_stmt_vec_info): Replace individual dr_*
5114 fields with dr_wrt_vec_loop.
5115 (STMT_VINFO_DR_BASE_ADDRESS, STMT_VINFO_DR_INIT, STMT_VINFO_DR_OFFSET)
5116 (STMT_VINFO_DR_STEP, STMT_VINFO_DR_ALIGNED_TO): Update accordingly.
5117 (STMT_VINFO_DR_WRT_VEC_LOOP): New macro.
5118 (vect_dr_behavior): New function.
5119 (vect_create_addr_base_for_vector_ref): Remove loop parameter.
5120 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
5121 vect_dr_behavior. Use a step_preserves_misalignment_p boolean to
5122 track whether the step preserves the misalignment.
5123 (vect_create_addr_base_for_vector_ref): Remove loop parameter.
5124 Use vect_dr_behavior.
5125 (vect_setup_realignment): Update call accordingly.
5126 (vect_create_data_ref_ptr): Likewise. Use vect_dr_behavior.
5127 * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Update
5128 call to vect_create_addr_base_for_vector_ref.
5129 (vect_create_cond_for_align_checks): Likewise.
5130 * tree-vect-patterns.c (vect_recog_bool_pattern): Copy
5131 STMT_VINFO_DR_WRT_VEC_LOOP as a block.
5132 (vect_recog_mask_conversion_pattern): Likewise.
5133 * tree-vect-stmts.c (compare_step_with_zero): Use vect_dr_behavior.
5134 (new_stmt_vec_info): Remove redundant zeroing.
5136 2017-07-03 Richard Earnshaw <rearnsha@arm.com>
5138 * common/config/arm/arm-common.c (arm_be8_option): New function.
5139 * config/arm/arm-isa.h (isa_feature): Add new feature bit isa_bit_be8.
5140 (ISA_ARMv6): Add isa_bit_be8.
5141 * config/arm/arm.h (arm_be8_option): Add prototype.
5142 (BE8_SPEC_FUNCTION): New define.
5143 (EXTRA_SPEC_FUNCTIONS): Add BE8_SPEC_FUNCTION.
5144 * config/arm/arm.opt (mbig-endian): Mark as Negative of mlittle-endian.
5145 (mlittle-endian): Similarly.
5146 (mbe8, mbe32): New options.
5147 * config/arm/bpabi.h (BE8_LINK_SPEC): Call arm_be8_option.
5148 * doc/invoke.texi (ARM Options): Document -mbe8 and -mbe32.
5150 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
5152 * tree-cfg.c (gimple_find_sub_bbs): Fix profile updating.
5154 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
5156 * tree-cfgcleanup.c (want_merge_blocks_p): New function.
5157 (cleanup_tree_cfg_bb): Use it.
5158 * profile-count.h (profile_count::of_for_merging, profile_count::merge):
5160 * tree-cfg.c (gimple_merge_blocks): Use profile_count::merge.
5162 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
5165 * loop-doloop.c (add_test): Update profile.
5167 2017-07-03 Martin Liska <mliska@suse.cz>
5170 * sanopt.c (rewrite_usage_of_param): New function.
5171 (sanitize_rewrite_addressable_params): Likewise.
5172 (pass_sanopt::execute): Call rewrite_usage_of_param.
5174 2017-07-03 Richard Biener <rguenther@suse.de>
5176 * tree-vect-loop.c (vect_create_epilog_for_reduction): Revert
5177 back to using VIEW_CONVERT_EXPR.
5179 2017-07-03 Martin Liska <mliska@suse.cz>
5182 * doc/extend.texi: Document when a resolver function is
5183 generated for target_clones.
5185 2017-07-03 Martin Liska <mliska@suse.cz>
5187 * asan.c (asan_emit_stack_protection): Unpoison just red zones
5188 and shadow memory of auto variables which are subject of
5189 use-after-scope sanitization.
5190 (asan_expand_mark_ifn): Add do set only when is_poison.
5192 2016-07-03 Richard Biener <rguenther@suse.de>
5194 * tree-vect-loop.c (vect_analyze_loop_operations): Also analyze
5196 (vect_force_simple_reduction): Record reduction def -> phi mapping.
5197 (vectorizable_reduction): Perform reduction PHI creation when
5198 visiting a reduction PHI and adjust and simplify code generation
5199 phase of the reduction op. Cache dts, use fold_binary, not fold_build2.
5200 (vect_transform_loop): Visit reduction PHIs.
5201 * tree-vect-slp.c (vect_get_and_check_slp_defs): Record reduction
5202 defs into the SLP tree.
5203 (vect_build_slp_tree): Reduction defs terminate the recursion.
5204 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): Allow lookup
5206 (vect_get_vec_defs_for_stmt_copy): Export.
5207 (vect_get_vec_defs): Likewise.
5208 * tree-vectorizer.h (struct _stmt_vec_info): Amend reduc_def
5210 (vect_get_vec_defs_for_stmt_copy): Declare.
5211 (vect_get_vec_defs): Likewise.
5213 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
5215 * tree-data-ref.c (dr_analyze_innermost): Replace the "nest"
5216 parameter with a "loop" parameter and use it instead of the
5217 loop containing DR_STMT. Don't check simple_iv when doing
5218 BB analysis. Describe the two analysis modes in the comment.
5220 2017-07-03 Tom de Vries <tom@codesourcery.com>
5222 PR tree-optimization/69468
5223 * tree-ssa-tail-merge.c (ignore_edge_flags): New constant.
5224 (find_same_succ_bb): Handle ignore_edge_flags.
5226 2017-07-03 Tom de Vries <tom@codesourcery.com>
5228 PR tree-optimization/81192
5229 * tree-ssa-tail-merge.c (same_succ_hash): Use bb->loop_father->num in
5231 (same_succ::equal): Don't find bbs to be equal if bb->loop_father
5233 (find_same_succ_bb): Remove obsolete test on bb->loop_father->latch.
5235 2017-07-03 Tom de Vries <tom@codesourcery.com>
5237 PR tree-optimization/81192
5238 * tree-ssa-tail-merge.c (same_succ_flush_bb): Handle
5239 BB_SAME_SUCC (bb) == NULL.
5241 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
5243 * cfgrtl.c (rtl_verify_edges): Enable checking of profile_probability
5246 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
5248 * dumpfile.c: Include profile-count.h
5249 * tree-cfg.c (gimple_duplicate_sese_tail): Drop UNUSED attributes;
5251 (insert_cond_bb): Update profile.
5252 * tree-cfg.h (insert_cond_bb): Update prototype.
5253 * tree-chkp-opt.c (chkp_optimize_string_function_calls): Update.
5254 * tree-dump.c: Do not include tree-cfg.
5256 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
5258 * bb-reorder.c (fix_up_crossing_landing_pad): Update profile.
5260 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
5262 * expect.c (dw2_build_landing_pads): Update profile of the landing pad
5265 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
5267 * tree-complex.c (expand_complex_div_wide): update profile.
5269 2017-07-02 Richard Sandiford <richard.sandiford@linaro.org>
5270 Alan Hayward <alan.hayward@arm.com>
5271 David Sherwood <david.sherwood@arm.com>
5273 * Makefile.in (MACHMODE_H): Remove insn-modes.h
5274 (CORETYPES_H): New define.
5275 (MOSTLYCLEANFILES): Add insn-modes-inline.h.
5276 (insn-modes-inline.h, s-modes-inline-h): New rules.
5277 (generated_files): Add insn-modes-inline.h.
5278 (RTL_BASE_H, TREE_CORE_H): Use CORETYPES_H instead of coretypes.h.
5279 (build/gensupport.o, build/ggc-none.o, build/print-rtl.o): Likewise.
5280 (build/read-md.o, build/read-rtl.o, build/rtl.o): Likewise.
5281 (build/vec.o, build/hash-table.o, build/inchash.o): Likewise.
5282 (build/gencondmd.o, build/genattr.o, build/genattr-common.o): Likewise.
5283 (build/genattrtab.o, build/genautomata.o, build/gencheck.o): Likewise.
5284 (build/gencodes.o, build/genconditions.o): Likewise.
5285 (build/genconfig.o, build/genconstants.o, build/genemit.o): Likewise.
5286 (build/genenums.o, build/genextract.o, build/genflags.o): Likewise.
5287 (build/gentarget-def.o, build/genmddeps.o, build/genopinit.o)
5288 (build/genoutput.o, build/genpeep.o, build/genpreds.o): Likewise.
5289 (build/genrecog.o, build/genmddump.o, build/genmatch.o): Likewise.
5290 (build/gencfn-macros.o, build/gcov-iov.o): Likewise.
5291 * coretypes.h: Include everything up to real.h for generators.
5292 Include insn-modes.h first. Include wide-int-print.h after
5293 wide-int.h. Include insn-modes-inline.h and then machmode.h.
5294 * machmode.h: Don't include insn-modes.h here.
5295 * function-tests.c: Remove includes of signop.h, machmode.h,
5296 double-int.h and wide-int.h.
5298 * gcc-rich-location.c: Remove includes of machmode.h, double-int.h
5300 * optc-save-gen.awk: Likewise.
5301 * gencheck.c (BITS_PER_UNIT): Delete dummy definition.
5302 * godump.c: Remove include of wide-int-print.h.
5303 * pretty-print.h: Likewise.
5304 * wide-int-print.cc: Likewise.
5305 * wide-int.cc: Likewise.
5306 * hash-map-tests.c: Remove include of signop.h.
5307 * hash-set-tests.c: Likewise.
5308 * rtl-tests.c: Likewise.
5309 * mkconfig.sh: Remove include of machmode.h.
5310 * genmodes.c (emit_insn_modes_h): Split emission of inline functions
5312 (emit_insn_modes_inline_h): ...this new function. Emit the code
5313 into an insn-modes-inline.h header file, adding appropriate
5314 include guards and end comments.
5315 (emit_insn_modes_c_header): Remove include of machmode.h.
5316 (emit_min_insn_modes_c_header): Include coretypes.h rather than
5318 (main): Handle -i flag and call emit_insn_modes_inline_h when
5321 2017-07-02 Richard Sandiford <richard.sandiford@linaro.org>
5323 * tree-ssa-strlen.c (strinfo): Rename the length field to
5324 nonzero_chars. Add a full_string_p field.
5325 (compare_nonzero_chars, zero_length_string_p): New functions.
5326 (get_addr_stridx): Add an offset_out parameter.
5327 Use compare_nonzero_chars.
5328 (get_stridx): Update accordingly. Use compare_nonzero_chars.
5329 (new_strinfo): Update after above changes to strinfo.
5330 (set_endptr_and_length): Set full_string_p.
5331 (get_string_length): Update after above changes to strinfo.
5332 (unshare_strinfo): Update call to new_strinfo.
5333 (maybe_invalidate): Likewise.
5334 (get_stridx_plus_constant): Change off to unsigned HOST_WIDE_INT.
5335 Use compare_nonzero_chars and zero_string_p. Treat nonzero_chars
5336 as a uhwi instead of an shwi. Update after above changes to
5337 strinfo and new_strinfo.
5338 (zero_length_string): Assert that chainsi contains full strings.
5339 Use zero_length_string_p. Update call to new_strinfo.
5340 (adjust_related_strinfos): Update after above changes to strinfo.
5341 Copy full_string_p from origsi.
5342 (adjust_last_stmt): Use zero_length_string_p.
5343 (handle_builtin_strlen): Update after above changes to strinfo and
5344 new_strinfo. Install the lhs as the string length if the previous
5345 entry didn't describe a full string.
5346 (handle_builtin_strchr): Update after above changes to strinfo
5348 (handle_builtin_strcpy): Likewise.
5349 (handle_builtin_strcat): Likewise.
5350 (handle_builtin_malloc): Likewise.
5351 (handle_pointer_plus): Likewise.
5352 (handle_builtin_memcpy): Likewise. Track nonzero characters
5353 that aren't necessarily followed by a nul terminator.
5354 (handle_char_store): Likewise.
5356 2017-07-02 Richard Sandiford <richard.sandiford@linaro.org>
5358 PR tree-optimization/80769
5359 * tree-ssa-strlen.c (strinfo): Document that "stmt" is also used
5360 for malloc and calloc. Document the new invariant that all related
5361 strinfos have delayed lengths or none do.
5362 (verify_related_strinfos): Move earlier in file.
5363 (set_endptr_and_length): New function, split out from...
5364 (get_string_length): ...here. Also set the lengths of related
5366 (zero_length_string): Assert that chainsi has known (rather than
5368 (adjust_related_strinfos): Likewise.
5370 2017-07-02 Richard Sandiford <richard.sandiford@linaro.org>
5372 PR tree-optimization/81136
5373 * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Only
5374 assert that two references with the same misalignment have the same
5375 compile-time misalignment if those compile-time misalignments
5378 2017-07-01 Andi Kleen <ak@linux.intel.com>
5380 * print-tree.c (print_node): Print all attributes.
5382 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
5384 * cfg.c (scale_bbs_frequencies): New function.
5385 * cfg.h (scale_bbs_frequencies): Declare it.
5386 * cfgloopanal.c (single_likely_exit): Cleanup.
5387 * cfgloopmanip.c (scale_loop_frequencies): Take profile_probability
5389 (scale_loop_profile): Likewise.
5390 (loop_version): Likewise.
5391 (create_empty_loop_on_edge): Update.
5392 * cfgloopmanip.h (scale_loop_frequencies, scale_loop_profile,
5393 scale_loop_frequencies, scale_loop_profile, loopify,
5394 loop_version): Update prototypes.
5395 * modulo-sched.c (sms_schedule): Update.
5396 * predict.c (unlikely_executed_edge_p): Also check probability.
5397 (probably_never_executed_edge_p): Fix typo.
5398 * tree-if-conv.c (version_loop_for_if_conversion): Update.
5399 * tree-parloops.c (gen_parallel_loop): Update.
5400 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update.
5401 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
5402 * tree-ssa-loop-split.c (split_loop): Update.
5403 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Update.
5404 * tree-vect-loop-manip.c (vect_do_peeling): Update.
5405 (vect_loop_versioning): Update.
5406 * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
5408 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
5410 * trans-mem.c (split_bb_make_tm_edge): Update profile.
5412 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
5414 * tree-if-conv.c (combine_blocks): Use make_single_succ_edge
5415 to keep profile consistent.
5417 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
5419 * cfgrtl.c (rtl_flow_call_edges_add): Update profile.
5420 * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
5421 * profile-count.h (max_safe_multiplier): Make unsigned.
5422 (profile_count::guessed_zero): New.
5424 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
5426 * bb-reorder.c (fix_up_crossing_landing_pad,
5427 fix_crossing_conditional_branches): Use make_single_succ_edge
5428 to keep profile consistent.
5430 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
5432 * tree-vect-loop.c (optimize_mask_stores): Use make_single_succ_edge
5435 2017-07-01 Jakub Jelinek <jakub@redhat.com>
5438 * bb-reorder.c (fix_up_fall_thru_edges): Move variable declarations to
5439 the right scopes, make sure cond_jump isn't preserved between multiple
5440 iterations. Search for fallthru edge whenever there are 3+ edges and
5441 use find_fallthru_edge for it.
5443 2017-06-29 Jan Hubicka <hubicka@ucw.cz>
5445 Patch by Alexander Monakov <amonakov@ispras.ru>
5446 * sel-sched-ir.c (compute_succs_info): Handle uninitialized
5447 probabilities consistently.
5449 2017-06-29 Jan Hubicka <hubicka@ucw.cz>
5451 * pa.c (pa_expand_compare_and_swap_loop): Update call of
5452 emit_cmp_and_jump_insns.
5454 2017-06-29 Jan Hubicka <hubicka@ucw.cz>
5457 * tree-inline.c (expand_call_inline): Combine profile statuses.
5459 2017-06-30 Andrew Pinski <apinski@cavium.com>
5461 * tree-if-conv.c (predicate_scalar_phi): Update new_stmt if
5462 fold_stmt returned true.
5464 2017-06-30 Nathan Sidwell <nathan@acm.org>
5466 * ggc.h (empty_string): Delete.
5467 * cfgexpand.c (expand_asm_stmt): Use plain "".
5468 * optabs.c (expand_asm_memory_barrier): Likewise.
5469 * stringpool.c (empty_string): Delete.
5470 (digit_vector, digit_string): Delete.
5471 (ggc_alloc_string): Use plain "", don't optimize single digit
5472 strings. Use ggc_alloc_atomic.
5474 2017-06-30 Richard Earnshaw <rearnsha@arm.com>
5476 * rtlanal.c (insn_rtx_cost): If a parallel contains exactly one
5477 comparison set and one other set, use the cost of the non-comparison
5480 2017-06-30 Nathan Sidwell <nathan@acm.org>
5482 * ggc.h: Replace all 'static inline' with plain 'inline'. Fix
5485 2017-06-30 Peter Bergner <bergner@vnet.ibm.com>
5487 * tree-cfg.c (group_case_labels_stmt): Merge scanning and compressing
5488 loops. Remove now unneeded calls to gimple_switch_set_label() that
5489 just set removed labels to NULL_TREE.
5491 2017-06-30 Aldy Hernandez <aldyh@redhat.com>
5493 * tree-ssanames.c (set_range_info_raw): Abstract from ...
5494 (set_range_info): ...here. Only call set_range_info_raw if domain
5496 (set_nonzero_bits): Call set_range_info_raw.
5497 * tree-ssanames.h (set_range_info_raw): New.
5499 2017-06-30 Jakub Jelinek <jakub@redhat.com>
5502 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): For V8FI,
5503 V16FI and VI8F_256 iterators, use <store_mask_predicate> instead
5504 of nonimmediate_operand and <store_mask_constraint> instead of m
5505 for the input operand. For V8FI iterator, always split if input
5506 is a MEM. For V16FI and V8SF_256 iterators, don't test if both
5507 operands are MEM if <mask_applied>. For VI4F_256 iterator, use
5508 <store_mask_predicate> instead of register_operand and
5509 <store_mask_constraint> instead of v for the input operand. Make
5510 sure both operands aren't MEMs for if not <mask_applied>.
5512 2017-06-30 Sylvestre Ledru <sylvestre@debian.org>
5514 * lto-wrapper.c (copy_file) Close both file descriptors before
5517 2017-06-30 Martin Liska <mliska@suse.cz>
5520 * multiple_target.c (create_dispatcher_calls): Make ifunc
5521 also for function that don't have calls or are not referenced.
5523 2017-06-30 Richard Biener <rguenther@suse.de>
5525 * tree-vect-slp.c (vect_slp_analyze_node_operations): Only
5526 analyze the first scalar stmt. Move vector type computation
5527 for the BB case here from ...
5528 * tree-vect-stmts.c (vect_analyze_stmt): ... here. Guard
5529 live operation processing in the SLP case properly.
5531 2017-06-30 Richard Biener <rguenther@suse.de>
5533 * graph.c (draw_cfg_node_succ_edges): Fix broken dot syntax.
5535 2017-06-30 Martin Liska <mliska@suse.cz>
5538 * tree-eh.c (lower_resx): Call BUILT_IN_ASAN_HANDLE_NO_RETURN
5539 before BUILT_IN_UNWIND_RESUME when ASAN is used.
5541 2017-06-30 Yvan Roux <yvan.roux@linaro.org>
5543 * doc/invoke.texi (AArch64): Add missing options and remove redundant
5546 2017-06-30 Richard Biener <rguenther@suse.de>
5548 PR tree-optimization/81249
5549 * tree-vect-loop.c (vect_create_epilog_for_reduction): Convert
5550 condition reduction result to original scalar type.
5552 2017-06-30 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5554 * profile-count.h (enum profile_quality): Fix typos and whitespace
5557 2017-06-30 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5559 * config/s390/s390.c (s390_expand_setmem): Adjust to the new data
5560 type for branch probabilities.
5562 2017-06-29 Julian Brown <julian@codesourcery.com>
5563 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
5565 * config/aarch64/aarch64-fusion-pairs.def: Add ALU_BRANCH entry.
5566 * config/aarch64/aarch64.c (AARCH64_FUSE_ALU_BRANCH): New fusion type.
5567 (thunderx2t99_tunings): Set AARCH64_FUSE_ALU_BRANCH flag.
5568 (aarch_macro_fusion_pair_p): Add support for AARCH64_FUSE_ALU_BRANCH.
5570 2017-06-29 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
5572 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Push the
5573 check for CC usage into AARCH64_FUSE_CMP_BRANCH.
5574 * config/i386/i386.c (ix86_macro_fusion_pair_p): Push the check for
5575 CC usage from generic code to here.
5576 * sched-deps.c (sched_macro_fuse_insns): Move the condition for
5577 CC usage into the target macros.
5579 2017-06-29 Maya Rashish <coypu@sdf.org>
5581 * config/netbsd.h (NETBSD_LIB_SPEC): Add -lc when creating shared
5584 2017-06-29 Jan Hubicka <hubicka@ucw.cz>
5586 * arm/arm-builtins.c: Include profile-count.h
5587 * except.c (sjlj_emit_function_enter): Use
5588 profile_probability::unlikely.
5590 2017-06-29 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
5592 * config/rs6000/rs6000.c (toc_relative_expr_p): Make tocrel_base
5593 and tocrel_offset be pointer args rather than implicitly using
5595 (legitimate_constant_pool_address_p, rs6000_emit_move,
5596 const_load_sequence_p, adjust_vperm): Add local tocrel_base and
5597 tocrel_offset and use in toc_relative_expr_p call.
5598 (print_operand, print_operand_address): Use static tocrel_base_oac
5599 and tocrel_offset_oac.
5600 (rs6000_output_addr_const_extra): Use static tocrel_base_oac and
5603 2017-06-29 Maya Rashish <coypu@sdf.org>
5605 * config/vax/builtins.md (ffssi2_internal): Correct constraint.
5607 2017-06-29 Eric Botcazou <ebotcazou@adacore.com>
5609 * expr.c (expand_expr) <normal_inner_ref>: When testing for unaligned
5610 objects, take into account only the alignment of 'op0' and 'mode1' if
5613 2017-06-29 Steve Ellcey <sellcey@cavium.com>
5615 * ccmp.c (ccmp_tree_comparison_p): New function.
5616 (ccmp_candidate_p): Update to use above function.
5617 (get_compare_parts): New function.
5618 (expand_ccmp_next): Update to use new functions.
5619 (expand_ccmp_expr_1): Take tree arg instead of gimple, update to use
5621 (expand_ccmp_expr): Pass tree instead of gimple to expand_ccmp_expr_1,
5622 take mode as argument.
5623 * ccmp.h (expand_ccmp_expr): Add mode as argument.
5624 * expr.c (expand_expr_real_1): Pass mode as argument.
5626 2017-06-29 Segher Boessenkool <segher@kernel.crashing.org>
5628 * combine.c (combine_instructions): Print insns to dump_file, together
5631 2017-06-29 Jan Hubicka <hubicka@ucw.cz>
5633 * asan.c (asan_emit_stack_protection): Update.
5634 (create_cond_insert_point): Update.
5635 * auto-profile.c (afdo_propagate_circuit): Update.
5636 * basic-block.h (struct edge_def): Turn probability to
5637 profile_probability.
5638 (EDGE_FREQUENCY): Update.
5639 * bb-reorder.c (find_traces_1_round): Update.
5640 (better_edge_p): Update.
5641 (sanitize_hot_paths): Update.
5642 * cfg.c (unchecked_make_edge): Initialize probability to uninitialized.
5643 (make_single_succ_edge): Update.
5644 (check_bb_profile): Update.
5645 (dump_edge_info): Update.
5646 (update_bb_profile_for_threading): Update.
5647 * cfganal.c (connect_infinite_loops_to_exit): Initialize new edge
5648 probabilitycount to 0.
5649 * cfgbuild.c (compute_outgoing_frequencies): Update.
5650 * cfgcleanup.c (try_forward_edges): Update.
5651 (outgoing_edges_match): Update.
5652 (try_crossjump_to_edge): Update.
5653 * cfgexpand.c (expand_gimple_cond): Update make_single_succ_edge.
5654 (expand_gimple_tailcall): Update.
5655 (construct_init_block): Use make_single_succ_edge.
5656 (construct_exit_block): Use make_single_succ_edge.
5657 * cfghooks.c (verify_flow_info): Update.
5658 (redirect_edge_succ_nodup): Update.
5659 (split_edge): Update.
5660 (account_profile_record): Update.
5661 * cfgloopanal.c (single_likely_exit): Update.
5662 * cfgloopmanip.c (scale_loop_profile): Update.
5663 (set_zero_probability): Remove.
5664 (duplicate_loop_to_header_edge): Update.
5665 * cfgloopmanip.h (loop_version): Update prototype.
5666 * cfgrtl.c (try_redirect_by_replacing_jump): Update.
5667 (force_nonfallthru_and_redirect): Update.
5668 (update_br_prob_note): Update.
5669 (rtl_verify_edges): Update.
5670 (purge_dead_edges): Update.
5671 (rtl_lv_add_condition_to_bb): Update.
5672 * cgraph.c: (cgraph_edge::redirect_call_stmt_to_calle): Update.
5673 * cgraphunit.c (init_lowered_empty_function): Update.
5674 (cgraph_node::expand_thunk): Update.
5675 * cilk-common.c: Include profile-count.h
5676 * dojump.c (inv): Remove.
5677 (jumpifnot): Update.
5678 (jumpifnot_1): Update.
5679 (do_jump_1): Update.
5681 (do_jump_by_parts_greater_rtx): Update.
5682 (do_compare_rtx_and_jump): Update.
5683 * dojump.h (jumpifnot, jumpifnot_1, jumpif_1, jumpif, do_jump,
5684 do_jump_1. do_compare_rtx_and_jump): Update prototype.
5685 * dwarf2cfi.c: Include profile-count.h
5686 * except.c (dw2_build_landing_pads): Use make_single_succ_edge.
5687 (sjlj_emit_dispatch_table): Likewise.
5688 * explow.c: Include profile-count.h
5689 * expmed.c (emit_store_flag_force): Update.
5690 (do_cmp_and_jump): Update.
5691 * expr.c (compare_by_pieces_d::generate): Update.
5692 (compare_by_pieces_d::finish_mode): Update.
5693 (emit_block_move_via_loop): Update.
5694 (store_expr_with_bounds): Update.
5695 (store_constructor): Update.
5696 (expand_expr_real_2): Update.
5697 (expand_expr_real_1): Update.
5698 * expr.h (try_casesi, try_tablejump): Update prototypes.
5699 * gimple-pretty-print.c (dump_probability): Update.
5700 (dump_profile): New.
5701 (dump_gimple_label): Update.
5702 (dump_gimple_bb_header): Update.
5703 * graph.c (draw_cfg_node_succ_edges): Update.
5704 * hsa-gen.c (convert_switch_statements): Update.
5705 * ifcvt.c (cheap_bb_rtx_cost_p): Update.
5706 (find_if_case_1): Update.
5707 (find_if_case_2): Update.
5708 * internal-fn.c (expand_arith_overflow_result_store): Update.
5709 (expand_addsub_overflow): Update.
5710 (expand_neg_overflow): Update.
5711 (expand_mul_overflow): Update.
5712 (expand_vector_ubsan_overflow): Update.
5713 * ipa-cp.c (good_cloning_opportunity_p): Update.
5714 * ipa-split.c (split_function): Use make_single_succ_edge.
5715 * ipa-utils.c (ipa_merge_profiles): Update.
5716 * loop-doloop.c (add_test): Update.
5717 (doloop_modify): Update.
5718 * loop-unroll.c (compare_and_jump_seq): Update.
5719 (unroll_loop_runtime_iterations): Update.
5720 * lra-constraints.c (lra_inheritance): Update.
5721 * lto-streamer-in.c (input_cfg): Update.
5722 * lto-streamer-out.c (output_cfg): Update.
5723 * mcf.c (adjust_cfg_counts): Update.
5724 * modulo-sched.c (sms_schedule): Update.
5725 * omp-expand.c (expand_omp_for_init_counts): Update.
5726 (extract_omp_for_update_vars): Update.
5727 (expand_omp_ordered_sink): Update.
5728 (expand_omp_for_ordered_loops): Update.
5729 (expand_omp_for_generic): Update.
5730 (expand_omp_for_static_nochunk): Update.
5731 (expand_omp_for_static_chunk): Update.
5732 (expand_cilk_for): Update.
5733 (expand_omp_simd): Update.
5734 (expand_omp_taskloop_for_outer): Update.
5735 (expand_omp_taskloop_for_inner): Update.
5736 * omp-simd-clone.c (simd_clone_adjust): Update.
5737 * optabs.c (expand_doubleword_shift): Update.
5738 (expand_abs): Update.
5739 (emit_cmp_and_jump_insn_1): Update.
5740 (expand_compare_and_swap_loop): Update.
5741 * optabs.h (emit_cmp_and_jump_insns): Update prototype.
5742 * predict.c (predictable_edge_p): Update.
5743 (edge_probability_reliable_p): Update.
5744 (set_even_probabilities): Update.
5745 (combine_predictions_for_insn): Update.
5746 (combine_predictions_for_bb): Update.
5747 (propagate_freq): Update.
5748 (estimate_bb_frequencies): Update.
5749 (force_edge_cold): Update.
5750 * profile-count.c (profile_count::dump): Add missing space into dump.
5751 (profile_count::debug): Add newline.
5752 (profile_count::differs_from_p): Explicitly convert to unsigned.
5753 (profile_count::stream_in): Update.
5754 (profile_probability::dump): New member function.
5755 (profile_probability::debug): New member function.
5756 (profile_probability::differs_from_p): New member function.
5757 (profile_probability::differs_lot_from_p): New member function.
5758 (profile_probability::stream_in): New member function.
5759 (profile_probability::stream_out): New member function.
5760 * profile-count.h (profile_count_quality): Rename to ...
5761 (profile_quality): ... this one.
5762 (profile_probability): New.
5763 (profile_count): Update.
5764 * profile.c (compute_branch_probabilities): Update.
5765 * recog.c (peep2_attempt): Update.
5766 * sched-ebb.c (schedule_ebbs): Update.
5767 * sched-rgn.c (find_single_block_region): Update.
5768 (compute_dom_prob_ps): Update.
5769 (schedule_region): Update.
5770 * sel-sched-ir.c (compute_succs_info): Update.
5771 * stmt.c (struct case_node): Update.
5772 (do_jump_if_equal): Update.
5773 (get_outgoing_edge_probs): Update.
5774 (conditional_probability): Update.
5775 (emit_case_dispatch_table): Update.
5776 (expand_case): Update.
5777 (expand_sjlj_dispatch_table): Update.
5778 (emit_case_nodes): Update.
5779 * targhooks.c: Update.
5780 * tracer.c (better_p): Update.
5781 (find_best_successor): Update.
5782 * trans-mem.c (expand_transaction): Update.
5783 * tree-call-cdce.c: Update.
5784 * tree-cfg.c (gimple_split_edge): Upate.
5785 (move_sese_region_to_fn): Upate.
5786 * tree-cfgcleanup.c (cleanup_control_expr_graph): Upate.
5787 * tree-eh.c (lower_resx): Upate.
5788 (cleanup_empty_eh_move_lp): Upate.
5789 * tree-if-conv.c (version_loop_for_if_conversion): Update.
5790 * tree-inline.c (copy_edges_for_bb): Update.
5791 (copy_cfg_body): Update.
5792 * tree-parloops.c (gen_parallel_loop): Update.
5793 * tree-profile.c (gimple_gen_ic_func_profiler): Update.
5794 (gimple_gen_time_profiler): Update.
5795 * tree-ssa-dce.c (remove_dead_stmt): Update.
5796 * tree-ssa-ifcombine.c (update_profile_after_ifcombine): Update.
5797 * tree-ssa-loop-im.c (execute_sm_if_changed): Update.
5798 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Update.
5799 (unloop_loops): Update.
5800 (try_peel_loop): Update.
5801 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
5802 * tree-ssa-loop-split.c (connect_loops): Update.
5803 (split_loop): Update.
5804 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Update.
5805 (hoist_guard): Update.
5806 * tree-ssa-phionlycprop.c (propagate_rhs_into_lhs): Update.
5807 * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Update.
5808 (value_replacement): Update.
5809 * tree-ssa-reassoc.c (branch_fixup): Update.
5810 * tree-ssa-tail-merge.c (replace_block_by): Update.
5811 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Update.
5812 (create_edge_and_update_destination_phis): Update.
5813 (compute_path_counts): Update.
5814 (recompute_probabilities): Update.
5815 (update_joiner_offpath_counts): Update.
5816 (freqs_to_counts_path): Update.
5817 (duplicate_thread_path): Update.
5818 * tree-switch-conversion.c (hoist_edge_and_branch_if_true): Update.
5819 (struct switch_conv_info): Update.
5820 (gen_inbound_check): Update.
5821 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Update.
5822 (vect_do_peeling): Update.
5823 (vect_loop_versioning): Update.
5824 * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
5825 (optimize_mask_stores): Update.
5826 * ubsan.c (ubsan_expand_null_ifn): Update.
5827 * value-prof.c (gimple_divmod_fixed_value): Update.
5828 (gimple_divmod_fixed_value_transform): Update.
5829 (gimple_mod_pow2): Update.
5830 (gimple_mod_pow2_value_transform): Update.
5831 (gimple_mod_subtract): Update.
5832 (gimple_mod_subtract_transform): Update.
5833 (gimple_ic): Update.
5834 (gimple_stringop_fixed_value): Update.
5835 (gimple_stringops_transform): Update.
5836 * value-prof.h: Update.
5838 2017-06-29 Carl Love <cel@us.ibm.com>
5840 * config/rs6000/rs6000-c.c: Add support for built-in functions
5841 vector signed int vec_signed (vector float);
5842 vector signed long long vec_signed (vector double);
5843 vector signed int vec_signed2 (vector double, vector double);
5844 vector signed int vec_signede (vector double);
5845 vector signed int vec_signedo (vector double);
5846 * config/rs6000/rs6000.c (rs6000_generate_vsigned2_code): Add
5847 instruction generator.
5848 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSPSXWS, UNSPEC_VSX_XVCVSPSXDS,
5849 UNSPEC_VSX_VSIGNED2): Add UNSPECS.
5850 (vsx_xvcvspsxws, vsx_xvcvdpuxds_scale, vsx_xvcvspuxws, vsigned2_v2df):
5852 (vsignedo_v2df, vsignede_v2df, vunsigned2_v2df, vunsignedo_v2df,
5853 vunsignede_v2df): Add define_expands.
5854 * config/rs6000/rs6000-builtin.def (VEC_SIGNED, VEC_UNSIGNED,
5855 VEC_SIGNED2, VEC_UNSIGNED2, VEC_SIGNEDE, VEC_UNSIGNEDE, VEC_SIGNEDO,
5856 VEC_UNSIGNEDO): Add definitions.
5857 * config/vsx.md (UNSPEC_VSX_XVCVSPSXWS, UNSPEC_VSX_XVCVSPSXDS,
5858 UNSPEC_VSX_VSIGNED2): Add UNSPECs.
5859 (vsx_xvcvspsxws, vsx_xvcvspuxws): Add define_insn.
5860 (vsigned2_v2df, vsigendo_v2df, vsignede_v2df,
5861 vunsigned2_v2df, vunsignedo_v2df, vunsignede_v2df): Add define_expands.
5862 * config/rs6000/altivec.h (vec_signed, vec_signed2,
5863 vec_signede and vec_signedo, vec_unsigned, vec_unsigned2,
5864 vec_unsignede, vec_unsignedo): Add builtin defines.
5865 * config/rs6000-protos.h (rs6000_generate_vsigned2_code): Add extern
5867 * doc/extend.texi: Update the built-in documentation file for the
5868 new built-in functions.
5870 2017-06-29 Richard Biener <rguenther@suse.de>
5872 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Do not add
5873 reduction chains to LOOP_VINFO_REDUCTIONS.
5874 * tree-vect-slp.c (vect_analyze_slp): Continue looking for
5875 SLP reductions after processing reduction chains.
5877 2017-06-29 Nathan Sidwell <nathan@acm.org>
5879 * builtins.c (fold_builtin_FUNCTION): Use
5880 lang_hooks.decl_printable_name.
5882 2017-06-29 Peter Bergner <bergner@vnet.ibm.com>
5885 * cfgexpand.c (expand_gimple_stmt_1): Handle switch statements
5886 with only one label.
5887 * stmt.c (expand_case): Assert NCASES is greater than one.
5889 2017-06-29 Richard Biener <rguenther@suse.de>
5891 * tree-cfg.c (group_case_labels_stmt): Return whether we changed
5893 (group_case_labels): Likewise.
5894 (find_taken_edge): Push sanity checking on val to workers...
5895 (find_taken_edge_cond_expr): ... here
5896 (find_taken_edge_switch_expr): ... and here, handle cases
5897 with just a default label.
5898 * tree-cfg.h (group_case_labels_stmt): Adjust prototype.
5899 (group_case_labels): Likewise.
5900 * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing): When
5901 group_case_labels does anything cleanup the CFG again.
5903 2017-06-29 Bin Cheng <bin.cheng@arm.com>
5905 PR tree-optimization/81196
5906 * tree-ssa-loop-niter.c (number_of_iterations_cond): Handle loop
5907 exit condition comparing two IVs.
5909 2017-06-29 Richard Earnshaw <rearnsha@arm.com>
5911 * config/arm/parsecpu.awk (gen_comm_data): Add initializer for
5912 profile to the dummy entry at the end of the list of architectures.
5913 * config/arm/arm-cpu-cdata.h: Regenerated.
5915 2017-06-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5916 Michael Collison <michael.collison@arm.com>
5919 * config/aarch64/aarch64.md (*aarch64_<optab>_reg_<mode>3_mask1):
5921 (*aarch64_reg_<mode>3_neg_mask2): New pattern.
5922 (*aarch64_reg_<mode>3_minus_mask): New pattern.
5923 (*aarch64_<optab>_reg_di3_mask2): New pattern.
5924 * config/aarch64/aarch64.c (aarch64_rtx_costs): Account for cost
5925 of shift when the shift amount is masked with constant equal to
5926 the size of the mode.
5927 * config/aarch64/predicates.md (subreg_lowpart_operator): New
5930 2017-06-29 Martin Liska <mliska@suse.cz>
5932 * config/i386/i386.opt: Change range from [1,5] to [0,5].
5934 2017-06-29 Yury Gribov <tetra2005@gmail.com>
5937 * ipa-cp.c (allocate_and_init_ipcp_value): Add initialization
5940 (edge_growth_cache_entry::edge_growth_cache_entry): New
5942 (reset_edge_growth_cache): Update to use constructor.
5944 2017-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5946 * config/aarch64/aarch64.h (AARCH64_EXPAND_ALIGNMENT): New.
5947 (DATA_ALIGNMENT): Update to use AARCH64_EXPAND_ALIGNMENT.
5948 (LOCAL_ALIGNMENT): Update to use AARCH64_EXPAND_ALIGNMENT.
5950 2017-06-28 Sebastian Peryt <sebastian.peryt@intel.com>
5952 * config/i386/avx512vlintrin.h (_mm256_permutexvar_epi64)
5953 (_mm256_permutexvar_epi32, _mm256_permutex_epi64): New intrinsics.
5955 2017-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
5957 * config.gcc (*-linux-musl*): Add t-musl tmake_file.
5958 (*-linux-uclibc*): Add t-uclibc tmake_file.
5959 * config/t-musl: New.
5960 * config/t-uclibc: New.
5962 2017-06-28 Richard Earnshaw <rearnsha@arm.com>
5964 * config/arm/parsecpu.awk (profile): Parse new keyword in an arch
5966 (gen_comm_data): Emit architectural setting of arch_prof.
5967 * config/arm/arm-cpus.in (armv6-m, armv6s-m, armv7-a, armv7ve): Set the
5969 (armv7-r, armv7-m, armv7e-m, armv8-a, armv8.1-a, armv8.2-a): Likewise.
5970 (armv8-m.base, armv8-m.main): Likewise.
5971 * arm-protos.h (arm_build_target): Add profile field.
5972 (arch_option): Likewise.
5973 * config/arm/arm.c (arm_configure_build_target): Copy the profile to
5975 * config/arm/arm.h (TARGET_ARM_ARCH_PROFILE): Use
5976 arm_active_target.profile.
5978 2017-06-28 Richard Biener <rguenther@suse.de>
5981 * fold-const.c (negate_expr_p): Use TYPE_UNSIGNED, not
5982 TYPE_OVERFLOW_WRAPS.
5983 * match.pd (negate_expr_p): Likewise.
5984 * tree-ssa-reassoc.c (optimize_range_tests_diff): Use
5985 fold_build2, not fold_binary.
5987 2017-06-28 Wilco Dijkstra <wdijkstr@arm.com>
5989 * config/aarch64/aarch64 (aarch64_expand_mov_immediate):
5990 Convert memory address to Pmode.
5991 (aarch64_print_operand): Assert MEM operands are always Pmode.
5993 2017-06-28 Wilco Dijkstra <wdijkstr@arm.com>
5996 * config/arm/aarch-common.c (arm_no_early_alu_shift_dep):
5997 Remove redundant if.
5998 (aarch_forward_to_shift_is_not_shifted_reg): Remove.
5999 * config/arm/aarch-common-protos.h
6000 (aarch_forward_to_shift_is_not_shifted_re): Remove.
6001 * config/arm/cortex-a53.md: Use arm_no_early_alu_shift_dep in bypass.
6003 2017-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
6006 * multiple_target.c (create_dispatcher_calls): Set the default
6007 clone to be static, not public.
6009 2017-06-28 Richard Biener <rguenther@suse.de>
6011 * tree-vect-loop.c (vectorizable_reduction): Move special
6012 cond reduction IV var creation ...
6013 (vect_create_epilog_for_reduction): ... here. Remove induction_index
6014 parameter. Use STMT_VINFO_VECTYPE.
6015 * tree-vect-slp.c (vect_get_constant_vectors): Properly reset
6018 2017-06-28 Martin Liska <mliska@suse.cz>
6021 * ipa-visibility.c (non_local_p): Handle visibility.
6023 2017-06-28 Martin Liska <mliska@suse.cz>
6026 * common.opt: Add IntegerRange to various options.
6027 * opt-functions.awk (integer_range_info): New function.
6028 * optc-gen.awk: Add integer_range_info to cl_options struct.
6029 * opts-common.c (decode_cmdline_option): Handle
6030 CL_ERR_INT_RANGE_ARG.
6031 (cmdline_handle_error): Likewise.
6032 * opts.c (print_filtered_help): Show valid interval in
6033 when --help is provided.
6034 * opts.h (struct cl_option): Add range_min and range_max fields.
6035 * config/i386/i386.opt: Add IntegerRange for -mbranch-cost.
6037 2017-06-28 Marc Glisse <marc.glisse@inria.fr>
6039 * match.pd ((X & ~Y) | (~X & Y)): Generalize to + and ^.
6040 (x * C EQ/NE y * C): New transformation.
6042 2017-06-28 Christophe Lyon <christophe.lyon@linaro.org>
6044 * genmultilib (combination_space): Accept '+' in option names.
6046 2017-06-28 Martin Liska <mliska@suse.cz>
6049 * asan.c (instrument_derefs): Bail out inner references
6050 that are hard register variables.
6052 2017-06-28 Jakub Jelinek <jakub@redhat.com>
6055 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use def_builtin
6056 rather than def_builtin_pure for __builtin_ia32_gatherpf*.
6058 2017-06-28 Richard Biener <rguenther@suse.de>
6060 * tree-vectorizer.h (vect_get_vec_defs): Remove.
6061 (vect_get_slp_defs): Adjust.
6062 * tree-vect-loop.c (get_initial_defs_for_reduction): Split
6064 * tree-vect-slp.c (vect_get_constant_vectors): ... here and
6066 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
6067 get_initial_defs_for_reduction instead of vect_get_vec_defs.
6068 (vectorizable_reduction): Adjust.
6069 * tree-vect-slp.c (vect_get_constant_vectors): Remove reduction
6071 (vect_get_slp_defs): Likewise.
6072 * tree-vect-stmts.c (vect_get_vec_defs): Make static and adjust.
6073 (vectorizable_bswap): Adjust.
6074 (vectorizable_call): Likewise.
6075 (vectorizable_conversion): Likewise.
6076 (vectorizable_assignment): Likewise.
6077 (vectorizable_shift): Likewise.
6078 (vectorizable_operation): Likewise.
6079 (vectorizable_store): Likewise.
6080 (vectorizable_condition): Likewise.
6081 (vectorizable_comparison): Likewise.
6083 2017-06-28 Michael Collison <michael.collison@arm.com>
6086 * config/arm/arm.c (gen_ldm_seq): Remove last unnecessary
6088 (arm_gen_movmemqi): Removed unused variable 'i'.
6089 Convert 'for' loop into 'while' loop.
6090 (arm_expand_prologue): Remove last unnecessary set of insn.
6091 (thumb_pop): Remove unused variable 'pushed_words'.
6092 (thumb_exit): Remove last unnecessary set of regs_to_pop.
6094 2017-06-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6096 * config/s390/predicates.md: Use s390_rel_address_ok_p.
6097 * config/s390/s390-protos.h: Add prototype of
6098 s390_rel_address_ok_p.
6099 * config/s390/s390.c (s390_got_symbol): New function.
6100 (s390_rel_address_ok_p): New function.
6101 (legitimize_pic_address): Use s390_rel_address_ok_p.
6102 (s390_load_got): Use s390_got_symbol.
6103 (s390_option_override): Issue error if
6104 -mno-pic-data-is-text-relative is used without -fpic/-fPIC.
6105 * config/s390/s390.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
6107 * config/s390/s390.opt: New option mpic-data-is-text-relative.
6109 2017-06-27 Andrew Pinski <apinski@cavium.com>
6111 * match.pd (X >/>=/</<= 0 ? 1.0 : -1.0): New patterns.
6112 (X * copysign (1.0, X)): New pattern.
6113 (X * copysign (1.0, -X)): New pattern.
6114 (copysign (-1.0, CST)): New pattern.
6116 2017-06-27 Joseph Myers <joseph@codesourcery.com>
6118 * genmultilib (combination_space): Remove variable.
6119 Validate reuse rules against regular expression for any sequence
6120 of multilib options in any order.
6122 2017-06-27 Michael Collison <michael.collison@arm.com>
6124 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Directly
6125 call aarch64_split_simd_combine.
6126 * (aarch64_combine_internal<mode>): Delete pattern.
6127 * config/aarch64/aarch64.c (aarch64_split_simd_combine):
6128 Allow register and subreg operands.
6130 2017-06-27 Jerome Lambourg <lambourg@adacore.com>
6132 * config/i386/vxworks.h (ASM_SPEC): Remove definition. No target
6133 specific need, just fallback on defaults.
6134 (ASM_OUTPUT_ALIGNED_BSS): Add #undef before #define.
6136 2017-06-27 Jerome Lambourg <lambourg@adacore.com>
6137 Olivier Hainque <hainque@adacore.com>
6139 * config/i386/vxworks.h (DBX_REGISTER_NUMBER): Pick distinct
6141 (TARGET_OS_CPP_BUILTINS): builtin_define CPU to X86_64 for 64bit
6142 targets. Pick a default if no particular attempt applied.
6143 (STACK_CHECK_PROTECT): Double for 64bit targets, which have
6146 2017-06-27 Jerome Lambourg <lambourg@adacore.com>
6148 * config.gcc (i*86-wrs-vxworks7): Handle new acceptable triplet.
6149 (x86_64-wrs-vxworks7): Likewise.
6151 2017-06-27 Marek Polacek <polacek@redhat.com>
6154 * ubsan.c (instrument_null): Check get_base_address's result for null.
6156 2017-06-27 Marc Glisse <marc.glisse@inria.fr>
6158 * match.pd ((A+-B)+(C-A), (A+B)-(A-C)): New transformations.
6160 2017-06-27 Marc Glisse <marc.glisse@inria.fr>
6162 * builtin-types.def (BT_FENV_T_PTR, BT_CONST_FENV_T_PTR,
6163 BT_FEXCEPT_T_PTR, BT_CONST_FEXCEPT_T_PTR): New primitive types.
6164 (BT_FN_INT_FENV_T_PTR, BT_FN_INT_CONST_FENV_T_PTR,
6165 BT_FN_INT_FEXCEPT_T_PTR_INT, BT_FN_INT_CONST_FEXCEPT_T_PTR_INT):
6167 * builtins.def (BUILT_IN_FECLEAREXCEPT, BUILT_IN_FEGETENV,
6168 BUILT_IN_FEGETEXCEPTFLAG, BUILT_IN_FEGETROUND,
6169 BUILT_IN_FEHOLDEXCEPT, BUILT_IN_FERAISEEXCEPT,
6170 BUILT_IN_FESETENV, BUILT_IN_FESETEXCEPTFLAG,
6171 BUILT_IN_FESETROUND, BUILT_IN_FETESTEXCEPT,
6172 BUILT_IN_FEUPDATEENV): New builtins.
6173 * tree-core.h (TI_FENV_T_PTR_TYPE, TI_CONST_FENV_T_PTR_TYPE,
6174 TI_FEXCEPT_T_PTR_TYPE, TI_CONST_FEXCEPT_T_PTR_TYPE): New entries.
6175 * tree.h (fenv_t_ptr_type_node, const_fenv_t_ptr_type_node,
6176 fexcept_t_ptr_type_node, const_fexcept_t_ptr_type_node): New
6178 (builtin_structptr_types): Adjust size.
6179 * tree.c (builtin_structptr_types): Add four entries.
6181 2017-06-27 Jerome Lambourg <lambourg@adacore.com>
6182 Olivier Hainque <hainque@adacore.com>
6184 * config/vxworks.h (VXWORKS_LIB_SPEC): Incorporate ...
6185 (TLS_SYM): New local macro, forcing reference to __tls__ on
6186 link command lines for VxWorks 7 RTPs, triggering initialization
6188 (VXWORKS_HAVE_TLS): New macro. State whether the target VxWorks
6189 OS features TLS support, true for RTPs on VxWorks 7.
6190 * config/vxworks.c (vxworks_override_options): Setup emutls
6193 2017-06-27 Jakub Jelinek <jakub@redhat.com>
6195 * predict.c (test_prediction_value_range): Use -1U instead of -1
6196 to avoid narrowing conversion warning.
6197 * dumpfile.c (dump_options): Wrap all value into dump_flags_t cast
6198 to avoid narrowing conversion warning.
6199 * opt-functions.awk (var_ref): Return (unsigned short) -1 instead of
6201 * optc-gen.awk (END): Expect (unsigned short) -1 instead of -1.
6203 2017-06-27 Jerome Lambourg <lambourg@adacore.com>
6205 * config/vxworks.h (VXWORKS_LIBS_RTP): Alternative definition for
6206 64bit configurations.
6207 (PTR_DIFF_TYPE): Alternative definition for TARGET_LP64.
6208 (SIZE_TYPE): Likewise.
6209 * config/vxworks.c (vxworks_emutls_var_fields): Use
6210 long_unsigned_type_node instead of unsigned_type_node as the offset
6211 field type, which is "pointer" mode in emutls.c.
6213 2017-06-27 Jakub Jelinek <jakub@redhat.com>
6216 * ubsan.c (ubsan_encode_value): Initialize DECL_CONTEXT on var.
6219 * gimple-fold.c (replace_call_with_call_and_fold): Handle
6220 gimple_vuse copying separately from gimple_vdef copying.
6222 2017-06-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6224 * value-prof.c (free_hist): Remove call to memset and the enclosing if
6227 2017-06-26 Jerome Lambourg <lambourg@adacore.com>
6228 Olivier Hainque <hainque@adacore.com>
6230 * config.gcc (*-*-vxworks*): Add TARGET_VXWORKS7=1 to tm_defines
6231 for all vxworks7 targets.
6232 * config/vxworks.h (TARGET_VXWORKS7): If not defined, define to 0.
6233 (VXWORKS_ADDITIONAL_CPP_SPEC): Alternative definition for VXWORKS7.
6234 (VXWORKS_LIBS_RTP, VXWORKS_LIBS_RTP_DIR): New macros, allowing
6235 variations for VX6/VX7 and 32/64bits later on in ...
6236 (VXWORKS_LIB_SPEC): Leverage new macros.
6237 (VXWORKS_OS_CPP_BUILTINS): Define _VSB_CONFIG_FILE for VXWORKS7,
6238 as well as _ALLOW_KEYWORD_MACROS when "inline" is not a keyword.
6240 2017-06-26 Jerome Lambourg <lambourg@adacore.com>
6242 * config/vxworks.h (VXWORKS_OS_CPP_BUILTINS): builtin_define
6243 _VX_TOOL_FAMILY and _VX_TOOL to gnu.
6245 2017-06-26 Carl Love <cel@us.ibm.com>
6247 * config/rs6000/rs6000-c.c: Add support for built-in functions
6248 vector bool char vec_reve (vector bool char);
6249 vector signed char vec_reve (vector signed char);
6250 vector unsigned char vec_reve (vector unsigned char);
6251 vector bool int vec_reve (vector bool int);
6252 vector signed int vec_reve (vector signed int);
6253 vector unsigned int vec_reve (vector unsigned int);
6254 vector bool long long vec_reve (vector bool long long);
6255 vector signed long long vec_reve (vector signed long long);
6256 vector unsigned long long vec_reve (vector unsigned long long);
6257 vector bool short vec_reve (vector bool short);
6258 vector signed short vec_reve (vector signed short);
6259 vector double vec_reve (vector double);
6260 vector float vec_reve (vector float);
6261 * config/rs6000/rs6000-builtin.def (VREVE_V2DI, VREVE_V4SI,
6262 VREVE_V8HI, VREVE_V16QI, VREVE_V2DF, VREVE_V4SF, VREVE): New builtin.
6263 * config/rs6000/altivec.md (UNSPEC_VREVEV): New UNSPEC.
6264 (altivec_vreve): New pattern.
6265 * config/rs6000/altivec.h (vec_reve): New define.
6266 * doc/extend.texi (vec_rev): Update the built-in documentation file
6267 for the new built-in functions.
6269 2016-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6271 PR tree-optimization/71815
6272 * gimple-ssa-strength-reduction.c (uses_consumed_by_stmt): New
6274 (find_basis_for_candidate): Call uses_consumed_by_stmt rather than
6276 (slsr_process_phi): Likewise.
6277 (replace_uncond_cands_and_profitable_phis): Don't replace a
6278 multiply candidate with a stride of 1 (copy or cast).
6279 (phi_incr_cost): Call uses_consumed_by_stmt rather than
6281 (lowest_cost_path): Likewise.
6282 (total_savings): Likewise.
6284 2017-06-26 Richard Biener <rguenther@suse.de>
6287 * config/i386/i386.c (ix86_init_mmx_sse_builtins):
6288 Use def_builtin_pure for all gather builtins.
6290 2017-06-26 Richard Biener <rguenther@suse.de>
6292 PR tree-optimization/81203
6293 * tree-tailcall.c (find_tail_calls): Do not move stmts into
6296 2017-06-26 Marek Polacek <polacek@redhat.com>
6299 * doc/invoke.texi: Document -Wmultistatement-macros.
6301 2017-06-26 Christophe Lyon <christophe.lyon@linaro.org>
6303 * doc/sourcebuild.texi (ARM-specific attributes): Document new
6304 arm_neon_ok_no_float_abi effective target.
6306 2017-06-26 Richard Biener <rguenther@suse.de>
6308 PR tree-optimization/80928
6309 * cfghooks.c (duplicate_block): Do not copy BB_DUPLICATED flag.
6310 (copy_bbs): Set BB_DUPLICATED flag early.
6311 (execute_on_growing_pred): Do not execute for BB_DUPLICATED
6313 (execute_on_shrinking_pred): Likewise.
6314 * tree-ssa.c (ssa_redirect_edge): Do not look for PHI args in
6315 BB_DUPLICATED blocks.
6316 * tree-ssa-phionlycoprop.c (eliminate_degenerate_phis_1): Properly
6317 iterate over all PHIs considering removal of *gsi.
6319 2017-06-23 Jim Wilson <jim.wilson@linaro.org>
6321 * doc/invoke.texi (AArch64 Options, -mtune): Re-add falkor and
6324 2017-06-23 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
6326 * config/rs6000/rs6000-string.c: (expand_block_clear,
6327 do_load_for_compare, select_block_compare_mode,
6328 compute_current_alignment, expand_block_compare,
6329 expand_strncmp_align_check, expand_strn_compare,
6330 expand_block_move, rs6000_output_load_multiple)
6331 Move functions related to string/block move/compare
6333 * config/rs6000/rs6000.c: Move above functions to rs6000-string.c.
6334 * config/rs6000/rs6000-protos.h (rs6000_emit_dot_insn): Add prototype
6335 for this function which is now used in two files.
6336 * config/rs6000/t-rs6000: Add rule to compile rs6000-string.o.
6337 * config.gcc: Add rs6000-string.o to extra_objs for
6338 targets powerpc*-*-* and rs6000*-*-*.
6340 2017-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
6343 * config/rs6000/rs6000.md (ALTIVEC_DFORM): Do not allow DImode in
6344 32-bit, since indexed is not valid for DImode.
6345 (mov<mode>_hardfloat32): Reorder ISA 2.07 load/stores before ISA
6346 3.0 d-form load/stores to be the same as mov<mode>_hardfloat64.
6347 (define_peephole2 for Altivec d-form load): Add 32-bit support.
6348 (define_peephole2 for Altivec d-form store): Likewise.
6351 * multiple_target.c (create_dispatcher_calls): Only create the
6352 dispatcher call if the function is the default clone of a
6355 2017-06-23 Segher Boessenkool <segher@kernel.crashing.org>
6358 * builtins.c (expand_builtin_atomic_fetch_op): If emitting code after
6359 a call, force the call to not be a tail call.
6361 2017-06-23 Jeff Law <law@redhat.com>
6363 * doc/contrib.texi: Add entry for Steven Pemberton's work on
6366 2017-06-23 Will Schmidt <will_schmidt@vnet.ibm.com>
6368 * config/rs6000/rs6000.c: Add include of ssa-propagate.h for
6369 update_call_from_tree(). (rs6000_gimple_fold_builtin): Add
6370 handling for early expansion of vector shifts (sl,sr,sra,rl).
6371 (builtin_function_type): Add vector shift right instructions
6372 to the unsigned argument list.
6374 2017-06-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
6376 rtl-optimizatoin/79286
6377 * ira.c (update_equiv_regs): Revert to using may_trap_or_fault_p again.
6378 * rtlanal.c (rtx_addr_can_trap_p_1): SYMBOL_REF_FUNCTION_P can never
6379 trap. PIC register plus a const unspec without offset can never trap.
6381 2017-06-23 Marc Glisse <marc.glisse@inria.fr>
6383 * tree.h (builtin_structptr_type): New type.
6384 (builtin_structptr_types): Declare new array.
6385 * tree.c (builtin_structptr_types): New array.
6386 (free_lang_data, build_common_tree_nodes): Use it.
6388 2017-06-23 Jonathan Wakely <jwakely@redhat.com>
6391 * doc/invoke.texi (-Wnoexcept-type): Fix name of option, from
6394 2017-06-22 Matt Turner <mattst88@gmail.com>
6396 * config/i386/driver-i386.c (host_detect_local_cpu): Add Kaby
6397 Lake models to skylake case. Assume skylake for unknown
6398 models with clflushopt.
6400 2017-06-22 Jeff Law <law@redhat.com>
6402 * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Handle
6403 frame sizes that do not satisfy aarch64_uimm12_shift.
6405 2017-06-22 Jan Hubicka <hubicka@ucw.cz>
6407 * profile-count.h (apply_probability,
6408 apply_scale, probability_in): Fix checks for zero.
6410 2017-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6412 * incpath.c (add_sysroot_to_chain): Allow for $SYSROOT prefix.
6413 * doc/cppdiropts.texi (-I @var{dir}): Document it.
6415 2016-06-22 Richard Biener <rguenther@suse.de>
6417 * tree-vect-loop.c (vect_model_reduction_cost): Handle
6418 COND_REDUCTION and INTEGER_INDUC_COND_REDUCTION without
6419 REDUC_MAX_EXPR support.
6420 (vectorizable_reduction): Likewise.
6421 (vect_create_epilog_for_reduction): Likewise.
6423 2017-06-22 James Greenhalgh <james.greenhalgh@arm.com>
6425 * match.pd (A / (1 << B) -> A >> B): New.
6426 * generic-match-head.c: Include optabs-tree.h.
6427 * gimple-match-head.c: Likewise.
6428 * optabs-tree.h (target_supports_op_p): New.
6429 * optabs-tree.c (target_supports_op_p): New.
6431 2017-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6433 * configure.ac (gcc_cv_ld_static_dynamic): Also check stderr for
6434 $gcc_cv_ld --help output.
6435 (gcc_cv_ld_demangle): Likewise.
6436 (gcc_cv_ld_eh_frame_hdr): Likewise.
6437 (gcc_cv_ld_pie): Likewise.
6438 (gcc_cv_ld_as_needed): Likewise. Prefer native forms unless $gnu_ld.
6439 (gcc_cv_ld_buildid): Likewise.
6440 (gcc_cv_ld_sysroot): Likewise.
6441 (ld_bndplt_support): Likewise.
6442 (ld_pushpopstate_support): Likewise.
6443 * configure: Regenerate.
6444 * config/sol2.h [!USE_GLD] (SYSROOT_SPEC): Define.
6446 2017-06-21 Jakub Jelinek <jakub@redhat.com>
6449 * config/i386/sse.md (round<mode>2): Renumber match_dup and
6450 operands indexes to avoid gap between operands and match_dups.
6452 2017-06-21 Andrew Pinski <apinski@cavium.com>
6454 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
6455 Increment Arith_shift and Arith_shift_reg by 1.
6456 * config/aarch64/aarch64-tuning-flags.def (cheap_shift_extend):
6458 * config/aarch64/aarch64.c (thunderx_tunings): Enable
6459 AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
6460 (aarch64_strip_extend): Add new argument and test for it.
6461 (aarch64_cheap_mult_shift_p): New function.
6462 (aarch64_rtx_mult_cost): Call aarch64_cheap_mult_shift_p and don't
6463 add a cost if it is true.
6464 Update calls to aarch64_strip_extend.
6465 (aarch64_rtx_costs): Update calls to aarch64_strip_extend.
6467 2017-06-21 Andrew Pinski <apinski@cavium.com>
6469 * config/aarch64/aarch64-cores.def (thunderxt88p1): Use thunderxt88
6471 (thunderxt88): Likewise.
6472 * config/aarch64/aarch64.c (thunderxt88_prefetch_tune): New variable.
6473 (thunderx_prefetch_tune): New variable.
6474 (thunderx2t99_prefetch_tune): Update for the correct values.
6475 (thunderxt88_tunings): New variable.
6476 (thunderx_tunings): Use thunderx_prefetch_tune instead of
6477 generic_prefetch_tune.
6478 (thunderx2t99_tunings): Use AUTOPREFETCHER_WEAK.
6480 2017-06-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6482 * config/aarch64/atomics.md (aarch64_compare_and_swap<mode>_lse,
6483 SHORT): Relax operand 3 to aarch64_reg_or_zero and constraint to Z.
6484 (aarch64_compare_and_swap<mode>_lse, GPI): Likewise.
6485 (aarch64_atomic_cas<mode>, SHORT): Likewise for operand 2.
6486 (aarch64_atomic_cas<mode>, GPI): Likewise.
6488 2017-06-21 Martin Liska <mliska@suse.cz>
6490 * gimplify.c (gimplify_label_expr): Insert GIMPLE_PREDICT
6491 statements on cold and hot labels.
6492 * predict.c (tree_estimate_probability_bb): Remove the
6493 prediction from this place.
6495 2017-06-21 Martin Liska <mliska@suse.cz>
6497 PR tree-optimization/79489
6498 * gimplify.c (maybe_add_early_return_predict_stmt): New
6500 (gimplify_return_expr): Call the function.
6501 * predict.c (tree_estimate_probability_bb): Remove handling
6503 * predict.def: Update comment about early return predictor.
6504 * gimple-predict.h (is_gimple_predict): New function.
6505 * predict.def: Change default value of early return to 66.
6506 * tree-tailcall.c (find_tail_calls): Skip GIMPLE_PREDICT
6508 * passes.def: Put pass_strip_predict_hints to the beginning of
6511 2017-06-21 Pierre-Marie de Rodat <derodat@adacore.com>
6513 * dwarf2out.c (gen_decl_die): Remove the guard to skip file-scope
6514 FUNCTION_DECL declarations.
6515 (dwarf2out_early_global_decl): Remove the guard to skip FUNCTION_DECL
6517 (dwaf2out_decl): Likewise.
6518 * godump.c (go_early_global_decl): Skip call to the real debug hook
6519 for FUNCTION_DECL declarations.
6520 * passes.c (rest_of_decl_compilation): Skip call to the
6521 early_global_decl debug hook for FUNCTION_DECL declarations, unless
6522 -fdump-go-spec is passed.
6524 2017-06-21 Marc Glisse <marc.glisse@inria.fr>
6526 * config/i386/i386.c (struct builtin_isa): New field pure_p.
6527 Reorder for compactness.
6528 (def_builtin, def_builtin2, ix86_add_new_builtins): Handle pure_p.
6529 (def_builtin_pure, def_builtin_pure2): New functions.
6530 (ix86_init_mmx_sse_builtins) [__builtin_ia32_stmxcsr]: Mark as pure.
6532 2017-06-21 Marc Glisse <marc.glisse@inria.fr>
6534 * match.pd (nop_convert): New predicate.
6535 ((A +- CST1) +- CST2): Allow some NOP conversions.
6537 2017-06-21 Jakub Jelinek <jakub@redhat.com>
6540 * gimplify.c (omp_add_variable): Don't force GOVD_SEEN for types
6541 with ctors/dtors if GOVD_SHARED is set.
6543 2017-06-21 Wilco Dijkstra <wdijkstr@arm.com>
6545 * config/aarch64/aarch64.md (movti_aarch64):
6546 Emit mov rather than orr.
6547 (movtf_aarch64): Likewise.
6548 * config/aarch64/aarch64-simd.md (aarch64_simd_mov):
6549 Emit mov rather than orr.
6551 2017-06-21 Wilco Dijkstra <wdijkstr@arm.com>
6553 * config/aarch64/aarch64-simd.md (aarch64_simd_dup):
6554 Swap alternatives, make integer dup more expensive.
6556 2017-06-21 Wilco Dijkstra <wdijkstr@arm.com>
6558 * config/aarch64/aarch64.c (aarch64_legitimate_constant_p):
6559 Return true for non-tls symbols.
6561 2017-06-21 James Greenhalgh <james.greenhalgh@arm.com>
6563 * config/aarch64/aarch64-cores.def (cortex-a55): New.
6564 (cortex-a75): Likewise.
6565 (cortex-a75.cortex-a55): Likewise.
6566 * config/aarch64/aarch64-tune.md: Regenerate.
6567 * doc/invoke.texi (-mtune): Document new values for -mtune.
6569 2017-06-21 Tom de Vries <tom@codesourcery.com>
6571 * doc/sourcebuild.texi (Add Options, Features for dg-add-options): Add
6573 (Effective-Target Keywords, Other attributes): Suggest using
6574 dg-add-options stack_size feature to get stack limit in stack_size
6575 effective target documentation.
6577 2017-06-21 Julian Brown <julian@codesourcery.com>
6578 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
6580 * config/aarch64/aarch64-simd.md (aarch64_crypto_pmulldi)
6581 (aarch64_crypto_pmullv2di): Change type attribute to crypto_pmull.
6582 * config/aarch64/thunderx2t99.md (thunderx2t99_pmull): New
6584 * config/arm/cortex-a53.md (cortex_a53_advsimd_type): Add crypto_pmull to
6585 attribute type list for neon_multiply.
6586 * config/arm/cortex-a57.md (cortex_a57_neon_type): Add crypto_pmull to
6587 attribute type list for neon_multiply.
6588 * config/arm/crypto.md (crypto_vmullp64): Change type to crypto_pmull.
6589 * config/arm/exynos-m1.md (exynos_m1_neon_type): Add crypto_pmull to
6590 attribute type list for neon_multiply.
6591 * config/arm/types.md (crypto_pmull): Add.
6592 * config/arm/xgene1.md (xgene1_neon_pmull): Add crypto_pmull to
6593 attribute type list.
6595 2017-06-20 Andreas Tobler <andreast@gcc.gnu.org>
6597 * config.gcc (armv6*-*-freebsd*): Change the target_cpu_cname to
6600 2017-06-20 Jakub Jelinek <jakub@redhat.com>
6602 * ira-costs.c (find_costs_and_classes): Initialize cost_classes later
6603 to make sure not to dereference a NULL cost_classes_ptr pointer.
6605 2017-06-20 Carl Love <cel@us.ibm.com>
6607 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6608 ALTIVEC_BUILTIN_VMULESW, ALTIVEC_BUILTIN_VMULEUW,
6609 ALTIVEC_BUILTIN_VMULOSW, ALTIVEC_BUILTIN_VMULOUW entries.
6610 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin,
6611 builtin_function_type): Add ALTIVEC_BUILTIN_* case statements.
6612 * config/rs6000/altivec.md (MVULEUW, VMULESW, VMULOUW,
6613 VMULOSW): New enum "unspec" values.
6614 (vec_widen_umult_even_v4si, vec_widen_smult_even_v4si,
6615 vec_widen_umult_odd_v4si, vec_widen_smult_odd_v4si,
6616 altivec_vmuleuw, altivec_vmulesw, altivec_vmulouw,
6617 altivec_vmulosw): New patterns.
6618 * config/rs6000/rs6000-builtin.def (VMLEUW, VMULESW, VMULOUW,
6619 VMULOSW): Add definitions.
6621 2017-06-20 Julia Koval <julia.koval@intel.com>
6623 * config/i386/i386.c: Fix rounding expand for new pattern.
6624 * config/i386/subst.md: Fix pattern (parallel -> unspec).
6626 2017-06-20 James Greenhalgh <james.greenhalgh@arm.com>
6628 * config/aarch64/aarch64-option-extensions.def (rcpc): New.
6629 * config/aarch64/aarch64.h (AARCH64_FL_RCPC): New.
6631 2017-06-20 James Greenhalgh <james.greenhalgh@arm.com>
6633 * config/aarch64/aarch64-option-extensions.def (fp16): Fix expected
6636 2017-06-20 James Greenhalgh <james.greenhalgh@arm.com>
6638 * config/aarch64/aarch64-cores.def: Rearrange to sort by
6639 architecture, then by implementer ID.
6640 * config/aarch64/aarch64-tune.md: Regenerate.
6642 2017-06-20 Richard Biener <rguenther@suse.de>
6645 * fold-const.c (split_tree): Fold to type before negating.
6647 2017-06-20 David Malcolm <dmalcolm@redhat.com>
6649 * diagnostic-show-locus.c
6650 (selftest::test_fixit_deletion_affecting_newline): New function.
6651 (selftest::diagnostic_show_locus_c_tests): Call it.
6653 2017-06-20 Andreas Schwab <schwab@suse.de>
6656 * config/m68k/m68k.md (bsetdreg, bchgdreg, bclrdreg): Use "=d"
6659 2017-06-20 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
6661 * config/arm/arm-c.c (arm_cpu_builtins): New block to define
6662 __ARM_FEATURE_COPROC according to support.
6664 2017-06-20 Jakub Jelinek <jakub@redhat.com>
6666 * tree-chkp.c (chkp_get_hard_register_var_fake_base_address):
6667 Rewritten to avoid overflow for > 32-bit pointers.
6670 * ubsan.h (ubsan_encode_value): Workaround buggy clang++ parser
6671 by removing enum keyword.
6672 (ubsan_type_descriptor): Likewise. Formatting fix.
6675 * config/i386/i386.md (TARGET_USE_VECTOR_CONVERTS float si->{sf,df}
6676 splitter): Require TARGET_SSE2 in the condition.
6678 2017-06-20 Michael Meissner <meissner@linux.vnet.ibm.com>
6681 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Add support
6682 for doing vector set of SFmode on ISA 3.0.
6683 * config/rs6000/vsx.md (vsx_set_v4sf_p9): Likewise.
6684 (vsx_set_v4sf_p9_zero): Special case setting 0.0f to a V4SF
6686 (vsx_insert_extract_v4sf_p9): Add an optimization for inserting a
6687 SFmode value into a V4SF variable that was extracted from another
6688 V4SF variable without converting the element to double precision
6689 and back to single precision vector format.
6690 (vsx_insert_extract_v4sf_p9_2): Likewise.
6692 2017-06-19 Jakub Jelinek <jakub@redhat.com>
6694 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Multiply
6695 in UWHI to avoid undefined overflow.
6698 * ubsan.h (enum ubsan_encode_value_phase): New.
6699 (ubsan_encode_value): Change second argument to
6700 enum ubsan_encode_value_phase with default value of
6701 UBSAN_ENCODE_VALUE_GENERIC.
6702 * ubsan.c (ubsan_encode_value): Change second argument to
6703 enum ubsan_encode_value_phase PHASE from bool IN_EXPAND_P,
6704 adjust uses, for UBSAN_ENCODE_VALUE_GENERIC use just
6705 create_tmp_var_raw instead of create_tmp_var and use a
6707 (ubsan_expand_bounds_ifn, ubsan_build_overflow_builtin,
6708 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
6709 ubsan_encode_value callers.
6712 * ubsan.c (ubsan_encode_value): If current_function_decl is NULL,
6713 use create_tmp_var_raw instead of create_tmp_var, mark it addressable
6714 just by setting TREE_ADDRESSABLE on the result and use a TARGET_EXPR.
6716 2017-06-19 Richard Biener <rguenther@suse.de>
6719 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop): Clear niter
6720 estimates if we changed anything.
6722 2017-06-19 Richard Biener <rguenther@suse.de>
6724 PR tree-optimization/80887
6725 * tree-ssa-sccvn.c (mprts_hook_cnt): New global.
6726 (vn_lookup_simplify_result): Allow only mprts_hook_cnt succesful
6727 simplified lookups, then reset mprts_hook.
6728 (vn_nary_build_or_lookup_1): Set mprts_hook_cnt to 9 before
6730 (try_to_simplify): Likewise.
6732 2017-06-19 Martin Liska <mliska@suse.cz>
6735 * gimplify.c (gimplify_switch_expr):
6736 Initialize live_switch_vars for SWITCH_BODY == STATEMENT_LIST.
6738 2017-06-19 Martin Liska <mliska@suse.cz>
6740 * doc/install.texi: Document that PGO runs in 4 stages.
6742 2017-06-19 Martin Liska <mliska@suse.cz>
6745 * attribs.c (make_dispatcher_decl): Do not append '.ifunc'
6746 to dispatcher function name.
6747 * multiple_target.c (replace_function_decl): New function.
6748 (create_dispatcher_calls): Redirect both edges and references.
6750 2017-06-19 Jan Hubicka <hubicka@ucw.cz>
6752 * profile-count.c (profile_count::dump): Dump quality.
6753 (profile_count::differs_from_p): Update for unsigned val.
6754 * profile-count.h (profile_count_quality): New enum.
6755 (profile_count): Turn m_val to 62bit unsigned, add quality tracking.
6757 2017-06-19 Richard Biener <rguenther@suse.de>
6759 * tree-ssa-loop-niter.h (estimate_numbers_of_iterations): Take
6760 struct function as arg.
6761 (estimate_numbers_of_iterations): Export overload with loop arg.
6762 (free_numbers_of_iterations_estimates_loop): Use an overload of
6763 free_numbers_of_iterations_estimates instead.
6764 * tree-cfg.c (remove_bb): Adjust.
6765 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Likewise.
6766 * tree-parloops.c (gen_parallel_loop): Likewise.
6767 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables):
6769 (tree_unroll_loops_completely): Likewise.
6770 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
6771 Use an overload instead and export.
6772 (estimated_loop_iterations): Adjust.
6773 (max_loop_iterations): Likewise.
6774 (likely_max_loop_iterations): Likewise.
6775 (estimate_numbers_of_iterations): Take struct function as arg
6777 (loop_exits_before_overflow): Adjust.
6778 (free_numbers_of_iterations_estimates_loop): Use an overload.
6779 * tree-vect-loop.c (vect_analyze_loop_form): Adjust.
6780 * tree-vectorizer.c (vect_free_loop_info_assumptions): Likewise.
6782 2017-06-19 Richard Biener <rguenther@suse.de>
6785 * ipa-prop.c (find_constructor_constant_at_offset): Handle
6786 RANGE_EXPR conservatively.
6788 2017-06-16 Carl Love <cel@us.ibm.com>
6790 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6791 definitions for vec_float, vec_float2, vec_floato,
6792 vec_floate built-ins.
6793 * config/rs6000/vsx.md (define_c_enum "unspec"): Add RTL code
6794 for instructions vsx_xvcvsxws vsx_xvcvuxwsp, float2, floato and
6796 * config/rs6000/rs6000-builtin.def (FLOAT2_V2DI, FLOATE_V2DF,
6797 FLOATE_2DI, FLOATO_V2DF, FLOATEE_V2DI, XVCVSXWSP_V4SF,
6798 UNS_FLOATO_V2DI, UNS_FLOATE_V2DI): Add definitions.
6799 * config/altivec.md (define_insn "p8_vmrgew_<mode>",
6800 define_mode_attr VF_sxddp): Add V4SF type to p8_vmrgew.
6801 * config/rs6000/altivec.h (vec_float, vec_float2, vec_floate,
6802 vec_floato): Add builtin defines.
6803 * doc/extend.texi (vec_float, vec_float2, vec_floate, vec_floato):
6804 Update the built-in documentation file for the new built-in
6807 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
6809 * config/arm/arm.opt (marm): Mark as the negative of of -mthumb.
6810 (mthumb): Mark as the negative of -marm.
6812 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
6814 * doc/invoke.texi (ARM Options, -mcpu): Document supported
6816 (ARM Options, -mtune): Document that this accepts the same
6817 extension options as -mcpu.
6818 (ARM Options, -mfpu): Document addition of -mfpu=auto.
6820 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
6822 * doc/invoke.texi (ARM Options, -march=): Document new syntax and
6823 permitted extensions.
6825 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
6827 * config/arm/arm-cpus.in (armv7): Add extension +nofp.
6828 (armv7-r): Add aliases vfpv3xd and vfpv3-d16.
6829 (armv8-m.main): Add option +nodsp.
6830 * config/arm/arm-cpu-cdata.h: Regenerated.
6832 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
6834 * config/arm/t-fuchsia: New file.
6835 * config.gcc (arm*-*-fuchsia*): Use it.
6837 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
6839 * config/arm/t-symbian: Rewrite for new option infrastructure.
6841 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
6843 * config/arm/t-phoenix (MULTILIB_REUSE): Clear variable.
6844 (MULTILIB_REQUIRED): Likewise.
6846 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
6848 * config/arm/t-linux-eabi (MULTILIB_EXCEPTIONS): Set to empty.
6849 (MULTILIB_RESUE): Likewise.
6850 (MULTILIB_MATCHES): Likewise.
6851 (MULTLIB_REQUIRED): Likewise.
6853 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
6855 * config/arm/t-rtems: Rewrite for new option framework.
6857 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
6859 * config/arm/t-aprofile (v7_a_nosimd_variants, v7_a_simd_variants)
6860 (v7ve_nosimd_variatns, v7ve_vfpv3_simd_variants)
6861 (v7ve_vfpv4_simd_variants, v8_a_nosimd_variants, v8_a_simd_variants)
6862 (v8_1_a_simd_variants, v8_2_a_simd_variants): Move to ...
6863 * config/arm/t-multilib: ... here.
6864 (MULTILIB_OPTIONS): Add armv7 and armv7+fp architectures.
6865 (MULTILIB_MATCHES): Use armv7 libraries for armv7-r. Also use for
6866 armv7-a and armv8*-a when A-profile libraries have not been built.
6867 * config/arm/t-rmprofile: Rewrite.
6869 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
6871 * genmultilib (multilib_reuse): Allow an explicit period to be escaped
6872 with a backslash. Remove the backslash after substituting unescaped
6874 * doc/fragments.texi (MULTILIB_REUSE): Document it.
6876 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
6878 * config.gcc: (arm*-*-*): When building a-profile libraries, force
6879 the driver to pass through the default setting of -mfloat-abi.
6880 * common/config/arm/arm-common.c (arm_target_thumb_only): Return -marm
6882 * config/arm/t-multilib (MULTILIB_REUSE): Initialize to empty.
6883 (all_feat_combs): New rule.
6884 (MULTILIB_OPTIONS): Use explicit ARM and Thumb directories. Rework
6886 * config/arm/t-aprofile: Rewrite.
6888 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
6890 * config/arm/arm.h (FPUTYPE_AUTO): Define.
6891 * config/arm/arm.c (arm_option_override): Use FPUTYPE_AUTO if the
6892 fpu is not specified by the user/command-line.
6893 * config/arm/bpabi.h (FPUTYPE_DEFAULT): Delete.
6894 * config/arm/netbsd-elf.h (FPUTYPE_DEFAULT): Delete.
6895 * config/arm/linux-elf.h (FPUTYPE_DEFAULT): Delete.
6896 * config/arm/vxworks.h (FPUTYPE_DEFAULT): Delete.
6897 * common/config/arm/arm-common.c (arm_canon_arch_option): Use
6898 FPUTYPE_AUTO insted of FPUTYPE_DEFAULT.
6900 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
6902 * config/arm/elf.h (MULTILIB_DEFAULTS): Delete.
6903 * config/arm/t-arm-elf: Rewritten.
6905 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
6907 * config/arm/arm.h (TARGET_HARD_FLOAT): Also check that we
6908 have some floating-point instructions.
6909 (TARGET_SOFT_FLOAT): Define as inverse of TARGET_HARD_FLOAT.
6910 (TARGET_MAYBE_HARD_FLOAT): New macro.
6911 * config/arm/arm-builtins.c (arm_init_builtins): Use
6912 TARGET_MAYBE_HARD_FLOAT.
6913 * config/arm/arm.c (arm_option_override): Use TARGET_HARD_FLOAT_ABI.
6915 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
6917 * common/config/arm/arm-common.c: Define INCLUDE_LIST.
6918 (configargs.h): Include it.
6919 (arm_print_hint_for_fpu_option): New function.
6920 (arm_parse_fpu_option): New function.
6921 (candidate_extension): New class.
6922 (arm_canon_for_multilib): New function.
6923 * config/arm/arm.h (CANON_ARCH_SPEC_FUNCTION): New macro.
6924 (EXTRA_SPEC_FUNCTIONS): Add CANON_ARCH_SPEC_FUNCTION.
6925 (ARCH_CANONICAL_SPECS): New macro.
6926 (DRIVER_SELF_SPECS): Add ARCH_CANONICAL_SPECS.
6928 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
6930 * config.gcc (arm*-*-*): Ensure both target_cpu_cname and with_cpu
6931 are set after handling multilib fragments. Set target_cpu_default2
6934 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
6936 * config.gcc (arm*-*-fucshia*): Set target_cpu_cname to the real
6938 (arm*-*-*): Set target_cpu_default2 to a quoted string.
6939 * config/arm/parsecpu.awk (check_cpu): Validate any extension
6941 (check_arch): Likewise.
6942 * config/arm/arm.c (arm_configure_build_target): Handle
6943 TARGET_CPU_DEFAULT being a string constant. Scan any feature
6944 options in the default.
6946 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
6948 * config/arm/arm-protos.h (cpu_arch_extension): Add field to record
6949 when an option is an alias of another.
6950 * config/arm/parsecpu.awk (optalias): New parser token.
6951 (gen_comm_data): Mark non-alias options as such. Emit entries
6952 for extension aliases.
6953 * config/arm/arm-cpus.in (armv5e): Make vfpv2 an alias.
6954 (armv5te, armv5tej, armv6, armv6j, armv6k, armv6z): Likewise.
6955 (armv6kz, armv6zk, armv6t2): Likewise.
6956 (armv7): Make vfpv3-d16 an alias.
6957 (armv7-a): Make vfpv3-d16, neon and neon-vfpv3 aliases. Sort in
6959 (armv7ve): Make vfpv4-d16, neon-vfpv3 and neon-vfpv4 aliases.
6960 Sort in canonical order.
6961 (armv8-a): Sort in canonical order.
6962 (armv8.1-a, armv8.2-a): Likewise.
6963 (generic-armv7-a): Make neon and neon-vfpv3 aliases. Sort in
6965 (cortex-a9): Sort in canonical order.
6966 * config/arm/arm.c (selftests.h): Include it.
6967 (arm_test_cpu_arch_data): New function.
6968 (arm_run_self_tests): New function.
6969 (TARGET_RUN_TARGET_SELFTESTS): Redefine.
6970 (targetm): Move declaration to the end of the file.
6971 * arm-cpu-cdata.h: Regenerated.
6973 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
6975 * config/arm/arm.h (TARGET_MODE_SPECS): Add additional parameter to
6976 call to target_mode_check describing the type of option passed.
6977 * common/config/arm/arm-common.c (arm_arch_core_flag): Delete.
6978 (arm_target_thumb_only): Use arm_parse_arch_option_name or
6979 arm_parse_cpu_option_name to match parameters against list of
6981 * config/arm/parsecpu.awk (gen_comm_data): Don't generate
6982 arm_arch_core_flags data structure.
6983 * config/arm/arm-cpu_cdata.h: Regenerated.
6985 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
6987 * common/config/arm/arm-common.c (arm_initialize_isa): Moved here from
6989 (arm_print_hint_for_cpu_option): Likewise.
6990 (arm_print_hint_for_arch_option): Likewise.
6991 (arm_parse_cpu_option_name): Likewise.
6992 (arm_parse_arch_option_name): Likewise.
6993 * config/arm/arm.c (arm_identify_fpu_from_isa): Use the computed number
6994 of entries in the all_fpus list.
6995 * config/arm/arm-protos.h (all_architectures, all_cores): Declare.
6996 (arm_parse_cpu_option_name): Declare.
6997 (arm_parse_arch_option_name): Declare.
6998 (arm_parse_option_features): Declare.
6999 (arm_intialize_isa): Declare.
7000 * config/arm/parsecpu.awk (gen_data): Move CPU and architecture
7002 (gen_comm_data): ... here. Make definitions non-static.
7003 * config/arm/arm-cpu-data.h: Regenerated.
7004 * config/arm/arm-cpu-cdata.h: Regenerated.
7006 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
7008 * config/arm/arm-protos.h (arm_build_target): Remove arch_core.
7009 (cpu_arch_extension): New structure.
7010 (cpu_arch_option, arch_option, cpu_option): New structures.
7011 * config/arm/parsecpu.awk (gen_headers): Build an enumeration of
7013 (gen_data): Generate new format data tables.
7014 * config/arm/arm.c (cpu_tune): New structure.
7015 (cpu_option, processors): Delete.
7016 (arm_print_hint_for_core_or_arch): Delete. Replace with ...
7017 (arm_print_hint_for_cpu_option): ... this and ...
7018 (arm_print_hint_for_arch_option): ... this.
7019 (arm_parse_arch_cpu_name): Delete. Replace with ...
7020 (arm_parse_cpu_option_name): ... this and ...
7021 (arm_parse_arch_option_name): ... this.
7022 (arm_unrecognized_feature): Change type of target parameter to
7024 (arm_parse_arch_cpu_features): Delete. Replace with ...
7025 (arm_parse_option_features): ... this.
7026 (arm_configure_build_target): Rework to use new configuration data
7028 (arm_print_tune_info): Rework for new configuration data tables.
7029 * config/arm/arm-cpu-data.h: Regenerated.
7030 * config/arm/arm-cpu.h: Regenerated.
7032 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
7034 * Makefile.in (OBJS): Move sbitmap.o from here ...
7035 (OBJS-libcommon): ... to here.
7037 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
7039 * config/arm/arm-isa.h (ISA_ALL_FPU_INTERNAL): Renamed from ISA_ALL_FPU.
7040 (ISA_ALL_CRYPTO): New macro.
7041 (ISA_ALL_SIMD): New macro
7042 (ISA_ALL_FP): New macro.
7043 * config/arm/arm.c (fpu_bitlist): Update initializer.
7044 * config/arm/arm-cpus.in: Use new ISA_ALL macros to disable crypto,
7046 (arm9e): Add fpu. Add option for nofp
7047 (arm946e-s, arm966e-s, arm968e-s, arm10e, arm1020e, arm1022e): Likewise.
7048 (arm926ej-s, arm1026ej-s): Likewise.
7049 (generic-armv7-a): Add fpu. Add options for simd, vfpv3, vfpv3-d16,
7050 vfpv3-fp16, vfpv3-d16-fp16, vfpv4, vfpv4-d16, neon, neon-vfp3,
7051 neon-fp16, neon-vfpv4, nofp and nosimd.
7052 (cortex-a5, cortex-a7): Add fpu. Add options for nosimd and nofp.
7053 (cortex-a8): Add fpu. Add option for nofp.
7054 (cortex-a9): Add fpu. Add options for nosimd and nofp.
7055 (cortex-a12, cortex-a15, cortex-a17): Add fpu. Add option for nofp.
7056 (cortex-r4f): Add fpu.
7057 (cortex-r5): Add fpu. Add options for nofp.dp and nofp.
7058 (cortex-r7): Use idiv option from architecture. Add fpu. Add option
7060 (cortex-r8): Likewise.
7061 (cortex-m4): Add fpu. Add option for nofp.
7062 (cortex-a15.cortex-a7): Add fpu. Add option for nofp.
7063 (cortex-a17.cortex-a7): Likewise.
7064 (cortex-a32): Add fpu. Add options for crypto and nofp.
7065 (cortex-a35, cortex-a53): Likewise.
7066 (cortex-a57): Add fpu. Add option for crypto.
7067 (cortex-a72, cortex-a73): Likewise.
7068 (exynos-m1): Likewise.
7069 (cortex-a57.cortex-a53, cortex-a72.cortex-a53): Likewise.
7070 (cortex-a73.cortex-a35, cortex-a73.cortex-a53): Likewise.
7071 (cortex-m33): Add fpu. Add option for nofp.
7072 * config/arm/arm-cpu-cdata.h: Regenerated
7073 * config/arm/arm-cpu-data.h: Regenerated.
7075 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
7077 * arm-cpus.in (armv5e): Add options fp, vfpv2 and nofp.
7078 (armv5te, armv5tej): Likewise.
7079 (armv6, armv6j, armv6k, armv6z, armv6kz, armv6zk, armv6t2): Likewise.
7080 (armv7): Add options fp and vfpv3-d16.
7081 (armv7-a): Add options fp, simd, vfpv3, vfpv3-d16, vfpv3-d16-fp16,
7082 vfpv3-fp16, vfpv4, vfpv4-d16, neon, neon-vfpv3, neon-fp16, neon-vfpv4,
7084 (armv7ve): Likewise.
7085 (armv7-r): Add options fp, fp.sp, idiv, nofp and noidiv.
7086 (armv7e-m): Add options fp, fpv5, fp.dp and nofp.
7087 (armv8-a): Add nocrypto option.
7088 (armv8.1-a, armv8.2-a): Likewise.
7089 (armv8-m.main): add options fp, fp.dp and nofp.
7091 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
7093 * config/arm/arm-cpus.in (armv8-a): Add options crc, simd crypto and
7095 (armv8-a+crc): Delete.
7096 (armv8.1-a): Add options simd, crypto and nofp.
7097 (armv8.2-a): Add options fp16, simd, crypto and nofp.
7098 (armv8.2-a+fp16): Delete.
7099 (armv8-m.main): Add option dsp.
7100 (armv8-m.main+dsp): Delete.
7101 (cortex-a8): Add fpu. Add nofp option.
7102 (cortex-a9): Add fpu. Add nofp and nosimd options.
7103 * config/arm/parsecpu.awk (gen_data): Generate option tables and
7104 link to main cpu and architecture data structures.
7105 (gen_comm_data): Only put isa attributes from the main architecture
7107 (option): New statement for architecture and CPU entries.
7108 * arm.c (struct cpu_option): New structure.
7109 (struct processors): Add entry for options.
7110 (arm_unrecognized_feature): New function.
7111 (arm_parse_arch_cpu_name): Ignore any characters after the first
7113 (arm_parse_arch_cpu_feature): New function.
7114 (arm_configure_build_target): Separate out any CPU and architecture
7115 features and parse separately. Don't error out if -mfpu=auto is
7116 used with only an architecture string.
7117 (arm_print_asm_arch_directives): New function.
7118 (arm_file_start): Call it.
7119 * config/arm/arm-cpu-cdata.h: Regenerated.
7120 * config/arm/arm-cpu-data.h: Likewise.
7121 * config/arm/arm-tables.opt: Likewise.
7123 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
7125 * config/arm/elf.h (ASM_SPEC): Only pass -mfpu through to the
7126 assembler when it is not -mfpu=auto.
7128 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
7130 * config/arm/arm.h (BIG_LITTLE_SPEC): Delete macro.
7131 (ASM_REWRITE_SPEC_FUNCTIONS): New macro.
7132 (BIG_LITTLE_CPU_SPEC_FUNCTIONS): Delete macro.
7133 (ASM_CPU_SPEC): Rewrite.
7134 (MCPU_MTUNE_NATIVE_FUNCTIONS): New macro.
7135 (EXTRA_SPEC_FUNCTIONS): Move outside of ifdef. Use
7136 MCPU_MTUNE_NATIVE_FUNCTIONS and ASM_REWRITE_SPEC_FUNCTIONS. Remove
7137 reference to BIG_LITTLE_CPU_SPEC_FUNCTIONS.
7138 * common/config/arm/arm-common.c (arm_rewrite_selected_cpu): Ensure
7139 copied string is NUL-terminated. Also strip any characters prefixed
7141 (arm_rewrite_selected_arch): New function.
7142 (arm_rewrite_march): New function.
7144 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
7146 * config/arm/arm.opt (x_arm_arch_string): New TargetSave option.
7147 (x_arm_cpu_string, x_arm_tune_string): Likewise.
7148 (march, mcpu, mtune): Convert to string-based options.
7149 * config/arm/arm.c (arm_print_hint_for_core_or_arch): New function.
7150 (arm_parse_arch_cpu_name): New function.
7151 (arm_configure_build_target): Use arm_parse_arch_cpu_name to
7152 identify selected architecture or CPU.
7153 (arm_option_save): New function.
7154 (TARGET_OPTION_SAVE): Redefine.
7155 (arm_option_restore): Restore string options.
7156 (arm_option_print): Print string options.
7158 2017-06-16 Martin Sebor <msebor@redhat.com>
7160 PR tree-optimization/80933
7161 PR tree-optimization/80934
7162 * builtins.c (fold_builtin_3): Do not handle bcmp here.
7163 * gimple-fold.c (gimple_fold_builtin_bcmp): New function.
7164 (gimple_fold_builtin_bcopy, gimple_fold_builtin_bzero): Likewise.
7165 (gimple_fold_builtin): Call them.
7167 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
7169 * gimple-ssa-isolate-paths.c (isolate_path): Set edge leading to path
7170 as unlikely; update profile.
7172 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
7174 * predict.c (force_edge_cold): Handle declaring edges impossible
7177 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
7179 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Update
7181 (try_unroll_loop_completely): Fix reporting.
7183 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
7185 * tree-ssa-tail-merge.c (replace_block_by): Fix profile updating.
7187 2017-06-16 James Greenhalgh <james.greenhalgh@arm.com>
7190 * config/arm/arm-builtins.c (arm_expand_builtin_args): Return TARGET
7191 if given a non-constant argument for an intrinsic which requires a
7194 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
7196 * profile.c (compare_freqs): New function.
7197 (branch_prob): Sort edge list.
7198 (find_spanning_tree): Assume that the list is priority sorted.
7200 2017-06-16 Richard Biener <rguenther@suse.de>
7202 PR tree-optimization/81090
7203 * passes.def (pass_record_bounds): Remove.
7204 * tree-pass.h (make_pass_record_bounds): Likewise.
7205 * tree-ssa-loop.c (pass_data_record_bounds, pass_record_bounds,
7206 make_pass_record_bounds): Likewise.
7207 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Do
7208 not free niter estimates at the beginning but at the end.
7209 * tree-scalar-evolution.c (scev_finalize): Free niter estimates.
7211 2017-06-16 Richard Biener <rguenther@suse.de>
7213 * tree-switch-conversion.c (emit_case_bit_tests): Adjust
7214 initializer to workaround ICE in host GCC 4.8.
7216 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
7218 * ipa-inline-transform.c (update_noncloned_frequencies): Update also
7220 (clone_inlined_nodes): Update.
7222 2017-06-16 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7224 * config/aarch64/aarch64.c (qdf24xx_prefetch_tune): Update
7225 prefetch settings, and enable prefetching by default at -O3.
7227 2017-06-16 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7229 * config/aarch64/aarch64.c (aarch64_override_options_internal):
7230 Set flag_prefetch_loop_arrays according to tuning data.
7232 2017-06-16 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7234 * config/aarch64/aarch64-protos.h (struct cpu_prefetch_tune):
7236 (struct tune_params): Use cpu_prefetch_tune instead of cache_line_size.
7237 [Unrelated to main purpose of the patch] Place the pointer field last
7238 to enable type checking errors when tune structure are wrongly merged.
7239 * config/aarch64/aarch64.c (generic_prefetch_tune,)
7240 (exynosm1_prefetch_tune, qdf24xx_prefetch_tune,)
7241 (thunderx2t99_prefetch_tune): New tune constants.
7242 (tune_params *_tunings): Update all tunings (no functional change).
7243 (aarch64_override_options_internal): Set PARAM_SIMULTANEOUS_PREFETCHES,
7244 PARAM_L1_CACHE_SIZE, PARAM_L1_CACHE_LINE_SIZE, and PARAM_L2_CACHE_SIZE
7245 from tunings structures.
7247 2017-06-16 Jakub Jelinek <jakub@redhat.com>
7250 * ubsan.c (instrument_null): Add T argument, use it instead
7251 of computing it based on IS_LHS.
7252 (instrument_object_size): Likewise.
7253 (pass_ubsan::execute): Adjust instrument_null and
7254 instrument_object_size callers to pass gimple_get_lhs or
7255 gimple_assign_rhs1 result to it. Use instrument_null instead of
7256 calling get_base_address and instrument_mem_ref. Handle
7257 aggregate call arguments for object-size sanitization.
7259 2017-06-16 Yury Gribov <tetra2005@gmail.com>
7261 PR tree-optimization/81089
7262 * tree-vrp.c (is_masked_range_test): Validate operands of
7265 2017-06-15 Martin Sebor <msebor@redhat.com>
7268 * dumpfile.c (dump_register): Avoid calling memset to initialize
7269 a class with a default ctor.
7270 * gcc.c (struct compiler): Remove const qualification.
7271 * genattrtab.c (gen_insn_reserv): Replace memset with initialization.
7272 * hash-table.h: Ditto.
7273 * ipa-cp.c (allocate_and_init_ipcp_value): Replace memset with
7275 * ipa-prop.c (ipa_free_edge_args_substructures): Ditto.
7276 * omp-low.c (lower_omp_ordered_clauses): Replace memset with
7278 * params.h (struct param_info): Make struct members non-const.
7279 * tree-switch-conversion.c (emit_case_bit_tests): Replace memset
7280 with default initialization.
7281 * vec.h (vec_copy_construct, vec_default_construct): New helper
7283 (vec<T>::copy, vec<T>::splice, vec<T>::reserve): Replace memcpy
7284 with vec_copy_construct.
7285 (vect<T>::quick_grow_cleared): Replace memset with default ctor.
7286 (vect<T>::vec_safe_grow_cleared, vec_safe_grow_cleared): Same.
7287 * doc/invoke.texi (-Wclass-memaccess): Document.
7289 2017-06-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7291 * emit-rtl.h (is_leaf): Update comment about local
7294 2017-06-15 Jozef Lawrynowicz <jozef.l@somniumtech.com>
7297 * config/msp430/msp430.c (msp430_data_attr): Check that it's possible
7298 for a variable to have a section before checking if the section has a
7300 Set section to.persistent if persistent attribute is set.
7301 Warn if .persistent attribute is used on an automatic variable.
7303 2017-06-15 Eric Botcazou <ebotcazou@adacore.com>
7305 PR rtl-optimization/80474
7306 * reorg.c (update_block): Do not ignore instructions in a delay slot.
7308 2017-06-15 Segher Boessenkool <segher@kernel.crashing.org>
7310 * config/rs6000/rs6000.md (add<mode>3): Use reg_or_subregno instead
7313 2017-06-14 Maciej W. Rozycki <macro@imgtec.com>
7315 * config/mips/mips.md (MIPS16_T_REGNUM): Remove constant.
7316 (casesi): Emit bounds checking as RTL.
7317 (casesi_internal_mips16_<mode>): Remove bounds checking.
7319 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
7321 * config/xtensa/xtensa.c (xtensa_option_override): Append
7322 MASK_CONST16 to target_flags in the absence of TARGET_L32R.
7323 (hwloop_optimize, hwloop_fail, hwloop_pattern_reg,
7324 xtensa_doloop_hooks): Define unconditionally.
7325 (xtensa_reorg_loops): Only call reorg_loops in the presence of
7327 * config/xtensa/xtensa.h (TARGET_L32R): New definition.
7328 (TARGET_DEFAULT): Remove XCHAL_HAVE_L32R condition and account
7329 for it in xtensa_option_override.
7330 (HARD_FRAME_POINTER_IS_FRAME_POINTER,
7331 HARD_FRAME_POINTER_IS_ARG_POINTER): New definitions.
7333 2017-06-14 Boris Kolpackov <boris@codesynthesis.com>
7335 * doc/cppopts.texi: Document '-' special value to -MF.
7337 2017-06-14 Wilco Dijkstra <wdijkstr@arm.com>
7339 * config/arm/cortex-a53.md (cortex_a53_fpalu) Adjust latency.
7340 (cortex_a53_fconst): Likewise.
7341 (cortex_a53_fpmul): Likewise.
7342 (cortex_a53_f_load_64): Likewise.
7343 (cortex_a53_f_load_many): Likewise.
7344 (cortex_a53_advsimd_alu): Likewise.
7345 (cortex_a53_advsimd_alu_q): Likewise.
7346 (cortex_a53_advsimd_mul): Likewise.
7347 (cortex_a53_advsimd_mul_q): Likewise.
7348 (fpmac bypass): Add new bypass for fpmac-fpmac case.
7349 Add missing fmul, r2f_cvt and fconst cases.
7351 2017-06-14 Richard Biener <rguenther@suse.de>
7354 * fold-const.c (split_tree): Drop TREE_OVERFLOW flag from
7356 (fold_binary_loc): When associating do not treat pre-existing
7357 TREE_OVERFLOW on literal constants as a reason to allow
7358 TREE_OVERFLOW on associated literal constants.
7360 2017-06-14 Eric Botcazou <ebotcazou@adacore.com>
7362 * config/sparc/sparc.h (MASK_ISA): Add MASK_LEON and MASK_LEON3.
7363 (MASK_FEATURES): New macro.
7364 * config/sparc/sparc.c (sparc_option_override): Remove the special
7365 handling of -mfpu and generalize it to all MASK_FEATURES switches.
7367 2017-06-14 Eric Botcazou <ebotcazou@adacore.com>
7369 * simplify-rtx.c (simplify_binary_operation_1) <UDIV>: Do not simplify
7370 a division of 0 if non-call exceptions are enabled.
7372 2017-06-14 Andrew Pinski <apinski@cavium.com>
7373 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
7376 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
7377 Improve vector initialization code gen for only variable case.
7379 2017-06-14 Eric Botcazou <ebotcazou@adacore.com>
7381 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-T5 entry.
7383 2017-06-14 Richard Biener <rguenther@suse.de>
7385 PR tree-optimization/81083
7386 * tree-ssa-sccvn.c (vn_reference_lookup_3): Do not use abnormals
7389 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
7391 * config/rs6000/rs6000.c: Update all comments that mentioned SPE.
7392 (rs6000_expand_builtin): Remove RS6000_BTC_EVSEL.
7393 * config/rs6000/rs6000.h (RS6000_BTC_EVSEL): Delete.
7394 * config/rs6000/vxworks.h (VXCPU_FOR_8548): Delete. Adjust former use.
7395 * config/rs6000/vxworksae.h (VXCPU_FOR_8548): Delete.
7396 * config/rs6000/vxworksmils.h (VXCPU_FOR_8548): Delete.
7398 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
7400 * config/rs6000/rs6000-opts.h (enum rs6000_vector): Delete VECTOR_SPE.
7401 * config/rs6000/rs6000.c (rs6000_debug_vector_unit): Delete VECTOR_SPE.
7403 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
7405 * config/rs6000/rs6000.h (FIXED_SCRATCH): Delete.
7407 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
7409 * config/rs6000/t-rtems: Don't handle SPE.
7411 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
7413 * config/rs6000/t-linux: Don't handle SPE.
7415 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
7417 * config/rs6000/eabispe.h: Delete file.
7419 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
7421 * config/rs6000/t-spe: Delete file.
7423 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
7425 * config/rs6000/rs6000.c (SPE_CONST_OFFSET_OK): Delete.
7426 (rs6000_legitimate_offset_address_p): Return false for anything in
7427 V2SImode or V2SFmode.
7429 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
7431 * config/rs6000/rs6000-modes.def: Remove all 8-byte vector modes
7432 except V2SF and V2SI. Rearrange the vector modes, and add comments.
7433 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Remove V8QImode
7435 (reg_offset_addressing_ok_p): Remove V4HImode and V1DImode.
7436 (rs6000_legitimate_offset_address_p): Ditto.
7437 (rs6000_emit_move): Ditto.
7438 (rs6000_init_builtins): Remove V4HI_type_node.
7440 2017-06-13 Martin Liska <mliska@suse.cz>
7443 * asan.c (asan_sanitize_stack_p): Use sanitize_flags_p.
7444 (gate_asan): Likewise.
7445 * asan.h (asan_no_sanitize_address_p): Remove the function.
7446 (sanitize_flags_p): New function.
7447 * builtins.def: Fix coding style.
7448 * common.opt: Use renamed enum value.
7449 * convert.c (convert_to_integer_1): Use sanitize_flags_p.
7450 * doc/extend.texi: Document no_sanitize attribute.
7451 * flag-types.h (enum sanitize_code): Rename SANITIZE_NONDEFAULT
7452 to SANITIZE_UNDEFINED_NONDEFAULT.
7453 * gcc.c (sanitize_spec_function): Use the renamed enum value.
7454 * gimple-fold.c (optimize_atomic_compare_exchange_p):
7455 Use sanitize_flags_p.
7456 * gimplify.c (gimplify_function_tree): Likewise.
7457 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Likewise.
7458 * opts.c (parse_no_sanitize_attribute): New function.
7459 (common_handle_option): Use renamed enum value.
7460 * opts.h (parse_no_sanitize_attribute): Declare.
7461 * tree.c (sanitize_flags_p): New function.
7462 * tree.h: Declared here.
7463 * tsan.c: Use sanitize_flags_p.
7464 * ubsan.c (ubsan_expand_null_ifn): Likewise.
7465 (instrument_mem_ref): Likewise.
7466 (instrument_bool_enum_load): Likewise.
7467 (do_ubsan_in_current_function): Remove the function.
7468 (pass_ubsan::execute): Use sanitize_flags_p.
7469 * ubsan.h: Remove do_ubsan_in_current_function
7470 * tree-cfg.c (print_no_sanitize_attr_value): New function.
7471 (dump_function_to_file): Use it here.
7473 2017-06-13 Martin Jambor <mjambor@suse.cz>
7475 PR tree-optimization/80803
7476 PR tree-optimization/81063
7477 * tree-sra.c (subtree_mark_written_and_enqueue): Move up in the file.
7478 (propagate_subaccesses_across_link): Enqueue subtree whenever
7479 necessary instead of relying on the caller.
7481 2017-06-13 Martin Jambor <mjambor@suse.cz>
7483 * tree-sra.c (add_access_to_work_queue): Only enqueue accesses
7484 that have a first_link.
7485 (sort_and_splice_var_accesses): Do not check first_link before
7487 (subtree_mark_written_and_enqueue): Likewise.
7488 (propagate_all_subaccesses): Likewise and do not stop at first
7489 parent with a first_link.
7491 2017-06-13 Martin Jambor <mjambor@suse.cz>
7493 * tree-sra.c (dump_access_tree_1): Fix accidental dumping to stderr
7496 2017-06-13 Yury Gribov <tetra2005@gmail.com>
7498 * match.pd: New pattern.
7500 2017-06-13 Yury Gribov <tetra2005@gmail.com>
7502 * tree-vrp.c (is_masked_range_test): New function.
7503 (register_edge_assert_for): Determine ranges for
7506 2017-06-13 Yury Gribov <tetra2005@gmail.com>
7508 PR tree-optimization/67328
7509 * fold-const.c (maskable_range_p): New function.
7510 (build_range_check): Generate bittests if possible.
7512 2017-06-13 Martin Liska <mliska@suse.cz>
7514 * gimple-pretty-print.c (dump_probability): Add new argument.
7515 (dump_edge_probability): Dump both probability and count.
7516 (dump_gimple_label): Likewise.
7517 (dump_gimple_bb_header): Likewise.
7519 2017-06-13 Georg-Johann Lay <avr@gjlay.de>
7522 * config/avr/avr-devices.c: Fix indentation.
7523 * config/avr/gen-avr-mmcu-specs.c: Dito.
7525 2017-06-13 Richard Biener <rguenther@suse.de>
7527 * tree-vect-loop.c (vect_model_reduction_cost): Do not fail,
7528 instead get vector type from stmt_info.
7529 (vectorizable_reduction): Adjust. Remove dead code.
7531 2017-06-13 Richard Biener <rguenther@suse.de>
7534 * fold-const.c (extract_muldiv_1): Remove bogus distribution
7535 case of C * (x * C2 + C3).
7536 (fold_addr_of_array_ref_difference): Properly fold index difference.
7538 2017-06-12 David S. Miller <davem@davemloft.net>
7541 * config/sparc/sparc.md (return expander): Emit frame blockage if
7542 function uses alloca.
7544 2017-06-12 Richard Sandiford <richard.sandiford@linaro.org>
7546 * combine.c (make_field_assignment): Check len rather than the mode
7547 precision when calling force_to_mode.
7549 2017-06-12 Georg-Johann Lay <avr@gjlay.de>
7551 Support multilibs and devices that see flash in RAM address range.
7554 * config/avr/avr-arch.h (avr_arch_id) <ARCH_AVRXMEGA3>: New enum.
7555 (avr_mcu_t) <flash_pm_offset>: New field.
7556 (avr_device_specific_features) <AVR_ISA_RCALL>: New enum.
7557 * config/avr/avr.h (AVR_SHORT_CALLS): New define.
7558 (AVR_HAVE_JMP_CALL): Don't set if AVR_SHORT_CALLS.
7559 (AVR_TINY_PM_OFFSET): Remove macro.
7560 * config/avr/avr.opt (-mshort-calls): New option.
7561 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
7562 [*self_spec]: Add / remove -mshort-calls depending on AVR_ISA_RCALL.
7563 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
7564 <__AVR_SHORT_CALLS__>: Built-in define if AVR_SHORT_CALLS.
7565 <__AVR_HAVE_JMP_CALL__>: Use AVR_HAVE_JMP_CALL as condition
7566 instead of avr_arch->have_jmp_call.
7567 <__AVR_PM_BASE_ADDRESS__>: Built-in define if avr_arch->flash_pm_offset.
7568 [AVR_TINY] <__AVR_TINY_PM_BASE_ADDRESS__>: Use
7569 avr_arch->flash_pm_offset to define.
7570 * config/avr/avr-devices.c (avr_arch_types): Add initializers for
7571 new field flash_pm_offset. Add entry for avrxmega3.
7572 (avr_texinfo): Add entry for avrxmega3.
7573 * config/avr/avr-mcus.def: Add entries for: avrxmega3,
7574 attiny212, attiny214,
7575 attiny412, attiny414, attiny416, attiny417,
7576 attiny814, attiny816, attiny817,
7577 attiny1614, attiny1616, attiny1617,
7578 attiny3214, attiny3216, attiny3217.
7579 * config/avr/avr.c (avr_assemble_integer)[AVR_TINY]: Use
7580 avr_arch->flash_pm_offset instead of AVR_TINY_PM_OFFSET.
7581 (avr_print_operand_address) [AVR_TINY]: Same.
7582 (avr_asm_init_sections) <readonly_data_section>: Only patch
7583 callback if avr_arch->flash_pm_offset = 0.
7584 (avr_asm_named_section) <avr_need_copy_data_p>: Skip setting it
7585 for rodata if avr_arch->flash_pm_offset != 0.
7586 (avr_encode_section_info) [AVR_TINY]: Adjust comment.
7587 * config/avr/genmultilib.awk (dir_rcall, opt_rcall): New vars.
7588 (opts) [AVR_ISA_RCALL]: Append opt_rcall.
7589 (m_options): Append opt_rcall.
7590 (m_dirnames): Append dir_rcall.
7591 * config/avr/t-multilib: Regenerate.
7593 * configure.ac [target=avr]: Check whether avrxmega3 default
7594 linker description file works as needed.
7595 * configure: Regenerate.
7596 * doc/avr-mmcu.texi: Regenerate.
7597 * doc/invoke.texi (AVR Options) <-mshort-calls>: Document it.
7598 <__AVR_ARCH__>: Document avrxmega3 and 103.
7599 <__AVR_HAVE_JMP_CALL__>: Adjust documentation.
7600 <__AVR_SHORT_CALLS__>: Document it.
7601 <__AVR_PM_BASE_ADDRESS__>: Document it.
7602 * doc/extend.texi (AVR Options) <-mshort-calls>: Document it.
7603 (AVR Variable Attributes) <progmem>: Document this is
7604 not needed for avrxmega3.
7605 (AVR Named Address Spaces) <__flash>: Dito.
7607 2017-06-12 Jan Hubicka <hubicka@ucw.cz>
7609 * cgraph.c (cgraph_node::dump): Complain about profile insanities.
7611 2017-06-12 Doug Rupp <rupp@adacore.com>
7613 * config.gcc (*-*-vxworks*): Set use_gcc_stdint to "provide".
7614 Append vxworks-stdint.h to the tm_file list.
7615 * config/vxworks-stdint.h: New file.
7617 2017-06-12 Martin Liska <mliska@suse.cz>
7619 PR tree-optimization/81041
7620 * tree-profile.c (gimple_gen_ic_func_profiler):
7621 Create an extra BB in profile-generate
7622 (gimple_gen_time_profiler): Likewise.
7624 2017-06-12 Jakub Jelinek <jakub@redhat.com>
7626 PR tree-optimization/81003
7627 * tree-ssa-reassoc.c (force_into_ssa_name): New function.
7628 (update_range_test): Use it instead of force_gimple_operand_gsi.
7630 2017-06-12 Richard Biener <rguenther@suse.de>
7632 PR tree-optimization/81053
7633 * tree-vect-loop.c (vect_is_simple_reduction): Handle PHI
7634 with backedge value not defined in loop. Simplify def stmt
7637 2017-06-11 Tom de Vries <tom@codesourcery.com>
7640 * config/nvptx/nvptx.c (nvptx_cannot_force_const_mem): New function.
7642 (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to
7643 nvptx_cannot_force_const_mem.
7645 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
7647 * opts.c (finish_options): Move test for flag_split_stack after
7648 it has been initialized.
7650 2017-06-11 Jason Merrill <jason@redhat.com>
7652 * tree.h (id_equal): New.
7653 * dwarf2out.c, hsa-gen.c, ipa-devirt.c, omp-expand.c,
7654 omp-simd-clone.c, read-rtl-function.c, tree-chkp.c, tree.c: Use it
7655 instead of strcmp of IDENTIFIER_POINTER.
7657 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
7659 * ipa-inline-transform.c: Include function.h, cfg.h and basic-block.h
7660 (mark_all_inlined_calls_cdtor): Fix formating.
7661 (inline_transform): Rescale profile before inlining.
7663 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
7665 * cgraph.h (cgraph_edge::clone): Update prototype.
7666 * cgraphclones.c (cgraph_edge::clone): Update profile scaling.
7667 (cgraph_node::create_clone): Update.
7668 (cgraph_node::create_version_clone): Update.
7669 * tree-inline.c (copy_bb): Update.
7670 (expand_call_inline): Update.
7672 2017-06-10 Segher Boessenkool <segher@kernel.crashing.org>
7674 * config/rs6000/rs6000.c (emit_vrsave_prologue): New function,
7675 factored out from ...
7676 (rs6000_emit_prologue): ... here.
7678 2017-06-10 Segher Boessenkool <segher@kernel.crashing.org>
7680 * config/rs6000/rs6000.c (emit_split_stack_prologue): New function,
7681 factored out from ...
7682 (rs6000_emit_prologue): ... here.
7684 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
7686 * predict.c (drop_profile): Also drop individual bb/edge and cgraph
7688 (handle_missing_profiles): Fix computation of tp_first_run.
7689 (counts_to_freqs): Do not touch freqs when count is 0.
7691 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
7693 * cgraphbuild.c (cgraph_edge::rebuild_references): Do not touch
7696 2017-06-10 Tom de Vries <tom@codesourcery.com>
7698 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
7699 attributes): Document signal effective target.
7701 2017-06-10 Tom de Vries <tom@codesourcery.com>
7703 * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
7704 Document effective target stack_size.
7706 2017-06-09 David Malcolm <dmalcolm@redhat.com>
7708 * diagnostic.c (diagnostic_report_diagnostic): Only add fixits
7709 to the edit_context if they can be auto-applied.
7711 2017-06-9 Ian Lance Taylor <iant@golang.org>
7713 * opts.c (finish_options): If -fsplit-stack, disable implicit
7714 -forder-blocks-and-partition.
7715 * doc/invoke.texi (Optimize Options): Document that when using
7716 -fsplit-stack -forder-blocks-and-partition is not implicitly
7719 2017-06-09 Jan Hubicka <hubicka@ucw.cz>
7721 * builtin-attrs.def (ATTR_NORETURN_NOTHROW_LEAF_COLD_LIST,
7722 ATTR_CONST_NORETURN_NOTHROW_LEAF_COLD_LIST,
7723 ATTR_TMPURE_NORETURN_NOTHROW_LEAF_COLD_LIST): New.
7724 * builtins.def (abort, trap, unreachable): Declare cold.
7725 * calls.c (flags_from_decl_or_type): Lookup ECF_COLD.
7726 * tree-core.h (ECF_COLD): New.
7727 * tree.c (set_call_expr_flags): Handle ECF_COLD.
7728 (build_common_builtin_nodes): Mark unreachable and abort as cold.
7730 2017-06-09 Jan Hubicka <hubicka@ucw.cz>
7732 * predict.c (unlikely_executed_stmt_p): Cleanup.
7734 2017-06-09 Richard Biener <rguenther@suse.de>
7736 * tree-ssa-loop-im.c (execute_sm): Do not force multi-threaded
7737 model if the ref is always written to.
7739 2017-06-09 Tamar Christina <tamar.christina@arm.com>
7741 * config/aarch64/aarch64.md (lrint<GPF:mode><GPI:mode>2): New.
7743 2017-06-09 Tamar Christina <tamar.christina@arm.com>
7745 * config/arm/arm.c (arm_rtx_costs_internal): Make sdiv more expensive
7748 2017-06-09 Tom de Vries <tom@codesourcery.com>
7751 * config/nvptx/nvptx.md (define_expand "mov<QHSDISDFM>"): Error out with
7752 "target cannot support label values" when encountering LABEL_REF.
7754 2017-06-09 Martin Liska <mliska@suse.cz>
7756 * tree-profile.c (gimple_gen_ic_profiler): Update comment.
7757 (gimple_gen_ic_func_profiler): Emit direct comparison
7758 of __gcov_indirect_call_callee with NULL.
7759 (gimple_gen_time_profiler): Change probability from
7760 PROB_VERY_UNLIKELY to PROB_UNLIKELY.
7762 2017-06-09 Jan Hubicka <hubicka@ucw.cz>
7764 * profile.c (edge_gcov_counts): Turn to pointer.
7765 (compute_branch_probabilities, compute_branch_probabilities): Update.
7766 (branch_prob): Do not clear edge_gcov_count.
7767 * profile.h (edge_gcov_counts): Turn to pointer.
7768 (edge_gcov_count): Update.
7770 2017-06-09 Jan Hubicka <hubicka@ucw.cz>
7772 * gimple.h (gimple_check_failed): Mark cold.
7774 2017-06-09 Richard Biener <rguenther@suse.de>
7776 PR tree-optimization/66623
7777 * tree-vect-loop.c (vect_is_simple_reduction): Cleanup,
7778 refactor check_reduction into two parts, properly computing
7779 whether we have to check reduction validity for outer loop
7782 2017-06-09 Richard Biener <rguenther@suse.de>
7784 PR tree-optimization/79483
7785 * graphite-scop-detection.c (order): New global.
7786 (get_order): Compute bb to order mapping that satisfies code
7787 generation constraints.
7788 (cmp_pbbs): New helper.
7789 (build_scops): Start domwalk at entry block, sort generated
7792 2017-06-09 Richard Biener <rguenther@suse.de>
7795 * ipa-polymorphic-call.c
7796 (ipa_polymorphic_call_context::restrict_to_inner_class):
7797 Skip FIELD_DECLs with error_mark_node type.
7798 * passes.def (all_lowering_passes): Run pass_build_cgraph_edges
7801 2017-06-09 Martin Liska <mliska@suse.cz>
7803 * predict.c (struct branch_predictor): New struct.
7804 (test_prediction_value_range): New test.
7805 (predict_c_tests): New function.
7806 * selftest-run-tests.c (selftest::run_tests): Run the function.
7807 * selftest.h: Declare new tests.
7809 2017-06-09 Segher Boessenkool <segher@kernel.crashing.org>
7812 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Assert that
7813 gen_add3_insn did not fail.
7814 * config/rs6000/rs6000.md (add<mode>3): If asked to add a constant to
7815 r0, construct that number in a temporary reg and add that reg to r0.
7816 If asked to put the result in r0 as well, fail.
7818 2017-06-08 Will Schmidt <will_schmidt@vnet.ibm.com>
7820 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
7821 for early expansion of vec_eqv.
7823 2017-06-08 Jakub Jelinek <jakub@redhat.com>
7826 * ubsan.c (instrument_null): Avoid pointless code temporary.
7827 (pass_ubsan::execute): Instrument aggregate arguments of calls.
7829 2017-06-08 Uros Bizjak <ubizjak@gmail.com>
7833 2016-12-14 Uros Bizjak <ubizjak@gmail.com>
7836 * config/i386/i386.md (*ctzhi2): New insn_and_split pattern.
7839 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
7841 * predict.c (unlikely_executed_edge_p): Move ahead.
7842 (probably_never_executed_edge_p): Use it.
7844 2017-06-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
7847 * tree-chkp.c (chkp_gimple_call_builtin_p): Remove
7848 gimple_call_builtin_p call.
7850 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
7852 * system.h (fancy_abort): Annotate by ATTRIBUTE_COLD.
7853 * rtl.h (rtl_check_failed_bounds, rtl_check_failed_type1,
7854 rtl_check_failed_type2, rtl_check_failed_code1,
7855 rtl_check_failed_code2, rtl_check_failed_code_mode,
7856 rtl_check_failed_block_symbol, cwi_check_failed_bounds,
7857 rtvec_check_failed_bounds, rtl_check_failed_flag,
7858 _fatal_insn_not_found, _fatal_insn): Likewise.
7859 * tree.h (tree_contains_struct_check_failed,
7860 tree_check_failed, tree_not_check_failed,
7861 tree_class_check_failed, tree_range_check_failed,
7862 tree_not_class_check_failed, tree_int_cst_elt_check_failed,
7863 tree_vec_elt_check_failed, phi_node_elt_check_failed,
7864 tree_operand_check_failed, omp_clause_check_failed,
7865 omp_clause_operand_check_failed, omp_clause_range_check_failed):
7868 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
7870 * cgraph.c (cgraph_edge::maybe_hot_p): Do not check
7871 flag_branch_probabilities.
7872 * ipa-inline.c (edge_badness): Likewise.
7873 * ipa-profile.c (ipa_propagate_frequency_1): Likewise.
7874 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
7875 * predict.c (maybe_hot_frequency_p): Likewise.
7876 (probably_never_executed): Likewise.
7877 * sched-ebb.c (schedule_ebbs): Likewise.
7878 * sched-rgn.c (find_single_block_region): Likewise.
7879 * tracer.c (tail_duplicate): Likewise.
7881 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
7883 * opts.c (finish_options): x_flag_reorder_blocks_and_partition no
7884 longer requires x_flag_profile_use.
7886 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
7888 * cfgrtl.c (cfg_layout_initialize): Check crtl->has_bb_partition
7889 instead of flag_reorder_blocks_and_partition.
7890 * dbxout.c (dbxout_function_end): Likewise.
7891 * dwarf2out.c (gen_subprogram_die): Likewise.
7892 * haifa-sched.c (sched_create_recovery_edges): Likewise.
7893 * hw-doloop.c (reorg_loops): Likewise.
7894 * varasm.c (assemble_start_function,
7895 assemble_end_function): Likewise.
7896 (decide_function_section): Do not check for
7897 flag_reorder_blocks_and_partition.
7899 2017-06-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
7901 * tree-chkp.c (chkp_get_hard_register_var_fake_base_address):
7903 (chkp_get_hard_register_fake_addr_expr): Ditto.
7904 (chkp_build_addr_expr): Add check for hard reg case.
7905 (chkp_parse_array_and_component_ref): Ditto.
7906 (chkp_find_bounds_1): Ditto.
7907 (chkp_process_stmt): Don't generate bounds store for
7910 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
7912 * predict.c (maybe_hot_bb_p): Do not check profile status.
7913 (maybe_hot_edge_p): Likewise.
7914 (probably_never_executed): Check for zero counts even if profile
7916 (unlikely_executed_edge_p): New function.
7917 (unlikely_executed_stmt_p): New function.
7918 (unlikely_executed_bb_p): New function.
7919 (set_even_probabilities): Use unlikely predicates.
7920 (combine_predictions_for_bb): Likewise.
7921 (predict_paths_for_bb): Likewise.
7922 (predict_paths_leading_to_edge): Likewise.
7923 (determine_unlikely_bbs): New function.
7924 (estimate_bb_frequencies): Use it.
7925 (compute_function_frequency): Use zero counts even if profile is
7927 * profile-count.h: Fix typo.
7929 2017-08-08 Julia Koval <julia.koval@intel.com>
7931 * config/i386/avx512bwintrin.h (_mm512_mask_cvtepi16_storeu_epi8,
7932 _mm512_mask_cvtsepi16_storeu_epi8,
7933 _mm512_mask_cvtusepi16_storeu_epi8): New intrinsics.
7934 * config/i386/avx512vlbwintrin.h (_mm256_mask_cvtepi16_storeu_epi8,
7935 _mm_mask_cvtsepi16_storeu_epi8, _mm256_mask_cvtsepi16_storeu_epi8,
7936 _mm_mask_cvtusepi16_storeu_epi8, _mm256_mask_cvtusepi16_storeu_epi8,
7937 _mm_mask_cvtepi16_storeu_epi8): New intrinsics.
7938 * config/i386/i386-builtin-types.def (PV8Q, V8QI): New pointer type.
7939 (VOID_FTYPE_PV32QI_V32HI_USI, VOID_FTYPE_PV8QI_V8HI_UQI,
7940 VOID_FTYPE_PV16QI_V16HI_UHI): New function types.
7941 * config/i386/i386-builtin.def (__builtin_ia32_pmovwb128mem_mask,
7942 __builtin_ia32_pmovwb256mem_mask, __builtin_ia32_pmovswb128mem_mask,
7943 __builtin_ia32_pmovswb256mem_mask, __builtin_ia32_pmovuswb128mem_mask,
7944 __builtin_ia32_pmovuswb256mem_mask,
7945 __builtin_ia32_pmovuswb512mem_mask, __builtin_ia32_pmovswb512mem_mask)
7946 __builtin_ia32_pmovwb512mem_mask): New builtins.
7948 2017-08-08 Julia Koval <julia.koval@intel.com>
7950 PR target/73350,80862
7951 * config/i386/subst.md (round): Fix round pattern.
7952 * config/i386/i386.c (ix86_erase_embedded_rounding):
7953 Fix erasing rounding for the fixed pattern.
7955 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
7957 * cfgbuild.c (find_many_sub_basic_blocks): Fix thinko.
7959 2017-06-08 Martin Liska <mliska@suse.cz>
7961 PR gcov-profile/80911
7962 * gcov.c (block_info::block_info): New constructor.
7964 2017-06-07 Carl Love <cel@us.ibm.com>
7966 * config/rs6000/rs6000-c: The return type of the following
7967 built-in functions was implemented as int not long long. Fix sign
7968 of return value for the unsigned version of vec_mulo and vec_mule.
7969 vector unsigned long long vec_bperm (vector unsigned long long,
7970 vector unsigned char)
7971 vector signed long long vec_mule (vector signed int,
7973 vector unsigned long long vec_mule (vector unsigned int,
7974 vector unsigned int)
7975 vector signed long long vec_mulo (vector signed int,
7977 vector unsigned long long vec_mulo (vector unsigned int,
7978 vector unsigned int)
7979 * doc/extend.texi: Fix the documentation for the built-in
7982 2017-06-07 Carl Love <cel@us.ibm.com>
7985 * config/rs6000/altivec.md (double<mode>2): Fix the implementation of
7988 2017-06-07 Carl Love <cel@us.ibm.com>
7990 * config/rs6000/altivec.md: Fix argument swizzle in vec_doublel
7991 support, Generate doublehv for signed int/float for BE case only.
7993 2017-06-07 Alexander Monakov <amonakov@ispras.ru>
7995 * doc/invoke.texi (mcx16): Rewrite.
7997 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
7999 * config/rs6000/predicates.md (rs6000_nonimmediate_operand): Delete.
8000 * config/rs6000/rs6000.md (*movsi_internal1, movsi_from_sf,
8001 *mov<mode>_softfloat, and an anonymous splitter): Use
8002 nonimmediate_operand instead of rs6000_nonimmediate_operand.
8004 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
8006 * config/rs6000/darwin.h (REGISTER_NAMES): Delete the SPE_ACC and
8008 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Ditto.
8009 (enum rs6000_reg_type): Delete SPE_ACC_TYPE and SPEFSCR_REG_TYPE.
8010 (rs6000_debug_reg_global): Adjust.
8011 (rs6000_init_hard_regno_mode_ok): Adjust.
8012 (rs6000_dbx_register_number): Adjust.
8013 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Change to 115.
8014 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
8015 Remove SPE_ACC and SPEFSCR.
8016 (REG_ALLOC_ORDER): Ditto.
8017 (FRAME_POINTER_REGNUM): Change to 111.
8018 (enum reg_class): Remove the SPE_ACC and SPEFSCR registers.
8019 (REG_CLASS_NAMES): Ditto.
8020 (REG_CLASS_CONTENTS): Delete the SPE_ACC and SPEFSCR registers.
8021 (REGISTER_NAMES): Ditto.
8022 (ADDITIONAL_REG_NAMES): Ditto.
8023 (rs6000_reg_names): Ditto.
8024 * config/rs6000/rs6000.md: Renumber some register number
8027 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
8029 * config/rs6000/darwin.h (REGISTER_NAMES): Delete the SPE high
8031 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Ditto.
8032 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Change from 149
8034 (DWARF_REG_TO_UNWIND_COLUMN): Do not define.
8035 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
8036 Delete the SPE high registers.
8037 (REG_ALLOC_ORDER): Ditto.
8038 (enum reg_class): Remove SPE_HIGH_REGS.
8039 (REG_CLASS_NAMES): Ditto.
8040 (REG_CLASS_CONTENTS): Delete the SPE high registers.
8041 (REGISTER_NAMES): Ditto.
8042 (rs6000_reg_names): Ditto.
8043 * doc/tm.texi.in: Remove SPE as example.
8044 * doc/tm.texi: Regenerate.
8046 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
8048 * config/rs6000/8540.md (ppc8540_brinc): Delete.
8049 * config/rs6000/e500mc.md (e500mc_brinc): Delete.
8050 * config/rs6000/e500mc64.md (e500mc64_brinc): Delete.
8051 * config/rs6000/rs6000.md (type): Remove "brinc".
8053 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
8055 * config.gcc (powerpc*-*-*): Don't add spe.h to extra_headers.
8056 (powerpc*-linux*spe*): Use ${cpu_type} instead of rs6000.
8057 * config/rs6000/linuxspe.h: Delete file.
8058 * config/rs6000/rs6000.md: Don't include spe.md.
8059 * config/rs6000/spe.h: Delete file.
8060 * config/rs6000/spe.md: Delete file.
8061 * config/rs6000/t-rs6000: Remove spe.md.
8063 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
8065 * config/rs6000/predicates.md (reg_or_mem_operand): Reformat.
8066 (reg_or_none500mem_operand): Delete.
8067 * config/rs6000/rs6000.md (extendsfdf2): Use reg_or_mem_operand
8068 instead of reg_or_none500mem_operand.
8070 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
8072 * config/rs6000/rs6000.c (rs6000_option_override_internal): Delete
8073 handling of SPE flags.
8074 * config/rs6000/rs6000.opt (-mspe, -mspe=no, -mspe=yes): Delete.
8076 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
8078 * config/rs6000/rs6000-common.c (rs6000_handle_option): Remove
8080 * config/rs6000/paired.md (paired_negv2sf2): Rename to negv2sf2.
8081 (paired_absv2sf2, paired_addv2sf3, paired_subv2sf3, paired_mulv2sf3,
8082 paired_divv2sf3): Similar.
8083 * config/rs6000/predicates.md: Replace TARGET_SPE, TARGET_SPE_ABI,
8084 SPE_VECTOR_MODE and SPE_HIGH_REGNO_P by 0; simplify.
8085 * config/rs6000/rs6000-builtin.def: Delete RS6000_BUILTIN_E and
8087 Delete BU_SPE_1, BU_SPE_2, BU_SPE_3, BU_SPE_E, BU_SPE_P, and BU_SPE_X.
8088 Rename the paired_* instruction patterns.
8089 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Do not
8091 * config/rs6000/rs6000-protos.h (invalid_e500_subreg): Delete.
8092 * config/rs6000/rs6000.c: Delete RS6000_BUILTIN_E and RS6000_BUILTIN_S.
8093 (struct rs6000_stack): Delete fields spe_gp_save_offset, spe_gp_size,
8094 spe_padding_size, and spe_64bit_regs_used. Replace TARGET_SPE and
8095 TARGET_SPE_ABI with 0, simplify. Replace SPE_VECTOR_MODE with
8097 (struct machine_function): Delete field spe_insn_chain_scanned_p.
8098 (spe_func_has_64bit_regs_p): Delete.
8099 (spe_expand_predicate_builtin): Delete.
8100 (spe_expand_evsel_builtin): Delete.
8101 (TARGET_DWARF_REGISTER_SPAN): Do not define.
8102 (TARGET_MEMBER_TYPE_FORCES_BLK): Do not define.
8103 (invalid_e500_subreg): Delete.
8104 (rs6000_legitimize_address): Always force_reg op2 as well, for
8105 paired single memory accesses.
8106 (rs6000_member_type_forces_blk): Delete.
8107 (rs6000_spe_function_arg): Delete.
8108 (rs6000_expand_unop_builtin): Delete SPE handling.
8109 (rs6000_expand_binop_builtin): Ditto.
8110 (spe_expand_stv_builtin): Delete.
8111 (bdesc_2arg_spe): Delete.
8112 (spe_expand_builtin): Delete.
8113 (spe_expand_predicate_builtin): Delete.
8114 (spe_expand_evsel_builtin): Delete.
8115 (rs6000_invalid_builtin): Remove RS6000_BTM_SPE handling.
8116 (spe_init_builtins): Delete.
8117 (spe_func_has_64bit_regs_p): Delete.
8118 (savres_routine_name): Delete "info" parameter. Adjust callers.
8119 (rs6000_emit_stack_reset): Ditto.
8120 (rs6000_dwarf_register_span): Delete.
8121 * config/rs6000/rs6000.h (TARGET_SPE_ABI, TARGET_SPE,
8122 UNITS_PER_SPE_WORD, SPE_HIGH_REGNO_P, SPE_SIMD_REGNO_P,
8123 SPE_VECTOR_MODE, RS6000_BTM_SPE, RS6000_BUILTIN_E, RS6000_BUILTIN_S):
8125 * config/rs6000/rs6000.md (FIRST_SPE_HIGH_REGNO, LAST_SPE_HIGH_REGNO):
8127 * config/rs6000/rs6000.opt (-mabi=spe, -mabi=no-spe): Delete.
8128 * config/rs6000/spe.md: Delete every pattern that uses TARGET_SPE.
8129 * config/rs6000/vector.md (absv2sf2, negv2sf2, addv2sf3, subv2sf3,
8130 mulv2sf3, divv2sf3): Delete expanders.
8132 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
8134 config/rs6000/rs6000.md (UNSPEC_MV_CR_GT): Delete.
8136 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
8138 * config/rs6000/rs6000-protos.h (output_e500_flip_gt_bit): Delete.
8139 * config/rs6000/rs6000.c: Ditto.
8141 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
8143 * config/rs6000/predicated.md (rs6000_cbranch_operator): Delete.
8144 * config/rs6000/rs6000.md: Replace rs6000_cbranch_operator by
8145 comparison_operator.
8147 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
8149 * config/rs6000/rs6000.c: Remove everything related to -mfloat-gprs.
8150 * config/rs6000/rs6000.opt: Ditto.
8151 * config/rs6000/t-rtems: Ditto.
8153 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
8155 * config/rs6000/predicates.md: Replace TARGET_E500_DOUBLE and
8156 TARGET_E500_SINGLE by 0, simplify.
8157 * config/rs6000/rs6000.c: Ditto.
8158 (rs6000_option_override_internal): Delete CHECK_E500_OPTIONS.
8159 (spe_build_register_parallel): Delete.
8160 * config/rs6000/rs6000.h: Delete TARGET_E500_SINGLE,
8161 TARGET_E500_DOUBLE, and CHECK_E500_OPTIONS.
8162 * config/rs6000/rs6000.md: Replace TARGET_E500_DOUBLE,
8163 TARGET_E500_SINGLE, and <E500_CONVERT> by 0, simplify.
8164 (E500_CONVERT): Delete.
8165 * config/rs6000/spe.md: Remove many patterns and all define_constants.
8167 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
8169 * config/rs6000/darwin.md: Replace TARGET_FPRS by 1 and simplify.
8170 * config/rs6000/dfp.md: Ditto.
8171 (negdd2, *negdd2_fpr): Merge.
8172 (absdd2, *absdd2_fpr): Merge.
8173 (negtd2, *negtd2_fpr): Merge.
8174 (abstd2, *abstd2_fpr): Merge.
8175 * config/rs6000/e500.h: Delete file.
8176 * config/rs6000/predicates.md (rs6000_cbranch_operator): Replace
8177 TARGET_FPRS by 1 and simplify.
8178 * config/rs6000/rs6000-c.c: Ditto.
8179 * config/rs6000/rs6000.c: Ditto. Also replace TARGET_SF_SPE and
8181 * config/rs6000/rs6000.h: Ditto. Delete TARGET_SF_SPE and
8183 * config/rs6000/rs6000.md: Ditto.
8184 (floatdidf2, *floatdidf2_fpr): Merge.
8185 (move_from_CR_gt_bit): Delete.
8186 * config/rs6000/spe.md: Replace TARGET_FPRS by 1 and simplify.
8187 (E500_CR_IOR_COMPARE): Delete.
8188 (All patterns that require !TARGET_FPRS): Delete.
8189 * config/rs6000/vsx.md: Replace TARGET_FPRS by 1 and simplify.
8191 2017-06-07 Bin Cheng <bin.cheng@arm.com>
8193 * passes.def (pass_iv_canon): Move before pass_loop_distribution.
8195 2017-06-07 Bin Cheng <bin.cheng@arm.com>
8197 * graphds.c (add_edge): Intitialize edge's attached data.
8198 (foll_in_subgraph, dfs_fst_edge, dfs_next_edge): New function
8199 pointer parameter. Call pointed function on each edge during
8200 graph traversing. Skip traversing the edge when the function
8202 (graphds_dfs, graphds_scc): Ditto.
8203 (for_each_edge): New parameter. Pass the new parameter to callback
8205 * graphds.h (skip_edge_callback): New function pointer type.
8206 (graphds_dfs, graphds_scc): New function pointer parameter.
8207 (graphds_edge_callback, for_each_edge): New parameter.
8209 2017-06-07 Bin Cheng <bin.cheng@arm.com>
8211 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Factor
8212 out code checking if runtime alias check is possible to below ...
8213 Call the new function.
8214 * tree-data-ref.c (runtime_alias_check_p): ... to new function.
8215 * tree-data-ref.h (runtime_alias_check_p): New decalaration.
8217 2017-06-07 Marek Polacek <polacek@redhat.com>
8220 * fold-const.c (extract_muldiv_1) <case MINUS_EXPR>: Add
8221 TYPE_OVERFLOW_WRAPS check.
8223 2017-06-07 Bin Cheng <bin.cheng@arm.com>
8225 * tree-vect-loop-manip.c (vect_do_peeling): Don't skip vector loop
8226 if versioning is required.
8227 * tree-vect-loop.c (vect_analyze_loop_2): Merge niter check for loop
8228 peeling with the check for versioning.
8230 2017-06-07 Bin Cheng <bin.cheng@arm.com>
8232 * tree-vectorizer.h (vect_build_loop_niters): New parameter.
8233 * tree-vect-loop-manip.c (vect_build_loop_niters): New parameter.
8234 Set true to new parameter if new ssa variable is defined.
8235 (vect_gen_vector_loop_niters): Refactor. Set range information
8236 for the new vector loop bound variable.
8237 (vect_do_peeling): Ditto.
8239 2017-06-07 Bin Cheng <bin.cheng@arm.com>
8241 * tree-affine.c (ssa.h): Include header file.
8242 (tree_to_aff_combination): Handle (T1)(X - CST) when inner type
8243 has wrapping overflow behavior.
8245 2017-06-07 Bin Cheng <bin.cheng@arm.com>
8247 * tree-affine.c (tree_to_aff_combination): Handle (T1)(X + X).
8249 2017-06-07 Bin Cheng <bin.cheng@arm.com>
8251 (aff_combination_expand): Move (T1)(X *+- CST) simplification to ...
8252 (tree_to_aff_combination): ... here.
8254 2017-06-07 Bin Cheng <bin.cheng@arm.com>
8256 * tree-ssa-loop-ivopts.c (ivopts_estimate_reg_pressure): New
8257 reg_pressure model function.
8258 (ivopts_global_cost_for_size): Delete.
8259 (determine_set_costs, iv_ca_recount_cost): Call new model function
8260 ivopts_estimate_reg_pressure.
8262 2017-06-07 Tamar Christina <tamar.christina@arm.com>
8264 * config/aarch64/aarch64.c (aarch64_rtx_costs): Make sdiv more
8265 expensive than udiv. Remove floating point cases from mod.
8267 2017-06-07 Tamar Christina <tamar.christina@arm.com>
8269 * config/arm/aarch-cost-tables.h (cortexa53_extra_cost):
8272 2017-06-07 Tamar Christina <tamar.christina@arm.com>
8274 * config/aarch64/aarch64.md
8275 (copysignsf3): Fix mask generation.
8277 2017-06-07 Jakub Jelinek <jakub@redhat.com>
8279 * dumpfile.h (enum tree_dump_index): Rename TDI_generic to
8281 (class dump_manager): Add register_dumps method.
8282 * dumpfile.c: Include langhooks.h.
8283 (dump_files): Use 0 instead of 3/4/5 for TDI_{original,gimple,nested}.
8284 (FIRST_AUTO_NUMBERED_DUMP): Decrease to 1.
8285 (FIRST_ME_AUTO_NUMBERED_DUMP): Define.
8286 (dump_manager::dump_register): Start with 512 entries instead of 32.
8287 (dump_manager::register_dumps): New method.
8288 * toplev.c (general_init): Instead of invoking register_dumps
8289 langhook, invoke register_dumps method on the dump manager.
8290 * gimplify.c (gimplify_function_tree): Use TDI_gimple instead of
8293 2017-06-07 Richard Sandiford <richard.sandiford@linaro.org>
8295 * doc/md.texi: Clarify the restrictions on a define_insn condition.
8296 Say that # requires an associated define_split to exist, and that
8297 the define_split must be suitable for use after register allocation.
8299 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
8301 * cfgbuild.c (find_bb_boundaries): Initialize profile of split blocks.
8302 (compute_outgoing_frequencies): Also initialize zero counts.
8303 (find_many_sub_basic_blocks): Do not produce uninitialized profile
8304 around loops; preserve more of profile when nothing changes.
8306 2017-06-06 Jim Wilson <jim.wilson@linaro.org>
8308 * config/aarch64/aarch64-cost-tables.h (qdf24xx_extra_costs): Move to
8310 * config/arm/aarch-cost-tables.h (qdf24xx_extra_costs): From here.
8311 * config/arm/arm-cpu-cdata.h: Regenerate.
8312 * config/arm/arm-cpu-data.h, config/arm/arm-cpu.h: Likewise.
8313 * config/arm/arm-tables.opt, config/arm/arm-tune.md: Likewise.
8314 * config/arm/arm-cpus.in: Delete falkor and qdf24xx entries.
8315 * config/arm/arm.c (arm_qdf24xx_tune): Delete.
8316 * config/arm/bpabi.h (BE8_LINK_SPEC): Delete falkor and qdf24xx
8318 * config/arm/t-aprofile (MULTILIB_MATCHES): Delete falkor and qdf24xx
8320 * config/arm/t-rmprofile: Likewise.
8321 * doc/invoke.texi (ARM Options): Drop falkor and qdf24xx support.
8323 2017-06-06 David S. Miller <davem@davemloft.net>
8326 * config/sparc/sparc.c (sparc_expand_prologue): Emit frame
8327 blockage if function uses alloca.
8329 2017-06-06 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
8331 * tree-ssa-loop-prefetch.c (struct mem_ref_group, struct mem_ref):
8332 New "uid" fields to hold pretty-print IDs of group and ref.
8333 Memory references are now identified as <group_id>:<ref_id>
8334 instead of using [random] addresses.
8335 (dump_mem_details): Simplify, no functional change.
8336 (dump_mem_ref): Simplify and make output more concise.
8337 Replace couple of fprintf's throughout code with calls to dump_mem_ref.
8338 (find_or_create_group): Initialize group uid.
8339 (record_ref): Initialize ref uid. Improve debug output.
8340 (prune_group_by_reuse, should_issue_prefetch_p,)
8341 (should_issue_prefetch_p, schedule_prefetches, issue_prefetch_ref,)
8342 (mark_nontemporal_store, determine_loop_nest_reuse):
8343 Improve debug output.
8345 2017-06-06 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
8347 * dbgcnt.def (prefetch): New debug counter.
8348 * tree-ssa-loop-prefetch.c (dbgcnt.h): New include.
8349 (schedule_prefetches): Stop issueing prefetches if debug counter
8352 2017-06-06 Tom de Vries <tom@codesourcery.com>
8354 * doc/sourcebuild.texi (Testsuites, C Language Testsuites,
8355 gcc.c-torture/compile): Remove mention of NO_LABEL_VALUES in fixme.
8357 2017-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8359 * config/aarch64/atomics.md (atomic_compare_and_swap<mode> expander):
8360 Use aarch64_reg_or_zero predicate for operand 4.
8361 (aarch64_compare_and_swap<mode> define_insn_and_split):
8362 Use aarch64_reg_or_zero predicate for operand 3. Add 'Z' constraint.
8363 (aarch64_store_exclusive<mode>): Likewise for operand 2.
8365 2017-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
8367 * config/arm/arm.c (arm_compute_save_reg_mask): Rename into ...
8368 (arm_compute_save_core_reg_mask): This.
8369 (thumb1_compute_save_reg_mask): Rename into ...
8370 (thumb1_compute_save_core_reg_mask): This.
8371 (arm_compute_save_reg0_reg12_mask): Adapt comment.
8372 (arm_compute_frame_layout): Likewise.
8374 2017-06-06 Richard Biener <rguenther@suse.de>
8376 PR tree-optimization/80974
8377 * tree-ssa-sccvn.c (set_ssa_val_to): Do not change but only
8378 keep or clear leaders SSA info.
8380 2017-06-06 Tom de Vries <tom@codesourcery.com>
8382 * config/nvptx/nvptx.c (split_mode_p): New function.
8383 (nvptx_declare_function_name, nvptx_print_operand): Use split_mode_p.
8385 2017-06-06 Tom de Vries <tom@codesourcery.com>
8387 * config/nvptx/nvptx.c (nvptx_print_operand): Use maybe_split_mode.
8389 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
8392 * tree-cfg.c (execute_fixup_cfg): Fix condition on when to rescale
8395 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
8397 * shrink-wrap.c (handle_simple_exit): Update profile.
8398 (try_shrink_wrapping): Upate profile.
8400 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
8402 * predict.c (tree_estimate_probability_bb): Add LOCAL_ONLY.
8403 (tree_guess_outgoing_edge_probabilities): New.
8404 * predict.h (tree_guess_outgoing_edge_probabilities): Declare.
8405 * tree-cfg.c (gimple_find_sub_bbs): Propagate profile.
8407 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
8409 * ipa-split.c (split_function): Initialize return bb profile.
8411 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
8413 * profile.c (compute_branch_probabilities): Also initialize
8416 2017-06-06 Richard Biener <rguenther@suse.de>
8418 PR tree-optimization/80928
8419 * tree-vect-loop.c (vect_update_vf_for_slp): Amend dumps.
8420 (vect_analyze_loop_operations): Properly guard analysis for
8422 (vect_transform_loop): Likewise.
8423 (vect_analyze_loop_2): Also reset SLP type on PHIs.
8424 (vect_model_induction_cost): Do not cost for pure SLP.
8425 (vectorizable_induction): Pass in SLP node, implement SLP vectorization
8426 of induction in inner loop vectorization.
8427 * tree-vect-slp.c (vect_create_new_slp_node): Handle PHIs.
8428 (vect_get_and_check_slp_defs): Handle vect_induction_def.
8429 (vect_build_slp_tree): Likewise. Handle PHIs as terminating the
8431 (vect_analyze_slp_cost_1): Cost induction.
8432 (vect_detect_hybrid_slp_stmts): Handle PHIs.
8433 (vect_get_slp_vect_defs): Likewise.
8434 * tree-vect-stmts.c (vect_analyze_stmt): Handle induction.
8435 (vect_transform_stmt): Handle SLP reductions.
8436 * tree-vectorizer.h (vectorizable_induction): Adjust.
8438 2017-06-05 Michael Meissner <meissner@linux.vnet.ibm.com>
8440 * config/rs6000/rs6000.c (make_resolver_func): Update
8441 init_lowered_empty_function call.
8443 2017-06-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
8445 * doc/invoke.texi: Document the -fprofile-abs-path option.
8446 * common.opt (fprofile-abs-path): New option.
8447 * gcov-io.h (gcov_write_filename): Declare.
8448 * gcov-io.c (gcov_write_filename): New function.
8449 * coverage.c (coverage_begin_function): Use gcov_write_filename.
8450 * profile.c (output_location): Likewise.
8452 2017-06-05 Jan Hubicka <hubicka@ucw.cz>
8454 * shring-wrap.c: Revert accidental commit.
8456 2017-06-05 Volker Reichelt <v.reichelt@netcologne.de>
8458 * doc/invoke.texi (-Wduplicated-branches): Add to warning list.
8460 2017-06-05 Jan Hubicka <hubicka@ucw.cz>
8462 * cfgexpand.c (expand_gimple_tailcall): Initialize profile of
8464 * ipa-inline.c (want_inline_self_recursive_call_p): Watch for missing
8465 profile in callgraph edge.
8466 * profile-count.h (apply_probability): If THIS is 0, then result is 0
8467 (apply_scale): Likewise.
8468 * tree-inline.c (copy_bb, copy_edges_for_bb, copy_cfg_body):
8469 Also scale profile when inlining function with zero profile.
8470 (initialize_cfun): Update exit block profile even when it is zero.
8471 * tree-ssa-threadupdate.c (clear_counts_path): Handle correctly case
8472 when profile is read.
8474 2017-06-05 Michael Meissner <meissner@linux.vnet.ibm.com>
8476 * config/rs6000/rs6000.c (toplevel): Include attribs.h.
8477 (CLONE_*): New constants to define the processors we can generate
8478 code for with the target_clone attribute.
8479 (rs6000_clone_map): New array to identify which clone processors
8480 the current program is running on.
8481 (TARGET_COMPARE_VERSION_PRIORITY): Define to enable the
8482 target_clone attribute.
8483 (TARGET_GENERATE_VERSION_DISPATCHER_BODY): Likewise.
8484 (TARGET_GET_FUNCTION_VERSIONS_DISPATCHER): Likewise.
8485 (TARGET_OPTION_FUNCTION_VERSIONS): Likewise.
8486 (cpu_expand_builtin): Add support for target_clone attribute.
8487 (rs6000_valid_attribute_p): Allow "default" attribute.
8488 (get_decl_name): New debug function to simplify printing the
8489 current function name in debugging statements.
8490 (rs6000_clone_priority): New functions to support the target_clone
8491 attribute, and be able to generate code to switch between ISA 2.05
8492 through ISA 3.0 (power6 through power9).
8493 (rs6000_compare_version_priority): Likewise.
8494 (rs6000_get_function_versions_dispatcher): Likewise.
8495 (make_resolver_func): Likewise.
8496 (add_condition_to_bb): Likewise.
8497 (dispatch_function_versions): Likewise.
8498 (rs6000_generate_version_dispatcher_body): Likewise.
8499 (rs6000_can_inline_p): Call get_decl_name for debugging usage.
8500 (fusion_gpr_load_p): Fix a spacing issue.
8501 * doc/extend.texi (Common Function Attributes): Document that the
8502 PowerPC supports the target_clone attribute.
8504 2017-06-05 Thomas Preud'homme <thomas.preudhomme@arm.com>
8506 * config/arm/arm.h: explain F symbol found in description of ARM
8507 register allocation in its legend.
8509 2017-06-05 Jan Hubicka <hubicka@ucw.cz>
8511 * config/mips/frame-header-opt.c: Include profile-count.h.
8512 * config/riscv/riscv.c: Include profile-count.h
8514 2017-06-05 Jan Hubicka <hubicka@ucw.cz>
8516 * tree-ssa-loop-im.c (execute_sm_if_changed): Add FLAG_BBS parameter;
8518 (sm_set_flag_if_changed): Add bbs field.
8519 (execute_sm_if_changed_flag_set): Pass BBS.
8520 (execute_sm): Update.
8522 2017-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8524 * config/aarch64/aarch64-simd.md (aarch64_store_lane0<mode>):
8527 2017-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8529 * config/aarch64/aarch64.md (sub<mode>3_compare1_imm): New define_insn.
8530 (peephole2): New peephole2 to emit the above.
8531 * config/aarch64/predicates.md (aarch64_sub_immediate): New predicate.
8533 2017-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8535 * config/aarch64/aarch64.c (define_peephole2 above
8536 *sub_<shift>_<mode>): New peephole.
8538 2017-05-23 Jan Hubicka <hubicka@ucw.cz>
8540 * config/i386/i386.c (make_resolver_func): Update.
8541 * Makefile.in: Add profile-count.h and profile-count.o
8542 * auto-profile.c (afdo_indirect_call): Update to new API.
8543 (afdo_set_bb_count): Update.
8544 (afdo_propagate_edge): Update.
8545 (afdo_propagate_circuit): Update.
8546 (afdo_calculate_branch_prob): Update.
8547 (afdo_annotate_cfg): Update.
8548 * basic-block.h: Include profile-count.h
8549 (struct edge_def): Turn count to profile_count.
8550 (struct basic_block_def): Likewie.
8551 (REG_BR_PROB_BASE): Move to profile-count.h
8552 (RDIV): Move to profile-count.h
8553 * bb-reorder.c (max_entry_count): Turn to profile_count.
8554 (find_traces): Update.
8555 (rotate_loop):Update.
8556 (connect_traces):Update.
8557 (sanitize_hot_paths):Update.
8558 * bt-load.c (migrate_btr_defs): Update.
8559 * cfg.c (RDIV): Remove.
8560 (init_flow): Use alloc_block.
8561 (alloc_block): Uninitialize count.
8562 (unchecked_make_edge): Uninitialize count.
8563 (check_bb_profile): Update.
8564 (dump_edge_info): Update.
8565 (dump_bb_info): Update.
8566 (update_bb_profile_for_threading): Update.
8567 (scale_bbs_frequencies_int): Update.
8568 (scale_bbs_frequencies_gcov_type): Update.
8569 (scale_bbs_frequencies_profile_count): New.
8570 * cfg.h (update_bb_profile_for_threading): Update.
8571 (scale_bbs_frequencies_profile_count): Declare.
8572 * cfgbuild.c (compute_outgoing_frequencies): Update.
8573 (find_many_sub_basic_blocks): Update.
8574 * cfgcleanup.c (try_forward_edges): Update.
8575 (try_crossjump_to_edge): Update.
8576 * cfgexpand.c (expand_gimple_tailcall): Update.
8577 (construct_exit_block): Update.
8578 * cfghooks.c (verify_flow_info): Update.
8579 (dump_bb_for_graph): Update.
8580 (split_edge): Update.
8581 (make_forwarder_block): Update.
8582 (duplicate_block): Update.
8583 (account_profile_record): Update.
8584 * cfgloop.c (find_subloop_latch_edge_by_profile): Update.
8585 (get_estimated_loop_iterations): Update.
8586 * cfgloopanal.c (expected_loop_iterations_unbounded): Update.
8587 (single_likely_exit): Update.
8588 * cfgloopmanip.c (scale_loop_profile): Update.
8590 (set_zero_probability): Update.
8591 (lv_adjust_loop_entry_edge): Update.
8592 * cfgrtl.c (force_nonfallthru_and_redirect): Update.
8593 (purge_dead_edges): Update.
8594 (rtl_account_profile_record): Update.
8595 * cgraph.c (cgraph_node::create): Uninitialize count.
8596 (symbol_table::create_edge): Uninitialize count.
8597 (cgraph_update_edges_for_call_stmt_node): Update.
8598 (cgraph_edge::dump_edge_flags): Update.
8599 (cgraph_node::dump): Update.
8600 (cgraph_edge::maybe_hot_p): Update.
8601 * cgraph.h: Include profile-count.h
8602 (create_clone), create_edge, create_indirect_edge): Update.
8603 (cgraph_node): Turn count to profile_count.
8604 (cgraph_edge0: Likewise.
8605 (make_speculative, clone): Update.
8606 (create_edge): Update.
8607 (init_lowered_empty_function): Update.
8608 * cgraphclones.c (cgraph_edge::clone): Update.
8609 (duplicate_thunk_for_node): Update.
8610 (cgraph_node::create_clone): Update.
8611 * cgraphunit.c (cgraph_node::analyze): Update.
8612 (cgraph_node::expand_thunk): Update.
8613 * final.c (dump_basic_block_info): Update.
8614 * gimple-streamer-in.c (input_bb): Update.
8615 * gimple-streamer-out.c (output_bb): Update.
8616 * graphite.c (print_global_statistics): Update.
8617 (print_graphite_scop_statistics): Update.
8618 * hsa-brig.c: Include basic-block.h.
8619 * hsa-dump.c: Include basic-block.h.
8620 * hsa-gen.c (T sum_slice): Update.
8621 (convert_switch_statements):Update.
8622 * hsa-regalloc.c: Include basic-block.h.
8623 * ipa-chkp.c (chkp_produce_thunks): Update.
8624 * ipa-cp.c (struct caller_statistics): Update.
8625 (init_caller_stats): Update.
8626 (gather_caller_stats): Update.
8627 (ipcp_cloning_candidate_p): Update.
8628 (good_cloning_opportunity_p): Update.
8629 (get_info_about_necessary_edges): Update.
8630 (dump_profile_updates): Update.
8631 (update_profiling_info): Update.
8632 (update_specialized_profile): Update.
8633 (perhaps_add_new_callers): Update.
8634 (decide_about_value): Update.
8635 (ipa_cp_c_finalize): Update.
8636 * ipa-devirt.c (struct odr_type_warn_count): Update.
8637 (struct decl_warn_count): Update.
8638 (struct final_warning_record): Update.
8639 (possible_polymorphic_call_targets): Update.
8640 (ipa_devirt): Update.
8641 * ipa-fnsummary.c (redirect_to_unreachable): Update.
8642 * ipa-icf.c (sem_function::merge): Update.
8643 * ipa-inline-analysis.c (do_estimate_edge_time): Update.
8644 * ipa-inline.c (compute_uninlined_call_time): Update.
8645 (compute_inlined_call_time): Update.
8646 (want_inline_small_function_p): Update.
8647 (want_inline_self_recursive_call_p): Update.
8648 (edge_badness): Update.
8649 (lookup_recursive_calls): Update.
8650 (recursive_inlining): Update.
8651 (inline_small_functions): Update.
8652 (dump_overall_stats): Update.
8653 (dump_inline_stats): Update.
8654 * ipa-profile.c (ipa_profile_generate_summary): Update.
8655 (ipa_propagate_frequency): Update.
8656 (ipa_profile): Update.
8657 * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
8658 * ipa-utils.c (ipa_merge_profiles): Update.
8659 * loop-doloop.c (doloop_modify): Update.
8660 * loop-unroll.c (report_unroll): Update.
8661 (unroll_loop_runtime_iterations): Update.
8662 * lto-cgraph.c (lto_output_edge): Update.
8663 (lto_output_node): Update.
8664 (input_node): Update.
8665 (input_edge): Update.
8666 (merge_profile_summaries): Update.
8667 * lto-streamer-in.c (input_cfg): Update.
8668 * lto-streamer-out.c (output_cfg): Update.
8669 * mcf.c (create_fixup_graph): Update.
8670 (adjust_cfg_counts): Update.
8671 (sum_edge_counts): Update.
8672 * modulo-sched.c (sms_schedule): Update.
8673 * postreload-gcse.c (eliminate_partially_redundant_load): Update.
8674 * predict.c (maybe_hot_count_p): Update.
8675 (probably_never_executed): Update.
8676 (dump_prediction): Update.
8677 (combine_predictions_for_bb): Update.
8678 (propagate_freq): Update.
8679 (handle_missing_profiles): Update.
8680 (counts_to_freqs): Update.
8681 (rebuild_frequencies): Update.
8682 (force_edge_cold): Update.
8683 * predict.h: Include profile-count.h
8684 (maybe_hot_count_p, counts_to_freqs): UPdate.
8685 * print-rtl-function.c: Do not include cfg.h
8686 * print-rtl.c: Include basic-block.h
8687 * profile-count.c: New file.
8688 * profile-count.h: New file.
8689 * profile.c (is_edge_inconsistent): Update.
8690 (correct_negative_edge_counts): Update.
8691 (is_inconsistent): Update.
8692 (set_bb_counts): Update.
8693 (read_profile_edge_counts): Update.
8694 (compute_frequency_overlap): Update.
8695 (compute_branch_probabilities): Update; Initialize and deinitialize
8697 (branch_prob): Update.
8698 * profile.h (bb_gcov_counts, edge_gcov_counts): New.
8699 (edge_gcov_count): New.
8700 (bb_gcov_count): New.
8701 * shrink-wrap.c (try_shrink_wrapping): Update.
8702 * tracer.c (better_p): Update.
8703 * trans-mem.c (expand_transaction): Update.
8704 (ipa_tm_insert_irr_call): Update.
8705 (ipa_tm_insert_gettmclone_call): Update.
8706 * tree-call-cdce.c: Update.
8707 * tree-cfg.c (gimple_duplicate_sese_region): Update.
8708 (gimple_duplicate_sese_tail): Update.
8709 (gimple_account_profile_record): Update.
8710 (execute_fixup_cfg): Update.
8711 * tree-inline.c (copy_bb): Update.
8712 (copy_edges_for_bb): Update.
8713 (initialize_cfun): Update.
8714 (freqs_to_counts): Update.
8715 (copy_cfg_body): Update.
8716 (expand_call_inline): Update.
8717 * tree-ssa-ifcombine.c (update_profile_after_ifcombine): Update.
8718 * tree-ssa-loop-ivcanon.c (unloop_loops): Update.
8719 (try_unroll_loop_completely): Update.
8720 (try_peel_loop): Update.
8721 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
8722 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Update.
8723 * tree-ssa-loop-split.c (connect_loops): Update.
8724 * tree-ssa-loop-unswitch.c (hoist_guard): Update.
8725 * tree-ssa-reassoc.c (branch_fixup): Update.
8726 * tree-ssa-tail-merge.c (replace_block_by): Update.
8727 * tree-ssa-threadupdate.c (create_block_for_threading): Update.
8728 (compute_path_counts): Update.
8729 (update_profile): Update.
8730 (recompute_probabilities): Update.
8731 (update_joiner_offpath_counts): Update.
8732 (estimated_freqs_path): Update.
8733 (freqs_to_counts_path): Update.
8734 (clear_counts_path): Update.
8735 (ssa_fix_duplicate_block_edges): Update.
8736 (duplicate_thread_path): Update.
8737 * tree-switch-conversion.c (case_bit_test_cmp): Update.
8738 (struct switch_conv_info): Update.
8739 * tree-tailcall.c (decrease_profile): Update.
8740 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Update.
8741 * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
8742 * value-prof.c (check_counter): Update.
8743 (gimple_divmod_fixed_value): Update.
8744 (gimple_mod_pow2): Update.
8745 (gimple_mod_subtract): Update.
8746 (gimple_ic_transform): Update.
8747 (gimple_stringop_fixed_value): Update.
8748 * value-prof.h (gimple_ic): Update.
8750 2017-06-02 Carl Love <cel@us.ibm.com>
8752 * config/rs6000/rs6000-c: Add support for built-in functions
8753 vector double vec_doublee (vector signed int);
8754 vector double vec_doublee (vector unsigned int);
8755 vector double vec_doublee (vector float);
8756 vector double vec_doubleh (vector signed int);
8757 vector double vec_doubleh (vector unsigned int);
8758 vector double vec_doubleh (vector float);
8759 vector double vec_doublel (vector signed int);
8760 vector double vec_doublel (vector unsigned int);
8761 vector double vec_doublel (vector float);
8762 vector double vec_doubleo (vector signed int);
8763 vector double vec_doubleo (vector unsigned int);
8764 vector double vec_doubleo (vector float);.
8765 * config/rs6000/rs6000-builtin.def: Add definitions for DOUBLEE,
8766 DOUBLEO, DOUBLEH, DOUBLEL, UNS_DOUBLEO, UNS_DOUBLEE, UNS_DOUBLEH,
8768 * config/rs6000/altivec.md: Add code generator for doublee<mode>2,
8769 unsdoubleev4si2, doubleo<mode>2, unsdoubleov4si2, doubleh<mode>2,
8770 unsdoublehv4si2, doublel<mode>2, unsdoublelv4si2, add mode attribute
8772 * config/rs6000/altivec.h: Add define for vec_doublee, vec_doubleo,
8773 vec_doublel, vec_doubleh.
8774 * doc/extend.texi: Update the built-in documentation file for the
8775 new built-in functions.
8777 2017-06-02 David Malcolm <dmalcolm@redhat.com>
8780 * ipa-inline-analysis.c (free_growth_caches): Set
8781 edge_removal_hook_holder to NULL after removing it.
8783 2017-06-02 Sudakshina Das <sudi.das@arm.com>
8785 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
8786 comparision with zero.
8788 2017-06-02 Will Schmidt <will_schmidt@vnet.ibm.com>
8789 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
8790 for early expansion of vec_min and vec_max builtins.
8791 (builtin_function_type): Add min/max unsigned variants to those
8792 identified as having unsigned arguments.
8794 2017-06-02 Olivier Hainque <hainque@adacore.com>
8796 * config/vx-common.h (DWARF_UNWIND_INFO): Switch #define to 1.
8798 2017-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8800 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
8801 Use VALL_F16 iterator rather than VALL.
8803 2017-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8805 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap):
8806 Emit CBNZ inside loop when doing a strong exchange and comparing
8807 against zero. Generate the CC flags after the loop.
8809 2017-06-02 David Edelsohn <dje.gcc@gmail.com>
8811 * dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE_STR): New.
8812 (dl_section_ref): New.
8813 (dwarf2out_finish): Copy debug_line_section_label to dl_section_ref.
8814 On AIX, append an expression to subtract the size of the
8815 section length to dl_section_ref.
8817 2017-06-02 Will Schmidt <will_schmidt@vnet.ibm.com>
8819 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
8820 for early expansion of vector absolute builtins.
8822 2017-06-02 Richard Biener <rguenther@suse.de>
8824 * tree-vect-slp.c (vect_detect_hybrid_slp_2): Match up
8825 what we consider a relevant use stmt with vect_detect_hybrid_slp_stmts.
8827 2017-06-02 Richard Biener <rguenther@suse.de>
8829 PR tree-optimization/80948
8830 * tree-tailcall.c (find_tail_calls): Track stmts to move in
8833 2017-06-02 Richard Biener <rguenther@suse.de>
8835 * tree-vect-loop.c (vect_analyze_loop_operations): Not relevant
8837 * tree-vect-stmts.c (process_use): Do not mark backedge defs
8838 for inductions as relevant.
8840 2017-06-02 Richard Biener <rguenther@suse.de>
8842 * tree-vect-loop.c (get_initial_def_for_induction): Inline into ...
8843 (vectorizable_induction): ... this. Remove dead code.
8845 2017-06-02 Eric Botcazou <ebotcazou@adacore.com>
8847 * builtins. (expand_builtin_alloca): Remove second parameter and
8848 infer its value from the first parameter instead.
8849 (expand_builtin) <BUILT_IN_ALLOCA>: Adjust call to above.
8851 2017-06-02 Jakub Jelinek <jakub@redhat.com>
8853 PR rtl-optimization/80903
8854 * loop-doloop.c (add_test): Unshare sequence.
8856 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
8858 * doc/invoke.texi: Document the -Wsizeof-pointer-div warning.
8860 2017-06-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8862 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers): Make
8864 (xlogue_layout::get_stack_space_used, xlogue_layout::s_instances,
8865 xlogue_layout::get_instance, logue_layout::xlogue_layout,
8866 sp_valid_at, fp_valid_at, choose_basereg): Formatting.
8867 (xlogue_layout::get_stub_rtx): Make static.
8868 (xlogue_layout::get_stub_name): Avoid const-cast, make static.
8869 (xlogue_layout::compute_stub_managed_regs): Rename to...
8870 (xlogue_layout::count_stub_managed_regs): ...this.
8871 (xlogue_layout::is_stub_managed_reg): New function.
8872 (xlogue_layout::m_stub_names): Rename to...
8873 (xlogue_layout::s_stub_names): ...this, make static.
8874 (xlogue_layout::STUB_INDEX_OFFSET, xlogue_layout::MIN_REGS,
8875 xlogue_layout::MAX_REGS, xlogue_layout::MAX_EXTRA_REGS,
8876 xlogue_layout::VARIANT_COUNT, xlogue_layout::STUB_NAME_MAX_LEN,
8877 xlogue_layout::s_stub_names): Instantiate statics.
8878 (stub_managed_regs): Remove.
8879 (ix86_save_reg): Use xlogue_layout::compute_stub_managed_regs.
8880 (disable_call_ms2sysv_xlogues): Rename to...
8881 (warn_once_call_ms2sysv_xlogues): ...this, and warn only once.
8882 (ix86_initial_elimination_offset, ix86_expand_call): Fix call_ms2sysv
8884 (ix86_static_chain): Make sure that ix86_static_chain_on_stack can't
8885 change after reload_completed.
8886 (ix86_can_use_return_insn_p): Use the ix86_frame data structure
8888 (ix86_expand_prologue): Likewise.
8889 (ix86_expand_epilogue): Likewise.
8890 (ix86_expand_split_stack_prologue): Likewise.
8891 (ix86_compute_frame_layout): Remove frame parameter ...
8892 (TARGET_COMPUTE_FRAME_LAYOUT): ... and export it as a target hook.
8893 (ix86_finalize_stack_realign_flags): Call ix86_compute_frame_layout
8895 (ix86_init_machine_status): Don't set use_fast_prologue_epilogue_nregs.
8896 (ix86_frame): Move from here ...
8897 * config/i386/i386.h (ix86_frame): ... to here.
8898 (machine_function): Remove use_fast_prologue_epilogue_nregs, cache the
8899 complete ix86_frame data structure instead. Remove some_ld_name.
8901 2017-06-01 Pierre-Marie de Rodat <derodat@adacore.com>
8903 * dwarf2out.c (dwarf2out_late_global_decl): Add locations for
8904 symbols that hold a DECL_VALUE_EXPR.
8906 2017-06-01 Martin Jambor <mjambor@suse.cz>
8908 PR tree-optimization/80898
8909 * tree-sra.c (process_subtree_disqualification): Removed.
8910 (disqualify_candidate): Do not acll
8911 process_subtree_disqualification.
8912 (subtree_mark_written_and_enqueue): New function.
8913 (propagate_all_subaccesses): Set grp_write of LHS subtree if the
8914 RHS has been disqualified and re-queue LHS if necessary. Apart
8915 from that, ignore disqualified RHS.
8917 2017-06-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8919 * config/s390/s390.c (s390_emit_epilogue): Disable early return
8920 address fetch for z10 or later.
8922 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
8924 * config/arc/arc.md (tst_movb): Add guard when splitting.
8926 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
8928 * config/arc/arc.c (arc_can_eliminate): Test against
8929 arc_frame_pointer_needed.
8931 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
8933 * config/arc/arc.c (arc_expand_prologue): Emit a special barrier
8934 to prevent store reordering.
8935 * config/arc/arc.md (UNSPEC_ARC_STKTIE): Define.
8936 (type): Add block type.
8937 (stack_tie): Define special instruction to be used in
8940 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
8942 * config/arc/arc.md (commutative_binary_comparison): Remove 'I'
8943 constraint. It is not valid for the pattern.
8944 (noncommutative_binary_comparison): Likewise.
8946 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
8948 * config/arc/simdext.md (movv2hi_insn): Change predicate to avoid
8951 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
8953 * config/arc/arc.c (arc_conditional_register_usage): Allow r30 to
8954 be used by the reg-alloc.
8956 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
8958 * config/arc/arc.md (mulsi3): Avoid use of hard registers before
8959 reg-alloc when having mul64 or mul32x16 instructions.
8960 (mulsidi3): Likewise.
8961 (umulsidi3): Likewise.
8962 (mulsi32x16): New pattern.
8963 (mulsi64): Likewise.
8964 (mulsidi64): Likewise.
8965 (umulsidi64): Likewise.
8966 (MUL32x16_REG): Define.
8967 (mul64_600): Use MUL32x16_REG.
8968 (mac64_600): Likewise.
8969 (umul64_600): Likewise.
8970 (umac64_600): Likewise.
8972 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
8974 * config/arc/arc.md (mulsi3_700): Make it commutative.
8976 2017-06-01 Jose E. Marchesi <jose.marchesi@oracle.com>
8978 * config/sparc/sparc.md (*zero_extendsidi2_insn_sp64): Set insn
8980 (*sign_extendsidi2_insn): Likewise for movstosw.
8982 2017-06-01 Pierre-Marie de Rodat <derodat@adacore.com>
8984 * dwarf2out.c (get_discr_value): Call the get_debug_type hook on
8985 the type of the input discriminant value. Convert the
8986 discriminant value of signedness vary.
8988 2017-06-01 Volker Reichelt <v.reichelt@netcologne.de>
8990 * doc/invoke.texi (-Wcatch-value): Document new shortcut.
8991 Add to -Wall section.
8993 2017-06-01 Richard Biener <rguenther@suse.de>
8996 * fold-const.c (fold_plusminus_mult_expr): If the factored
8997 factor may be zero use a wrapping type for the inner operation.
8998 * tree-tailcall.c (independent_of_stmt_p): Pass in to_move bitmap
8999 and handle moved defs.
9000 (process_assignment): Properly guard the unary op case. Return a
9001 tri-state indicating that moving the stmt before the call may allow
9002 to continue. Pass through to_move.
9003 (find_tail_calls): Handle moving unrelated defs before
9006 2017-05-31 Segher Boessenkool <segher@kernel.crashing.org>
9009 * config/rs6000/vector.md (*vector_uneq<mode>): Write the nor in the
9010 splitter result in the canonical way.
9012 2017-05-31 Uros Bizjak <ubizjak@gmail.com>
9014 * config/i386/i386.md (*zero_extendsidi2): Enable alternative (?r, *Yj)
9015 also for 32bit target. Update insn attributes.
9016 (zero-extendsidi2 splitter): Allow all registers for operand 1.
9018 2017-05-31 Sebastian Peryt <sebastian.peryt@intel.com>
9020 * config/i386/avx512fintrin.h (_mm_mask_max_sd)
9021 (_mm_maskz_max_sd, _mm_mask_max_ss, _mm_maskz_max_ss)
9022 (_mm_mask_min_sd, _mm_maskz_min_sd, _mm_mask_min_ss)
9023 (_mm_maskz_min_ss): New intrinsics.
9025 2017-05-31 Martin Liska <mliska@suse.cz>
9027 * tree-vect-loop.c (vect_create_epilog_for_reduction):
9028 Change comment style to one we normally use.
9029 (vectorizable_reduction): Likewise.
9030 (vectorizable_induction): Likewise.
9031 * tree-vect-stmts.c (vectorizable_mask_load_store): Likewise.
9032 (vectorizable_call): Likewise.
9033 (vectorizable_simd_clone_call): Likewise.
9034 (vectorizable_conversion): Likewise.
9035 (vectorizable_assignment): Likewise.
9036 (vectorizable_shift): Likewise.
9037 (vectorizable_operation): Likewise.
9038 (vectorizable_store): Likewise.
9039 (vectorizable_load): Likewise.
9040 * tree-vectorizer.h: Likewise.
9042 2017-05-31 Alexander Monakov <amonakov@ispras.ru>
9044 * passes.c (emergency_dump_function): New.
9045 * tree-pass.h (emergency_dump_function): Declare.
9046 * plugin.c (plugins_internal_error_function): Remove.
9047 * plugin.h (plugins_internal_error_function): Remove declaration.
9048 * toplev.c (internal_error_function): New static function. Use it...
9049 (general_init): ...here.
9051 2017-05-31 Graham Markall <graham.markall@embecosm.com>
9053 * config/arc/arc.c (arc_print_operand): Handle constant operands.
9054 (arc_rtx_costs): Add costs for new patterns.
9055 * config/arc/arc.md: Additional *add_n and *sub_n patterns.
9056 * config/arc/predicates.md: Add _1_2_3_operand predicate.
9058 2017-05-31 Richard Sandiford <richard.sandiford@linaro.org>
9060 * tree-ssa-strlen.c (get_next_strinfo): New function.
9061 (get_stridx_plus_constant): Use it.
9062 (zero_length_string): Likewise.
9063 (adjust_related_strinfos): Likewise.
9064 (adjust_last_stmt): Likewise.
9066 2017-05-31 Richard Biener <rguenther@suse.de>
9069 * config/i386/i386.c (ix86_expand_builtin): Remove assert
9070 for arg being an SSA name when expanding IX86_BUILTIN_BNDRET.
9072 2017-05-31 Richard Sandiford <richard.sandiford@linaro.org>
9074 * tree-vect-data-refs.c (vect_find_same_alignment_drs): Remove
9075 loop_vinfo argument and use of dependence distance vectors.
9076 Check instead whether the two references differ only in their
9077 initial value and assume that they have the same alignment if the
9078 difference is a multiple of the vector alignment.
9079 (vect_analyze_data_refs_alignment): Update call accordingly.
9081 2017-05-31 Martin Liska <mliska@suse.cz>
9084 * config/i386/cpuid.h: Fix typo in a comment in cpuid.h.
9086 2017-05-31 Bin Cheng <bin.cheng@arm.com>
9088 * tree-vect-loop-manip.c (create_intersect_range_checks_index)
9089 (create_intersect_range_checks): Move from ...
9090 * tree-data-ref.c (create_intersect_range_checks_index)
9091 (create_intersect_range_checks): ... to here.
9092 (create_runtime_alias_checks): New function factored from ...
9093 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): ...
9094 here. Call above function.
9095 * tree-data-ref.h (create_runtime_alias_checks): New function.
9097 2017-05-31 Bin Cheng <bin.cheng@arm.com>
9099 * tree-data-ref.c (prune_runtime_alias_test_list): Relax minimal
9100 segment length for dr_b and compute it in wide_int.
9102 2017-05-31 Richard Biener <rguenther@suse.de>
9104 PR tree-optimization/80906
9105 * graphite-isl-ast-to-gimple.c (copy_loop_close_phi_nodes): Get
9106 and pass through iv_map.
9107 (copy_bb_and_scalar_dependences): Adjust.
9108 (translate_pending_phi_nodes): Likewise.
9109 (copy_loop_close_phi_args): Handle code-generating IVs instead
9112 2017-05-30 David Malcolm <dmalcolm@redhat.com>
9114 * diagnostic-color.c (color_dict): Add "type-diff".
9115 (parse_gcc_colors): Update comment.
9116 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
9117 -fdiagnostics-show-template-tree and -fno-elide-type.
9118 (GCC_COLORS): Add type-diff to example.
9120 (-fdiagnostics-show-template-tree): New.
9121 (-fno-elide-type): New.
9122 * pretty-print.c (pp_format): Pass quote and formatters[argno] to
9123 the pp_format_decoder callback. Call any m_format_postprocessor's
9125 (pretty_printer::pretty_printer): Initialize
9126 m_format_postprocessor.
9127 (pretty_printer::~pretty_printer): Delete any
9128 m_format_postprocessor.
9129 * pretty-print.h (printer_fn): Add bool and const char ** parameters.
9130 (class format_postprocessor): New class.
9131 (struct pretty_printer::format_decoder): Document the new parameters.
9132 (struct pretty_printer::m_format_postprocessor): New field.
9133 * tree-diagnostic.c (default_tree_printer): Update for new
9134 bool and const char ** params.
9135 * tree-diagnostic.h (default_tree_printer): Likewise.
9137 2017-05-30 Segher Boessenkool <segher@kernel.crashing.org>
9139 * config/rs6000/predicates.md (cc_reg_not_micro_cr0_operand): Delete.
9140 (lwa_operand): Delete rs6000_gen_cell_microcode test.
9141 * config/rs6000/rs6000.c (rs6000_option_override_internal): Delete
9142 rs6000_gen_cell_microcode code.
9143 (rs6000_final_prescan_insn): Delete.
9144 (rs6000_opt_vars): Delete the "gen-cell-microcode" and
9145 "warn-cell-microcode" entries.
9146 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): Delete.
9147 * config/rs6000/rs6000.md: Delete rs6000_gen_cell_microcode tests
9148 throughout. Change cc_reg_not_micro_cr0_operand to
9149 cc_reg_not_cr0_operand throughout.
9150 (*extendhi<mode>2_noload): Delete.
9151 * config/rs6000/rs6000.opt (mgen-cell-microcode): Replace by stub.
9152 (mwarn-cell-microcode): Delete.
9153 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete
9154 -mgen-cell-microcode and -mwarn-cell-microcode.
9156 2017-05-30 Uros Bizjak <ubizjak@gmail.com>
9159 * config/i386/constraints.md (Yd): New constraint.
9161 * config/i386/i386.md (*movti_internal): Add (?r, Ye)
9162 and (?Yd, r) alternatives. Update insn attributes.
9163 * config/i386/i386.md (*movti_internal): Add (?r, *Ye)
9164 and (?*Yd, r) alternatives. Update insn attributes.
9165 (double-mode inter-unit splitters): Add new GR<->XMM splitters.
9167 2017-05-30 Pierre-Marie de Rodat <derodat@adacore.com>
9169 * gimplify.c (gimplify_modify_expr): Don't create a
9170 DECL_DEBUG_EXPR link if *FROM_P does not belong to the current
9173 2017-05-30 Wilco Dijkstra <wdijkstr@arm.com>
9175 * config/arm/arm-builtins.c (arm_expand_builtin): Remove const.
9177 2017-05-30 Richard Biener <rguenther@suse.de>
9179 * tree-vectorizer.h (struct _stmt_vec_info): Add reduc_type
9180 and reduc_def fields.
9181 (STMT_VINFO_REDUC_TYPE): New define.
9182 (STMT_VINFO_REDUC_DEF): Likewise.
9183 (vect_force_simple_reduction): Adjust prototype.
9184 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Adjust.
9185 (vect_is_simple_reduction): Remove check_reduction argument.
9186 (vect_force_simple_reduction): Adjust and set
9187 STMT_VINFO_REDUC_TYPE and STMT_VINFO_REDUC_DEF.
9188 (vectorizable_reduction): Do not re-do reduction analysis
9189 but use STMT_VINFO_REDUC_TYPE and STMT_VINFO_REDUC_DEF.
9190 * tree-parloops.c (gather_scalar_reductions): Adjust.
9192 2017-05-30 Richard Biener <rguenther@suse.de>
9195 * cfgexpand.c (expand_gimple_cond): Match up loop fixup with
9198 2017-05-24 Robin Dapp <rdapp@linux.vnet.ibm.com>
9200 * tree-vect-data-refs.c (vect_get_peeling_costs_all_drs):
9201 Introduce unknown_misalignment parameter and remove vf.
9202 (vect_peeling_hash_get_lowest_cost):
9203 Pass unknown_misalignment parameter.
9204 (vect_enhance_data_refs_alignment):
9205 Fix unsupportable data ref treatment.
9207 2017-05-30 Robin Dapp <rdapp@linux.vnet.ibm.com>
9209 * tree-vect-data-refs.c (vect_get_data_access_cost):
9210 Workaround for SLP handling.
9211 (vect_enhance_data_refs_alignment):
9212 Compute costs for doing no peeling at all, compare to the best
9213 peeling costs so far and avoid peeling if cheaper.
9215 2017-05-30 Robin Dapp <rdapp@linux.vnet.ibm.com>
9217 * tree-vect-data-refs.c (vect_peeling_hash_choose_best_peeling):
9218 Return peeling info and set costs to zero for unlimited cost
9220 (vect_enhance_data_refs_alignment): Also inspect all datarefs
9221 with unknown misalignment. Compute and costs for unknown
9222 misalignment, compare them to the costs for known misalignment
9223 and choose the cheapest for peeling.
9225 2017-05-30 Robin Dapp <rdapp@linux.vnet.ibm.com>
9227 * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Rename.
9228 (vect_get_peeling_costs_all_drs): Create function.
9229 (vect_peeling_hash_get_lowest_cost):
9230 Use vect_get_peeling_costs_all_drs.
9231 (vect_peeling_supportable): Create function.
9232 (vect_enhance_data_refs_alignment): Use vect_peeling_supportable.
9234 2017-05-30 Robin Dapp <rdapp@linux.vnet.ibm.com>
9236 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Create
9237 DR_HAS_NEGATIVE_STEP.
9238 (vect_update_misalignment_for_peel): Define DR_MISALIGNMENT.
9239 (vect_enhance_data_refs_alignment): Use.
9240 (vect_duplicate_ssa_name_ptr_info): Use.
9241 * tree-vectorizer.h (dr_misalignment): Use.
9242 (known_alignment_for_access_p): Use.
9244 2017-05-30 Jozef Lawrynowicz <jozef.l@somniumtech.com>
9247 * config/msp430/msp430.c (gen_prefix): Return NULL when section name is
9249 (has_section_name): New function.
9251 2017-05-30 Martin Liska <mliska@suse.cz>
9254 * auto-profile.c (get_function_decl_from_block): Fix
9257 2017-05-30 Richard Biener <rguenther@suse.de>
9260 * cfgexpand.c (expand_gimple_cond): Fixup preserving loops again.
9262 2017-05-30 Martin Liska <mliska@suse.cz>
9264 * dumpfile.c: Use newly added macro DUMP_FILE_INFO.
9265 * dumpfile.h (struct dump_file_info): Remove ctors.
9267 2017-05-30 Martin Liska <mliska@suse.cz>
9269 * predict.def: Fix GNU coding style.
9271 2017-05-29 Max Filippov <jcmvbkbc@gmail.com>
9273 * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
9274 Mark 'to' argument with ATTRIBUTE_UNUSED.
9276 2017-05-29 Max Filippov <jcmvbkbc@gmail.com>
9278 * config/xtensa/xtensa.c (xtensa_emit_call): Use
9279 HOST_WIDE_INT_PRINT_HEX instead of 0x%lx format string.
9280 (print_operand): Use HOST_WIDE_INT_PRINT_DEC instead of %ld
9283 2017-05-29 Eric Botcazou <ebotcazou@adacore.com>
9285 * doc/install.texi (Options specification): Restore entry of
9286 --enable-sjlj-exceptions.
9288 2017-05-27 Michael Eager <eager@eagercon.com>
9291 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
9293 See https://gcc.gnu.org/ml/gcc/2017-05/msg00221.html.
9295 * config/microblaze/microblaze.h
9296 (FIXED_REGISTERS): Update in macro.
9297 (CALL_USED_REGISTERS): Update in macro.
9299 2017-05-27 François-Xavier Coudett <fxcoudert@gcc.gnu.org>
9301 * doc/install.texi: Add links to macOS binary distributions.
9303 2017-05-27 Jakub Jelinek <jakub@redhat.com>
9307 2017-05-25 Marc Glisse <marc.glisse@inria.fr>
9309 * match.pd ((A +- CST1) +- CST2): Allow some conversions.
9311 2017-05-26 Martin Liska <mliska@suse.cz>
9313 * dumpfile.h (enum dump_kind): Renumber TDF_* flags to be contiguous.
9315 2017-05-26 Martin Liska <mliska@suse.cz>
9317 * cfg.c (check_bb_profile): Do not use TDF_COMMENT and print
9318 always leading ';; '.
9319 (dump_bb_info): Likewise.
9320 (brief_dump_cfg): Likewise.
9321 * cfgrtl.c (print_rtl_with_bb): Do not use TDF_COMMENT.
9322 * dumpfile.c: Remove usage of TDF_VERBOSE.
9323 * dumpfile.h (enum dump_kind): Likewise.
9324 (dump_gimple_bb_header): Do not use TDF_COMMENT.
9325 * print-tree.c (debug_verbose): Remove.
9326 * tree-cfg.c (gimple_dump_cfg): Do not use TDF_COMMENT.
9327 (dump_function_to_file): Remove dumps guarded with TDF_VERBOSE.
9328 * tree-diagnostic.c (default_tree_printer): Replace
9329 TDF_DIAGNOSTIC with TDF_SLIM.
9331 2017-05-26 Bin Cheng <bin.cheng@arm.com>
9333 * tree-vect-loop-manip.c (create_intersect_range_checks_index): Pass
9334 in parameter loop, rather than loop_vinfo.
9335 (create_intersect_range_checks): Ditto.
9336 (vect_create_cond_for_alias_checks): Update call to above functions.
9338 2017-05-26 Bin Cheng <bin.cheng@arm.com>
9340 PR tree-optimization/80815
9341 * tree-data-ref.c (prune_runtime_alias_test_list): Simplify condition
9342 for merging runtime alias checks. Handle negative DR_STEPs.
9344 2017-05-26 Bin Cheng <bin.cheng@arm.com>
9346 * tree-vect-data-refs.c (Operator==, comp_dr_with_seg_len_pair):
9348 * tree-data-ref.c (Operator==, comp_dr_with_seg_len_pair): To here.
9349 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Factor
9350 out code pruning runtime alias checks.
9351 * tree-data-ref.c (prune_runtime_alias_test_list): New function
9352 factored out from above.
9353 * tree-vectorizer.h (struct dr_with_seg_len, dr_with_seg_len_pair_t):
9355 * tree-data-ref.h (struct dr_with_seg_len, dr_with_seg_len_pair_t):
9357 (prune_runtime_alias_test_list): New decalaration.
9359 2017-05-26 Bin Cheng <bin.cheng@arm.com>
9361 * tree-vect-data-refs.c (compare_tree): Rename and move ...
9362 * tree-data-ref.c (data_ref_compare_tree): ... to here.
9363 * tree-data-ref.h (data_ref_compare_tree): New decalaration.
9364 * tree-vect-data-refs.c (dr_group_sort_cmp): Update uses.
9365 (operator==, comp_dr_with_seg_len_pair): Ditto.
9366 (vect_prune_runtime_alias_test_list): Ditto.
9368 2017-05-26 Martin Liska <mliska@suse.cz>
9371 * params.def: Bound partial-inlining-entry-probability param.
9373 2017-05-26 Marek Polacek <polacek@redhat.com>
9376 * fold-const.c (fold_binary_loc) <case MULT_EXPR>: Check if OP1
9379 2017-05-26 Richard Biener <rguenther@suse.de>
9381 PR tree-optimization/80842
9382 * tree-ssa-ccp.c (set_lattice_value): Always meet with the old
9385 2017-05-26 Richard Biener <rguenther@suse.de>
9387 PR tree-optimization/80844
9388 * tree-vectorizer.c (adjust_simduid_builtins): Propagate results.
9390 2017-05-25 Sebastian Peryt <sebastian.peryt@intel.com>
9392 * doc/md.texi (Machine Constraints): Update x86 family
9393 machine constraints section to match 'config/i386/constraints.md'.
9395 2017-05-25 Volker Reichelt <v.reichelt@netcologne.de>
9397 * doc/invoke.texi (-Wcatch-value=): Document new warning option.
9399 2017-05-25 Nathan Sidwell <nathan@acm.org>
9401 * doc/invoke.texi (--enable-languages): Update documentation.
9403 2017-05-25 Martin Liska <mliska@suse.cz>
9405 * dumpfile.c: Add TDF_FOLDING.
9406 * dumpfile.h (enum dump_kind): Likewise.
9407 * genmatch.c (dt_simplify::gen_1): Use it.
9409 2017-05-25 Marc Glisse <marc.glisse@inria.fr>
9411 * match.pd (view_convert (convert@0 @1)): Handle zero-extension.
9413 2017-05-25 Marc Glisse <marc.glisse@inria.fr>
9415 * match.pd ((A +- CST1) +- CST2): Allow some conversions.
9416 * tree.c (drop_tree_overflow): Handle COMPLEX_CST and VECTOR_CST.
9418 2017-05-25 Marc Glisse <marc.glisse@inria.fr>
9420 * fold-const.c (fold_binary_loc) [(A & C) == D]: Remove transformation.
9421 * match.pd (X == C): Rewrite it here.
9422 (with_possible_nonzero_bits, with_possible_nonzero_bits2,
9423 with_certain_nonzero_bits2): New predicates.
9424 * tree-ssanames.c (get_nonzero_bits): Handle INTEGER_CST.
9426 2017-05-24 Nathan Sidwell <nathan@acm.org>
9428 * lto-streamer-in.c (lto_input_data_block): Adjust T const cast to
9431 * auto-profile.c (afdo_propagate): Adjust T const cast to avoid
9434 2017-05-24 Segher Boessenkool <segher@kernel.crashing.org>
9436 * config/powerpcspe: New port. Files are copied from the rs6000
9437 port, with "rs6000" in filenames replaced by "powerpcspe".
9439 2017-05-24 Wilco Dijkstra <wdijkstr@arm.com>
9441 PR rtl-optimization/80754
9442 * lra-remat.c (do_remat): Add overlap checks for dst_regno.
9444 2017-05-24 Sheldon Lobo <smlobo@sheldon.us.oracle.com>
9446 * config/sparc/sparc.md (length): Return the correct value for -mflat
9447 sibcalls to match output_sibcall.
9449 2017-05-24 Segher Boessenkool <segher@kernel.crashing.org>
9453 * config/rs6000/rs6000.c (struct machine_function): Add new field
9455 (rs6000_get_separate_components): Init that field, use it.
9456 (rs6000_components_for_bb): Use the field.
9458 2017-05-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
9460 * config/arm/arm.c (arm_expand_prologue): Fix typo in comment.
9462 2017-05-24 Peter Bergner <bergner@vnet.ibm.com>
9465 * tree-cfg.c (group_case_labels_stmt): Delete increment of "i";
9467 2017-05-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9470 * config/s390/s390.c (s390_check_qrst_address): Check incoming
9471 address against address_operand predicate.
9472 * config/s390/s390.md ("*indirect_jump"): Swap alternatives.
9474 2017-05-24 Eric Botcazou <ebotcazou@adacore.com>
9476 * var-tracking.c (track_expr_p): Do not return 0 for tracked record
9477 parameters passed indirectly.
9479 2017-05-23 Uros Bizjak <ubizjak@gmail.com>
9481 * config/i386/i386.md (*movdi_internal): Remove SSE4
9482 alternative 18 (?r, *v). Update insn attributes.
9483 (*movsi_internal): Remove SSE4 alternative 13 (?r, *v).
9484 Update insn attributes.
9485 (*zero_extendsidi2): Remove SSE4 alternative (?r, *x).
9486 Update insn attributes.
9487 * config/i386/sse.md (vec_extract<ssevecmodelower>_0): Remove SSE4
9488 alternative 1 (r, v). Remove isa attribute.
9489 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
9490 Always move value through stack for !TARGET_INTER_UNIT_MOVES_TO_VEC
9491 and !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
9493 2017-05-23 Tom de Vries <tom@codesourcery.com>
9495 * doc/sourcebuild.texi (Directives, Verify compiler message): Document
9498 2017-05-23 Jan Hubicka <hubicka@ucw.cz>
9500 * cgraphunit.c (symbol_table::process_new_functions): Update.
9501 * ipa-fnsummary.c (pass_data_inline_parameters): Remove.
9502 (inline_generate_summary): Rename to ...
9503 (ipa_fn_summary_generate): ... this one.
9504 (inline_read_summary): Rename to ...
9505 (ipa_fn_summary_read): ... this one.
9506 (inline_write_summary): Rename to ...
9507 (ipa_fn_summary_write): ... this one.
9508 (inline_free_summary): Rename to ...
9509 (ipa_free_fn_summary): ... this one.
9510 (pass_data_local_fn_summary, pass_local_fn_summary,
9511 make_pass_local_fn_summary, pass_data_ipa_free_fn_summary,
9512 pass_ipa_free_fn_summary, make_pass_ipa_free_fn_summary,
9513 pass_data_ipa_fn_summary, pass_ipa_fn_summary,
9514 make_pass_ipa_fn_summary): New.
9515 * ipa-fnsummary.h (inline_generate_summary, inline_read_summary,
9516 inline_write_summary, inline_free_summary): Remove.
9517 (ipa_free_fn_summary) : New.
9518 * ipa-inline.c (ipa_inline): Update.
9519 (pass_ipa_inline): Do not generate summaries.
9520 * ipa.c (pass_data_ipa_free_fn_summary, pass_ipa_free_fn_summary):
9522 * passes.def: Replace pass_inline_parameters by pass_local_fn_summary
9523 and add pass_ipa_fn_summary.
9524 * tree-pass.h (make_pass_ipa_fn_summary, make_pass_local_fn_summary):
9526 (make_pass_inline_parameters): Remove.
9528 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
9530 * omp-low.c (struct omp_context): Remove "default_kind" member.
9533 * omp-offload.c (execute_oacc_device_lower): Remove the
9534 parallelism dimensions function attributes for unparallelized
9535 OpenACC kernels constructs.
9537 2017-05-23 Martin Liska <mliska@suse.cz>
9539 * cgraph.c (cgraph_node::get_create): Use symtab_node::dump_{asm_,}name
9541 (cgraph_edge::make_speculative): Likewise.
9542 (cgraph_edge::resolve_speculation): Likewise.
9543 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
9544 (cgraph_node::dump): Likewise.
9545 * cgraph.h: Likewise.
9546 * cgraphunit.c (analyze_functions): Likewise.
9547 (symbol_table::compile): Likewise.
9548 * ipa-cp.c (print_all_lattices): Likewise.
9549 (determine_versionability): Likewise.
9550 (initialize_node_lattices): Likewise.
9551 (ipcp_verify_propagated_values): Likewise.
9552 (estimate_local_effects): Likewise.
9553 (update_profiling_info): Likewise.
9554 (create_specialized_node): Likewise.
9555 (perhaps_add_new_callers): Likewise.
9556 (decide_about_value): Likewise.
9557 (decide_whether_version_node): Likewise.
9558 (identify_dead_nodes): Likewise.
9559 (ipcp_store_bits_results): Likewise.
9560 * ipa-devirt.c (dump_targets): Likewise.
9561 (ipa_devirt): Likewise.
9562 * ipa-icf.c (sem_item::dump): Likewise.
9563 (sem_function::equals): Likewise.
9564 (sem_variable::equals): Likewise.
9565 (sem_item_optimizer::read_section): Likewise.
9566 (sem_item_optimizer::execute): Likewise.
9567 (congruence_class::dump): Likewise.
9568 * ipa-inline-analysis.c (dump_ipa_call_summary): Likewise.
9569 (dump_inline_summary): Likewise.
9570 (estimate_node_size_and_time): Likewise.
9571 (inline_analyze_function): Likewise.
9572 * ipa-inline-transform.c (inline_call): Likewise.
9573 * ipa-inline.c (report_inline_failed_reason): Likewise.
9574 (want_early_inline_function_p): Likewise.
9575 (edge_badness): Likewise.
9576 (update_edge_key): Likewise.
9577 (inline_small_functions): Likewise.
9578 * ipa-profile.c (ipa_profile): Likewise.
9579 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
9580 (ipa_make_edge_direct_to_target): Likewise.
9581 (remove_described_reference): Likewise.
9582 (ipa_impossible_devirt_target): Likewise.
9583 (propagate_controlled_uses): Likewise.
9584 (ipa_print_node_params): Likewise.
9585 (ipcp_transform_function): Likewise.
9586 * ipa-pure-const.c (pure_const_read_summary): Likewise.
9587 (propagate_pure_const): Likewise.
9588 * ipa-reference.c (generate_summary): Likewise.
9589 (read_write_all_from_decl): Likewise.
9590 (propagate): Likewise.
9591 (ipa_reference_read_optimization_summary): Likewise.
9592 * ipa-utils.c (ipa_merge_profiles): Likewise.
9593 * ipa.c (walk_polymorphic_call_targets): Likewise.
9594 (symbol_table::remove_unreachable_nodes): Likewise.
9595 (ipa_single_use): Likewise.
9596 * passes.c (execute_todo): Likewise.
9597 * predict.c (drop_profile): Likewise.
9598 * symtab.c (symtab_node::get_dump_name): New function.
9599 (symtab_node::dump_name): Likewise.
9600 (symtab_node::dump_asm_name): Likewise.
9601 (symtab_node::dump_references): Likewise.
9602 (symtab_node::dump_referring): Likewise.
9603 (symtab_node::dump_base): Likewise.
9604 (symtab_node::debug_symtab): Likewise.
9605 * tree-sra.c (convert_callers_for_node): Likewise.
9606 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
9607 * value-prof.c (init_node_map): Likewise.
9609 2017-05-23 Martin Liska <mliska@suse.cz>
9611 * cgraph.h: Move symtab_node::dump_table to symbol_table::dump
9612 and symtab_node::debug_symtab to symbol_table::debug.
9613 * cgraphunit.c (analyze_functions): Use the renamed function.
9614 (symbol_table::compile): Likewise.
9615 * ipa-cp.c (ipcp_verify_propagated_values): Likewise.
9616 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
9617 * passes.c (execute_todo): Likewise.
9618 * symtab.c (symbol_table::dump): New function.
9619 * tree-ssa-structalias.c (ipa_pta_execute): Use the renamed function.
9621 2017-05-23 Jan Hubicka <hubicka@ucw.cz>
9623 * ipa-fnsummary.c (estimate_node_size_and_time): Do not sanity check
9624 that nonconst implies exec.
9626 2017-05-23 Jan Hubicka <hubicka@ucw.cz>
9628 * ipa-inline-analysis.c (cgraph_2edge_hook_list, cgraph_edge_hook_list,
9629 inline_edge_removal_hook, inline_edge_duplication_hook): Remove.
9630 (inline_edge_summary_vec): Turn into ...
9631 (ipa_call_summaries): ... this one.
9632 (redirect_to_unreachable, edge_set_predicate,
9633 evaluate_properties_for_edge, inline_summary_alloc,
9634 reset_ipa_call_summary, reset_inline_summary,
9635 inline_summary_t::duplicate): Update.
9636 (inline_edge_duplication_hook): Turn to ...
9637 (ipa_call_summary_t::duplicate): ... this one.
9638 (inline_edge_removal_hook): Turn to ...
9639 (ipa_call_summary_t::remove): ... this one.
9640 (dump_inline_edge_summary): Turn to ...
9641 (dump_ipa_call_summary): ... this one.
9642 (estimate_function_body_sizes): Update.
9643 (inline_update_callee_summaries): Update.
9644 (remap_edge_change_prob): Update.
9645 (remap_edge_summaries): Update.
9646 (inline_merge_summary): Update.
9647 (do_estimate_edge_time): Update.
9648 (inline_generate_summary): Update.
9649 (inline_read_section): Update.
9650 (inline_read_summary): Update.
9651 (inline_free_summary): Update.
9652 * ipa-inline.c (can_inline_edge_p): Update.
9653 (compute_inlined_call_time): Update.
9654 (want_inline_small_function_p): Update.
9655 (edge_badness): Update.
9656 (early_inliner): Update.
9657 * ipa-inline.h (inline_edge_summary): Turn to ...
9658 (ipa_call_summary): ... this one.
9659 (ipa_call_summary_t): New class.
9660 (inline_edge_summary_t, inline_edge_summary_vec): Remove.
9661 (ipa_call_summaries): New.
9662 (inline_edge_summary): Remove.
9663 (estimate_edge_growth): Update.
9664 * ipa-profile.c (ipa_propagate_frequency_1): Update.
9665 * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
9666 * ipa-split.c (execute_split_functions): Update.
9667 * ipa.c (symbol_table::remove_unreachable_nodes): Update.
9669 2017-05-23 Tom de Vries <tom@codesourcery.com>
9671 * doc/sourcebuild.texi (Effective-Target Keywords, Other hardware
9672 attributes): Document rdrand effective target.
9674 2017-05-23 Tom de Vries <tom@codesourcery.com>
9676 * doc/sourcebuild.texi (Effective-Target Keywords, Other hardware
9677 attributes): Sort alphabetically.
9679 2017-05-23 Georg-Johann Lay <avr@gjlay.de>
9681 * config/avr/genmultilib.awk: Use gsub instead of gensub.
9683 2017-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
9686 * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Split
9687 V2DF/V2DI splat into two separate patterns, one that handles
9688 registers, and the other that only handles memory. Drop support
9689 for splatting from a GPR on ISA 2.07 and then splitting the
9690 splat into direct move and splat.
9691 (vsx_splat_<mode>_reg): Likewise.
9692 (vsx_splat_<mode>_mem): Likewise.
9694 2017-05-22 Segher Boessenkool <segher@kernel.crashing.org>
9696 * cfgcleanup.c (bb_is_just_return): Allow CLOBBERs.
9698 2017-05-22 Jakub Jelinek <jakub@redhat.com>
9701 * omp-low.c (finish_taskreg_remap): New function.
9702 (finish_taskreg_scan): If unit size of ctx->record_type
9703 is non-constant, unshare the size expression and replace
9704 decls in it with possible outer var refs.
9707 * gimplify.c (omp_add_variable): For GOVD_DEBUG_PRIVATE use
9708 GOVD_SHARED rather than GOVD_PRIVATE with it.
9709 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Expect
9710 GOVD_SHARED rather than GOVD_PRIVATE with GOVD_DEBUG_PRIVATE.
9713 * omp-low.c (lower_reduction_clauses): Pass OMP_CLAUSE_PRIVATE
9714 as last argument to build_outer_var_ref for pointer bases of array
9717 2017-05-19 Martin Sebor <msebor@redhat.com>
9719 * print-tree.c (print_node): Print DECL_READ_P flag.
9721 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
9723 * Makefile.in: Add ipa-fnsummary.o and ipa-fnsummary.h
9724 * auto-profile.c: Replace ipa-inline.h by ipa-fnsummary.h
9725 * cgraph.c: Likewise.
9726 * cgraphunit.c: Likewise.
9727 * gengtype.c: Likewise.
9728 * ipa-cp.c: Likewise.
9729 * ipa-devirt.c: Likewise.
9730 * ipa-icf.c: Likewise.
9731 * ipa-predicate.c: Likewise.
9732 * ipa-profile.c: Likewise.
9733 * ipa-prop.c: Likewise.
9734 * ipa-split.c: Likewise.
9736 * ipa-inline-analysis.c (inline_summaries, ipa_call_summaries,
9737 edge_predicate_pool, dump_inline_hints,
9738 inline_summary::account_size_time, redirect_to_unreachable,
9739 edge_set_predicate, set_hint_predicate,
9740 evaluate_conditions_for_known_args, evaluate_properties_for_edge,
9741 inline_summary_alloc, ipa_call_summary::reset, inline_summary::reset,
9742 inline_summary_t::remove, remap_hint_predicate_after_duplication,
9743 inline_summary_t::duplicate, ipa_call_summary_t::duplicate,
9744 ipa_call_summary_t::remove, initialize_growth_caches,
9745 free_growth_caches, dump_ipa_call_summary, dump_inline_summary,
9746 debug_inline_summary, dump_inline_summaries, initialize_inline_failed,
9747 mark_modified, unmodified_parm_1, unmodified_parm,
9748 unmodified_parm_or_parm_agg_item, eliminated_by_inlining_prob,
9749 set_cond_stmt_execution_predicate, set_switch_stmt_execution_predicate,
9750 compute_bb_predicates, will_be_nonconstant_expr_predicate,
9751 will_be_nonconstant_predicate, record_modified_bb_info,
9752 get_minimal_bb, record_modified, param_change_prob,
9753 phi_result_unknown_predicate, predicate_for_phi_result,
9754 array_index_predicate, clobber_only_eh_bb_p, fp_expression_p,
9755 estimate_function_body_sizes, compute_inline_parameters,
9756 compute_inline_parameters_for_curren, pass_data_inline_parameters,
9757 estimate_node_size_and_time, estimate_ipcp_clone_size_and_time,
9758 inline_update_callee_summaries, remap_edge_change_prob,
9759 remap_edge_summaries, remap_hint_predicate, inline_merge_summary,
9760 inline_update_overall_summary, inline_indirect_intraprocedural_analysis,
9761 inline_analyze_function, inline_summary_t::insert,
9762 inline_generate_summary, read_ipa_call_summary, inline_read_section,
9763 inline_read_summary, write_ipa_call_summary, inline_write_summary,
9764 inline_free_summary): Move to ipa-fnsummary.h
9765 (predicate_t): Remove.
9766 * ipa-fnsummary.c: New file.
9767 * ipa-inline.h: Do not include sreal.h and ipa-predicate.h
9768 (enum inline_hints_vals, inline_hints, agg_position_info,
9769 INLINE_SIZE_SCALE, size_time_entry, inline_summary, inline_summary_t,
9770 inline_summaries, ipa_call_summary, ipa_call_summary_t,
9771 ipa_call_summaries, debug_inline_summary, dump_inline_summaries,
9772 dump_inline_summary, dump_inline_hints, inline_generate_summary,
9773 inline_read_summary, inline_write_summary, inline_free_summary,
9774 inline_analyze_function, initialize_inline_failed,
9775 inline_merge_summary, inline_update_overall_summary,
9776 compute_inline_parameters): Move to ipa-fnsummary.h
9777 * ipa-fnsummary.h: New file.
9778 * ipa-inline-transform.h: Include ipa-inline.h.
9779 * ipa-inline.c: LIkewise.
9781 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
9783 * ipa-inline.c (edge_badness): Use inlined_time instead of
9784 inline_summaries->get.
9786 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
9788 * ipa-inline.c (edge_badness): Use estimate_size_after_inlining.
9790 2017-05-22 Nathan Sidwell <nathan@acm.org>
9792 * doc/invoke.texi (fdump-translation-unit): Delete documentation.
9793 (fdump-lang): Document 'raw' option.
9794 * dumpfile.h (TDI_tu): Delete.
9795 * dumpfile.c (dump_files): Remove translation-unit.
9796 (FIRST_AUTO_NUMBERED_DUMP): Decrement.
9798 2017-05-22 Georg-Johann Lay <avr@gjlay.de>
9800 * config/avr/t-avr (AWK) [t-multilib]: Remove "-v FORMAT=Makefile"
9801 command option from $(AWK) call.
9802 * config/avr/genmultilib.awk: Simplify and rewrite so that it
9803 generates MULTILIB_REQUIRED instead of MULTILIB_EXCEPTIONS.
9804 [FORMAT]: Remove handling of variable.
9805 * config/avr/t-multilib: Regenerate.
9807 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
9809 * ipa-inline-analysis.c (inline_summary::reset): Do not reset
9811 (dump_inline_summary): Do not print self_time.
9812 (estimate_function_body_sizes): Do not set self_time.
9813 (compute_inline_parameters): Likewise.
9814 (inline_read_section, inline_write_summary): Do not stream self_time.
9815 * ipa-inline.h (inline_summary): Drop self_time.
9817 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
9819 * ipa-inline-analysis.c (account_size_time): Rename to ...
9820 (inline_summary::account_size_time): ... this one.
9821 (reset_ipa_call_summary): Turn to ...
9822 (ipa_call_summary::reset): ... this one.
9823 (reset_inline_summary): Turn to ...
9824 (inline_summary::reset): ... this one.
9825 (inline_summary_t::remove): Update.
9826 (inline_summary_t::duplicate): Update.
9827 (ipa_call_summary_t::remove): Update.
9828 (dump_inline_summary): Update.
9829 (estimate_function_body_sizes): Update.
9830 (compute_inline_parameters): Update.
9831 (estimate_node_size_and_time): Update.
9832 (inline_merge_summary): Update.
9833 (inline_update_overall_summary): Update.
9834 (inline_read_section): Update.
9835 (inline_write_summary): Update.
9836 * ipa-inline.h (inline_summary): Rename entry to size_time_table;
9837 add account_size_time and reset member functions.
9838 (ipa_call_summary): Add reset function.
9839 * ipa-predicate.h (predicate::operator &): Constify.
9841 2017-05-22 Richard Biener <rguenther@suse.de>
9843 * df-scan.c (df_insn_refs_verify): Speedup when not verifying.
9845 2017-05-19 Jason Merrill <jason@redhat.com>
9847 * tree.c (make_tree_vec_stat, grow_tree_vec_stat): Use size_t.
9849 2017-05-19 Marek Polacek <polacek@redhat.com>
9852 * fold-const.c (extract_muldiv_1) <case TRUNC_DIV_EXPR>: Add
9853 TYPE_OVERFLOW_WRAPS checks.
9855 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
9857 * tree-core.h (enum omp_clause_default_kind): Add
9858 "OMP_CLAUSE_DEFAULT_PRESENT".
9859 * tree-pretty-print.c (dump_omp_clause): Handle it.
9860 * gimplify.c (enum gimplify_omp_var_data): Add
9861 "GOVD_MAP_FORCE_PRESENT".
9862 (gimplify_adjust_omp_clauses_1): Map it to
9863 "GOMP_MAP_FORCE_PRESENT".
9864 (oacc_default_clause): Handle "OMP_CLAUSE_DEFAULT_PRESENT".
9866 * gimplify.c (oacc_default_clause): Clarify.
9868 2017-05-19 Nathan Sidwell <nathan@acm.org>
9870 LANG_HOOK_REGISTER_DUMPS
9871 * toplev.c (general_init): Call register dump lang hook.
9872 * doc/invoke.texi: Document -fdump-lang option family.
9873 * dumpfile.c (dump_files): Remove class dump here.
9874 (FIRST_AUTO_NUMBERED_DUMP): Adjust.
9875 * dumpfile.h (tree_dump_index): Remove TDI_class.
9876 * langhooks-def.h (lhd_register_dumps): Declare.
9877 (LANG_HOOKS_REGISTER_DUMPS): Define.
9878 (LANG_HOOKS_INITIALIZER): Add it.
9879 * langhooks.c (lhd_register_dumps): Define.
9880 * langhooks.h (struct lang_hooks): Add register_dumps.
9882 2017-05-19 Nathan Sidwell <nathan@acm.org>
9884 * context.h (context::set_passes): New.
9885 * context.c (context::context): Do not create pass manager.
9886 * toplev.c (general_init): Create pass manager here.
9888 2017-05-19 Segher Boessenkool <segher@kernel.crashing.org>
9890 * config/rs6000/rs6000.md (splitter to load of -1 and mask): Don't
9891 use this splitter if two add or or instructions would also work for
9892 the constant we want to generate.
9894 2017-05-19 Richard Biener <rguenther@suse.de>
9897 * genmatch.c (dt_node::gen_kids_1): Add missing scope around
9898 predicate evaluation.
9900 2017-05-19 Jan Hubicka <hubicka@ucw.cz>
9902 * ipa-inline.h (ipa_call_summary): Turn sizes into signed;
9904 * ipa-inline.c (want_inline_small_function_p): Do not cast to
9907 2017-05-19 Jan Hubicka <hubicka@ucw.cz>
9909 * ipa-inline-analysis.c (cgraph_2edge_hook_list, cgraph_edge_hook_list,
9910 inline_edge_removal_hook, inline_edge_duplication_hook): Remove.
9911 (inline_edge_summary_vec): Turn into ...
9912 (ipa_call_summaries): ... this one.
9913 (redirect_to_unreachable, edge_set_predicate,
9914 evaluate_properties_for_edge, inline_summary_alloc,
9915 reset_ipa_call_summary, reset_inline_summary,
9916 inline_summary_t::duplicate): Update.
9917 (inline_edge_duplication_hook): Turn to ...
9918 (ipa_call_summary_t::duplicate): ... this one.
9919 (inline_edge_removal_hook): Turn to ...
9920 (ipa_call_summary_t::remove): ... this one.
9921 (dump_inline_edge_summary): Turn to ...
9922 (dump_ipa_call_summary): ... this one.
9923 (estimate_function_body_sizes): Update.
9924 (inline_update_callee_summaries): Update.
9925 (remap_edge_change_prob): Update.
9926 (remap_edge_summaries): Update.
9927 (inline_merge_summary): Update.
9928 (do_estimate_edge_time): Update.
9929 (inline_generate_summary): Update.
9930 (inline_read_section): Update.
9931 (inline_read_summary): Update.
9932 (inline_free_summary): Update.
9933 * ipa-inline.c (can_inline_edge_p): Update.
9934 (compute_inlined_call_time): Update.
9935 (want_inline_small_function_p): Update.
9936 (edge_badness): Update.
9937 (early_inliner): Update.
9938 * ipa-inline.h (inline_edge_summary): Turn to ...
9939 (ipa_call_summary): ... this one.
9940 (ipa_call_summary_t): New class.
9941 (inline_edge_summary_t, inline_edge_summary_vec): Remove.
9942 (ipa_call_summaries): New.
9943 (inline_edge_summary): Remove.
9944 (estimate_edge_growth): Update.
9945 * ipa-profile.c (ipa_propagate_frequency_1): Update.
9946 * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
9947 * ipa-split.c (execute_split_functions): Update.
9948 * ipa.c (symbol_table::remove_unreachable_nodes): Update.
9950 2017-05-19 Richard Biener <rguenther@suse.de>
9953 * cfgexpand.c (expand_gimple_cond): Fix loop fixup.
9955 2017-05-18 Segher Boessenkool <segher@kernel.crashing.org>
9957 * config/rs6000/rs6000.c (struct machine_function): Add field
9958 fpr_is_wrapped_separately.
9959 (rs6000_get_separate_components): Use 64 components. Handle the
9961 (rs6000_components_for_bb): Handle the FPR components.
9962 (rs6000_emit_prologue_components): Handle the FPR components.
9963 (rs6000_emit_epilogue_components): Handle the FPR components.
9964 (rs6000_set_handled_components): Handle the FPR components.
9965 (rs6000_emit_prologue): Don't output prologue code for those FPRs
9966 that are already separately shrink-wrapped.
9967 (rs6000_emit_epilogue): Don't output epilogue code for those FPRs
9968 that are already separately shrink-wrapped.
9970 2017-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
9973 * config/rs6000/predicates.md (simple_offsettable_mem_operand):
9976 * config/rs6000/rs6000.md (ALTIVEC_DFORM): New iterator.
9977 (define_peephole2 for Altivec d-form load): Add peepholes to catch
9978 cases where the register allocator uses a move and an offsettable
9979 memory operation to/from a FPR register on ISA 2.06/2.07.
9980 (define_peephole2 for Altivec d-form store): Likewise.
9982 2017-05-18 Uros Bizjak <ubizjak@gmail.com>
9985 * config/i386/mmx.md (*mov<mode>_internal): Enable
9986 alternatives 11, 12, 13 and 14 also for 32bit targets.
9987 Remove alternatives 15, 16, 17 and 18.
9988 * config/i386/sse.md (vec_concatv2di): Change
9989 alternative (!x, *y) to (x, ?!*Yn).
9991 2017-05-18 Paolo Carlini <paolo.carlini@oracle.com>
9993 * dumpfile.h (enum dump_kind): Remove stray comma.
9995 2017-05-18 Jan Hubicka <hubicka@ucw.cz>
9997 * Makefile.in: Add ipa-predicate.o and ipa-predicate.h
9998 * ipa-inline-analysis.c (NUM_CONDITIONS): turn into
9999 predicate::num_conditions
10000 (IS_NOT_CONSTANT): turn into predicate::is_not_constant.
10001 (CHANGED): turn into predicate::changed.
10002 (agg_position_info): Move to ipa-predicate.h
10003 (add_condition, predicate::add_clause, predicate::operator &=,
10004 predicate::or_with, predicate::evaluate, predicate::probability,
10005 dump_condition, dump_clause, predicate::dump,
10006 predicate::remap_after_duplication, predicate::remap_after_inlining,
10007 predicate::stream_in, predicate::stream_out): Move to ipa-predicate.c
10008 (evaluate_conditions_for_known_args): Update.
10009 (set_cond_stmt_execution_predicate): Update.
10010 * ipa-inline.h: Include ipa-predicate.h
10011 (condition, inline_param_summary, conditions, agg_position_info,
10012 predicate): Move to ipa-predicate.h
10013 * ipa-predicate.c: New file.
10014 * ipa-predicate.h: New file.
10016 2017-05-18 Wilco Dijkstra <wdijkstr@arm.com>
10018 * final.c (leaf_function_p): Check we are not in a sequence.
10020 2017-05-18 Martin Liska <mliska@suse.cz>
10022 * cfgrtl.c (rtl_verify_edges): Remove usage of TDF_RTL.
10023 * dumpfile.c (dump_register): Use new enum dump_kind.
10024 (get_dump_file_name): Likewise.
10025 (dump_enable_all): Likewise.
10026 (dump_switch_p_1): Likewise.
10027 (enable_rtl_dump_file): Remove usage of TDF_RTL.
10028 * dumpfile.h (enum dump_kind): New enum type.
10029 (struct dump_file_info): Create constructor and
10030 format fields and comments.
10031 * passes.c (pass_manager::register_one_dump_file):
10033 * statistics.c (statistics_early_init): Likewise.
10034 * tree-ssa-loop-prefetch.c (dump_mem_details): Replace
10035 TDF_TREE with TDF_SLIM.
10036 (gather_memory_references_ref): Likewise.
10038 2017-05-18 Martin Liska <mliska@suse.cz>
10040 * vec.h (struct vnull): Use it.
10042 2017-05-18 Jan Hubicka <hubicka@ucw.cz>
10044 * ipa-inline-analysis.c (predicate_conditions): Move to ipa-inline.h
10045 (true_predicate, false_predicate, true_predicate_p,
10046 false_predicate_p): Remove.
10047 (single_cond_predicate, not_inlined_predicate): Turn to member function
10049 (add_condition): Update.
10050 (add_clause): Turn to...
10051 (predicate::add_clause): ... this one; update; allow passing NULL
10053 (and_predicates): Turn to ...
10054 (predicate::operator &=): ... this one.
10055 (predicates_equal_p): Move to predicate::operator == in ipa-inline.h
10056 (or_predicates): Turn to ...
10057 (predicate::or_with): ... this one.
10058 (evaluate_predicate): Turn to ...
10059 (predicate::evaluate): ... this one.
10060 (predicate_probability): Turn to ...
10061 (predicate::probability): ... this one.
10062 (dump_condition): Update.
10063 (dump_predicate): Turn to ...
10064 (predicate::dump): ... this one.
10065 (account_size_time): Update.
10066 (edge_set_predicate): Update.
10067 (set_hint_predicate): UPdate.
10068 (evaluate_conditions_for_known_args): Update.
10069 (evaluate_properties_for_edge): Update.
10070 (remap_predicate_after_duplication): Turn to...
10071 (predicate::remap_after_duplication): ... this one.
10072 (remap_hint_predicate_after_duplication): Update.
10073 (inline_summary_t::duplicate): UPdate.
10074 (dump_inline_edge_summary): Update.
10075 (dump_inline_summary): Update.
10076 (set_cond_stmt_execution_predicate): Update.
10077 (set_switch_stmt_execution_predicate): Update.
10078 (compute_bb_predicates): Update.
10079 (will_be_nonconstant_expr_predicate): Update.
10080 (will_be_nonconstant_predicate): Update.
10081 (phi_result_unknown_predicate): Update.
10082 (predicate_for_phi_result): Update.
10083 (array_index_predicate): Update.
10084 (estimate_function_body_sizes): Update.
10085 (estimate_node_size_and_time): Update.
10086 (estimate_ipcp_clone_size_and_time): Update.
10087 (remap_predicate): Rename to ...
10088 (predicate::remap_after_inlining): ... this one.
10089 (remap_hint_predicate): Update.
10090 (inline_merge_summary): Update.
10091 (inline_update_overall_summary): Update.
10092 (estimate_size_after_inlining): Update.
10093 (read_predicate): Rename to ...
10094 (predicate::stream_in): ... this one.
10095 (read_inline_edge_summary): Update.
10096 (write_predicate): Rename to ...
10097 (predicate::stream_out): ... this one.
10098 (write_inline_edge_summary): Update.
10099 * ipa-inline.h (MAX_CLAUSES): Turn to predicate::max_clauses.
10100 (clause_t): Turn to uint32_t
10101 (predicate): Turn to class; implement constructor and operators
10103 (size_time_entry): Update.
10104 (inline_summary): Update.
10105 (inline_edge_summary): Update.
10107 2017-05-18 Marc Glisse <marc.glisse@inria.fr>
10109 * fold-const.c (fold_binary_loc): Move transformation...
10110 * match.pd (C - X CMP X): ... here.
10112 2017-05-18 Sheldon Lobo <sheldon.lobo@oracle.com>
10114 * config/sparc/sparc.c (sparc_option_override): Set function
10115 alignment for -mcpu=niagara7 to 64 to match the I$ line.
10116 * config/sparc/sparc.h (BRANCH_COST): Set the SPARC M7 branch
10118 * config/sparc/sparc.h (BRANCH_COST): Set the SPARC T4 branch
10120 * config/sparc/sol2.h: Fix a ASM_CPU32_DEFAULT_SPEC typo.
10122 2017-05-18 Marek Polacek <polacek@redhat.com>
10125 * ubsan.c (instrument_null): Unwrap ADDR_EXPRs.
10126 (pass_ubsan::execute): Call gimple_assign_single_p instead of
10127 gimple_assign_load_p.
10129 2017-05-17 Segher Boessenkool <segher@kernel.crashing.org>
10131 PR middle-end/80692
10132 * real.c (do_compare): Give decimal_do_compare preference over
10133 comparing just the signs.
10135 2017-05-17 Uros Bizjak <ubizjak@gmail.com>
10137 * doc/md.texi (Canonicalization of Instructions): Describe the
10138 canonical form of instructions that inherently set a condition
10141 2017-05-17 Peter Bergner <bergner@vnet.ibm.com>
10143 PR middle-end/80775
10144 * tree-cfg.c: Move deletion of unreachable case statements to after
10145 the merging of consecutive case labels.
10147 2017-05-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
10149 * config/arm/arm.c (cmse_nonsecure_call_clear_caller_saved): Refer
10150 readers to __gnu_cmse_nonsecure_call libcall for saving, clearing and
10151 restoring of callee-saved registers.
10153 2017-05-17 Eric Botcazou <ebotcazou@adacore.com>
10155 * compare-elim.c (equivalent_reg_at_start): Adjust outdated comment.
10156 * config/visium/visium.c (single_set_and_flags): Likewise.
10157 * config/visium/visium.md (Substitutions): Likewise.
10159 2017-05-17 Martin Liska <mliska@suse.cz>
10161 * cfg.c: Introduce dump_flags_t type and
10162 use it instead of int type.
10164 * cfghooks.c: Likewise.
10165 * cfghooks.h (struct cfg_hooks): Likewise.
10166 * cfgrtl.c: Likewise.
10167 * cfgrtl.h: Likewise.
10168 * cgraph.c (cgraph_node::get_body): Likewise.
10169 * coretypes.h: Likewise.
10170 * domwalk.c: Likewise.
10171 * domwalk.h: Likewise.
10172 * dumpfile.c (struct dump_option_value_info): Likewise.
10173 (dump_enable_all): Likewise.
10174 (dump_switch_p_1): Likewise.
10175 (opt_info_switch_p): Likewise.
10176 * dumpfile.h (enum tree_dump_index): Likewise.
10177 (struct dump_file_info): Likewise.
10178 * genemit.c: Likewise.
10179 * generic-match-head.c: Likewise.
10180 * gengtype.c (open_base_files): Likewise.
10181 * gimple-pretty-print.c: Likewise.
10182 * gimple-pretty-print.h: Likewise.
10183 * graph.c (print_graph_cfg): Likewise.
10184 * graphite-scop-detection.c (dot_all_sese): Likewise.
10185 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
10186 * loop-unroll.c (report_unroll): Likewise.
10187 * passes.c (pass_manager::register_one_dump_file): Likewise.
10188 * print-tree.c: Likewise.
10189 * statistics.c: Likewise.
10190 * tree-cfg.c: Likewise.
10191 * tree-cfg.h: Likewise.
10192 * tree-dfa.c: Likewise.
10193 * tree-dfa.h: Likewise.
10194 * tree-dump.c (dump_function): Likewise.
10195 * tree-dump.h (struct dump_info): Likewise.
10196 * tree-pretty-print.c: Likewise.
10197 * tree-pretty-print.h: Likewise.
10198 * tree-ssa-live.c: Likewise.
10199 * tree-ssa-live.h: Likewise.
10200 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
10201 * tree-vect-loop.c: Likewise.
10202 * tree-vect-slp.c: Likewise.
10204 2017-05-16 James Greenhalgh <james.greenhalgh@arm.com>
10205 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10207 PR tree-optimization/80457
10208 * tree-vect-stmts.c (vect_model_simple_cost): Model the cost
10209 of all arguments to a statement as scalar_to_vec operations.
10210 (vectorizable_call): Adjust call to vect_model_simple_cost for
10212 (vectorizable_conversion): Likewise.
10213 (vectorizable_assignment): Likewise.
10214 (vectorizable_shift): Likewise.
10215 (vectorizable_operation): Likewise.
10216 (vectorizable_comparison): Likewise.
10217 (vect_is_simple_cond): Record the def types for operands.
10218 (vectorizable_condition): Likewise, call vect_model_simple_cost.
10219 * tree-vectorizer.h (vect_model_simple_cost): Add new parameter
10220 for statement argument count.
10222 2017-05-16 Carl Love <cel@us.ibm.com>
10224 * config/rs6000/rs6000-c: Add support for built-in functions
10225 vector unsigned long long vec_bperm (vector unsigned long long,
10226 vector unsigned char)
10227 vector signed long long vec_mule (vector signed int,
10229 vector unsigned long long vec_mule (vector unsigned int,
10230 vector unsigned int)
10231 vector signed long long vec_mulo (vector signed int,
10233 vector unsigned long long vec_mulo (vector unsigned int,
10234 vector unsigned int)
10235 vector signed char vec_sldw (vector signed char,
10236 vector signed char,
10238 vector unsigned char vec_sldw (vector unsigned char,
10239 vector unsigned char,
10241 vector signed short vec_sldw (vector signed short,
10242 vector signed short,
10244 vector unsigned short vec_sldw (vector unsigned short,
10245 vector unsigned short,
10247 vector signed int vec_sldw (vector signed int,
10250 vector unsigned int vec_sldw (vector unsigned int,
10251 vector unsigned int,
10253 vector signed long long vec_sldw (vector signed long long,
10254 vector signed long long,
10256 vector unsigned long long vec_sldw (vector unsigned long long,
10257 vector unsigned long long,
10259 * config/rs6000/rs6000-c: Add support for built-in functions
10260 * config/rs6000/rs6000-builtin.def: Add definition for SLDW.
10261 * config/rs6000/altivec.h: Add defintion for vec_sldw.
10262 * doc/extend.texi: Update the built-in documentation for the
10263 new built-in functions.
10265 2017-05-16 Marek Polacek <polacek@redhat.com>
10269 * tree.c (save_expr): Don't fold the expression.
10271 2017-05-16 Uros Bizjak <ubizjak@gmail.com>
10273 * config/i386/i386.md (*movsi_internal): Split (?rm,*y) alternative
10274 to (?r,*Yn) and (?m,*y) alternatives, and (?*y,rm) to (?*Ym,r)
10275 and (?*y,m). Update insn attributes.
10277 2017-05-16 Martin Liska <mliska@suse.cz>
10279 * cgraph.c (cgraph_edge::resolve_speculation): Add default value for
10280 flags argument of print_gimple_stmt, print_gimple_expr,
10281 print_generic_stmt and print_generic_expr.
10282 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
10283 * coretypes.h: Likewise.
10284 * except.c (dump_eh_tree): Likewise.
10285 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
10286 * gimple-pretty-print.h: Likewise.
10287 * gimple-ssa-backprop.c (dump_usage_prefix): Likewise.
10288 (backprop::push_to_worklist): Likewise.
10289 (backprop::pop_from_worklist): Likewise.
10290 (backprop::process_use): Likewise.
10291 (backprop::intersect_uses): Likewise.
10292 (note_replacement): Likewise.
10293 * gimple-ssa-store-merging.c
10294 (pass_store_merging::terminate_all_aliasing_chains): Likewise.
10295 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
10296 (pass_store_merging::execute): Likewise.
10297 * gimple-ssa-strength-reduction.c (dump_candidate): Likewise.
10298 (ssa_base_cand_dump_callback): Likewise.
10299 (dump_incr_vec): Likewise.
10300 (replace_refs): Likewise.
10301 (replace_mult_candidate): Likewise.
10302 (create_add_on_incoming_edge): Likewise.
10303 (create_phi_basis): Likewise.
10304 (insert_initializers): Likewise.
10305 (all_phi_incrs_profitable): Likewise.
10306 (introduce_cast_before_cand): Likewise.
10307 (replace_one_candidate): Likewise.
10308 * gimplify.c (gimplify_expr): Likewise.
10309 * graphite-isl-ast-to-gimple.c (is_valid_rename): Likewise.
10310 (set_rename): Likewise.
10311 (rename_uses): Likewise.
10312 (copy_loop_phi_nodes): Likewise.
10313 (add_close_phis_to_merge_points): Likewise.
10314 (copy_loop_close_phi_args): Likewise.
10315 (copy_cond_phi_args): Likewise.
10316 (graphite_copy_stmts_from_block): Likewise.
10317 (translate_pending_phi_nodes): Likewise.
10318 * graphite-poly.c (print_pdr): Likewise.
10319 (dump_gbb_cases): Likewise.
10320 (dump_gbb_conditions): Likewise.
10321 (print_scop_params): Likewise.
10322 * graphite-scop-detection.c (build_cross_bb_scalars_def): Likewise.
10323 (build_cross_bb_scalars_use): Likewise.
10324 (gather_bbs::before_dom_children): Likewise.
10325 * hsa-dump.c (dump_hsa_immed): Likewise.
10326 * ipa-cp.c (print_ipcp_constant_value): Likewise.
10327 (get_replacement_map): Likewise.
10328 * ipa-inline-analysis.c (dump_condition): Likewise.
10329 (estimate_function_body_sizes): Likewise.
10330 * ipa-polymorphic-call.c (check_stmt_for_type_change): Likewise.
10331 (ipa_polymorphic_call_context::get_dynamic_type): Likewise.
10332 * ipa-prop.c (ipa_dump_param): Likewise.
10333 (ipa_print_node_jump_functions_for_edge): Likewise.
10334 (ipa_modify_call_arguments): Likewise.
10335 (ipa_modify_expr): Likewise.
10336 (ipa_dump_param_adjustments): Likewise.
10337 (ipa_dump_agg_replacement_values): Likewise.
10338 (ipcp_modif_dom_walker::before_dom_children): Likewise.
10339 * ipa-pure-const.c (check_stmt): Likewise.
10340 (pass_nothrow::execute): Likewise.
10341 * ipa-split.c (execute_split_functions): Likewise.
10342 * omp-offload.c (dump_oacc_loop_part): Likewise.
10343 (dump_oacc_loop): Likewise.
10344 * trans-mem.c (tm_log_emit): Likewise.
10345 (tm_memopt_accumulate_memops): Likewise.
10346 (dump_tm_memopt_set): Likewise.
10347 (dump_tm_memopt_transform): Likewise.
10348 * tree-cfg.c (gimple_verify_flow_info): Likewise.
10349 (print_loop): Likewise.
10350 * tree-chkp-opt.c (chkp_print_addr): Likewise.
10351 (chkp_gather_checks_info): Likewise.
10352 (chkp_get_check_result): Likewise.
10353 (chkp_remove_check_if_pass): Likewise.
10354 (chkp_use_outer_bounds_if_possible): Likewise.
10355 (chkp_reduce_bounds_lifetime): Likewise.
10356 * tree-chkp.c (chkp_register_addr_bounds): Likewise.
10357 (chkp_mark_completed_bounds): Likewise.
10358 (chkp_register_incomplete_bounds): Likewise.
10359 (chkp_mark_invalid_bounds): Likewise.
10360 (chkp_maybe_copy_and_register_bounds): Likewise.
10361 (chkp_build_returned_bound): Likewise.
10362 (chkp_get_bound_for_parm): Likewise.
10363 (chkp_build_bndldx): Likewise.
10364 (chkp_get_bounds_by_definition): Likewise.
10365 (chkp_generate_extern_var_bounds): Likewise.
10366 (chkp_get_bounds_for_decl_addr): Likewise.
10367 * tree-chrec.c (chrec_apply): Likewise.
10368 * tree-data-ref.c (dump_data_reference): Likewise.
10369 (dump_subscript): Likewise.
10370 (dump_data_dependence_relation): Likewise.
10371 (analyze_overlapping_iterations): Likewise.
10372 * tree-inline.c (expand_call_inline): Likewise.
10373 (tree_function_versioning): Likewise.
10374 * tree-into-ssa.c (dump_defs_stack): Likewise.
10375 (dump_currdefs): Likewise.
10376 (dump_names_replaced_by): Likewise.
10377 (dump_update_ssa): Likewise.
10378 (update_ssa): Likewise.
10379 * tree-object-size.c (pass_object_sizes::execute): Likewise.
10380 * tree-parloops.c (build_new_reduction): Likewise.
10381 (try_create_reduction_list): Likewise.
10382 (ref_conflicts_with_region): Likewise.
10383 (oacc_entry_exit_ok_1): Likewise.
10384 (oacc_entry_exit_single_gang): Likewise.
10385 * tree-pretty-print.h: Likewise.
10386 * tree-scalar-evolution.c (set_scalar_evolution): Likewise.
10387 (get_scalar_evolution): Likewise.
10388 (add_to_evolution): Likewise.
10389 (get_loop_exit_condition): Likewise.
10390 (analyze_evolution_in_loop): Likewise.
10391 (analyze_initial_condition): Likewise.
10392 (analyze_scalar_evolution): Likewise.
10393 (instantiate_scev): Likewise.
10394 (number_of_latch_executions): Likewise.
10395 (gather_chrec_stats): Likewise.
10396 (final_value_replacement_loop): Likewise.
10397 (scev_const_prop): Likewise.
10398 * tree-sra.c (dump_access): Likewise.
10399 (disqualify_candidate): Likewise.
10400 (create_access): Likewise.
10401 (reject): Likewise.
10402 (maybe_add_sra_candidate): Likewise.
10403 (create_access_replacement): Likewise.
10404 (analyze_access_subtree): Likewise.
10405 (analyze_all_variable_accesses): Likewise.
10406 (sra_modify_assign): Likewise.
10407 (initialize_constant_pool_replacements): Likewise.
10408 (find_param_candidates): Likewise.
10409 (decide_one_param_reduction): Likewise.
10410 (replace_removed_params_ssa_names): Likewise.
10411 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
10412 * tree-ssa-copy.c (dump_copy_of): Likewise.
10413 (copy_prop_visit_cond_stmt): Likewise.
10414 * tree-ssa-dce.c (mark_operand_necessary): Likewise.
10415 * tree-ssa-dom.c (pass_dominator::execute): Likewise.
10416 (record_equivalences_from_stmt): Likewise.
10417 * tree-ssa-dse.c (compute_trims): Likewise.
10418 (delete_dead_call): Likewise.
10419 (delete_dead_assignment): Likewise.
10420 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Likewise.
10421 (forward_propagate_into_cond): Likewise.
10422 (pass_forwprop::execute): Likewise.
10423 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
10424 * tree-ssa-loop-im.c (invariantness_dom_walker::before_dom_children):
10426 (move_computations_worker): Likewise.
10427 (execute_sm): Likewise.
10428 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise.
10429 (remove_exits_and_undefined_stmts): Likewise.
10430 (remove_redundant_iv_tests): Likewise.
10431 * tree-ssa-loop-ivopts.c (dump_use): Likewise.
10432 (adjust_iv_update_pos): Likewise.
10433 * tree-ssa-math-opts.c (bswap_replace): Likewise.
10434 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Likewise.
10435 (value_replacement): Likewise.
10436 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
10437 * tree-ssa-pre.c (print_pre_expr): Likewise.
10438 (get_representative_for): Likewise.
10439 (create_expression_by_pieces): Likewise.
10440 (insert_into_preds_of_block): Likewise.
10441 (eliminate_insert): Likewise.
10442 (eliminate_dom_walker::before_dom_children): Likewise.
10443 (eliminate): Likewise.
10444 (remove_dead_inserted_code): Likewise.
10445 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
10446 * tree-ssa-reassoc.c (get_rank): Likewise.
10447 (eliminate_duplicate_pair): Likewise.
10448 (eliminate_plus_minus_pair): Likewise.
10449 (eliminate_not_pairs): Likewise.
10450 (undistribute_ops_list): Likewise.
10451 (eliminate_redundant_comparison): Likewise.
10452 (update_range_test): Likewise.
10453 (optimize_range_tests_var_bound): Likewise.
10454 (optimize_vec_cond_expr): Likewise.
10455 (rewrite_expr_tree): Likewise.
10456 (rewrite_expr_tree_parallel): Likewise.
10457 (linearize_expr): Likewise.
10458 (break_up_subtract): Likewise.
10459 (linearize_expr_tree): Likewise.
10460 (attempt_builtin_powi): Likewise.
10461 (attempt_builtin_copysign): Likewise.
10462 (transform_stmt_to_copy): Likewise.
10463 (transform_stmt_to_multiply): Likewise.
10464 (dump_ops_vector): Likewise.
10465 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Likewise.
10466 (print_scc): Likewise.
10467 (set_ssa_val_to): Likewise.
10468 (visit_reference_op_store): Likewise.
10469 (visit_use): Likewise.
10470 (sccvn_dom_walker::before_dom_children): Likewise.
10471 (run_scc_vn): Likewise.
10472 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
10474 (expr_hash_elt::print): Likewise.
10475 (const_and_copies::pop_to_marker): Likewise.
10476 (const_and_copies::record_const_or_copy_raw): Likewise.
10477 * tree-ssa-structalias.c (compute_dependence_clique): Likewise.
10478 * tree-ssa-uninit.c (collect_phi_def_edges): Likewise.
10479 (dump_predicates): Likewise.
10480 (find_uninit_use): Likewise.
10481 (warn_uninitialized_phi): Likewise.
10482 (pass_late_warn_uninitialized::execute): Likewise.
10483 * tree-ssa.c (verify_vssa): Likewise.
10484 (verify_ssa): Likewise.
10485 (maybe_optimize_var): Likewise.
10486 * tree-vrp.c (dump_value_range): Likewise.
10487 (dump_all_value_ranges): Likewise.
10488 (dump_asserts_for): Likewise.
10489 (register_edge_assert_for_2): Likewise.
10490 (vrp_visit_cond_stmt): Likewise.
10491 (vrp_visit_switch_stmt): Likewise.
10492 (vrp_visit_stmt): Likewise.
10493 (vrp_visit_phi_node): Likewise.
10494 (simplify_cond_using_ranges_1): Likewise.
10495 (fold_predicate_in): Likewise.
10496 (evrp_dom_walker::before_dom_children): Likewise.
10497 (evrp_dom_walker::push_value_range): Likewise.
10498 (evrp_dom_walker::pop_value_range): Likewise.
10499 (execute_early_vrp): Likewise.
10501 2017-05-16 Richard Biener <rguenther@suse.de>
10503 * dwarf2out.c (loc_list_from_tree_1): Do not create
10504 DW_OP_GNU_variable_value for DECL_IGNORED_P decls.
10506 2017-05-16 Richard Biener <rguenther@suse.de>
10508 * dwarf2out.c (resolve_variable_value_in_expr): Lookup DIE
10510 (note_variable_value_in_expr): If we resolved the decl ref
10511 do not push to the stack.
10513 2017-05-16 Matthew Wahab <matthew.wahab@arm.com>
10515 * config/arm/arm_neon.h (vadd_f16): Use standard arithmetic
10516 operations in fast-math mode.
10517 (vaddq_f16): Likewise.
10518 (vmul_f16): Likewise.
10519 (vmulq_f16): Likewise.
10520 (vsub_f16): Likewise.
10521 (vsubq_f16): Likewise.
10522 * config/arm/neon.md (add<mode>3): New.
10524 (fma:<VH:mode>3): New. Also remove outdated comment.
10527 2017-05-16 Martin Liska <mliska@suse.cz>
10531 * ipa-devirt.c (warn_types_mismatch): Fix typo.
10532 (odr_types_equivalent_p): Likewise.
10534 2017-05-15 Sylvestre Ledru <sylvestre@debian.org>
10536 * plugin.c (try_init_one_plugin): Fix ressource leaks (CID 726637).
10538 2017-05-15 Uros Bizjak <ubizjak@gmail.com>
10541 * config/i386.i386.md (*zero_extendsidi2): Do not penalize
10542 non-interunit SSE move alternatives with '?'.
10543 (zero-extendsidi peephole2): New peephole to skip intermediate
10544 general register in SSE zero-extend sequence.
10546 2017-05-15 Jeff Law <law@redhat.com>
10548 * reorg.c (relax_delay_slots): Create a new variable to hold
10549 the temporary target rather than clobbering TARGET_LABEL.
10551 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Add
10552 missing argument to extract_bit_field call.
10553 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
10555 2017-05-15 Martin Liska <mliska@suse.cz>
10558 * gcc.c (process_command): Do not allow empty argument of -o option.
10560 2017-05-15 Renlin Li <renlin.li@arm.com>
10562 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Declare.
10563 * config/aarch64/aarch64.c (aarch64_expand_call): Define.
10564 * config/aarch64/constraints.md (Usf): Add long call check.
10565 * config/aarch64/aarch64.md (call): Use aarch64_expand_call.
10566 (call_value): Likewise.
10567 (sibcall): Likewise.
10568 (sibcall_value): Likewise.
10570 (call_value_insn): New.
10571 (sibcall_insn): Update rtx pattern.
10572 (sibcall_value_insn): Likewise.
10573 (call_internal): Remove.
10574 (call_value_internal): Likewise.
10575 (sibcall_internal): Likewise.
10576 (sibcall_value_internal): Likewise.
10577 (call_reg): Likewise.
10578 (call_symbol): Likewise.
10579 (call_value_reg): Likewise.
10580 (call_value_symbol): Likewise.
10582 2017-05-14 Krister Walfridsson <krister.walfridsson@gmail.com>
10585 * config/netbsd.h (NETBSD_LIBGCC_SPEC): Always add -lgcc.
10587 2017-05-14 Uros Bizjak <ubizjak@gmail.com>
10589 * config/i386.i386.c (ix86_cc_modes_compatible): CCNOmode is
10590 compatible with CCGOCmode and with CCZmode.
10592 2017-05-14 Martin Sebor <msebor@redhat.com>
10594 PR middle-end/77671
10595 * gimple-fold.c (gimple_fold_builtin_sprintf): Make extern.
10596 (gimple_fold_builtin_snprintf): Same.
10597 * gimple-fold.h (gimple_fold_builtin_sprintf): Declare.
10598 (gimple_fold_builtin_snprintf): Same.
10599 * gimple-ssa-sprintf.c (get_format_string): Correct the detection
10600 of character types.
10601 (is_call_safe): New function.
10602 (try_substitute_return_value): Call it.
10603 (try_simplify_call): New function.
10604 (pass_sprintf_length::handle_gimple_call): Call it.
10606 2017-05-14 Martin Sebor <msebor@redhat.com>
10608 PR middle-end/80669
10609 * builtins.c (expand_builtin_stpncpy): Simplify.
10611 2017-05-14 Daniel Santos <daniel.santos@pobox.com>
10613 * config/i386/i386.opt: Add option -mcall-ms2sysv-xlogues.
10614 * config/i386/i386.h
10615 (x86_64_ms_sysv_extra_clobbered_registers): Change type to unsigned.
10616 (NUM_X86_64_MS_CLOBBERED_REGS): New macro.
10617 (struct machine_function): Add new members call_ms2sysv,
10618 call_ms2sysv_pad_in, call_ms2sysv_pad_out and call_ms2sysv_extra_regs.
10619 (struct machine_frame_state): New fields sp_realigned and
10620 sp_realigned_offset.
10621 * config/i386/i386.c
10622 (enum xlogue_stub): New enum.
10623 (enum xlogue_stub_sets): New enum.
10624 (class xlogue_layout): New class.
10625 (struct ix86_frame): New fields stack_realign_allocate_offset,
10626 stack_realign_offset and outlined_save_offset. Modify comments to
10627 detail stack layout when using out-of-line stubs.
10628 (ix86_target_string): Add -mcall-ms2sysv-xlogues option.
10629 (ix86_option_override_internal): Add sorry() for TARGET_SEH and
10630 -mcall-ms2sysv-xlogues.
10631 (stub_managed_regs): New static variable.
10632 (ix86_save_reg): Add new parameter ignore_outlined to optionally omit
10633 registers managed by out-of-line stub.
10634 (disable_call_ms2sysv_xlogues): New function.
10635 (ix86_compute_frame_layout): Modify re-alignment calculations, disable
10636 m->call_ms2sysv when appropriate and compute frame layout for
10638 (sp_valid_at, fp_valid_at): New inline functions.
10639 (choose_basereg): New function.
10640 (choose_baseaddr): Add align parameter, use choose_basereg and modify
10642 (ix86_emit_save_reg_using_mov, ix86_emit_restore_sse_regs_using_mov):
10643 Use align parameter of choose_baseaddr to generated aligned SSE movs
10645 (pro_epilogue_adjust_stack): Modify to track
10646 machine_frame_state::sp_realigned.
10647 (ix86_nsaved_regs): Modify to accommodate changes to ix86_save_reg.
10648 (ix86_nsaved_sseregs): Likewise.
10649 (ix86_emit_save_regs): Likewise.
10650 (ix86_emit_save_regs_using_mov): Likewise.
10651 (ix86_emit_save_sse_regs_using_mov): Likewise.
10652 (get_scratch_register_on_entry): Likewise.
10653 (gen_frame_set): New function.
10654 (gen_frame_load): Likewise.
10655 (gen_frame_store): Likewise.
10656 (emit_outlined_ms2sysv_save): Likewise.
10657 (emit_outlined_ms2sysv_restore): Likewise.
10658 (ix86_expand_prologue): Modify stack re-alignment code and call
10659 emit_outlined_ms2sysv_save when appropriate.
10660 (ix86_emit_leave): Clear machine_frame_state::sp_realigned. Add
10661 parameter rtx_insn *insn, which allows the function to be used to only
10662 generate the notes.
10663 (ix86_expand_epilogue): Modify validity checks of frame and stack
10664 pointers, and call emit_outlined_ms2sysv_restore when appropriate.
10665 (ix86_expand_call): Modify to enable m->call_ms2sysv when appropriate.
10666 * config/i386/predicates.md
10667 (save_multiple): New predicate.
10668 (restore_multiple): Likewise.
10669 * config/i386/sse.md
10670 (save_multiple<mode>): New pattern.
10671 (save_multiple_realign<mode>): Likewise.
10672 (restore_multiple<mode>): Likewise.
10673 (restore_multiple_and_return<mode>): Likewise.
10674 (restore_multiple_leave_return<mode>): Likewise.
10675 * Makefile.in: Export HOSTCXX and HOSTCXXFLAGS to site.exp
10677 2017-05-14 Julia Koval <julia.koval@intel.com>
10679 * config/i386/i386-builtin-types.def (VOID_FTYPE_INT_INT64): New type.
10680 * config/i386/i386-builtin.def (__builtin_ia32_xgetbv)
10681 (__builtin_ia32_xsetbv): New builtins.
10682 * config/i386/i386.c (ix86_expand_special_args_builtin):
10684 (ix86_expand_builtin): Special expand for new intrinsics.
10685 * config/i386/i386.md (UNSPECV_XGETBV, UNSPECV_XSETBV): New.
10686 (xsetbv, xsetbv_rex64, xgetbv, xgetbv_rex64): New insn patterns.
10687 * config/i386/xsaveintrin.h (_xsetbv, _getbv): New intrinsics.
10689 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10691 * cfganal.c (inverted_post_order_compute): Change argument type
10693 * cfganal.h (inverted_post_order_compute): Adjust prototype.
10694 * df-core.c (rest_of_handle_df_initialize): Adjust.
10695 (rest_of_handle_df_finish): Likewise.
10696 (df_analyze_1): Likewise.
10697 (df_analyze): Likewise.
10698 (loop_inverted_post_order_compute): Change argument to be a vec *.
10699 (df_analyze_loop): Adjust.
10700 (df_get_n_blocks): Likewise.
10701 (df_get_postorder): Likewise.
10702 * df.h (struct df_d): Change field to be a vec.
10703 * lcm.c (compute_laterin): Adjust.
10704 (compute_available): Likewise.
10705 * lra-lives.c (lra_create_live_ranges_1): Likewise.
10706 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
10707 * tree-ssa-pre.c (compute_antic): Likewise.
10709 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10711 * cfganal.c (connect_infinite_loops_to_exit): Adjust.
10712 (depth_first_search::depth_first_search): Change structure init
10713 function to this constructor.
10714 (depth_first_search::add_bb): Rename function to this member.
10715 (depth_first_search::execute): Likewise.
10716 (flow_dfs_compute_reverse_finish): Adjust.
10718 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10720 * ddg.c (find_nodes_on_paths): Use auto_sbitmap.
10721 (longest_simple_path): Likewise.
10722 * shrink-wrap.c (spread_components): Likewise.
10723 (disqualify_problematic_components): Likewise.
10724 (emit_common_heads_for_components): Likewise.
10725 (emit_common_tails_for_components): Likewise.
10726 (insert_prologue_epilogue_for_components): Likewise.
10728 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10730 * tree-ssa-dse.c (dse_dom_walker): Make m_live_byes a
10733 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10735 * df-core.c (df_set_blocks): Start using auto_bitmap.
10736 (df_compact_blocks): Likewise.
10737 * df-problems.c (df_rd_confluence_n): Likewise.
10738 * df-scan.c (df_insn_rescan_all): Likewise.
10739 (df_process_deferred_rescans): Likewise.
10740 (df_update_entry_block_defs): Likewise.
10741 (df_update_exit_block_uses): Likewise.
10742 (df_entry_block_bitmap_verify): Likewise.
10743 (df_exit_block_bitmap_verify): Likewise.
10744 (df_scan_verify): Likewise.
10745 * lra-constraints.c (lra_constraints): Likewise.
10746 (undo_optional_reloads): Likewise.
10747 (lra_undo_inheritance): Likewise.
10748 * lra-remat.c (calculate_gen_cands): Likewise.
10749 (do_remat): Likewise.
10750 * lra-spills.c (assign_spill_hard_regs): Likewise.
10751 (spill_pseudos): Likewise.
10752 * tree-ssa-pre.c (bitmap_set_and): Likewise.
10753 (bitmap_set_subtract_values): Likewise.
10755 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10757 * haifa-sched.c (estimate_shadow_tick): Replace manual bitmap
10758 management with auto_bitmap.
10759 (fix_inter_tick): Likewise.
10760 (fix_recovery_deps): Likewise.
10761 * ira.c (add_store_equivs): Likewise.
10762 (find_moveable_pseudos): Likewise.
10763 (split_live_ranges_for_shrink_wrap): Likewise.
10764 * print-rtl.c (rtx_reuse_manager::rtx_reuse_manager): Likewise.
10765 (rtx_reuse_manager::seen_def_p): Likewise.
10766 (rtx_reuse_manager::set_seen_def): Likewise.
10767 * print-rtl.h (class rtx_reuse_manager): Likewise.
10769 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10771 * bt-load.c (combine_btr_defs): Use auto_bitmap to manage bitmap
10773 (migrate_btr_def): Likewise.
10774 * cfgloop.c (get_loop_body_in_bfs_order): Likewise.
10775 * df-core.c (loop_post_order_compute): Likewise.
10776 (loop_inverted_post_order_compute): Likewise.
10777 * hsa-common.h: Likewise.
10778 * hsa-gen.c (hsa_bb::~hsa_bb): Likewise.
10779 * init-regs.c (initialize_uninitialized_regs): Likewise.
10780 * ipa-inline.c (resolve_noninline_speculation): Likewise.
10781 (inline_small_functions): Likewise.
10782 * ipa-reference.c (ipa_reference_write_optimization_summary): Likewise.
10783 * ira.c (combine_and_move_insns): Likewise.
10784 (build_insn_chain): Likewise.
10785 * loop-invariant.c (find_invariants): Likewise.
10786 * lower-subreg.c (propagate_pseudo_copies): Likewise.
10787 * predict.c (tree_predict_by_opcode): Likewise.
10788 (predict_paths_leading_to): Likewise.
10789 (predict_paths_leading_to_edge): Likewise.
10790 (estimate_loops_at_level): Likewise.
10791 (estimate_loops): Likewise.
10792 * shrink-wrap.c (try_shrink_wrapping): Likewise.
10793 (spread_components): Likewise.
10794 * tree-cfg.c (remove_edge_and_dominated_blocks): Likewise.
10795 * tree-loop-distribution.c (rdg_build_partitions): Likewise.
10796 * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
10797 * tree-ssa-coalesce.c (coalesce_ssa_name): Likewise.
10798 * tree-ssa-phionlycprop.c (pass_phi_only_cprop::execute): Likewise.
10799 * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
10800 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
10801 * tree-ssa-threadupdate.c (compute_path_counts): Likewise.
10802 (mark_threaded_blocks): Likewise.
10803 (thread_through_all_blocks): Likewise.
10804 * tree-ssa.c (verify_ssa): Likewise.
10805 (execute_update_addresses_taken): Likewise.
10806 * tree-ssanames.c (verify_ssaname_freelists): Likewise.
10808 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10810 * cfganal.c (mark_dfs_back_edges): Replace manual stack with
10812 (post_order_compute): Likewise.
10813 (inverted_post_order_compute): Likewise.
10814 (pre_and_rev_post_order_compute_fn): Likewise.
10816 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10818 * genrecog.c (int_set::int_set): Explicitly construct our
10819 auto_vec base class.
10820 * vec.h (auto_vec::auto_vec): New constructor.
10822 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10824 * bitmap.h (class auto_bitmap): New constructor taking
10825 bitmap_obstack * argument.
10827 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10829 * bitmap.h (class auto_bitmap): Change type of m_bits to
10830 bitmap_head, and adjust ctor / dtor and member operators.
10832 2017-05-13 Uros Bizjak <ubizjak@gmail.com>
10834 * compare-elim.c (equivalent_reg_at_start): Return NULL_RTX
10835 when returned register mode doesn't match original mode.
10837 2017-05-12 Jeff Law <law@redhat.com>
10838 Jakub Jelinek <jakub@redhat.com>
10840 * config/mn10300/mn10300.c (mn10300_match_ccmode): Fix where
10841 we look for cc setter after the compare-elim changes.
10842 * config/mn10300/mn10300.md (addsi3_flags): Fix order of patterns
10843 within the vector to match what compare-elim now expects.
10844 (subsi3_flags, andsi3_flags, iorsi3_flags): Likewise.
10845 (xorsi3_flags, one_cmplsi2_flags): Likewise.
10847 * config/rx/rx.c (rx_match_ccmode): Fix where we look cc setter
10848 after the compare-elim changes.
10849 * config/rx/rx.md (abssi2_flags): Fix order of patterns within
10850 the vector to match what compare-elim now expects.
10851 (addsi3_flags, adc_flags, addsi3_flags peepholes): Likewise.
10852 (andsi3_flags, negsi2_flags, one_cmplsi2_flags): Likewise.
10853 (iorsi3_flags, rotlsi3_flags, rotrsi3_flags): Likewise.
10854 (ashrsi3_flags, lshrsi3_flags, ashlsi3_flags): Likewise.
10855 (ssaddsi3, subsi3_flags, sbb_flags, xorsi3_flags): Likewise.
10857 * config/visium/visium.c (single_set_and_flags): Fix where
10858 we look for cc setter after the compare-elim changes.
10859 * config/visium/visium.md (flags_subst_logic): Fix order of patterns
10860 with the vector to match what compare-elim now expects.
10861 (flags_subst_arith, add<mode>3_insn_set_carry): Likewise.
10862 (add<mode>3_insn_set_overflow, addsi3_insn_set_carry): Likewise.
10863 (addsi3_insn_set_overflow, sub<mode>3_insn_set_carry): Likewise.
10864 (sub<mode>3_insn_set_overflow, subsi3_insn_set_carry): Likewise.
10865 (subsi3_insn_set_overflow, negsi2_insn_set_carry): Likewise.
10866 (neg<mode>2_insn_set_overflow): Likewise.
10868 2017-05-12 Jim Wilson <jim.wilson@linaro.org>
10870 PR middle-end/79794
10871 * expmed.c (extract_bit_field_1): Add alt_rtl argument. Before
10872 maybe_expand_insn call, set ops[0].target. If still set after call,
10873 set alt_rtl. Add extra arg to recursive calls.
10874 (extract_bit_field): Add alt_rtl argument. Pass to
10876 * expmed.h (extract_bit_field): Fix prototype.
10877 * expr.c (emit_group_load_1, copy_blkmode_from_reg)
10878 (copy_blkmode_to_reg, read_complex_part, store_field): Pass extra NULL
10879 to extract_bit_field_calls.
10880 (expand_expr_real_1): Pass alt_rtl to expand_expr_real instead of 0.
10881 Pass alt_rtl to extract_bit_field calls.
10882 * calls.c (store_unaligned_arguments_into_psuedos)
10883 load_register_parameters): Pass extra NULL to extract_bit_field calls.
10884 * optabs.c (maybe_legitimize_operand): Clear op->target when call
10886 * optabs.h (struct expand_operand): Add target bitfield.
10888 2017-05-12 Uros Bizjak <ubizjak@gmail.com>
10890 * compare-elim.c (try_eliminate_compare): Canonicalize
10891 operation with embedded compare to
10892 [(set (reg:CCM) (compare:CCM (operation) (immediate)))
10893 (set (reg) (operation)].
10895 * config/i386/i386.c (TARGET_FLAGS_REGNUM): New define.
10897 2017-05-12 Uros Bizjak <ubizjak@gmail.com>
10900 * config/i386/i386.c (ix86_rtx_cost) [case PLUS]: Ignore the
10901 cost of adding a carry flag for ADC instruction.
10902 [case MINUS]: Ignore the cost of subtracting a carry flag
10903 for SBB instruction.
10905 2017-05-12 Steven Munroe <munroesj@gcc.gnu.org>
10907 * config.gcc (powerpc*-*-*): Add bmi2intrin.h, bmiintrin.h,
10909 * config/rs6000/bmiintrin.h: New file.
10910 * config/rs6000/bmi2intrin.h: New file.
10911 * config/rs6000/x86intrin.h: New file.
10913 2017-05-12 Jeff Law <law@redhat.com>
10915 * tree-vrp.c (vrp_dom_walker::before_dom_children): Push unwinding
10918 2017-05-12 Peter Bergner <bergner@vnet.ibm.com>
10920 PR middle-end/80707
10921 * tree-cfg.c: Remove cfg edges of unreachable case statements.
10923 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
10925 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
10926 early expansion of vector divide builtins.
10927 (builtin_function_type): Add VSX_BUILTIN_UDIV_V2DI to the list of
10928 builtins identified as having unsigned arguments.
10930 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
10932 * config/rs6000/rs6000.c (gimple-fold.h): New #include.
10933 (rs6000_gimple_fold_builtin): Add handling for early GIMPLE
10934 expansion of vector logical operations (and, andc, or, xor,
10937 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
10939 * gimple-fold.c (create_tmp_reg_or_ssa_name): Remove static declaration.
10940 * gimple-fold.h (create_tmp_reg_or_ssa_name): New prototype.
10942 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
10944 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
10945 early GIMPLE expansion of vector multiplies.
10947 2017-05-12 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
10949 * config/arm/arm.md (movsi): Add TARGET_32BIT in addition to the
10950 TARGET_HAVE_MOVT conditional.
10951 (movt splitter): Likewise.
10953 2017-05-12 Richard Biener <rguenther@suse.de>
10955 * tree-ssa-sccvn.h (has_VN_INFO): Declare.
10956 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
10957 Fold all stmts not inplace.
10959 2017-05-12 Richard Biener <rguenther@suse.de>
10961 PR tree-optimization/80713
10962 * tree-ssa-pre.c (remove_dead_inserted_code): Clear
10963 inserted_exprs bit for not removed stmts.
10965 2017-05-12 Thomas Schwinge <thomas@codesourcery.com>
10967 PR middle-end/69921
10968 * tree-parloops.c (create_parallel_loop): Set "oacc kernels
10969 parallelized" attribute for parallelized OpenACC kernels.
10970 * omp-offload.c (execute_oacc_device_lower): Use it.
10972 * omp-expand.c (expand_omp_target) <GF_OMP_TARGET_KIND_OACC_KERNELS>:
10973 Set "oacc kernels" attribute.
10974 * omp-general.c (oacc_set_fn_attrib): Remove is_kernel formal
10975 parameter. Adjust all users.
10976 (oacc_fn_attrib_kernels_p): Remove function.
10977 * omp-offload.c (execute_oacc_device_lower): Look for "oacc
10978 kernels" attribute instead of calling oacc_fn_attrib_kernels_p.
10979 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
10980 * tree-parloops.c (create_parallel_loop): If oacc_kernels_p,
10981 assert "oacc kernels" attribute is set.
10983 2017-05-11 Carl Love <cel@us.ibm.com>
10985 * config/rs6000/rs6000-c: Add support for built-in functions
10986 vector unsigned char vec_popcnt (vector signed char)
10987 vector unsigned char vec_popcnt (vector unsigned char)
10988 vector unsigned short vec_popcnt (vector signed short)
10989 vector unsigned short vec_popcnt (vector unsigned short)
10990 vector unsigned int vec_popcnt (vector signed int)
10991 vector unsigned int vec_popcnt (vector unsigned int)
10992 vector unsigned long long vec_popcnt (vector signed long long)
10993 vector unsigned long long vec_popcnt (vector unsigned long long)
10994 vector signed long long vec_slo (vector signed long long,
10995 vector signed char)
10996 vector signed long long vec_slo (vector signed long long,
10997 vector unsigned char)
10998 vector unsigned long long vec_slo (vector unsigned long long,
10999 vector signed char)
11000 vector unsigned long long vec_slo (vector unsigned long long,
11001 vector unsigned char)
11002 * config/rs6000/rs6000-builtin.def: Add definitions for VPOPCNTUB,
11003 VPOPCNTUH, VPOPCNTUW, and VPOPCNTUD overloads.
11004 * config/rs6000/altivec.h: Add define for vec_popcnt, vec_popcntb,
11005 vec_popcnth, vec_popcntw and vec_popcntd built-in functions.
11006 * doc/extend.texi: Update the built-in documentation file for the
11007 new built-in functions.
11009 2017-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
11011 * attribs.h (sorted_attr_string): Move machine independent
11012 functions for target clone support from the i386 port to common
11013 code. Rename ix86_function_versions to common_function_versions.
11014 Rename make_name to make_unique_name.
11015 (common_function_versions): Likewise.
11016 (make_unique_name): Likewise.
11017 (make_dispatcher_decl): Likewise.
11018 (is_function_default_version): Likewise.
11019 * attribs.c (attr_strcmp): Likewise.
11020 (sorted_attr_string): Likewise.
11021 (common_function_versions): Likewise.
11022 (make_unique_name): Likewise.
11023 (make_dispatcher_decl): Likewise.
11024 (is_function_default_version): Likewise.
11025 * config/i386/i386.c (attr_strcmp): Likewise.
11026 (sorted_attr_string): Likewise.
11027 (ix86_function_versions): Likewise.
11028 (make_name): Likewise.
11029 (make_dispatcher_decl): Likewise.
11030 (is_function_default_version): Likewise.
11031 (TARGET_OPTION_FUNCTION_VERSIONS): Update target function hook.
11033 2017-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11036 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
11037 Account for direct move costs for vec_construct of integer
11040 2017-05-11 Uros Bizjak <ubizjak@gmail.com>
11043 * config/i386/sync.md (UNSPEC_LDX_ATOMIC): New unspec.
11044 (UNSPEC_STX_ATOMIC): Ditto.
11045 (loaddi_via_sse): New insn.
11046 (storedi_via_sse): Ditto.
11047 (atomic_loaddi_fpu): Emit loaddi_via_sse and storedi_via_sse.
11048 Update corresponding peephole2 patterns.
11049 (atomic_storedi_fpu): Ditto.
11051 2017-05-11 Julia Koval <julia.koval@intel.com>
11053 * config/i386/avx512fintrin.h (_mm_mask_rsqrt14_sd)
11054 (_mm_maskz_rsqrt14_sd, _mm_mask_rsqrt14_ss, _mm_maskz_rsqrt14_ss):
11056 * config/i386/i386-builtin.def (__builtin_ia32_rsqrt14sd_mask)
11057 (__builtin_ia32_rsqrt14ss_mask): New builtins.
11058 * config/i386/sse.md (rsqrt14_<mode>_mask): New pattern.
11060 2017-05-11 Nathan Sidwell <nathan@acm.org>
11062 * graphite-poly.c: Include dumpfile.h.
11064 * dumpfle.h (dump_function): Declare here ...
11065 * tree-dump.h (dump_function): ... not here.
11066 * dumpfile.c: #include tree-cfg.h.
11067 (dump_function): Move here from ...
11068 * tree-dump.c (dump_function): ... here.
11069 * gimplify.c: #include splay-tree.h, not tree-dump.h.
11070 * graphite-poly.c: Don't include tree-dump.h.
11071 * cgraphclones.c: Include dumpfile.h not tree-dump.h.
11072 * print-tree.c: Likewise.
11073 * stor-layout.c: Likewise.
11074 * tree-nested.c: Likewise.
11076 * dumpfile.c (dump_start): Use TDF_FLAGS.
11077 (dump_enable_all): Fix TDF_KIND check thinko.
11079 2017-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
11081 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11082 array entries to represent two legal parameterizations of the
11083 overloaded __builtin_cmpb function, as represented by the
11084 P6_OV_BUILTIN_CMPB constant.
11085 (altivec_resolve_overloaded_builtin): Add special case handling
11086 for the __builtin_cmpb function, as represented by the
11087 P6_OV_BUILTIN_CMPB constant.
11088 * config/rs6000/rs6000-builtin.def (BU_P6_2): New macro.
11089 (BU_P6_64BIT_2): New macro.
11090 (BU_P6_OVERLOAD_2): New macro
11091 (CMPB_32): Add 32-bit compare-bytes support for 32-bit only targets.
11092 (CMPB): Add 64-bit compare-bytes support for 32-bit and 64-bit targets.
11093 (CMPB): Add overload support to represent both 32-bit and 64-bit
11094 compare-bytes function.
11095 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
11096 support for TARGET_CMPB.
11097 * config/rs6000/rs6000.h: Add support for RS6000_BTM_CMPB.
11098 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
11099 documentation of the __builtin_cmpb overloaded built-in function.
11101 2017-05-11 Richard Biener <rguenther@suse.de>
11103 PR tree-optimization/80705
11104 * tree-vect-data-refs.c (vect_analyze_data_refs): DECL_NONALIASED
11105 bases are not vectorizable.
11107 2017-05-11 Bin Cheng <bin.cheng@arm.com>
11109 * tree-ssa-loop-ivopts.c (determine_set_costs): Skip non-interger
11110 when counting register pressure.
11112 2017-05-11 Bin Cheng <bin.cheng@arm.com>
11114 * tree-ssa-loop-ivopts.c (compare_cost_pair): New.
11115 (iv_ca_more_deps): Renamed to ...
11116 (iv_ca_compare_deps): ... this.
11117 (iv_ca_extend): Extend iv_ca if NEW_CP is cheaper than OLD_CP.
11119 2017-05-11 Bin Cheng <bin.cheng@arm.com>
11121 * tree-ssa-loop-ivopts.c (find_interesting_uses): Move inv vars dump
11123 (determine_group_iv_costs): ... here.
11124 (find_inv_vars_cb): Record inv var if it's not recorded before.
11126 2017-05-11 Bin Cheng <bin.cheng@arm.com>
11128 * tree-ssa-loop-ivopts.c (allow_ip_end_pos_p): Refine comments.
11129 (get_shiftadd_cost): Ditto.
11131 2017-05-11 Bin Cheng <bin.cheng@arm.com>
11133 * tree-ssa-address.c: Include header file.
11134 (move_hint_to_base): Return TRUE if BASE_HINT is moved to memory
11136 (add_to_parts): Refactor.
11137 (addr_to_parts): New parameter. Update use of move_hint_to_base.
11138 (create_mem_ref): Update use of addr_to_parts. Re-associate addr
11141 2017-05-11 Bin Cheng <bin.cheng@arm.com>
11143 PR tree-optimization/53090
11144 * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New enum value
11146 (extract_cond_operands): Detect condition with IV on both sides
11147 and return COMP_IV_EXPR_2.
11148 (find_interesting_uses_cond): Add iv_use for both IVs in condition.
11149 (rewrite_use_compare): Simplify by removing call to function
11150 extract_cond_operands.
11152 2017-05-11 Bin Cheng <bin.cheng@arm.com>
11154 * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New.
11155 (extract_cond_operands): Detect condition comparing against non-
11156 invariant bound and return appropriate enum value.
11157 (find_interesting_uses_cond): Update use of extract_cond_operands.
11158 Handle its return value accordingly.
11159 (determine_group_iv_cost_cond, rewrite_use_compare): Ditto.
11161 2017-05-11 Bin Cheng <bin.cheng@arm.com>
11163 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Re-associate
11164 nonlinear iv_use computation in loop invariant sensitive way.
11166 2017-05-11 Bin Cheng <bin.cheng@arm.com>
11168 * tree-ssa-loop-ivopts.c (relate_compare_use_with_all_cands): New.
11169 (find_iv_candidates): Call relate_compare_use_with_all_cands.
11171 2017-05-11 Bin Cheng <bin.cheng@arm.com>
11173 * tree-ssa-loop-ivopts.c (struct iv_cand): New field inv_exprs.
11174 (dump_cand): Support iv_cand.inv_exprs.
11175 (add_candidate_1): Record invariant exprs in iv_cand.inv_exprs
11177 (iv_ca_set_no_cp, iv_ca_set_cp, free_loop_data): Support
11180 2017-05-11 Bin Cheng <bin.cheng@arm.com>
11182 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): Move
11184 * tree-ssa-address.c (multiplier_allowed_in_address_p): ... to here
11185 as local function. Include necessary header files.
11186 * tree-ssa-loop-ivopts.h (multiplier_allowed_in_address_p): Delete.
11188 2017-05-11 Bin Cheng <bin.cheng@arm.com>
11190 * tree-ssa-loop-ivopts.c (autoinc_possible_for_pair): Simplify.
11192 2017-05-11 Bin Cheng <bin.cheng@arm.com>
11194 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Handle more
11195 operators: TRUNC_DIV_EXPR, BIT_AND_EXPR, BIT_IOR_EXPR, LSHIFT_EXPR,
11196 RSHIFT_EXPR and BIT_NOT_EXPR.
11198 2017-05-11 Bin Cheng <bin.cheng@arm.com>
11200 * tree-ssa-loop-ivopts.c (get_loop_invariant_expr): Simplify.
11201 (adjust_setup_cost): New parameter supporting round up adjustment.
11202 (struct address_cost_data): Delete.
11203 (force_expr_to_var_cost): Don't bound cost with spill_cost.
11204 (split_address_cost, ptr_difference_cost): Delete.
11205 (difference_cost, compare_aff_trees, record_inv_expr): Delete.
11206 (struct ainc_cost_data): New struct.
11207 (get_address_cost_ainc): New function.
11208 (get_address_cost, get_computation_cost): Reimplement.
11209 (determine_group_iv_cost_address): Record inv_expr for all uses of
11211 (determine_group_iv_cost_cond): Call get_loop_invariant_expr.
11212 (iv_ca_has_deps): Reimplemented to ...
11213 (iv_ca_more_deps): ... this. Check if NEW_CP introduces more deps
11215 (iv_ca_extend): Call iv_ca_more_deps.
11217 2017-05-11 Bin Cheng <bin.cheng@arm.com>
11219 * tree-ssa-address.c (struct mem_address): Move to header file.
11220 (valid_mem_ref_p, move_fixed_address_to_symbol): Make it global.
11221 * tree-ssa-address.h (struct mem_address): Move from C file.
11222 (valid_mem_ref_p, move_fixed_address_to_symbol): Declare.
11224 2017-05-11 Bin Cheng <bin.cheng@arm.com>
11226 * tree-affine.h (aff_combination_type): New interface.
11227 (aff_combination_zero_p): Remove static.
11228 (aff_combination_const_p): New interface.
11229 (aff_combination_singleton_var_p): New interfaces.
11231 2017-05-11 Richard Biener <rguenther@suse.de>
11233 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11234 Skip unreachable blocks and destinations.
11235 (eliminate): Move stmt removal and fixup ...
11236 (fini_eliminate): ... here. Skip inserted exprs.
11237 (pass_pre::execute): Move fini_pre after fini_eliminate.
11238 * tree-ssa-tailmerge.c: Include tree-cfgcleanup.h.
11239 (tail_merge_optimize): Run cleanup_tree_cfg if requested by
11240 PRE to get rid of dead code that has invalid SSA form and
11241 split critical edges again.
11243 2017-05-11 Bin Cheng <bin.cheng@arm.com>
11245 * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
11247 2017-05-11 Richard Biener <rguenther@suse.de>
11249 * passes.c (execute_function_todo): Verify loops if they are
11250 said to be up-to-date.
11251 * cfgexpand.c (pass_expand::execute): Discard loops for -dx.
11252 * trans-mem.c (pass_tm_edges::execute): Mark loops for fixup.
11254 2017-05-10 John David Anglin <danglin@gcc.gnu.org>
11257 * config/pa/pa.c (pa_assemble_integer): When outputting a SYMBOL_REF,
11258 handle calling assemble_external ourself.
11261 * config/pa/pa.c (pa_cannot_change_mode_class): Reject changes to/from
11262 modes with zero size. Enhance comment.
11264 2017-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11266 * config/rs6000/rs6000.c (altivec_init_builtins): Define POWER8
11267 built-ins for vec_xl and vec_xst with short and char pointer
11270 2017-05-10 Sebastian Peryt <sebastian.peryt@intel.com>
11272 * config/i386/avx512fintrin.h (_mm_mask_max_round_sd)
11273 (_mm_maskz_max_round_sd, _mm_mask_max_round_ss)
11274 (_mm_maskz_max_round_ss, _mm_mask_min_round_sd)
11275 (_mm_maskz_min_round_sd, _mm_mask_min_round_ss)
11276 (_mm_maskz_min_round_ss): New intrinsics.
11277 * config/i386/i386-builtin-types.def (V2DF, V2DF, V2DF, V2DF, UQI, INT)
11278 (V4SF, V4SF, V4SF, V4SF, UQI, INT): New function type aliases.
11279 * config/i386/i386-builtin.def (__builtin_ia32_maxsd_mask_round)
11280 (__builtin_ia32_maxss_mask_round, __builtin_ia32_minsd_mask_round)
11281 (__builtin_ia32_minss_mask_round): New builtins.
11282 * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
11283 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
11284 * config/i386/sse.md (<sse>_vm<code><mode>3<round_saeonly_name>):
11286 (<sse>_vm<code><mode>3<mask_name><round_saeonly_name>): ... this.
11287 (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_op3>%2, %1, %0|%0, %1, %<iptr>2<round_saeonly_op3>}):
11289 (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_saeonly_mask_op3>}):
11292 2017-05-10 Sebastian Peryt <sebastian.peryt@intel.com>
11294 * config/i386/avx512fintrin.h (_mm_mask_mul_round_sd)
11295 (_mm_maskz_mul_round_sd, _mm_mask_mul_round_ss)
11296 (_mm_maskz_mul_round_ss, _mm_mask_div_round_sd)
11297 (_mm_maskz_div_round_sd, _mm_mask_div_round_ss)
11298 (_mm_maskz_div_round_ss, _mm_mask_mul_sd, _mm_maskz_mul_sd)
11299 (_mm_mask_mul_ss, _mm_maskz_mul_ss, _mm_mask_div_sd)
11300 (_mm_maskz_div_sd, _mm_mask_div_ss, _mm_maskz_div_ss): New intrinsics.
11301 * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
11302 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
11303 * config/i386/i386-builtin.def (__builtin_ia32_divsd_mask_round)
11304 (__builtin_ia32_divss_mask_round, __builtin_ia32_mulsd_mask_round)
11305 (__builtin_ia32_mulss_mask_round): New builtins.
11306 * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
11307 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
11308 * config/i386/sse.md (<sse>_vm<multdiv_mnemonic><mode>3<round_name>):
11310 (<sse>_vm<multdiv_mnemonic><mode>3<mask_name><round_name>): ... this.
11311 (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
11313 (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
11316 2017-05-10 Julia Koval <julia.koval@intel.com>
11318 * config/i386/avxintrin.h (_mm256_set_m128, _mm256_set_m128d)
11319 (_mm256_set_m128i, _mm256_setr_m128, _mm256_setr_m128d)
11320 (_mm256_setr_m128i): New intrinsics.
11322 2017-05-10 Julia Koval <julia.koval@intel.com>
11324 * config/i386/avx512fintrin.h (_mm_mask_rcp14_sd)
11325 (_mm_maskz_rcp14_sd, _mm_mask_rcp14_ss)
11326 (_mm_maskz_rcp14_ss): New intrinsics.
11327 * config/i386/i386-builtin.def (__builtin_ia32_rcp14sd_mask)
11328 (__builtin_ia32_rcp14ss_mask): New builtins.
11329 * config/i386/sse.md (srcp14<mode>_mask): New pattern.
11331 2017-05-10 Peter Bergner <bergner@vnet.ibm.com>
11333 PR tree-optimization/51513
11334 * tree-cfg.c (gimple_seq_unreachable_p): New function.
11335 (assert_unreachable_fallthru_edge_p): Use it.
11336 (group_case_labels_stmt): Likewise.
11337 * tree-cfg.h: Prototype it.
11338 * stmt.c: Include cfghooks.h and tree-cfg.h.
11339 (emit_case_dispatch_table) <gap_label>: New local variable.
11340 Use it to fill dispatch table gaps.
11341 Test for default_label before updating probabilities.
11342 (expand_case) <default_label>: Remove unneeded initialization.
11343 Test for unreachable default case statement and remove its edge.
11344 Set default_label accordingly.
11345 * tree-ssa-ccp.c (optimize_unreachable): Update comment.
11347 2017-05-10 Carl Love <cel@us.ibm.com>
11349 * config/rs6000/rs6000-c: Add support for built-in functions
11350 vector signed char vec_neg (vector signed char)
11351 vector signed short int vec_neg (vector short int)
11352 vector signed int vec_neg (vector signed int)
11353 vector signed long long vec_neg (vector signed long long)
11354 vector float vec_neg (vector float)
11355 vector double vec_neg (vector double)
11356 * config/rs6000/rs6000-builtin.def: Add definitions for NEG function
11358 * config/rs6000/altivec.h: Add define for vec_neg
11359 * doc/extend.texi: Update the built-in documentation for the
11360 new built-in functions.
11362 2017-05-10 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11364 PR tree-optimization/77644
11365 * match.pd (sqrt(x) cmp sqrt(y) -> x cmp y): New pattern.
11367 2017-05-10 Nathan Sidwell <nathan@acm.org>
11369 * dumpfile.h (TDI_lang_all): New.
11370 (TDF_KIND): New. Renumber others
11371 (TDF_LANG, TDF_TREE, TDF_RTL, TDF_IPA): Enumerate value, rather
11373 * dumpfile.c (dump_files): Mark language dumps as TDF_LANG. add
11375 (get_dump_file_name): Adjust suffix generation.
11376 (dump_enable_all): Use TDF_KIND.
11377 * doc/invoke.texi (-fdump-lang-all): Document.
11379 * dumpfile.h: Tabify.
11381 2017-05-10 Wilco Dijkstra <wdijkstr@arm.com>
11384 * config/aarch64/cortex-a57-fma-steering.c (merge_forest):
11385 Move member access before delete.
11387 2017-05-10 Alexandre Oliva <aoliva@redhat.com>
11389 * tree-inline.c (expand_call_inline): Split block at stmt
11392 2017-05-09 Michael Meissner <meissner@linux.vnet.ibm.com>
11395 * config/rs6000/rs6000.md (f32_lr): Delete mode attributes that
11396 are now unused after splitting mov{sf,sd}_hardfloat.
11397 (f32_lr2): Likewise.
11398 (f32_lm): Likewise.
11399 (f32_lm2): Likewise.
11400 (f32_li): Likewise.
11401 (f32_li2): Likewise.
11402 (f32_lv): Likewise.
11403 (f32_sr): Likewise.
11404 (f32_sr2): Likewise.
11405 (f32_sm): Likewise.
11406 (f32_sm2): Likewise.
11407 (f32_si): Likewise.
11408 (f32_si2): Likewise.
11409 (f32_sv): Likewise.
11410 (f32_dm): Likewise.
11411 (f32_vsx): Likewise.
11412 (f32_av): Likewise.
11413 (mov<mode>_hardfloat): Split into separate movsf and movsd pieces.
11414 For movsf, order stores so the VSX stores occur before the GPR
11415 store which encourages the register allocator to use a traditional
11416 FPR instead of a GPR. For movsd, order the stores so that the GPR
11417 store comes before the VSX stores to allow the power6 to work.
11418 This is due to the power6 not having a 32-bit integer store
11419 instruction from a FPR.
11420 (movsf_hardfloat): Likewise.
11421 (movsd_hardfloat): Likewise.
11423 2017-05-09 Martin Sebor <msebor@redhat.com>
11425 PR translation/80280
11426 * config/sol2-c.c (cmn_err_flag_specs): Initialize new data member
11429 PR translation/80280
11430 * config/i386/msformat-c.c (ms_printf_flag_specs): Initialize new
11431 data member added in r247778.
11432 (ms_scanf_flag_specs, ms_strftime_flag_specs): Same.
11434 2017-05-09 Nathan Sidwell <nathan@acm.org>
11436 * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Unconditionally pure.
11438 * ipa-devirt.c (default_hash_traits<type_pair>): Skip struct-scope
11441 2017-05-09 Marek Polacek <polacek@redhat.com>
11443 * doc/invoke.texi: Fix typo.
11445 2017-05-09 Richard Biener <rguenther@suse.de>
11447 * tree-vrp.c (vrp_val_is_max): Adjust comment.
11448 (vrp_val_is_min): Likewise.
11449 (set_value_range_to_value): Likewise.
11450 (set_value_range_to_nonnegative): Likewise.
11451 (gimple_assign_nonzero_p): Likewise.
11452 (gimple_stmt_nonzero_p): Likewise.
11453 (vrp_int_const_binop): Likewise. Remove unreachable case.
11454 (adjust_range_with_scev): Adjust comments.
11455 (compare_range_with_value): Likewise.
11456 (extract_range_from_phi_node): Likewise.
11457 (test_for_singularity): Likewise.
11459 2017-05-09 Richard Biener <rguenther@suse.de>
11461 * tree-vrp.c (get_single_symbol): Add assert that we don't
11462 get overflowed constants as invariant part.
11463 (compare_values_warnv): Add comment before the TREE_NO_WARNING
11464 checks. Use wi::cmp instead of recursing for integer constants.
11465 (compare_values): Just ignore whether we assumed undefined
11466 overflow instead of failing the compare.
11467 (extract_range_for_var_from_comparison_expr): Add comment before the
11468 TREE_NO_WARNING sets.
11469 (test_for_singularity): Likewise.
11470 (extract_range_from_comparison): Do not disable optimization
11471 when we assumed undefined overflow.
11472 (extract_range_basic): Remove init of unused var.
11474 2017-05-09 Richard Biener <rguenther@suse.de>
11476 * tree-vrp.c (vrp_int_const_binop): Use wide-ints and simplify.
11477 (extract_range_from_multiplicative_op_1): Adjust.
11478 (extract_range_from_binary_expr_1): Use int_const_binop.
11480 2017-05-08 Kelvin Nilsen <kelvin@gcc.gnu.org>
11483 * config/rs6000/power6.md: Replace store_data_bypass_p calls with
11484 rs6000_store_data_bypass_p in seven define_bypass directives and
11485 in several comments.
11486 * config/rs6000/rs6000-protos.h: Add prototype for
11487 rs6000_store_data_bypass_p function.
11488 * config/rs6000/rs6000.c (rs6000_store_data_bypass_p): New
11489 function implements slightly different (rs6000-specific) semantics
11490 than store_data_bypass_p, returning false rather than aborting
11491 with assertion error when arguments do not satisfy the
11492 requirements of store data bypass.
11493 (rs6000_adjust_cost): Replace six calls of store_data_bypass_p with
11494 rs6000_store_data_bypass_p.
11496 2017-05-08 Max Filippov <jcmvbkbc@gmail.com>
11498 * config/xtensa/xtensa-protos.h
11499 (xtensa_initial_elimination_offset): New declaration.
11500 * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
11501 New function. Move its body from the INITIAL_ELIMINATION_OFFSET
11502 macro definition, add case for FRAME_POINTER_REGNUM when
11503 FRAME_GROWS_DOWNWARD.
11504 * config/xtensa/xtensa.h (FRAME_GROWS_DOWNWARD): New macro definition.
11505 (INITIAL_ELIMINATION_OFFSET): Replace body with call to
11506 xtensa_initial_elimination_offset.
11508 2017-05-08 Nathan Sidwell <nathan@acm.org>
11510 * doc/invoke.texi: Alphabetize -fdump options.
11512 2017-05-08 Martin Sebor <msebor@redhat.com>
11514 PR translation/80280
11515 * config/sol2-c.c (solaris_pragma_align): Correct quoting.
11517 2017-05-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
11519 * target.def (compute_frame_layout): New optional target hook.
11520 * doc/tm.texi.in (TARGET_COMPUTE_FRAME_LAYOUT): Add hook.
11521 * doc/tm.texi (TARGET_COMPUTE_FRAME_LAYOUT): Add documentation.
11522 * lra-eliminations.c (update_reg_eliminate): Call compute_frame_layout
11524 * reload1.c (verify_initial_elim_offsets): Likewise.
11525 * config/arm/arm.c (TARGET_COMPUTE_FRAME_LAYOUT): Define.
11526 (use_simple_return_p): Call arm_compute_frame_layout if needed.
11527 (arm_get_frame_offsets): Split up into this ...
11528 (arm_compute_frame_layout): ... and this function.
11530 2017-05-08 Richard Sandiford <richard.sandiford@arm.com>
11532 * config/aarch64/constraints.md (Usa): New constraint.
11533 * config/aarch64/aarch64.md (*movsi_aarch64, *movdi_aarch64): Use it.
11535 2017-05-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
11537 * config.gcc (arm*-*-*): Set TM_MULTILIB_CONFIG from
11538 with_multilib_list after it has been checked.
11540 2017-05-08 Richard Biener <rguenther@suse.de>
11542 * tree-ssa-pre.c (bitmap_set_and): Avoid bitmap copy.
11543 (bitmap_set_subtract_values): Likewise.
11545 2017-05-08 Richard Biener <rguenther@suse.de>
11547 * tree-vrp.c (gimple_assign_nonzero_warnv_p): Rename to ...
11548 (gimple_assign_nonzero): ... this and remove strict_overflow_p
11550 (gimple_stmt_nonzero_warnv_p): Rename to ...
11551 (gimple_stmt_nonzero_p): ... this and remove strict_overflow_p
11553 (vrp_stmt_computes_nonzero): Remove strict_overflow_p argument.
11554 (extract_range_basic): Adjust, do not disable propagation on
11555 strict overflow sensitive simplification.
11556 (vrp_visit_cond_stmt): Likewise.
11558 2017-05-05 Jan Hubicka <hubicka@ucw.cz>
11560 * ipa-inline-analysis.c (estimate_function_body_sizes): Recompute
11561 body size unconditionally.
11563 2017-05-07 Jeff Law <law@redhat.com>
11566 2017-05-06 Jeff Law <law@redhat.com>
11567 PR tree-optimization/78496
11568 * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
11571 PR tree-optimization/78496
11572 * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
11573 (simplify_stmt_using_ranges): Call it.
11574 (vrp_dom_walker::before_dom_children): Extract equivalences
11575 from an ASSERT_EXPR with an equality comparison against a
11578 2017-05-06 Jeff Law <law@redhat.com>
11580 PR tree-optimization/78496
11581 * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
11584 PR tree-optimization/78496
11585 * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
11586 (simplify_stmt_using_ranges): Call it.
11587 (vrp_dom_walker::before_dom_children): Extract equivalences
11588 from an ASSERT_EXPR with an equality comparison against a
11591 2017-05-06 Richard Sandiford <richard.sandiford@linaro.org>
11593 * lra-constraints.c (lra_copy_reg_equiv): New function.
11594 (split_reg): Use it to copy equivalence information from the
11595 original register to the spill register.
11597 2017-05-06 Richard Sandiford <richard.sandiford@linaro.org>
11599 PR rtl-optimization/75964
11600 * simplify-rtx.c (simplify_const_relational_operation): Remove
11601 invalid handling of comparisons of integer ABS.
11603 2017-05-06 Uros Bizjak <ubizjak@gmail.com>
11605 * config/i386/i386.c (ext_80387_constant_init): Do not explicitly
11606 initialize to zero.
11607 (init_regs): Remove declaration.
11608 (function_arg_advance_32): Initialize error_p as boolean variable.
11610 2017-05-05 Nathan Sidwell <nathan@acm.org>
11612 * store-motion.c (remove_reachable_equiv_notes): Reformat long
11613 lines. Use for (;;).
11615 2017-05-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11617 * config/rs6000/rs6000.c (rs6000_vect_nonmem): New static var.
11618 (rs6000_init_cost): Initialize rs6000_vect_nonmem.
11619 (rs6000_add_stmt_cost): Update rs6000_vect_nonmem.
11620 (rs6000_finish_cost): Avoid vectorizing simple copy loops with
11621 VF=2 that require versioning.
11623 2017-05-05 David Malcolm <dmalcolm@redhat.com>
11625 * diagnostic.h (CARET_LINE_MARGIN): Convert from macro to const
11628 2017-05-05 David Malcolm <dmalcolm@redhat.com>
11630 * diagnostic.h (diagnostic_override_option_index): Convert from
11631 macro to inline function.
11633 2017-05-05 David Malcolm <dmalcolm@redhat.com>
11635 * diagnostic.c (last_module_changed_p): New function.
11636 (set_last_module): New function.
11637 (diagnostic_report_current_module): Convert macro usage to
11638 the above functions.
11639 * diagnostic.h (diagnostic_context::last_module): Strengthen
11640 from const line_map * to const line_map_ordinary *.
11641 (diagnostic_last_module_changed): Delete macro.
11642 (diagnostic_set_last_module): Delete macro.
11644 2017-05-05 David Malcolm <dmalcolm@redhat.com>
11646 * diagnostic.c (diagnostic_impl): Replace report_diagnostic
11647 with diagnostic_report_diagnostic.
11648 (diagnostic_n_impl_richloc): Likewise.
11649 * diagnostic.h (report_diagnostic): Delete macro.
11650 * rtl-error.c (diagnostic_for_asm): Replace report_diagnostic
11651 with diagnostic_report_diagnostic.
11652 * substring-locations.c (format_warning_va): Likewise.
11654 2017-05-05 David Malcolm <dmalcolm@redhat.com>
11656 * diagnostic.c (diagnostic_report_diagnostic): Eliminate
11657 save/restor of format_spec. Move option-printing code to...
11658 (print_option_information): ...this new function, and
11659 reimplement by simply printing to the pretty_printer,
11660 rather than appending to the format string.
11662 2017-05-05 David Malcolm <dmalcolm@redhat.com>
11664 * diagnostic.c (diagnostic_report_diagnostic): Split out pragma
11665 handling logic into...
11666 (update_effective_level_from_pragmas): ...this new function.
11668 2017-05-04 Andrew Waterman <andrew@sifive.com>
11670 * config/riscv/riscv.opt (mstrict-align): New option.
11671 * config/riscv/riscv.h (STRICT_ALIGNMENT): Use it. Update comment.
11672 (SLOW_UNALIGNED_ACCESS): Define.
11673 (riscv_slow_unaligned_access): Declare.
11674 * config/riscv/riscv.c (riscv_tune_info): Add slow_unaligned_access
11676 (riscv_slow_unaligned_access): New variable.
11677 (rocket_tune_info): Set slow_unaligned_access to true.
11678 (optimize_size_tune_info): Set slow_unaligned_access to false.
11679 (riscv_cpu_info_table): Add entry for optimize_size_tune_info.
11680 (riscv_valid_lo_sum_p): Use TARGET_STRICT_ALIGN.
11681 (riscv_option_override): Set riscv_slow_unaligned_access.
11682 * doc/invoke.texi: Add -mstrict-align to RISC-V.
11684 2017-05-04 Kito Cheng <kito.cheng@gmail.com>
11686 * config/riscv/riscv.md: Unify indentation.
11688 2017-05-05 Michael Meissner <meissner@linux.vnet.ibm.com>
11693 * config/rs6000/rs6000.md (u code attribute): Add FIX and
11695 (extendsi<mode>2): Add support for doing sign extension via
11696 VUPKHSW and XXPERMDI if the value is in Altivec registers and we
11697 don't have ISA 3.0 instructions.
11698 (extendsi<mode>2 splitter): Likewise.
11699 (fix_trunc<mode>si2): If we are at ISA 2.07 (VSX small integer),
11700 generate the normal insns since SImode can now go in vector
11701 registers. Disallow the special UNSPECs needed for previous
11702 machines to hide SImode being used. Add new insns
11703 fctiw{,w}_<mode>_smallint if SImode can go in vector registers.
11704 (fix_trunc<mode>si2_stfiwx): Likewise.
11705 (fix_trunc<mode>si2_internal): Likewise.
11706 (fixuns_trunc<mode>si2): Likewise.
11707 (fixuns_trunc<mode>si2_stfiwx): Likewise.
11708 (fctiw<u>z_<mode>_smallint): Likewise.
11709 (fctiw<u>z_<mode>_mem): New combiner pattern to prevent conversion
11710 of floating point to 32-bit integer from doing a direct move to
11711 the GPR registers to do a store.
11712 (fctiwz_<mode>): Break long line.
11714 2017-05-05 Bin Cheng <bin.cheng@arm.com>
11716 * Makefile.in (GTFILES): Add tree-ssa-loop-ivopts.c.
11717 * tree-ssa-loop-ivopts.c (compute_max_addr_offset): Delete.
11718 (addr_list, addr_offset_valid_p): New.
11719 (split_address_groups): Check offset validity with above function.
11720 (gt-tree-ssa-loop-ivopts.h): Include header file.
11722 2017-05-05 Nathan Sidwell <nathan@acm.org>
11724 * config.gcc (arm*-*-*): Add missing 'fi'.
11726 2017-05-05 Steve Ellcey <sellcey@cavium.com>
11728 * doc/invoke.texi (-fopt-info): Explicitly say order of options
11729 included in -fopt-info does not matter.
11730 * doc/optinfo.texi (-fopt-info): Fix description of default
11731 behavour. Explicitly say order of options included in -fopt-info
11734 2017-05-05 Thomas Preud'homme <thomas.preudhomme@arm.com>
11736 * config.gcc: Allow combinations of aprofile and rmprofile values for
11737 --with-multilib-list.
11738 * config/arm/t-multilib: New file.
11739 * config/arm/t-aprofile: Remove initialization of MULTILIB_*
11740 variables. Remove setting of ISA and floating-point ABI in
11741 MULTILIB_OPTIONS and MULTILIB_DIRNAMES. Set architecture and FPU in
11742 MULTI_ARCH_OPTS_A and MULTI_ARCH_DIRS_A rather than MULTILIB_OPTIONS
11743 and MULTILIB_DIRNAMES respectively. Add comment to introduce all
11744 matches. Add architecture matches for marvel-pj4 and generic-armv7-a
11746 * config/arm/t-rmprofile: Likewise except for the matches changes.
11747 * doc/install.texi (--with-multilib-list): Document the combination of
11748 aprofile and rmprofile values and warn about pitfalls in doing that.
11750 2017-05-05 Wilco Dijkstra <wdijkstr@arm.com>
11752 * config/aarch64/aarch64.md (movsi_aarch64): Remove '*' from r=w.
11753 (movdi_aarch64): Likewise.
11755 2017-05-05 Jakub Jelinek <jakub@redhat.com>
11757 PR tree-optimization/80632
11758 * tree-switch-conversion.c (struct switch_conv_info): Add target_vop
11760 (build_arrays): Initialize it for virtual phis.
11761 (fix_phi_nodes): Use it for virtual phis.
11763 PR tree-optimization/80558
11764 * tree-vrp.c (extract_range_from_binary_expr_1): Optimize
11765 [x, y] op z into [x op, y op z] for op & or | if conditions
11768 2017-05-05 Andre Vieira <andre.simoesdiasvieira@arm.com>
11769 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
11772 * config/arm/arm.md (use_literal_pool): Remove.
11773 (64-bit immediate split): No longer takes cost into consideration
11774 if arm_disable_literal_pool is enabled.
11775 * config/arm/arm.c (arm_tls_referenced_p): Add diagnostic if TLS is
11776 used when arm_disable_literal_pool is enabled.
11777 (arm_max_const_double_inline_cost): Remove use of
11778 arm_disable_literal_pool.
11779 (push_minipool_fix): Add assert.
11780 (arm_reorg): Add return if arm_disable_literal_pool is enabled.
11781 * config/arm/vfp.md (no_literal_pool_df_immediate): New.
11782 (no_literal_pool_sf_immediate): New.
11784 2017-05-05 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11786 PR tree-optimization/80613
11787 * tree-ssa-dce.c (propagate_necessity): Remove cases for
11788 BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
11790 2017-05-05 Richard Biener <rguenther@suse.de>
11792 * tree-ssa-pre.c (get_or_alloc_expr_for): Simplify.
11794 2017-05-05 Georg-Johann Lay <avr@gjlay.de>
11796 * config/avr/avr.md [flag_strict_overflow]: Remove any occurence
11797 of this flag from insn conditions due to removal from r247495.
11799 2017-05-05 Wilco Dijkstra <wdijkstr@arm.com>
11801 * config/arm/aarch-common.c (arm_early_load_addr_dep_ptr):
11803 (arm_early_store_addr_dep_ptr): Likewise.
11804 * config/arm/aarch-common-protos.h
11805 (arm_early_load_addr_dep_ptr): Add prototype.
11806 (arm_early_store_addr_dep_ptr): Likewise.
11807 * config/arm/cortex-a53.md: Add new bypasses.
11809 2017-05-05 Jakub Jelinek <jakub@redhat.com>
11811 * tree.c (next_type_uid): Change type to unsigned.
11812 (type_hash_canon): Decrement back next_type_uid if
11813 freeing a type node with the highest TYPE_UID. For INTEGER_TYPEs
11814 also ggc_free TYPE_MIN_VALUE, TYPE_MAX_VALUE and TYPE_CACHED_VALUES
11817 2017-05-04 Martin Sebor <msebor@redhat.com>
11819 * builtins.c: Fix a trivial typo in a comment.
11821 PR middle-end/79234
11822 * builtins.c (check_sizes): Adjust to handle reading past the end.
11823 Avoid printing excessive upper bound of ranges. Use %E to print
11824 tree nodes instead of converting them to %wu.
11825 (expand_builtin_memchr): New function.
11826 (compute_dest_size): Rename...
11827 (compute_objsize): ...to this.
11828 (expand_builtin_memcpy): Adjust.
11829 (expand_builtin_mempcpy): Adjust.
11830 (expand_builtin_strcat): Adjust.
11831 (expand_builtin_strcpy): Adjust.
11832 (check_strncat_sizes): Adjust.
11833 (expand_builtin_strncat): Adjust.
11834 (expand_builtin_strncpy): Adjust and simplify.
11835 (expand_builtin_memset): Adjust.
11836 (expand_builtin_bzero): Adjust.
11837 (expand_builtin_memcmp): Adjust.
11838 (expand_builtin): Handle memcmp.
11839 (maybe_emit_chk_warning): Check strncat just once.
11841 2017-05-04 Martin Sebor <msebor@redhat.com>
11843 PR preprocessor/79214
11844 PR middle-end/79222
11845 PR middle-end/79223
11846 * builtins.c (check_sizes): Add inlining context and issue
11847 warnings even when -Wno-system-headers is set.
11848 (check_strncat_sizes): Same.
11849 (expand_builtin_strncat): Same.
11850 (expand_builtin_memmove): New function.
11851 (expand_builtin_stpncpy): Same.
11852 (expand_builtin): Handle memmove and stpncpy.
11854 2017-05-04 Bin Cheng <bin.cheng@arm.com>
11856 * tree-ssa-loop-ivopts.c (struct cost_pair): Remove field inv_expr
11857 which is not used any more.
11859 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
11861 * config/aarch64/aarch64.c (generic_tunings): Update prefetch model.
11863 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
11865 * config/aarch64/aarch64.c (cortexa35_tunings): Set jump alignment to 4.
11866 (cortexa53_tunings): Likewise.
11867 (cortexa57_tunings): Likewise.
11868 (cortexa72_tunings): Likewise.
11869 (cortexa73_tunings): Likewise.
11871 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
11873 * config/aarch64/aarch64.c (generic_tunings): Set jump alignment to 4.
11874 Set loop alignment to 8.
11876 2017-05-04 Martin Sebor <msebor@redhat.com>
11878 PR translation/80280
11879 * builtins.c (expand_builtin_object_size): Add missing quoting to
11880 %D and like directives.
11881 * hsa-gen.c (hsa_type_for_scalar_tree_type): Same.
11882 (hsa_type_for_tree_type): Same.
11883 (verify_function_arguments): Same.
11884 * symtab.c (symbol_table::change_decl_assembler_name): Same.
11885 * varasm.c (get_section): Same.
11888 2017-05-04 Martin Sebor <msebor@redhat.com>
11890 PR translation/80280
11891 * config/i386/i386.c (ix86_function_versions): Quote a %D directive.
11893 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
11895 * config/aarch64/aarch64.c (generic_addrcost_table):
11896 Change HI/TI mode setting.
11898 2017-05-04 Martin Jambor <mjambor@suse.cz>
11900 PR tree-optimization/80622
11901 * tree-sra.c (comes_initialized_p): New function.
11902 (build_accesses_from_assign): Only set write lazily when
11903 comes_initialized_p is false.
11904 (analyze_access_subtree): Use comes_initialized_p.
11905 (propagate_subaccesses_across_link): Assert !comes_initialized_p
11906 instead of testing for PARM_DECL.
11908 2017-05-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11910 * config/aarch64/aarch64.md (prefetch); Adjust predicate and
11911 constraint on operand 0 to allow more general addressing modes.
11912 Adjust output template.
11913 * config/aarch64/aarch64.c (aarch64_address_valid_for_prefetch_p):
11915 * config/aarch64/aarch64-protos.h
11916 (aarch64_address_valid_for_prefetch_p): Declare prototype.
11917 * config/aarch64/constraints.md (Dp): New address constraint.
11918 * config/aarch64/predicates.md (aarch64_prefetch_operand): New
11921 2017-05-04 Jan Hubicka <hubicka@ucw.cz>
11923 * ipa-cp.c (perform_estimation_of_a_value): Drop base_time parameter;
11924 update use of estimate_ipcp_clone_size_and_time.
11925 (estimate_local_effects): Update use of
11926 estimate_ipcp_clone_size_and_time and perform_estimation_of_a_value.
11927 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update prototype.
11928 * ipa-inline-analysis.c (estimate_ipcp_clone_size_and_time):
11929 Return nonspecialized time.
11931 2017-05-04 Richard Biener <rguenther@suse.de>
11933 * tree-ssa-alias.c (get_continuation_for_phi): Improve looking
11934 for the last VUSE which def dominates the PHI. Directly call
11936 (get_continuation_for_phi_1): Remove.
11938 2017-05-04 Richard Sandiford <richard.sandiford@linaro.org>
11940 * tree-ssa-loop-manip.c (niter_for_unrolled_loop): Add commentary
11941 to explain the use of truncating division. Cap the number of
11942 iterations to the maximum given by nb_iterations_upper_bound,
11945 2017-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
11947 * configure.ac (--enable-mingw-wildcard): Add new configurable feature.
11948 * configure: Regenerate.
11949 * config.in: Regenerate.
11950 * config/i386/driver-mingw32.c: new file.
11951 * config/i386/x-mingw32: Add rule to build driver-mingw32.o.
11952 * config.host: Link driver-mingw32.o on MinGW host.
11953 * doc/install.texi: Document new --enable-mingw-wildcard configure
11956 2017-05-04 Marek Polacek <polacek@redhat.com>
11958 PR tree-optimization/80612
11959 * calls.c (get_size_range): Check for INTEGRAL_TYPE_P.
11961 2017-05-04 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
11962 Andre Simoes Dias Vieira <andre.simoesdiasvieira@arm.com>
11964 * config/arm/arm.md (movsi): Change TARGET_32BIT to TARGET_HAVE_MOVT.
11965 (movt splitter): Likewise.
11966 * config/arm/arm.c (arm_option_check_internal): Change arm_arch_thumb2
11967 to TARGET_HAVE_MOVT, and merge with -mslow-flash-data check.
11968 (const_ok_for_arm): Change else to else if (TARGET_THUMB2) and add else
11969 block for Thumb-1 with MOVT.
11970 (thumb2_legitimate_address_p): Move code block ...
11971 (can_avoid_literal_pool_for_label_p): ... into this new function.
11972 (thumb1_legitimate_address_p): Add check for TARGET_HAVE_MOVT and
11974 (thumb_legitimate_constant_p): Add conditional on TARGET_HAVE_MOVT
11975 * doc/invoke.texi (-mpure-code): Change "ARMv7-M targets" for
11976 "M-profile targets with the MOVT instruction".
11978 2017-05-04 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
11980 * config/arm/arm-builtins.c (arm_init_builtins): Rename
11981 __builtin_arm_ldfscr to __builtin_arm_get_fpscr, and rename
11982 __builtin_arm_stfscr to __builtin_arm_set_fpscr.
11984 2017-05-04 Martin Liska <mliska@suse.cz>
11986 * tree-vrp.c (simplify_cond_using_ranges_2): Remove unused
11987 variable cond_code.
11989 2017-05-04 Richard Biener <rguenther@suse.de>
11991 * tree.c (array_at_struct_end_p): Handle arrays at struct
11992 end with flexarrays more conservatively. Refactor and treat
11993 arrays of arrays or aggregates more strict. Fix
11994 VIEW_CONVERT_EXPR handling. Remove allow_compref argument.
11995 * tree.c (array_at_struct_end_p): Adjust prototype.
11996 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
11997 * gimple-fold.c (get_range_strlen): Likewise.
11998 * tree-chkp.c (chkp_may_narrow_to_field): Likewise.
12000 2017-05-04 Richard Biener <rguenther@suse.de>
12002 PR tree-optimization/31130
12003 * tree-vrp.c (needs_overflow_infinity): Remove as always returning
12005 (supports_overflow_infinity): Likewise.
12006 (is_negative_overflow_infinity): Likewise.
12007 (is_positive_overflow_infinity): Likewise.
12008 (is_overflow_infinity): Likewise.
12009 (stmt_overflow_infinity): Likewise.
12010 (overflow_infinity_range_p): Likewise.
12011 (usable_range_p): Remove as always returning true.
12012 (make_overflow_infinity): Remove.
12013 (negative_overflow_infinity): Likewise.
12014 (positive_overflow_infinity): Likewise.
12015 (avoid_overflow_infinity): Likewise.
12016 (set_value_range): Adjust accordingly.
12017 (set_value_range_to_nonnegative): Likewise, remove now unused
12018 overflow_infinity arg.
12019 (vrp_operand_equal_p): Adjust.
12020 (update_value_range): Likewise.
12021 (range_int_cst_singleton_p): Likewise.
12022 (operand_less_p): Likewise.
12023 (compare_values_warnv): Likewise.
12024 (extract_range_for_var_from_comparison_expr): Likewise.
12025 (vrp_int_const_binop): Likewise.
12026 (zero_nonzero_bits_from_vr): Likewise.
12027 (extract_range_from_multiplicative_op_1): Likewise.
12028 (extract_range_from_binary_expr_1): Likewise.
12029 (extract_range_from_unary_expr): Likewise.
12030 (extract_range_from_comparison): Likewise.
12031 (extract_range_basic): Likewise.
12032 (adjust_range_with_scev): Likewise.
12033 (compare_ranges): Likewise.
12034 (compare_range_with_value): Likewise.
12035 (dump_value_range): Likewise.
12036 (test_for_singularity): Likewise, remove strict_overflow_p parameter
12038 (simplify_cond_using_ranges): Adjust.
12040 2017-05-04 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
12042 * brig-builtins.def: Added a builtin for class_f64.
12043 * builtin-types.def: Added a builtin type needed by class_f64.
12045 2017-05-03 Jason Merrill <jason@redhat.com>
12047 * timevar.def: Add TV_CONSTEXPR.
12049 2017-05-03 David Malcolm <dmalcolm@redhat.com>
12051 * common.opt (fdiagnostics-parseable-fixits): Fix typo.
12053 2017-05-03 Martin Jambor <mjambor@suse.cz>
12055 * ipa-prop.c (ipa_update_after_lto_read): Removed.
12056 * ipa-prop.h (ipa_update_after_lto_read): Remove declaration.
12057 * ipa-cp.c (ipcp_propagate_stage): Do not call
12058 ipa_update_after_lto_read.
12059 * ipa-inline.c (ipa_inline): Likewise.
12061 2017-05-03 Martin Jambor <mjambor@suse.cz>
12063 * ipa-prop.h (ipa_edge_args): Make a class. Mark with for_user GTY
12064 tag. Added a default constructor and a destructor.
12065 (ipa_edge_args_sum_t): New class;
12066 (ipa_edge_args_sum): Declare.
12067 (ipa_edge_args_vector): Remove declaration.
12068 (IPA_EDGE_REF): Use ipa_edge_args_sum.
12069 (ipa_free_edge_args_substructures): Remove declaration.
12070 (ipa_check_create_edge_args): Use ipa_edge_args_sum.
12071 (ipa_edge_args_info_available_for_edge_p): Likewise.
12072 * ipa-prop.c (ipa_edge_args_vector): Removed.
12073 (edge_removal_hook_holder): Likewise.
12074 (edge_duplication_hook_holder): Likewise.
12075 (ipa_edge_args_sum): New variable.
12076 (ipa_propagate_indirect_call_infos): Test ipa_edge_args_sum instead of
12077 ipa_edge_args_vector.
12078 (ipa_free_edge_args_substructures): Likewise.
12079 (ipa_free_all_edge_args): Free ipa_edge_args_sum instead of
12080 ipa_edge_args_vector.
12081 (ipa_edge_removal_hook): Turned into method
12082 ipa_edge_args_sum_t::remove.
12083 (ipa_edge_duplication_hook): Turned into method
12084 ipa_edge_args_sum_t::duplicate.
12085 (ipa_register_cgraph_hooks): Create ipa_edge_args_sum instead of
12086 registering edge hooks.
12087 (ipa_unregister_cgraph_hooks): Do not unregister edge hooks.
12088 * ipa-inline-analysis.c (estimate_function_body_sizes): Test
12089 ipa_edge_args_sum instead of ipa_edge_args_vector.
12090 * ipa-profile.c (ipa_profile): Likewise.
12092 2017-05-03 Martin Jambor <mjambor@suse.cz>
12094 * symbol-summary.h (function_summary): New method exists.
12095 (function_summary::symtab_removal): Deallocate through release.
12096 (call_summary): New class.
12097 (gt_ggc_mx): New overload.
12098 (gt_pch_nx): Likewise.
12099 (gt_pch_nx): Likewise.
12101 2017-05-03 Jeff Law <law@redhat.com>
12103 PR tree-optimization/78496
12104 * tree-vrp.c (simplify_cond_using_ranges_1): Renamed
12105 from simplify_cond_using_ranges. Split off code to walk
12106 backwards through casts into ...
12107 (simplify_cond_using_ranges_2): New function.
12108 (simplify_stmt_using_ranges): Call simplify_cond_using_ranges_1.
12109 (execute_vrp): After identifying jump threads, call
12110 simplify_cond_using_ranges_2.
12112 2017-05-03 Jan Hubicka <hubicka@ucw.cz>
12115 * ipa-inline.h (inline_summary): Add ctor.
12116 (create_ggc): Do not use ggc_cleared_alloc.
12118 2017-05-03 Jeff Downs <heydowns@somuchpressure.net>
12119 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12121 * gcc.c (handle_braces): Support escaping in switch matching
12123 * doc/invoke.texi (Spec Files): Document it.
12124 Remove superfluous @code markup in items.
12126 2017-05-03 David Malcolm <dmalcolm@redhat.com>
12128 * diagnostic-show-locus.c (struct column_range): New struct.
12129 (get_affected_columns): New function.
12130 (get_printed_columns): New function.
12131 (struct correction): New struct.
12132 (correction::ensure_capacity): New function.
12133 (correction::ensure_terminated): New function.
12134 (struct line_corrections): New struct.
12135 (line_corrections::~line_corrections): New dtor.
12136 (line_corrections::add_hint): New function.
12137 (layout::print_trailing_fixits): Reimplement in terms of the new
12139 (selftest::test_overlapped_fixit_printing): New function.
12140 (selftest::diagnostic_show_locus_c_tests): Call it.
12142 2017-05-03 Nathan Sidwell <nathan@acm.org>
12144 Canonicalize canonical type hashing
12145 * tree.h (type_hash_canon_hash): Declare.
12146 * tree.c (type_hash_list, attribute_hash_list): Move into
12147 type_hash_canon_hash.
12148 (build_type_attribute_qual_variant): Break out hash code calc into
12149 type_hash_canon_hash.
12150 (type_hash_canon_hash): New. Generic type hash computation.
12151 (build_range_type_1, build_array_type_1, build_function_type,
12152 build_method_type_directly, build_offset_type, build_complex_type,
12153 make_vector_type): Call it.
12155 2017-05-03 Richard Biener <rguenther@suse.de>
12157 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
12158 When all DRs have unknown misaligned do not always peel
12159 when there is a store but apply the same costing model as if
12160 there were only loads.
12162 2017-05-03 Richard Biener <rguenther@suse.de>
12165 PR tree-optimization/80492
12166 * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
12167 compare_base_decls returning dont-know properly.
12169 2017-05-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
12171 * config/arm/iterators.md (CCSI): New mode iterator.
12172 (arch): New mode attribute.
12173 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Rename into ...
12174 (atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): This and ...
12175 (atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): This. Use CCSI
12176 code iterator for success result mode.
12177 * config/arm/arm.c (arm_expand_compare_and_swap): Adapt code to use
12178 the corresponding new insn generators.
12180 2017-05-03 Bin Cheng <bin.cheng@arm.com>
12183 2017-05-02 Bin Cheng <bin.cheng@arm.com>
12184 * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
12186 2017-05-03 Richard Sandiford <richard.sandiford@linaro.org>
12188 * tree-data-ref.h (SUB_CONFLICTS_IN_A): Wrap SUB argument in brackets.
12189 (SUB_CONFLICTS_IN_B, SUB_LAST_CONFLICT, SUB_DISTANCE): Likewise.
12190 (DDR_A): Wrap DDR argument in brackets.
12191 (DDR_B, DDR_AFFINE_P, DDR_ARE_DEPENDENT, DDR_SUBSCRIPTS): Likewise.
12192 (DDR_LOOP_NEST, DDR_INNER_LOOP, DDR_SELF_REFERENCE): Likewise.
12193 (DDR_REVERSED_P): Likewise.
12195 2017-05-03 Jakub Jelinek <jakub@redhat.com>
12197 PR tree-optimization/79472
12198 * tree-switch-conversion.c (struct switch_conv_info): Add
12199 contiguous_range and default_case_nonstandard fields.
12200 (collect_switch_conv_info): Compute contiguous_range and
12201 default_case_nonstandard fields, don't clear final_bb if
12202 contiguous_range and only the default case doesn't have the required
12204 (check_all_empty_except_final): Set default_case_nonstandard instead
12205 of failing if contiguous_range and the default case doesn't have empty
12207 (check_final_bb): Add SWTCH argument, don't fail if contiguous_range
12208 and only the default case doesn't have the required constants. Skip
12210 (gather_default_values): Skip virtual phis. Allow non-NULL CASE_LOW
12211 if default_case_nonstandard.
12212 (build_constructors): Build constant 1 just once. Assert that default
12213 values aren't inserted in between cases if contiguous_range. Skip
12215 (build_arrays): Skip virtual phis.
12216 (prune_bbs): Add DEFAULT_BB argument, don't remove that bb.
12217 (fix_phi_nodes): Don't add e2f phi arg if default_case_nonstandard.
12218 Handle virtual phis.
12219 (gen_inbound_check): Handle default_case_nonstandard case.
12220 (process_switch): Adjust check_final_bb caller. Call
12221 gather_default_values with the first non-default case instead of
12222 default case if default_case_nonstandard.
12224 2017-05-02 Nathan Sidwell <nathan@acm.org>
12226 * ggc-page.c (move_ptes_to_front): Replace unsigned >0 with i--
12227 check. Fix formatting.
12229 2017-05-02 Jan Hubicka <hubicka@ucw.cz>
12231 * ipa-inline-analysis.c (estimate_node_size_and_time): Allow roundoff
12232 errors when comparing specialized and unspecialized times.
12234 2017-05-02 David Malcolm <dmalcolm@redhat.com>
12236 * diagnostic-show-locus.c
12237 (layout::should_print_annotation_line_p): Make private.
12238 (layout::print_annotation_line): Make private.
12239 (layout::annotation_line_showed_range_p): Make private.
12240 (layout::show_ruler): Make private.
12241 (layout::print_source_line): Make private. Pass in line and
12242 line_width, rather than calling location_get_source_line. Drop
12244 (layout::print_leading_fixits): New method.
12245 (layout::print_any_fixits): Rename to...
12246 (layout::print_trailing_fixits): ...this, and make private.
12247 Don't print newline fixits.
12248 (diagnostic_show_locus): Move logic for printing one row into...
12249 (layout::print_line): ...this new function. Move the
12250 location_get_source_line call and error-handling from
12251 print_source_line to here. Call print_leading_fixits, and rename
12252 print_any_fixits to print_trailing_fixits.
12253 (selftest::test_fixit_insert_containing_newline): Update now that
12254 newlines are partially supported.
12255 (selftest::test_fixit_insert_containing_newline_2): New test.
12256 (selftest::test_fixit_replace_containing_newline): Update comments.
12257 (selftest::diagnostic_show_locus_c_tests): Call the new test.
12258 * edit-context.c (class added_line): New class.
12259 (class edited_line): Describe newline handling in comment.
12260 (edited_line::actually_edited_p): New method.
12261 (edited_line::print_content): Delete redundant decl.
12262 (edited_line::m_predecessors): New field.
12263 (edited_file::print_content): Call edited_line::print_content.
12264 (edited_file::print_diff): Update to support newlines.
12265 (edited_file::print_diff_hunk): Likewise.
12266 (edited_file::print_run_of_changed_lines): New function.
12267 (edited_file::print_diff_line): Convert to...
12268 (print_diff_line): ...this.
12269 (edited_file::get_effective_line_count): New function.
12270 (edited_line::edited_line): Initialize new field m_predecessors.
12271 (edited_line::~edited_line): Clean up m_predecessors.
12272 (edited_line::apply_fixit): Handle newlines.
12273 (edited_line::get_effective_line_count): New function.
12274 (edited_line::print_content): New function.
12275 (edited_line::print_diff_lines): New function.
12276 (selftest::test_applying_fixits_insert_containing_newline): New
12278 (selftest::test_applying_fixits_replace_containing_newline): New
12280 (selftest::insert_line): New function.
12281 (selftest::test_applying_fixits_multiple_lines): Add example of
12283 (selftest::edit_context_c_tests): Call the new tests.
12285 2017-05-02 Bin Cheng <bin.cheng@arm.com>
12287 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Delete
12288 parameter cand. Update dump information.
12289 (get_computation_cost): Update uses.
12291 2017-05-02 Bin Cheng <bin.cheng@arm.com>
12293 * tree-ssa-loop-ivopts.c (get_computation_aff_1): New.
12294 (get_computation_aff): Reorder parameters. Use get_computation_aff_1.
12295 (get_computation_at, rewrite_use_address): Update use of
12296 get_computation_aff.
12298 2017-05-02 Bin Cheng <bin.cheng@arm.com>
12300 * tree-ssa-loop-ivopts.c (get_computation_at): Reorder parameters.
12301 (get_computation): Delete.
12302 (get_computation_cost): Implement like get_computation_cost_at.
12303 Use get_computation_at.
12304 (get_computation_cost_at): Delete.
12305 (rewrite_use_nonlinear_expr): Use get_computation_at.
12306 (rewrite_use_compare, remove_unused_ivs): Ditto.
12308 2017-05-02 Bin Cheng <bin.cheng@arm.com>
12310 * tree-ssa-loop-ivopts.c (rewrite_use_address): Simple refactor.
12312 2017-05-02 Bin Cheng <bin.cheng@arm.com>
12314 * tree-ssa-loop-ivopts.c (struct iv_ca): Rename n_regs to n_invs.
12315 (ivopts_global_cost_for_size): Rename parameter and update uses.
12316 (iv_ca_recount_cost): Update uses.
12317 (iv_ca_set_remove_invs, iv_ca_set_no_cp): Record invariants and
12318 candidates seperately in n_invs and n_cands.
12319 (iv_ca_set_add_invs, iv_ca_set_cp, iv_ca_new): Ditto.
12321 2017-05-02 Bin Cheng <bin.cheng@arm.com>
12323 * tree-ssa-loop-ivopts.c (struct walk_tree_data): New.
12324 (find_inv_vars_cb): New.
12325 (find_depends): Renamed to ...
12326 (find_inv_vars): ... this.
12327 (add_candidate_1, force_var_cost): Call find_inv_vars.
12328 (split_address_cost, determine_group_iv_cost_cond): Ditto.
12330 2017-05-02 Bin Cheng <bin.cheng@arm.com>
12332 * tree-ssa-loop-ivopts.c (struct cost_pair): Rename depends_on to
12333 inv_vars. Add inv_exprs.
12334 (struct iv_cand): Rename depends_on to inv_vars.
12335 (struct ivopts_data): Rename max_inv_id/n_invariant_uses to
12336 max_inv_var_id/n_inv_var_uses. Move max_inv_expr_id around.
12337 Refactor field used_inv_exprs from has_map to array n_inv_expr_uses.
12338 (dump_cand): Dump inv_vars.
12339 (tree_ssa_iv_optimize_init): Support inv_vars and inv_exprs.
12340 (record_invariant, find_depends, add_candidate_1): Ditto.
12341 (set_group_iv_cost, force_var_cost): Ditto.
12342 (split_address_cost, ptr_difference_cost, difference_cost): Ditto.
12343 (get_computation_cost_at, get_computation_cost): Ditto.
12344 (determine_group_iv_cost_generic): Ditto.
12345 (determine_group_iv_cost_address): Ditto.
12346 (determine_group_iv_cost_cond, autoinc_possible_for_pair): Ditto.
12347 (determine_group_iv_costs): Ditto.
12348 (iv_ca_recount_cost): Update call to ivopts_global_cost_for_size.
12349 (iv_ca_set_remove_invariants): Renamed to ...
12350 (iv_ca_set_remove_invs): ... this. Support inv_vars and inv_exprs.
12351 (iv_ca_set_no_cp): Use iv_ca_set_remove_invs.
12352 (iv_ca_set_add_invariants): Renamed to ...
12353 (iv_ca_set_add_invs): ... this. Support inv_vars and inv_exprs.
12354 (iv_ca_set_cp): Use iv_ca_set_add_invs.
12355 (iv_ca_has_deps): Support inv_vars and inv_exprs.
12356 (iv_ca_new, iv_ca_free, iv_ca_dump, free_loop_data): Ditto.
12357 (create_new_ivs): Remove useless dump.
12359 2017-05-02 Bin Cheng <bin.cheng@arm.com>
12361 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Remove pseudo
12363 (determine_group_iv_cost_cond, determine_iv_cost): Ditto.
12364 (iv_ca_set_no_cp, create_new_iv): Ditto.
12366 2017-05-02 Bin Cheng <bin.cheng@arm.com>
12368 * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
12370 2017-05-02 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
12372 * tree.h (EXPR_CILK_SPAWN): Use macro TREE_CHECK2 instead of
12373 function tree_check2.
12375 2017-05-02 Martin Liska <mliska@suse.cz>
12377 * doc/gcov.texi: Add missing preposition.
12378 * gcov.c (function_info::function_info): Properly fill up
12379 all member variables.
12381 2017-05-02 Tamar Christina <tamar.christina@arm.com>
12383 * expr.c (expand_expr_real_2): Re-cost if previous costs are the same.
12385 2017-05-02 Tamar Christina <tamar.christina@arm.com>
12387 * simplify-rtx.c (simplify_binary_operation_1): Add LSHIFTRT case.
12389 2017-05-02 Martin Liska <mliska@suse.cz>
12392 * lto-streamer-in.c (lto_read_tree_1): Remove
12393 LTO_STREAMER_DEBUG.
12394 * lto-streamer.c (struct tree_hash_entry): Likewise.
12395 (struct tree_entry_hasher): Likewise.
12396 (tree_entry_hasher::hash): Likewise.
12397 (tree_entry_hasher::equal): Likewise.
12398 (lto_streamer_init): Likewise.
12399 (lto_orig_address_map): Likewise.
12400 (lto_orig_address_get): Likewise.
12401 (lto_orig_address_remove): Likewise.
12402 * lto-streamer.h: Likewise.
12403 * tree-streamer-in.c (streamer_alloc_tree): Likewise.
12404 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
12406 2017-05-02 Sebastian Peryt <sebastian.peryt@intel.com>
12408 * config/i386/avx512fintrin.h (_mm_mask_add_round_sd)
12409 (_mm_maskz_add_round_sd, _mm_mask_add_round_ss)
12410 (mm_maskz_add_round_ss, _mm_mask_sub_round_sd)
12411 (mm_maskz_sub_round_sd, _mm_mask_sub_round_ss)
12412 (mm_maskz_sub_round_ss, _mm_mask_add_sd)
12413 (mm_maskz_add_sd, _mm_mask_add_ss, _mm_maskz_add_ss)
12414 (mm_mask_sub_sd, _mm_maskz_sub_sd, _mm_mask_sub_ss)
12415 (mm_maskz_sub_ss): New intrinsics.
12416 * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
12417 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
12418 * config/i386/i386-builtin.def (__builtin_ia32_addsd_mask_round)
12419 (__builtin_ia32_addss_mask_round, __builtin_ia32_subsd_mask_round)
12420 (__builtin_ia32_subss_mask_round): New builtins.
12421 * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
12422 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
12423 * config/i386/sse.md (<sse>_vm<plusminus_insn><mode>3<round_name>):
12425 (<sse>_vm<plusminus_insn><mode>3<mask_name><round_name>): ... this.
12426 (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
12428 (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
12431 2017-05-02 Martin Jambor <mjambor@suse.cz>
12433 PR tree-optimization/78687
12434 * tree-sra.c (access): New field parent.
12435 (process_subtree_disqualification): New function.
12436 (disqualify_candidate): Call it.
12437 (build_accesses_from_assign): Reset write flag if creating an
12439 (build_access_subtree): Fill in parent field and also prpagate
12440 down grp_write flag.
12441 (create_artificial_child_access): New parameter set_grp_write, set
12442 grp_write to its value.
12443 (propagate_subaccesses_across_link): Also propagate grp_write flag
12445 (propagate_all_subaccesses): Push the closest parent back to work
12446 queue if add_access_to_work_queue returned true.
12448 2017-05-02 Richard Biener <rguenther@suse.de>
12450 * common.opt (fstrict-overflow): Alias negative to fwrapv.
12451 * doc/invoke.texi (fstrict-overflow): Remove all traces of
12452 -fstrict-overflow documentation.
12453 * tree.h (TYPE_OVERFLOW_UNDEFINED): Do not test flag_strict_overflow.
12454 (POINTER_TYPE_OVERFLOW_UNDEFINED): Test !flag_wrapv instead of
12455 flag_strict_overflow.
12456 * ipa-inline.c (can_inline_edge_p): Do not test flag_strict_overflow.
12457 * lto-opts.c (lto_write_options): Do not stream it.
12458 * lto-wrapper.c (merge_and_complain): Do not handle it.
12459 * opts.c (default_options_table): Do not set -fstrict-overflow.
12460 (finish_options): Likewise do not clear it when sanitizing.
12461 * simplify-rtx.c (simplify_const_relational_operation): Do not
12462 test flag_strict_overflow.
12464 2017-05-02 Uros Bizjak <ubizjak@gmail.com>
12466 * config/alpha/alpha.md (*add<mode>3_ieee): Merge to add<mode>3
12467 using enabled attribute.
12468 (*sub<mode>3_ieee): Merge to sub<mode>3 using enabled attribute.
12469 (*mul<mode>3_ieee): Merge to mul<mode>3 using enabled attribute.
12470 (*div<mode>3_ieee): Merge to div<mode>3 using enabled attribute.
12471 (*sqrt<mode>2_ieee): Merge to sqrt<mode>2 using enabled attribute.
12472 (*fix_truncdfdi_ieee): Merge to *fix_truncdfdi2 using enabled attribute.
12473 (*fix_truncsfdi_ieee): Merge to *fix_truncsfdi2 using enabled attribute.
12474 (*floatdisf_ieee): Merge to floatdisf2 using enabled attribute.
12475 (*floatdidf_ieee): Merge to floatdidf2 using enabled attribute.
12476 (*truncdfsf2_ieee): Merge to truncdfsf2 using enabled attribute.
12477 (*cmpdf_ieee): Merge to *cmpdf_internal using enabled attribute.
12479 2017-05-02 Uros Bizjak <ubizjak@gmail.com>
12481 * config/i386/i386.c (ix86_code_end): Use {FIRST,LAST}_INT_REG.
12483 2017-05-02 Richard Biener <rguenther@suse.de>
12485 PR tree-optimization/80591
12487 2017-04-10 Richard Biener <rguenther@suse.de>
12489 * tree-ssa-structalias.c (find_func_aliases): Properly handle
12492 2017-05-02 Richard Biener <rguenther@suse.de>
12494 PR tree-optimization/80549
12495 * tree-cfgcleanup.c (mfb_keep_latches): New helper.
12496 (cleanup_tree_cfg_noloop): Create forwarders to known loop
12497 headers if they do not have a preheader.
12499 2017-05-02 Martin Liska <mliska@suse.cz>
12502 * common.opt: Fix typo.
12503 * doc/invoke.texi: Likewise.
12505 2017-05-01 Jan Beulich <jbeulich@suse.com>
12507 * config/i386/sse.md (xop_vpermil2<mode>3): Do not allow operand
12508 swapping, add (x,x,m,x,n) alternative.
12510 2017-05-01 Nathan Sidwell <nathan@acm.org>
12512 * calls.c (combine_pending_stack_adjustment_and_call): Remove
12513 unnecessary unadjusted_alignment check.
12515 2017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
12518 * cilk_common.c (expand_builtin_cilk_detach): Move pedigree
12520 * gimplify.c (gimplify_cilk_detach): New function.
12521 (gimplify_call_expr, gimplify_modify_expr): Call it as needed.
12522 * tree-core.h: Document EXPR_CILK_SPAWN.
12523 * tree.h (EXPR_CILK_SPAWN): Define.
12525 2017-05-01 David Malcolm <dmalcolm@redhat.com>
12527 * diagnostic-show-locus.c (layout::get_expanded_location): Rewrite
12528 to use new fixit_hint representation, using the "replace" logic.
12529 (get_line_span_for_fixit_hint): Likewise.
12530 (layout::print_any_fixits): Likewise.
12531 (selftest::test_one_liner_many_fixits): Rename to...
12532 (selftest::test_one_liner_many_fixits_1): ...this, and update
12533 comment and expected output to reflect that the multiple fix-it
12534 hints are now consolidated into one insertion.
12535 (selftest::test_one_liner_many_fixits_2): New test.
12536 (selftest::test_diagnostic_show_locus_one_liner): Update for
12538 (selftest::test_fixit_consolidation): Update for fix-it API
12540 * diagnostic.c (print_parseable_fixits): Likewise.
12541 * edit-context.c (edited_line::m_line_events): Convert from
12542 auto_vec <line_event *> to auto_vec <line_event>.
12543 (class line_event): Convert from abstract base class to a concrete
12544 class, taking over the role of replace_event.
12545 (class insert_event): Delete.
12546 (class replace_event): Rename to class line_event. Convert to
12548 (edit_context::add_fixits): Reimplement.
12549 (edit_context::apply_insert): Delete.
12550 (edit_context::apply_replace): Rename to...
12551 (edit_context::apply_fixit): ...this. Convert to half-open range.
12552 (edited_file::apply_insert): Delete.
12553 (edited_file::apply_replace): Rename to...
12554 (edited_file::apply_fixit): ...this.
12555 (edited_line::~edited_line): Drop deletion of events.
12556 (edited_line::apply_insert): Delete.
12557 (edited_line::apply_replace): Rename to...
12558 (edited_line::apply_fixit): ...this. Convert to half-open range.
12559 Update for change to type of m_line_events.
12560 * edit-context.h (edit_context::apply_insert): Delete.
12561 (edit_context::apply_replace): Rename to...
12562 (edit_context::apply_fixit): ...this.
12564 2017-05-01 Martin Sebor <msebor@redhat.com>
12566 * gimple-ssa-sprintf.c (format_integer): Set knownrange when it's
12569 2017-05-01 Uros Bizjak <ubizjak@gmail.com>
12572 * config/i386/cpuid.h (__get_cpuid): Always return 0 when
12573 __get_cpuid_max returns 0.
12574 (__get_cpuid_count): Ditto.
12576 2017-05-01 Eric Botcazou <ebotcazou@adacore.com>
12578 * tree.c (substitute_in_expr) <tcc_vl_exp>: Also inline a call if the
12579 replacement expression is another instance of one of its arguments.
12581 2017-05-01 Jakub Jelinek <jakub@redhat.com>
12584 * rtlanal.c (reg_set_p): If reg is a stack_pointer_rtx, also
12585 check for stack push/pop autoinc.
12586 * config/i386/i386.c (ix86_agi_dependent): Return false
12587 if the only reason why modified_in_p returned true is that
12588 addr is SP based and set_insn is a push or pop.
12590 2017-04-29 Jan Hubicka <hubicka@ucw.cz>
12592 * ipa-inline.c (compute_inlined_call_time): Remove now unnecesary
12595 2017-04-29 Jan Hubicka <hubicka@ucw.cz>
12598 * ipa-inline-analysis.c (dump_predicate): Add optional parameter NL.
12599 (account_size_time): Use two predicates - exec_pred and
12601 (evaluate_conditions_for_known_args): Compute both clause and
12603 (evaluate_properties_for_edge): Evaulate both clause and nonspec_clause.
12604 (inline_summary_t::duplicate): Update.
12605 (estimate_function_body_sizes): Caluculate exec and nonconst predicates
12607 (compute_inline_parameters): Likewise.
12608 (estimate_edge_size_and_time): Update caluclation of time.
12609 (estimate_node_size_and_time): Compute both time and nonspecialized
12611 (estimate_ipcp_clone_size_and_time): Update.
12612 (inline_merge_summary): Update.
12613 (do_estimate_edge_time): Update.
12614 (do_estimate_edge_size): Update.
12615 (do_estimate_edge_hints): Update.
12616 (inline_read_section, inline_write_summary): Stream both new predicates.
12617 * ipa-inline.c (compute_uninlined_call_time): Take uninlined_call_time
12619 (compute_inlined_call_time): Cleanup.
12620 (big_speedup_p): Update.
12621 (edge_badness): Update.
12622 * ipa-inline.h (INLINE_TIME_SCALE): Remove.
12623 (size_time_entry): Replace predicate by exec_predicate and
12624 nonconst_predicate.
12625 (edge_growth_cache_entry): Cache both time nad nonspecialized time.
12626 (estimate_edge_time): Return also nonspec_time.
12627 (reset_edge_growth_cache): Update.
12629 2017-04-29 Jakub Jelinek <jakub@redhat.com>
12631 PR rtl-optimization/80491
12632 * ifcvt.c (noce_process_if_block): When looking for x setter
12633 with missing else_bb, don't check only the insn right before
12634 cond_earliest, but look for the last insn that x is modified in
12635 within the same bb.
12637 PR rtl-optimization/80491
12638 * alias.c (memory_modified_in_insn_p): Return true for CALL_INSNs.
12640 2017-04-29 Marc Glisse <marc.glisse@inria.fr>
12642 PR tree-optimization/80487
12643 * tree-ssa-alias.c (stmt_kills_ref_p): Handle stpncpy and strncpy.
12645 2017-04-29 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12647 PR tree-optimization/79697
12648 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Check if callee
12649 is BUILT_IN_STRDUP, BUILT_IN_STRNDUP, BUILT_IN_REALLOC.
12650 (propagate_necessity): Check if def_callee is BUILT_IN_STRDUP or
12652 * gimple-fold.c (gimple_fold_builtin_realloc): New function.
12653 (gimple_fold_builtin): Call gimple_fold_builtin_realloc.
12655 2017-04-28 Martin Sebor <msebor@redhat.com>
12657 PR tree-optimization/80523
12658 * gimple-ssa-sprintf.c (target_to_host_charmap): New global variable.
12659 (init_target_to_host_charmap, target_to_host, target_strtol10): New
12661 (maybe_warn, format_directive, parse_directive): Use new functions.
12662 (pass_sprintf_length::execute): Call init_target_to_host_charmap.
12664 2017-04-28 Marc Glisse <marc.glisse@inria.fr>
12666 * match.pd (X+Z OP Y+Z, X-Z OP Y-Z, Z-X OP Z-Y): New transformations.
12668 2017-04-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
12670 * configure.ac (SYSTEM_HEADER_DIR, BUILD_SYSTEM_HEADER_DIR,
12671 target_header_dir): Set correctly.
12672 * configure: Regenerated.
12673 * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
12674 (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
12675 instead of SYSTEM_HEADER_DIR.
12677 2017-04-28 Jan Hubicka <hubicka@ucw.cz>
12679 * ipa-cp.c (perform_estimation_of_a_value): Turn time to sreal.
12680 (estimate_local_effects): Likewise.
12681 * ipa-inline.c (compute_inlined_call_time, want_inline_small_function_p,
12682 edge_badness, inline_small_functions, dump_overall_stats): LIkewise.
12683 * ipa-inline.h (edge_growth_cache_entry, estimate_time_after_inlining,
12684 estimate_ipcp_clone_size_and_time, do_estimate_edge_time,
12685 do_estimate_edge_time, estimate_edge_time): Likewise.
12686 * ipa-inline-analysis.c (estimate_node_size_and_time,
12687 estimate_ipcp_clone_size_and_time, do_estimate_edge_time): Likewise.
12688 (estimate_time_after_inlining): Remove.
12690 2017-04-28 Martin Liska <mliska@suse.cz>
12692 * doc/gcov.texi: Enhance documentation of gcov.
12694 2017-04-28 Martin Liska <mliska@suse.cz>
12696 * doc/gcov.texi: Sort options in alphabetic order.
12697 * doc/gcov-dump.texi: Likewise.
12698 * doc/gcov-tool.texi: Likewise.
12699 * gcov.c (print_usage): Likewise.
12700 * gcov-dump.c (print_usage): Likewise.
12701 * gcov-tool.c (print_merge_usage_message): Likewise.
12702 (print_rewrite_usage_message): Likewise.
12703 (print_overlap_usage_message): Likewise.
12705 2017-04-28 Martin Liska <mliska@suse.cz>
12707 PR gcov-profile/53915
12708 * gcov.c (format_gcov): Print 'NAN %' when top > bottom.
12710 2017-04-28 Martin Liska <mliska@suse.cz>
12712 PR gcov-profile/79891
12713 * gcov.c (add_line_counts): Assign BBs to lines just if the BB
12714 is marked by compiler as living on a line.
12715 (get_cycles_count): Remove usage of the union.
12716 (output_intermediate_file): Likewise.
12717 (find_source): Fix GNU coding style.
12718 (accumulate_line_counts): Remove old non-all block mode.
12719 (output_lines): Remove usage of the union.
12720 * profile.c (output_location): Include all BBs, even if
12721 belonging to a same line (and file) as a previous BB.
12723 2017-04-28 Martin Liska <mliska@suse.cz>
12725 * gcov.c (process_args): Handle new argument 'w'.
12726 (read_graph_file): Assign ID to BBs.
12727 (output_branch_count): Display BB # if verbose flag is set.
12728 (output_lines): Likewise for arcs.
12729 (print_usage): Add '--verbose' option help.
12730 * doc/gcov.texi: Document --verbose (-w) option.
12732 2017-04-28 Martin Liska <mliska@suse.cz>
12734 * gcov.c (struct block_location_info): New struct.
12735 (process_file): Fill up the new structure.
12736 (read_graph_file): Replace usage of encoding by the newly added
12738 (add_line_counts): Likewise.
12739 (accumulate_line_counts): Remove usage of the union.
12740 (function_info::function_info): New function.
12741 (function_info::~function_info): Likewise.
12742 (process_file): Call delete instead of release_function.
12743 (release_function): Release the function.
12744 (release_structures): Call delete instead of release_function.
12745 (solve_flow_graph): Replace usage of num_blocks.
12746 (find_exception_blocks): Likewise.
12747 (output_lines): Fix GNU coding style.
12749 2017-04-28 Martin Liska <mliska@suse.cz>
12752 * coverage.c (coverage_remove_note_file): New function.
12753 * coverage.h: Declare the function.
12754 * toplev.c (finalize): Clean if an error has been seen.
12756 2017-04-28 Martin Liska <mliska@suse.cz>
12758 PR gcov-profile/80031
12759 * gcov-dump.c (tag_blocks): Just print number of basic blocks.
12760 * gcov-io.h (GCOV_TAG_BLOCKS_NUM): Remove unused macro.
12761 * gcov.c (read_graph_file): Read just number of blocks.
12762 * profile.c (branch_prob): Do not stream 0 flags per a basic
12765 2017-04-28 Martin Liska <mliska@suse.cz>
12767 * gcov-dump.c (tag_*): Add new argument to declarations.
12768 (dump_gcov_file): Likewise.
12769 (tag_blocks): Add and use new argument depth.
12770 (tag_arcs): Likewise.
12771 (tag_lines): Likewise.
12772 (tag_counters): Likewise.
12773 (tag_summary): Likewise.
12774 (dump_working_sets): Use depth to do a proper indentation.
12776 2017-04-28 Jakub Jelinek <jakub@redhat.com>
12779 * cgraph.h (symtab_node::debug_symtab): No longer inline.
12780 * symtab.c (symtab_node::debug_symtab): Move definition here.
12782 2017-04-28 Richard Biener <rguenther@suse.de>
12784 * lto-streamer.h (LTO_major_version): Bump to 7.
12786 2017-04-28 Richard Biener <rguenther@suse.de>
12788 * tree-vrp.c (assert_info): New struct.
12789 (add_assert_info): New helper.
12790 (register_edge_assert_for_2): Refactor to add asserts to a vector
12792 (register_edge_assert_for_1): Likewise.
12793 (register_edge_assert_for): Likewise.
12794 (finish_register_edge_assert_for): New helper actually registering
12795 asserts where live on edge.
12796 (find_conditional_asserts): Adjust.
12797 (find_switch_asserts): Likewise.
12798 (evrp_dom_walker::try_find_new_range): Generalize.
12799 (evrp_dom_walker::before_dom_children): Use register_edge_assert_for.
12801 2017-04-27 Marek Polacek <polacek@redhat.com>
12804 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Convert
12805 arg10 and arg11 to itype.
12807 2017-04-27 Jonathan Wakely <jwakely@redhat.com>
12809 * doc/extend.texi (Object Size Checking): Improve grammar.
12811 2017-04-27 Richard Earnshaw <rearnsha@arm.com>
12814 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Ensure
12815 that the logic for permitting reciprocal estimates matches that
12818 2017-04-27 Jakub Jelinek <jakub@redhat.com>
12821 * tree.c (type_cache_hasher::equal): Only compare
12822 TYPE_TYPELESS_STORAGE flag on non-aggregate element types.
12823 (build_array_type_1): Only hash TYPE_TYPELESS_STORAGE flag on
12824 non-aggregate element types.
12825 * tree.h (TYPE_TYPELESS_STORAGE): Fix comment typo, add more details
12826 about the flag on ARRAY_TYPEs in the comment, formatting fix.
12828 2017-04-27 Richard Biener <rguenther@suse.de>
12830 PR middle-end/80533
12831 * emit-rtl.c (set_mem_attributes_minus_bitpos): When
12832 stripping ARRAY_REFs from MEM_EXPR make sure we're not
12833 keeping a reference to a trailing array.
12835 2017-04-27 Richard Biener <rguenther@suse.de>
12837 PR middle-end/80539
12838 * tree-chrec.c (chrec_fold_plus_poly_poly): Deal with not
12839 being in loop-closed SSA form conservatively.
12840 (chrec_fold_multiply_poly_poly): Likewise.
12842 2017-04-27 Tamar Christina <tamar.christina@arm.com>
12844 PR middle-end/79665
12845 * expr.c (expand_expr_real_2): Move TRUNC_MOD_EXPR, FLOOR_MOD_EXPR,
12846 CEIL_MOD_EXPR, ROUND_MOD_EXPR cases.
12848 2017-04-27 Jakub Jelinek <jakub@redhat.com>
12851 * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): Remove.
12852 (aarch64_function_arg_alignment): Return unsigned int again, but still
12853 ignore TYPE_FIELDS chain decls other than FIELD_DECLs.
12854 (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
12855 Don't emit -Wpsabi note.
12856 (aarch64_function_arg_boundary): Likewise.
12857 (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
12860 2017-04-26 Nathan Sidwell <nathan@acm.org>
12862 * tree.h (crc32_unsigned_n): Declare.
12863 (crc32_unsigned, crc32_unsigned): Make inline.
12864 * tree.c (crc32_unsigned_bits): Replace with ...
12865 (crc32_unsigned_n): ... this.
12866 (crc32_unsigned, crc32_byte): Remove.
12867 (crc32_string): Remove unnecessary braces.
12869 2017-04-25 Jan Hubicka <hubicka@ucw.cz>
12871 * ipa-cp.c (estimate_local_effects): Convert sreal to int.
12872 * ipa-inline-analysis.c (MAX_TIME): Remove.
12873 (account_size_time): Use sreal for time.
12874 (dump_inline_summary): Update.
12875 (estimate_function_body_sizes): Update.
12876 (estimate_edge_size_and_time): Update.
12877 (estimate_calls_size_and_time): Update.
12878 (estimate_node_size_and_time): Update.
12879 (inline_merge_summary): Update.
12880 (inline_update_overall_summary): Update.
12881 (estimate_time_after_inlining): Update.
12882 (inline_read_section): Update.
12883 (inline_write_summary): Update.
12884 * ipa-inline.c (compute_uninlined_call_time): Update.
12885 (compute_inlined_call_time): Update.
12886 (recursive_inlining): Update.
12887 (inline_small_functions): Update.
12888 (dump_overall_stats): Update.
12889 * ipa-inline.h: Include sreal.h.
12890 (size_time_entry): Turn time to sreal.
12891 (inline_summary): Turn self_time nad time to sreal.
12893 2017-04-25 Jan Hubicka <hubicka@ucw.cz>
12895 * sreal.c: Include backend.h, tree.h, gimple.h, cgraph.h and
12897 (sreal::stream_out, sreal::stream_in): New.
12898 * sreal.h (sreal::stream_out, sreal::stream_in): Declare.
12900 2017-04-25 Jakub Jelinek <jakub@redhat.com>
12902 * Makefile.in (s-options): Invoke opt-gather.awk with LC_ALL=C in the
12905 2017-04-25 Uros Bizjak <ubizjak@gmail.com>
12908 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
12910 (dimode_scalar_chain::compute_convert_gain): Ditto.
12911 (dimode_scalar_chain::make_vector_copies): Ditto.
12912 (dimode_scalar_chain::convert_reg): Ditto.
12913 (dimode_scalar_chain::convert_insn): Ditto.
12914 * config/i386/sse.md (VI24_AVX512BW_1): Remove mode iterator.
12915 (VI248_AVX512BW_1): New mode iterator.
12916 (<mask_codefor>ashr<mode>3<mask_name>): Merge insn pattern with
12917 <mask_codefor>ashrv2di3<mask_name> insn using VI248_AVX512BW_1
12920 2017-04-25 Martin Sebor <msebor@redhat.com>
12922 PR tree-optimization/80497
12923 * gimple-ssa-sprintf.c (get_int_range): Avoid assuming all integer
12924 constants are representable in HOST_WIDE_INT.
12925 (parse_directive): Ditto.
12927 2017-04-25 Martin Sebor <msebor@redhat.com>
12930 * dominance.c (dom_info::m_n_basic_blocks): Change type to unsigned.
12931 (new_zero_array): Adjust signature.
12932 (dom_info::dom_init): Used unsigned rather that size_t.
12933 (dom_info::dom_info): Same.
12935 2017-04-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12936 Jakub Jelinek <jakub@redhat.com>
12939 * config/arm/arm.c: Include gimple.h.
12940 (aapcs_layout_arg): Emit -Wpsabi note if arm_needs_doubleword_align
12941 returns negative, increment ncrn only if it returned positive.
12942 (arm_needs_doubleword_align): Return int instead of bool,
12943 ignore DECL_ALIGN of non-FIELD_DECL TYPE_FIELDS chain
12944 members, but if there is any such non-FIELD_DECL
12945 > PARM_BOUNDARY aligned decl, return -1 instead of false.
12946 (arm_function_arg): Emit -Wpsabi note if arm_needs_doubleword_align
12947 returns negative, increment nregs only if it returned positive.
12948 (arm_setup_incoming_varargs): Likewise.
12949 (arm_function_arg_boundary): Emit -Wpsabi note if
12950 arm_needs_doubleword_align returns negative, return
12951 DOUBLEWORD_ALIGNMENT only if it returned positive.
12953 2017-04-25 Marek Polacek <polacek@redhat.com>
12956 * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
12957 first argument to type.
12959 2017-04-25 Bill Seurer <seurer@linux.vnet.ibm.com>
12962 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Change
12963 type checks to test for compatibility instead of equality.
12965 2017-04-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12966 Jakub Jelinek <jakub@redhat.com>
12969 * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): New
12971 (aarch64_function_arg_alignment): Return aarch64_fn_arg_alignment
12972 struct. Ignore DECL_ALIGN of decls other than FIELD_DECL for
12973 the alignment computation, but return their maximum in warn_alignment.
12974 (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
12975 Emit a -Wpsabi note if warn_alignment is 16 bytes, but alignment
12977 (aarch64_function_arg_boundary): Likewise. Simplify using MIN/MAX.
12978 (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
12981 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
12983 * config/arc/simdext.md (dmpyh): Fix typo.
12985 2017-04-25 Richard Biener <rguenther@suse.de>
12987 PR tree-optimization/80492
12988 * alias.c (compare_base_decls): Handle registers with asm
12989 specification conservatively.
12990 * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
12991 compare_base_decls returning dont-know properly.
12993 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
12995 * config/arc/arc.c (LEGITIMATE_OFFSET_ADDRESS_P): Delete macro.
12996 (legitimate_offset_address_p): New function.
12997 (arc_legitimate_address_p): Use above function.
12999 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
13001 * config/arc/arc.c (arc_output_mi_thunk): Emit PIC calls.
13003 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
13005 * config/arc/arc.c (arc_conditional_register_usage): Use ACCL,
13006 ACCH registers whenever they are available.
13008 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
13010 * config/arc/arc.c (arc_conditional_register_usage): Make D0, D1
13011 double regs fix when not used.
13013 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
13015 * config/arc/arc.h (REGNO_OK_FOR_BASE_P): Consider also extension
13017 (REG_OK_FOR_INDEX_P_NONSTRICT): Likewise.
13018 (REG_OK_FOR_BASE_P_NONSTRICT): Likewise.
13020 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
13022 * config/arc/arc.c (arc_output_addsi): Check for h-register class
13023 when emitting short ADD instructions.
13025 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
13027 * config/arc/arc.md (cmpsi_cc_insn_mixed): Use 'h' register
13029 (cmpsi_cc_c_insn): Likewise.
13030 (cbranchsi4_scratch): Compute proper instruction length using
13031 compact_hreg_operand.
13032 * config/arc/predicates.md (compact_hreg_operand): New predicate.
13034 2017-04-25 Richard Biener <rguenther@suse.de>
13036 PR middle-end/80509
13037 * passes.c (pass_manager::pass_manager): Initialize
13038 m_name_to_pass_map.
13040 2017-04-25 Richard Biener <rguenther@suse.de>
13042 PR tree-optimization/79201
13043 * tree-ssa-sink.c (statement_sink_location): Handle calls.
13045 2017-04-25 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13048 * config/s390/vector.md: Split MEM->GPR vector moves for
13049 non-s_operand addresses.
13051 2017-04-25 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13054 * config/s390/predicates.md (reload_const_wide_int_operand): New
13056 * config/s390/s390.md ("movti"): Remove d/P alternative.
13057 ("movti_bigconst"): New pattern definition.
13059 2017-04-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
13062 * s390-protos.h (s390_expand_cs_hqi): Removed.
13063 (s390_expand_cs, s390_expand_atomic_exchange_tdsi): New prototypes.
13064 * config/s390/s390.c (s390_emit_compare_and_swap): Handle all integer
13065 modes as well as CCZ1mode and CCZmode.
13066 (s390_expand_atomic_exchange_tdsi, s390_expand_atomic): Adapt to new
13067 signature of s390_emit_compare_and_swap.
13068 (s390_expand_cs_hqi): Likewise, make static.
13069 (s390_expand_cs_tdsi): Generate an explicit compare before trying
13070 compare-and-swap, in some cases.
13071 (s390_expand_cs): Wrapper function.
13072 (s390_expand_atomic_exchange_tdsi): New backend specific expander for
13074 (s390_match_ccmode_set): Allow CCZmode <-> CCZ1 mode.
13075 * config/s390/s390.md ("atomic_compare_and_swap<mode>"): Merge the
13076 patterns for small and large integers. Forbid symref memory operands.
13077 Move expander to s390.c. Require cc register.
13078 ("atomic_compare_and_swap<DGPR:mode><CCZZ1:mode>_internal")
13079 ("*atomic_compare_and_swap<TDI:mode><CCZZ1:mode>_1")
13080 ("*atomic_compare_and_swapdi<CCZZ1:mode>_2")
13081 ("*atomic_compare_and_swapsi<CCZZ1:mode>_3"): Use s_operand to forbid
13082 symref memory operands. Remove CC mode and call s390_match_ccmode
13084 ("atomic_exchange<mode>"): Allow and implement all integer modes.
13086 2017-04-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
13088 * config/s390/s390.md (define_peephole2): New peephole to help
13089 combining the load-and-test pattern with volatile memory.
13091 2017-04-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
13093 * config/s390/s390.md ("cstorecc4"): Use load-on-condition and deal
13094 with CCZmode for TARGET_Z196.
13096 2017-04-25 Jakub Jelinek <jakub@redhat.com>
13098 PR rtl-optimization/80501
13099 * combine.c (make_compound_operation_int): Set subreg_code to SET
13100 even for AND with mask of the sign bit of mode.
13102 PR rtl-optimization/80500
13103 * loop-unroll.c (combine_var_copies_in_loop_exit): Call copy_rtx on
13104 sum's initial value.
13106 2017-04-25 Julian Brown <julian@codesourcery.com>
13107 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
13109 * config/aarch64/thunderx2t99.md (thunderx2t99_crc): New Reservation.
13111 2017-04-25 Marc Glisse <marc.glisse@inria.fr>
13113 * fold-const.c (tree_single_nonzero_warnv_p): Handle SSA_NAME.
13115 2017-04-25 Julian Brown <julian@codesourcery.com>
13116 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
13118 * config/aarch64/thunderx2t99.md (thunderx2t99_aes): New Reservation.
13119 (thunderx2t99_sha): New Reservation.
13121 2017-04-25 Julian Brown <julian@codesourcery.com>
13122 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
13124 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Fix
13125 type for 1-element load.
13127 2017-04-24 Marc Glisse <marc.glisse@inria.fr>
13129 * match.pd (X/[ex]C CMP Y/[ex]C): New transformation.
13131 2017-04-24 Martin Jambor <mjambor@suse.cz>
13133 PR tree-optimization/80293
13134 * tree-sra.c (scalarizable_type_p): New parameter const_decl, make
13135 char arrays not totally scalarizable if it is false.
13136 (analyze_all_variable_accesses): Pass correct value in the new
13137 parameter. Add a statistics counter.
13139 2017-04-24 Jan Hubicka <hubicka@ucw.cz>
13141 PR middle-end/79931
13142 * ipa-devirt.c (dump_possible_polymorphic_call_targets): Fix ICE.
13144 2017-04-24 Richard Biener <rguenther@suse.de>
13146 PR tree-optimization/80494
13147 * tree-scalar-evolution.c (analyze_scalar_evolution_1): Bail
13148 out for complex types.
13150 2017-04-24 Richard Biener <rguenther@suse.de>
13152 * tree-ssa-sccvn.h (run_scc_vn): Adjust prototype.
13153 * tree-ssa-sccvn.c (print_scc): Print SCC size.
13154 (extract_and_process_scc_for_name): Never fail but drop SCC to varying.
13155 (DFS): Adjust and never fail.
13156 (sccvn_dom_walker::fail): Remove.
13157 (sccvn_dom_walker::before_dom_children): Adjust.
13158 (run_scc_vn): Likewise and never fail.
13159 * tree-ssa-pre.c (pass_pre::execute): Adjust.
13160 (pass_fre::execute): Likewise.
13162 2017-04-24 Richard Biener <rguenther@suse.de>
13164 PR tree-optimization/79725
13165 * tree-ssa-sink.c (statement_sink_location): Return whether
13166 failure reason was zero uses. Move that check later.
13167 (sink_code_in_bb): Deal with zero uses by removing the stmt
13170 2017-04-24 Richard Biener <rguenther@suse.de>
13173 * tree-ssa-uninit.c (warn_uninitialized_vars): Handle some
13174 pointer-based references.
13176 2017-04-24 Richard Biener <rguenther@suse.de>
13179 * pass_manager.h (pass_manager::operator new): Remove.
13180 (pass_manager::operator delete): Likewise.
13181 * passes.c (pass_manager::operator new): Remove.
13182 (pass_manager::operator delete): Likewise.
13183 (pass_manager::pass_manager): Zero individual pass members.
13185 2017-04-23 Uros Bizjak <ubizjak@gmail.com>
13188 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p)
13189 <case ASHIFT, case LSHIFTRT>: Also consider variable shifts.
13190 Check "XEXP (src, 1)" operand here.
13191 <case PLUS, case MINUS, case IOR, case XOR, case AND>:
13192 Check "XEXP (src, 1)" operand here.
13193 (dimode_scalar_chain::make_vector_copies): Detect count register
13194 of a shift instruction. Zero extend count register from QImode
13195 to DImode to satisfy vector shift pattern count operand predicate.
13196 Substitute vector shift count operand with a DImode copy.
13197 (dimode_scalar_chain::convert_reg): Ditto, zero-extend from
13200 2017-04-21 Uros Bizjak <ubizjak@gmail.com>
13202 * config/i386/i386.md (*extzvqi_mem_rex64): Move above *extzv<mode>.
13203 Remove UNSPEC_NOREX_MEM tag. Update corresponding peephole2 pattern.
13204 (*insvqi_1_mem_rex64): Move above insv<mode>_1. Remove
13205 UNSPEC_NOREX_MEM tag. Update corresponding peephole2 pattern.
13206 (UNSPEC_NOREX_MEM): Remove definition.
13208 2017-04-21 Richard Biener <rguenther@suse.de>
13210 PR tree-optimization/79547
13211 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
13212 Handle strlen, strcmp, strncmp, strcasecmp, strncasecmp, memcmp,
13213 bcmp, strspn, strcspn, __builtin_object_size and __builtin_constant_p
13214 without any constraints.
13216 2017-04-21 Richard Biener <rguenther@suse.de>
13218 PR tree-optimization/78847
13219 * fold-const.c (split_tree): Handle POINTER_PLUS_EXPR.
13221 2017-04-21 Richard Biener <rguenther@suse.de>
13223 * tree.h (build_qualified_type): Annotate with CXX_MEM_STAT_INFO.
13224 (build_distinct_type_copy): Likewise.
13225 (build_variant_type_copy): Likewise.
13226 * tree.c (build_qualified_type): Pass down mem-stat info.
13227 (build_distinct_type_copy): Likewise.
13228 (build_variant_type_copy): Likewise.
13230 2017-04-21 Richard Biener <rguenther@suse.de>
13232 PR tree-optimization/80237
13233 * tree-ssa-pre.c (find_leader_in_sets): Add third set argument,
13235 (phi_translate_1): Also allow a leader in AVAIL_OUT of pred
13236 for a simplified result.
13238 2016-04-21 Richard Biener <rguenther@suse.de>
13240 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Do not require
13241 sth as strict as a simple_iv but a chrec without symbols and an
13242 operand defined in the loop we are peeling (and not some subloop).
13243 (propagate_constants_for_unrolling): Propagate all constants.
13245 2017-04-20 Uros Bizjak <ubizjak@gmail.com>
13248 * config/i386/i386.c (print_reg): Remove assert for disalowed
13249 regno values, call output_operand_lossage instead.
13251 2017-04-20 Uros Bizjak <ubizjak@gmail.com>
13254 * config/i386/constraints.md (Yc): New register constraint.
13255 * config/i386/i386.md (*float<SWI48:mode><MODEF:mode>2_mixed):
13256 Use Yc constraint for alternative 2 of operand 0. Remove
13257 preferred_for_speed attribute.
13259 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
13261 * omp-low.c (lower_lastprivate_clauses): Correct handling of linear and
13262 lastprivate clauses in SIMT case.
13264 2017-04-20 Volker Reichelt <v.reichelt@netcologne.de>
13266 * doc/invoke.texi (-Wextra-semi): Document new warning option.
13268 2017-04-20 Richard Biener <rguenther@suse.de>
13270 PR tree-optimization/57796
13271 * tree-vect-stmts.c (vect_model_store_cost): Cost scatters
13272 as N scalar stores.
13273 (vect_model_load_cost): Cost gathers as N scalar loads.
13275 2017-04-20 Richard Biener <rguenther@suse.de>
13277 * ggc-page.c (ggc_allocated_p): Rename to ...
13278 (safe_lookup_page_table_entry): ... this and return the lookup
13280 (gt_ggc_m_S): Use safe_lookup_page_table_entry.
13282 2017-04-20 Richard Biener <rguenther@suse.de>
13284 PR tree-optimization/80453
13285 * tree-ssa-sccvn.h (struct vn_phi_s): Add cclhs and ccrhs members.
13286 * tree-ssa-sccvn.c (cond_stmts_equal_p): Use recorded lhs and rhs
13287 from the conditions.
13288 (vn_phi_eq): Pass them down.
13289 (vn_phi_lookup): Record them.
13290 (vn_phi_insert): Likewise.
13292 2017-04-20 Matthew Fortune <matthew.fortune@imgtec.com>
13294 * config/mips/mips.c (mips_expand_vec_perm_const): Re-fix
13295 uninitialized variable warning to avoid buffer overrun.
13297 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
13300 * doc/invoke.texi (-Wmissing-field-initializers): Mention that warning
13301 is suppressed for '{ 0 }' in C.
13303 2017-04-20 Jakub Jelinek <jakub@redhat.com>
13305 * BASE-VER: Set to 8.0.0.
13307 2017-04-20 Thomas Preud'homme <thomas.preudhomme@arm.com>
13309 * config/arm/arm.c (arm_elf_asm_cdtor): Create non-default
13310 priority .init_array and .fini_array section with SECTION_NOTYPE
13313 2017-04-20 Jakub Jelinek <jakub@redhat.com>
13315 PR middle-end/80423
13316 * tree.h (build_array_type): Add typeless_storage default argument.
13317 * tree.c (type_cache_hasher::equal): Also compare
13318 TYPE_TYPELESS_STORAGE flag for ARRAY_TYPEs.
13319 (build_array_type): Add typeless_storage argument, set
13320 TYPE_TYPELESS_STORAGE to it, if shared also hash it, and pass to
13322 (build_nonshared_array_type): Adjust build_array_type_1 caller.
13323 (build_array_type): Likewise. Add typeless_storage argument.
13325 2017-04-19 Eric Botcazou <ebotcazou@adacore.com>
13326 Jakub Jelinek <jakub@redhat.com>
13328 PR tree-optimization/80426
13329 * tree-vrp.c (extract_range_from_binary_expr_1): For an additive
13330 operation on symbolic operands, also compute the overflow for the
13331 invariant part when the operation degenerates into a negation.
13333 2017-04-19 Jakub Jelinek <jakub@redhat.com>
13336 * dwarf2out.c (modified_type_die, gen_type_die_with_usage):
13337 Check for t with zero TYPE_QUALS_NO_ADDR_SPACE.
13340 * tree-ssa-loop-manip.c (find_uses_to_rename_def): Ignore debug uses.
13342 2017-04-19 Georg-Johann Lay <avr@gjlay.de>
13345 * config/avr/avr.c (tree.h): Include it.
13346 (cgraph.h): Include it.
13347 (avr_encode_section_info): Don't warn for uninitialized progmem
13348 variable if it's just an alias.
13350 2017-04-19 Richard Biener <rguenther@suse.de>
13353 * auto-profile.c (afdo_vpt_for_early_inline): Update SSA
13354 when needed by AutoPGO.
13356 2017-04-19 Paulo J. Matos <paulo@matos-sorge.com>
13359 * doc/lto.texi: Remove an extra 'that'.
13361 2017-04-19 Segher Boessenkool <segher@kernel.crashing.org>
13363 PR rtl-optimization/80429
13364 * ira.c (split_live_ranges_for_shrink_wrap): Don't split regs that
13365 are only used in debug insns.
13367 2017-04-19 Eric Botcazou <ebotcazou@adacore.com>
13368 Vladimir Makarov <vmakarov@redhat.com>
13370 * config/sparc/predicates.md (input_operand): Add comment. Return
13371 true for any memory operand when LRA is in progress.
13372 * config/sparc/sparc.c (sparc_expand_move): Minor formatting fix.
13374 2017-04-18 Jeff Law <law@redhat.com>
13377 * mips.md ({return,simple_return}_internal): Do not overwrite
13380 2017-04-18 Jakub Jelinek <jakub@redhat.com>
13382 PR tree-optimization/80443
13383 * tree-vrp.c (intersect_ranges): For signed 1-bit precision type,
13384 instead of adding 1, subtract -1 and similarly instead of subtracting
13387 2017-04-18 Richard Sandiford <richard.sandiford@arm.com>
13389 PR rtl-optimization/80357
13390 * haifa-sched.c (tmp_bitmap): New variable.
13391 (model_recompute): Handle duplicate use records.
13392 (alloc_global_sched_pressure_data): Initialize tmp_bitmap.
13393 (free_global_sched_pressure_data): Free it.
13395 2017-04-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
13398 2017-02-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
13399 * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
13400 (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
13401 instead of SYSTEM_HEADER_DIR.
13403 2017-04-18 Jeff Law <law@redhat.com>
13405 PR middle-end/80422
13406 * cfgcleanup.c (try_crossjump_to_edge): Verify SRC1 and SRC2 have
13407 predecessors after walking up the insn chain.
13409 2017-04-18 Jakub Jelinek <jakub@redhat.com>
13412 * dwarf2out.c (modified_type_die): Try harder not to emit internal
13413 sizetype type into debug info.
13415 2017-04-18 Michael Meissner <meissner@linux.vnet.ibm.com>
13418 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Eliminate
13419 unneeded test for TARGET_UPPER_REGS_SF.
13420 * config/rs6000/vsx.md (vsx_extract_v4sf_var): Likewise.
13422 2017-04-18 Jakub Jelinek <jakub@redhat.com>
13425 * sancov.c (sancov_pass): Use gsi_start_nondebug_after_labels_bb
13426 instead of gsi_after_labels.
13428 2017-04-18 Jeff Law <law@redhat.com>
13430 * regcprop.c (maybe_mode_change): Avoid creating copies of the
13434 2017-04-13 Jeff Law <law@redhat.com>
13435 * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
13436 in operands[1] if it is a MEM and TARGET_MIPS16 is active.
13438 2017-04-18 Georg-Johann Lay <avr@gjlay.de>
13441 * config/avr/avr.c (intl.h): Include it.
13442 (avr_pgm_check_var_decl) [reason]: Wrap diagnostic snippets into _().
13444 2017-04-18 Martin Liska <mliska@suse.cz>
13446 PR gcov-profile/78783
13447 * gcov-tool.c (gcov_output_files): Validate that destination
13448 file is either removed by the tool or by a user.
13450 2017-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
13451 Guy Benyei <guybe@mellanox.com>
13453 * config/arc/arc.c (arc_reorg): Move loop_end_id into a more local
13454 block, and do not negate it, the stored id is already negative.
13456 2017-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
13458 * config/arc/arc.md (doloop_begin_i): Use @pcl assembler syntax.
13460 2017-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
13463 * config/rs6000/rs6000-cpus.def (OTHER_P9_VECTOR_MASKS): Define
13464 masks of options that should be turned off if the VSX vector
13465 options are turned off.
13466 (OTHER_P8_VECTOR_MASKS): Likewise.
13467 (OTHER_VSX_VECTOR_MASKS): Likewise.
13468 * config/rs6000/rs6000.c (rs6000_option_override_internal): Call
13469 rs6000_disable_incompatible_switches to validate no type switches
13471 (rs6000_incompatible_switch): New function to disallow turning on
13472 other vector options if -mno-vsx, -mno-power8-vector, or
13473 -mno-power9-vector are specified.
13475 2017-04-14 Claudiu Zissulescu <claziss@synopsys.com>
13477 * config/arc/arc.h (CRT_CALL_STATIC_FUNCTION): Use long calls.
13479 2017-04-14 Claudiu Zissulescu <claziss@synopsys.com>
13481 * config/arc/arc-protos.h (arc_decl_pretend_args): Remove.
13482 * config/arc/arc.c (arc_decl_pretend_args): Likewise.
13483 * config/arc/arc.h (CFA_FRAME_BASE_OFFSET): Likewise.
13484 (ARG_POINTER_CFA_OFFSET): Likewise.
13486 2017-04-14 Claudiu Zissulescu <claziss@synopsys.com>
13488 * config/arc/arc.c (arc_mode_dependent_address_p): Relax
13489 conditions to take advantage of various optimizations.
13491 2017-04-13 Jeff Law <law@redhat.com>
13493 * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
13494 in operands[1] if it is a MEM and TARGET_MIPS16 is active.
13495 (zero_extendsidi2_dext): Likewise.
13497 2017-04-13 Jakub Jelinek <jakub@redhat.com>
13500 * fold-const.c (fold_ternary_loc): Revert
13501 use op0 instead of fold_convert_loc (loc, type, arg0) part of
13504 2017-04-13 Vladimir Makarov <vmakarov@redhat.com>
13506 PR rtl-optimization/80343
13507 * lra-remat.c (update_scratch_ops): Assign original hard reg to
13508 new scratch pseudo.
13510 2017-04-13 Denis Khalikov <d.khalikov@partner.samsung.com>
13513 * ubsan.c (ubsan_expand_bounds_ifn): Pass original index
13514 to ubsan_encode_value.
13516 2017-04-13 Jeff Law <law@redhat.com>
13518 * reload1.c (eliminate_regs_1): Call gen_rtx_raw_SUBREG for SUBREGs
13519 appearing in DEBUG_INSNs.
13521 2017-04-13 Martin Liska <mliska@suse.cz>
13523 PR gcov-profile/80413
13524 * gcov-io.c (gcov_write_string): Copy to buffer just when
13525 allocated size is greater than zero.
13527 2017-04-13 Jakub Jelinek <jakub@redhat.com>
13530 * dwarf2out.c (decls_for_scope): Ignore declarations of
13531 current_function_decl in BLOCK_NONLOCALIZED_VARS.
13533 2017-04-12 Jan Hubicka <hubicka@ucw.cz>
13536 * ipa-visibility.c (non_local_p): Fix typos.
13537 (localize_node): When localizing symbol in same comdat group,
13538 dissolve the group only when we know external symbols are going
13540 (function_and_variable_visibility): Do not localize DECL_EXTERNAL.
13542 2017-04-12 Jakub Jelinek <jakub@redhat.com>
13544 PR tree-optimization/79390
13545 * optabs.c (emit_conditional_move): If the preferred op2/op3 operand
13546 order does not result in usable sequence, retry with reversed operand
13552 * fold-const.c (fold_ternary_loc): Use op1 instead of arg1 as argument
13553 to fold_build2_loc. Convert TREE_OPERAND (tem, 0) to type. Use
13554 op0 instead of fold_convert_loc (loc, type, arg0).
13556 2017-04-12 Jeff Law <law@redhat.com>
13558 * genattrtab.c (write_eligible_delay): Verify DELAY_INSN still
13559 has a delay slot in the generated code.
13561 * config/cris/cris.md (cris_preferred_reload_class): Return
13562 GENNONACR_REGS rather than GENERAL_REGS.
13564 2017-04-12 Jakub Jelinek <jakub@redhat.com>
13567 * expr.c <CASE_CONVERT>: For EXPAND_INITIALIZER determine SIGN_EXTEND
13568 vs. ZERO_EXTEND based on signedness of treeop0's type rather than
13569 signedness of the result type.
13571 2017-04-12 Richard Biener <rguenther@suse.de>
13572 Jeff Law <law@redhat.com>
13574 PR tree-optimization/80359
13575 * tree-ssa-dse.c (maybe_trim_partially_dead_store): Do not
13576 trim stores to TARGET_MEM_REFs.
13578 2017-04-12 Richard Biener <rguenther@suse.de>
13580 PR tree-optimization/79390
13581 * gimple-ssa-split-paths.c (is_feasible_trace): Restrict
13582 threading case even more.
13584 2017-04-12 Segher Boessenkool <segher@kernel.crashing.org>
13587 * config/rs6000/sync.md (atomic_load<mode>, atomic_store<mode): Test
13588 for quad_address_p for TImode, instead of just not indexed_address.
13590 2017-04-12 Richard Biener <rguenther@suse.de>
13591 Bernd Edlinger <bernd.edlinger@hotmail.de>
13593 PR middle-end/79671
13594 * alias.c (component_uses_parent_alias_set_from): Handle
13595 TYPE_TYPELESS_STORAGE.
13596 (get_alias_set): Likewise.
13597 * tree-core.h (tree_type_common): Add typeless_storage flag.
13598 * tree.h (TYPE_TYPELESS_STORAGE): New macro.
13599 * stor-layout.c (place_union_field): Set TYPE_TYPELESS_STORAGE
13600 for types containing members with TYPE_TYPELESS_STORAGE.
13601 (place_field): Likewise.
13602 (layout_type): Likewise for ARRAY_TYPE.
13603 * lto-streamer-out.c (hash_tree): Hash TYPE_TYPELESS_STORAGE.
13604 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Stream
13605 TYPE_TYPELESS_STORAGE.
13606 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
13608 2017-04-12 Jakub Jelinek <jakub@redhat.com>
13611 * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
13612 first argument to type.
13614 2017-04-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13618 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
13619 CONST0_RTX (mode) rather than const0_rtx where appropriate.
13620 (rs6000_expand_binop_builtin): Likewise.
13621 (rs6000_expand_ternop_builtin): Likewise; also add missing
13622 vsx_xxpermdi_* variants; also fix typo (arg1 => arg2) for
13623 vshasigma built-ins.
13624 * doc/extend.texi: Document that vec_xxpermdi's third argument
13625 must be a constant.
13627 2017-04-11 Uros Bizjak <ubizjak@gmail.com>
13629 * config/i386/i386.c (dimode_scalar_chain::compute_convert_gain):
13630 Use shift_const cost parameter when calculating gain of STV shifts.
13632 2017-04-11 Vladimir Makarov <vmakarov@redhat.com>
13634 PR rtl-optimization/70478
13635 * lra-constraints.c (process_alt_operands): Check memory for
13636 disfavoring memory insn operand.
13638 2017-04-11 Jakub Jelinek <jakub@redhat.com>
13640 PR middle-end/80100
13641 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Perform
13642 left shift in unsigned HOST_WIDE_INT type.
13644 PR rtl-optimization/80385
13645 * simplify-rtx.c (simplify_unary_operation_1): Don't transform
13646 (not (neg X)) into (plus X -1) for complex or non-integral modes.
13649 * omp-low.c (scan_omp_task): Don't optimize away empty tasks
13650 if they have any depend clauses.
13652 2017-04-11 Martin Liska <mliska@suse.cz>
13655 * cgraph.c (cgraph_node::dump): Dump calls_comdat_local.
13656 * ipa-split.c (split_function): Create a local comdat symbol
13657 if caller is in a comdat group.
13659 2017-04-11 Martin Liska <mliska@suse.cz>
13662 * ipa-cp.c (determine_versionability): Handle calls_comdat_local
13665 2017-04-11 Martin Sebor <msebor@redhat.com>
13667 PR middle-end/80364
13668 * gimple-ssa-sprintf.c (get_int_range): Remove second argument and
13669 always use the int type. Use INTEGRAL_TYPE_P() rather than testing
13671 (directive::set_width, directive::set_precision, format_character):
13673 (parse_directive): Use INTEGRAL_TYPE_P() rather than testing for
13676 2017-04-11 Richard Earnshaw <rearnsha@arm.com>
13679 * config/arm/arm.c (arm_configure_build_target): When -mcpu and -arch
13680 conflict, set target->arch_name instead of target->cpu_name.
13682 2017-04-11 Richard Biener <rguenther@suse.de>
13684 PR tree-optimization/80374
13685 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Use
13686 build_zero_cst, remove fold_convertible_p check again.
13688 2017-04-11 Martin Liska <mliska@suse.cz>
13691 * ubsan.c (instrument_object_size): Do not instrument register
13694 2017-04-11 Jakub Jelinek <jakub@redhat.com>
13697 * config/i386/i386-builtin-types.def
13698 (V16HI_FTYPE_V16HI_INT_V16HI_UHI_COUNT,
13699 V16HI_FTYPE_V16HI_V8HI_V16HI_UHI_COUNT,
13700 V16SI_FTYPE_V16SI_INT_V16SI_UHI_COUNT,
13701 V16SI_FTYPE_V16SI_V4SI_V16SI_UHI_COUNT,
13702 V2DI_FTYPE_V2DI_INT_V2DI_UQI_COUNT,
13703 V2DI_FTYPE_V2DI_V2DI_V2DI_UQI_COUNT,
13704 V32HI_FTYPE_V32HI_INT_V32HI_USI_COUNT,
13705 V32HI_FTYPE_V32HI_V8HI_V32HI_USI_COUNT,
13706 V4DI_FTYPE_V4DI_INT_V4DI_UQI_COUNT,
13707 V4DI_FTYPE_V4DI_V2DI_V4DI_UQI_COUNT,
13708 V4SI_FTYPE_V4SI_INT_V4SI_UQI_COUNT,
13709 V4SI_FTYPE_V4SI_V4SI_V4SI_UQI_COUNT,
13710 V8DI_FTYPE_V8DI_INT_V8DI_UQI_COUNT,
13711 V8DI_FTYPE_V8DI_V2DI_V8DI_UQI_COUNT,
13712 V8HI_FTYPE_V8HI_INT_V8HI_UQI_COUNT,
13713 V8HI_FTYPE_V8HI_V8HI_V8HI_UQI_COUNT,
13714 V8SI_FTYPE_V8SI_INT_V8SI_UQI_COUNT,
13715 V8SI_FTYPE_V8SI_V4SI_V8SI_UQI_COUNT): New function type aliases.
13716 * config/i386/i386-builtin.def (__builtin_ia32_pslld512_mask,
13717 __builtin_ia32_pslldi512_mask, __builtin_ia32_psllq512_mask,
13718 __builtin_ia32_psllqi512_mask, __builtin_ia32_psrad512_mask,
13719 __builtin_ia32_psradi512_mask, __builtin_ia32_psraq512_mask,
13720 __builtin_ia32_psraqi512_mask, __builtin_ia32_psrld512_mask,
13721 __builtin_ia32_psrldi512_mask, __builtin_ia32_psrlq512_mask,
13722 __builtin_ia32_psrlqi512_mask, __builtin_ia32_psllwi128_mask,
13723 __builtin_ia32_pslldi128_mask, __builtin_ia32_psllqi128_mask,
13724 __builtin_ia32_psllw128_mask, __builtin_ia32_pslld128_mask,
13725 __builtin_ia32_psllq128_mask, __builtin_ia32_psllwi256_mask,
13726 __builtin_ia32_psllw256_mask, __builtin_ia32_pslldi256_mask,
13727 __builtin_ia32_pslld256_mask, __builtin_ia32_psllqi256_mask,
13728 __builtin_ia32_psllq256_mask, __builtin_ia32_psradi128_mask,
13729 __builtin_ia32_psrad128_mask, __builtin_ia32_psradi256_mask,
13730 __builtin_ia32_psrad256_mask, __builtin_ia32_psraqi128_mask,
13731 __builtin_ia32_psraq128_mask, __builtin_ia32_psraqi256_mask,
13732 __builtin_ia32_psraq256_mask, __builtin_ia32_psrldi128_mask,
13733 __builtin_ia32_psrld128_mask, __builtin_ia32_psrldi256_mask,
13734 __builtin_ia32_psrld256_mask, __builtin_ia32_psrlqi128_mask,
13735 __builtin_ia32_psrlq128_mask, __builtin_ia32_psrlqi256_mask,
13736 __builtin_ia32_psrlq256_mask, __builtin_ia32_psrawi256_mask,
13737 __builtin_ia32_psraw256_mask, __builtin_ia32_psrawi128_mask,
13738 __builtin_ia32_psraw128_mask, __builtin_ia32_psrlwi256_mask,
13739 __builtin_ia32_psrlw256_mask, __builtin_ia32_psrlwi128_mask,
13740 __builtin_ia32_psrlw128_mask, __builtin_ia32_psllwi512_mask,
13741 __builtin_ia32_psllw512_mask, __builtin_ia32_psrawi512_mask,
13742 __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
13743 __builtin_ia32_psrlw512_mask): Use _COUNT suffixed function type
13745 * config/i386/i386.c (ix86_expand_args_builtin): Rename last_arg_count
13746 flag to second_arg_count, handle 4 argument function type _COUNT
13747 aliases, handle second_arg_count on second argument rather than last.
13749 2017-04-10 Jeff Law <law@redhat.com>
13751 PR tree-optimization/80374
13752 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Do not try to
13753 record anything if we can not convert integer_zero_node to the
13756 2017-04-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
13759 * config/rs6000/rs6000.c (rs6000_option_override_internal):
13760 Enhance special handling given to the TARGET_P9_MINMAX option in
13761 relation to certain other options.
13763 2017-04-10 Bin Cheng <bin.cheng@arm.com>
13765 PR tree-optimization/80153
13766 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Check and
13767 remove POINTER_PLUS_EXPR's base part directly, rather than through
13770 2017-04-10 Richard Biener <rguenther@suse.de>
13771 Bin Cheng <bin.cheng@arm.com>
13773 PR tree-optimization/80153
13774 * tree-affine.c (aff_combination_to_tree): Get base pointer from
13775 the first element of pointer type aff_tree. Build result expr in
13777 (add_elt_to_tree): Convert to type unconditionally. Remove other
13778 fold_convert calls.
13779 * tree-ssa-loop-ivopts.c (alloc_iv): Pass in consistent types.
13780 (rewrite_use_nonlinear_expr): Check invariant using iv information.
13782 2017-04-10 Richard Biener <rguenther@suse.de>
13784 * tree-ssa-structalias.c (find_func_aliases): Properly handle
13787 2017-04-10 Vladimir Makarov <vmakarov@redhat.com>
13789 PR rtl-optimization/70478
13790 * lra-constraints.c (curr_small_class_check): New.
13791 (update_and_check_small_class_inputs): New.
13792 (process_alt_operands): Update curr_small_class_check. Disfavor
13793 alternative insn memory operands. Check available regs for small
13796 2017-03-31 Matthew Fortune <matthew.fortune@imgtec.com>
13799 * config/mips/mips.opt (-mvirt): Update description.
13800 * doc/invoke.texi (-mvirt): Likewise.
13802 2017-04-10 Richard Biener <rguenther@suse.de>
13804 PR middle-end/80362
13805 * fold-const.c (fold_binary_loc): Look at unstripped ops when
13806 looking for NEGATE_EXPR in -A / -B to A / B folding.
13808 2017-04-10 Martin Liska <mliska@suse.cz>
13810 PR gcov-profile/80224
13811 * gcov.c (print_usage): Fix usage string.
13812 (get_gcov_intermediate_filename): Remove.
13813 (output_gcov_file): Use both for normal and intermediate format.
13814 (generate_results): Do not initialize special file for
13815 intermediate format.
13817 2017-04-10 Richard Biener <rguenther@suse.de>
13819 PR tree-optimization/80304
13820 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Also recurse
13823 2017-04-10 Nathan Sidwell <nathan@acm.org>
13826 * config/rs6000/rs6000.c (rs6000_vector_type): New.
13827 (rs6000_init_builtins): Use it.
13829 2016-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13831 * config/arm/arm.md (<mrc>): Add mode to SET source.
13832 (<mrrc>): Likewise.
13834 2017-04-10 Richard Biener <rguenther@suse.de>
13836 PR middle-end/80344
13837 * gimplify.c (is_gimple_mem_rhs_or_call): Allow CLOBBERs.
13839 2017-04-10 Jakub Jelinek <jakub@redhat.com>
13842 * config/i386/avx512fintrin.h (_mm512_reduce_add_epi32,
13843 _mm512_reduce_mul_epi32, _mm512_reduce_and_epi32,
13844 _mm512_reduce_or_epi32, _mm512_mask_reduce_add_epi32,
13845 _mm512_mask_reduce_mul_epi32, _mm512_mask_reduce_and_epi32,
13846 _mm512_mask_reduce_or_epi32, _mm512_reduce_min_epi32,
13847 _mm512_reduce_max_epi32, _mm512_reduce_min_epu32,
13848 _mm512_reduce_max_epu32, _mm512_mask_reduce_min_epi32,
13849 _mm512_mask_reduce_max_epi32, _mm512_mask_reduce_min_epu32,
13850 _mm512_mask_reduce_max_epu32, _mm512_reduce_add_ps,
13851 _mm512_reduce_mul_ps, _mm512_mask_reduce_add_ps,
13852 _mm512_mask_reduce_mul_ps, _mm512_reduce_min_ps, _mm512_reduce_max_ps,
13853 _mm512_mask_reduce_min_ps, _mm512_mask_reduce_max_ps,
13854 _mm512_reduce_add_epi64, _mm512_reduce_mul_epi64,
13855 _mm512_reduce_and_epi64, _mm512_reduce_or_epi64,
13856 _mm512_mask_reduce_add_epi64, _mm512_mask_reduce_mul_epi64,
13857 _mm512_mask_reduce_and_epi64, _mm512_mask_reduce_or_epi64,
13858 _mm512_reduce_min_epi64, _mm512_reduce_max_epi64,
13859 _mm512_mask_reduce_min_epi64, _mm512_mask_reduce_max_epi64,
13860 _mm512_reduce_min_epu64, _mm512_reduce_max_epu64,
13861 _mm512_mask_reduce_min_epu64, _mm512_mask_reduce_max_epu64,
13862 _mm512_reduce_add_pd, _mm512_reduce_mul_pd, _mm512_mask_reduce_add_pd,
13863 _mm512_mask_reduce_mul_pd, _mm512_reduce_min_pd, _mm512_reduce_max_pd,
13864 _mm512_mask_reduce_min_pd, _mm512_mask_reduce_max_pd): New intrinsics.
13866 2017-04-08 Vladimir Makarov <vmakarov@redhat.com>
13868 PR rtl-optimization/70478
13869 * lra-constraints.c: Reverse the last patch.
13871 2017-04-08 Andreas Tobler <andreast@gcc.gnu.org>
13873 * config/aarch64/aarch64-freebsd.h: Define MCOUNT_NAME.
13874 Add comment for WCHAR_T.
13876 2017-04-08 Martin Liska <mliska@suse.cz>
13879 2017-04-07 Martin Liska <mliska@suse.cz>
13882 * ipa-split.c (split_function): Add function part to a same comdat
13885 2017-04-08 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
13888 * config/rs6000/rs6000.c (expand_block_compare): Fix boundary check.
13890 2017-04-07 Pat Haugen <pthaugen@us.ibm.com>
13892 * rs6000/rs6000.c (vec_load_pendulum): Rename...
13893 (vec_pairing): ...to this.
13894 (power9_sched_reorder2): Rewrite code for pairing vector/vecload insns.
13895 (rs6000_sched_init): Adjust for name change.
13896 (struct rs6000_sched_context): Likewise.
13897 (rs6000_init_sched_context): Likewise.
13898 (rs6000_set_sched_context): Likewise.
13900 2017-04-07 Jakub Jelinek <jakub@redhat.com>
13906 * config/i386/avxintrin.h (_mm256_cvtsd_f64, _mm256_cvtss_f32): New
13908 * config/i386/avx512fintrin.h (_mm512_int2mask, _mm512_mask2int,
13909 _mm512_abs_ps, _mm512_mask_abs_ps, _mm512_abs_pd, _mm512_mask_abs_pd,
13910 _mm512_cvtsd_f64, _mm512_cvtss_f32): Likewise.
13912 2017-04-07 Andreas Tobler <andreast@gcc.gnu.org>
13914 * config/aarch64/aarch64-freebsd.h: Define WCHAR_TYPE.
13916 2017-04-07 Vladimir Makarov <vmakarov@redhat.com>
13918 PR rtl-optimization/70703
13919 * ira-color.c (update_conflict_hard_regno_costs): Use
13920 int64_t instead of HOST_WIDE_INT.
13922 2017-04-07 Vladimir Makarov <vmakarov@redhat.com>
13924 PR rtl-optimization/70478
13925 * lra-constraints.c (process_alt_operands): Disfavor alternative
13926 insn memory operands.
13928 2017-04-07 Jeff Law <law@redhat.com>
13930 * config/iq2000/iq2000.c (final_prescan_insn): Do not separate a
13931 CALL and NOTE_INSN_CALL_ARG_LOCATION.
13933 2017-04-07 Martin Liska <mliska@suse.cz>
13936 * config/aarch64/aarch64.c (aarch64_process_target_attr):
13937 Show error message instead of an ICE.
13939 2017-04-07 Martin Liska <mliska@suse.cz>
13942 * ipa-split.c (split_function): Add function part to a same comdat
13945 2017-04-07 Richard Biener <rguenther@suse.de>
13947 PR middle-end/80341
13948 * tree.c (get_unwidened): Also handle ! for_type case for
13950 * convert.c (do_narrow): Split out from ...
13951 (convert_to_integer_1): ... here. Do not pass final truncation
13952 type to get_unwidened for TRUNC_DIV_EXPR.
13954 2017-04-07 Richard Biener <rguenther@suse.de>
13956 * tree-affine.c (wide_int_ext_for_comb): Take type rather
13958 (aff_combination_const): Adjust.
13959 (aff_combination_scale): Likewise.
13960 (aff_combination_add_elt): Likewise.
13961 (aff_combination_add_cst): Likewise.
13962 (aff_combination_convert): Likewise.
13963 (add_elt_to_tree): Likewise. Remove unused argument.
13964 (aff_combination_to_tree): Adjust calls to add_elt_to_tree.
13966 2017-04-07 Sebastian Huber <sebastian.huber@embedded-brains.de>
13968 * config/arm/arm.h (ARM_DEFAULT_SHORT_ENUMS): Provide default
13970 * config/arm/arm.c (arm_default_short_enums): Use
13971 ARM_DEFAULT_SHORT_ENUMS.
13972 * config/arm/rtems.h (ARM_DEFAULT_SHORT_ENUMS): Define.
13974 2017-04-06 Jakub Jelinek <jakub@redhat.com>
13977 * dwarf2out.c (gen_member_die): Handle C++17 inline static data
13978 members with redundant out-of-class redeclaration.
13980 2017-04-06 Uros Bizjak <ubizjak@gmail.com>
13983 * config/i386/sse.md (*vec_extractv4si_0_zext_sse4): New pattern.
13984 * config/i386/i386.md (*zero_extendsidi2):
13985 Add (?*x,*x) and (?*v,*v) alternatives.
13987 2017-04-06 Uros Bizjak <ubizjak@gmail.com>
13990 * config/i386/i386.c (ix86_expand_builtin)
13991 <case IX86_BUILTIN_K{,OR}TEST{C,Z}{8,16,32,64}>: Determine insn operand
13992 mode from insn data. Convert operands to insn operand mode.
13993 Copy operands that don't satisfy insn predicate to a register.
13995 2017-04-06 Sam Thursfield <sam.thursfield@codethink.co.uk>
13997 * config/rs6000/x-aix: Increase memory limit for genautomata on AIX.
14000 2017-04-06 Richard Biener <rguenther@suse.de>
14002 PR tree-optimization/80334
14003 * tree-ssa-loop-ivopts.c (rewrite_use_address): Properly
14004 preserve alignment of accesses.
14006 2017-04-06 Richard Biener <rguenther@suse.de>
14008 PR tree-optimization/80262
14009 * tree-sra.c (build_ref_for_offset): Preserve address-space
14011 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
14012 Drop useless address-space information on MEM_REF offsets.
14014 2017-04-05 Andreas Schwab <schwab@linux-m68k.org>
14016 * builtins.def (BUILT_IN_UPDATE_SETJMP_BUF): Fix type.
14018 2017-04-05 Vladimir Makarov <vmakarov@redhat.com>
14020 PR rtl-optimization/70703
14021 * ira-color.c (update_conflict_hard_regno_costs): Use
14022 HOST_WIDE_INT instead of long.
14024 2017-04-05 Uros Bizjak <ubizjak@gmail.com>
14027 * config/i386/mmintrin.h: Add -msse target option when __SSE__ is
14028 not defined for x86_64 target. Add -mmmx target option when __SSE2__
14030 * config/i386/mm3dnow.h: Add -msse target when __SSE__ is not defined
14031 for x86_64 target. Handle -m3dnowa option.
14033 2017-04-05 Vladimir Makarov <vmakarov@redhat.com>
14035 PR rtl-optimization/70703
14036 * ira-color.c (update_costs_from_allocno): Use the smallest mode.
14037 (update_conflict_hard_regno_costs): Use long instead of unsigned
14038 arithmetic for cost calculation.
14040 2017-04-05 Jakub Jelinek <jakub@redhat.com>
14041 Bernd Edlinger <bernd.edlinger@hotmail.de>
14044 * asan.c (asan_store_shadow_bytes): Fix location of last_chunk_value
14047 2017-04-05 Eric Botcazou <ebotcazou@adacore.com>
14050 * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Replace
14051 ptr_mode with Pmode throughout.
14052 * config/aarch64/aarch64.md (probe_stack_range_<PTR:mode): Rename
14053 into probe_stack_range and use DImode.
14055 2017-04-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
14058 * config/s390/s390.c (s390_register_info_gprtofpr): Return if
14059 call_eh_return is true.
14061 2017-04-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14063 * config/s390/s390-c.c (s390_resolve_overloaded_builtin):
14064 Initialize last_match_fntype_index.
14066 2017-04-05 Jakub Jelinek <jakub@redhat.com>
14069 * tree-nvr.c: Include internal-fn.h.
14070 (pass_return_slot::execute): Ignore internal calls without
14073 2017-04-04 Jakub Jelinek <jakub@redhat.com>
14074 Richard Biener <rguenther@suse.de>
14077 * genmatch.c (capture::gen_transform): For GENERIC unshare_expr
14078 captures used multiple times, except for the last use.
14079 * generic-match-head.c: Include gimplify.h.
14081 2017-04-04 Jakub Jelinek <jakub@redhat.com>
14083 PR tree-optimization/79390
14084 * target.h (struct noce_if_info): Declare.
14085 * targhooks.h (default_noce_conversion_profitable_p): Declare.
14086 * target.def (noce_conversion_profitable_p): New target hook.
14087 * ifcvt.h (struct noce_if_info): New type, moved from ...
14088 * ifcvt.c (struct noce_if_info): ... here.
14089 (noce_conversion_profitable_p): Renamed to ...
14090 (default_noce_conversion_profitable_p): ... this. No longer
14092 (noce_try_store_flag_constants, noce_try_addcc,
14093 noce_try_store_flag_mask, noce_try_cmove, noce_try_cmove_arith,
14094 noce_convert_multiple_sets): Use targetm.noce_conversion_profitable_p
14095 instead of noce_conversion_profitable_p.
14096 * config/i386/i386.c: Include ifcvt.h.
14097 (ix86_option_override_internal): Don't override
14098 PARAM_MAX_RTL_IF_CONVERSION_INSNS default.
14099 (ix86_noce_conversion_profitable_p): New function.
14100 (TARGET_NOCE_CONVERSION_PROFITABLE_P): Redefine.
14101 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): Adjust comment.
14102 * doc/tm.texi.in (TARGET_NOCE_CONVERSION_PROFITABLE_P): Add.
14103 * doc/tm.texi: Regenerated.
14105 2017-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14107 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Grammar
14110 2017-04-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
14113 * config/arm/arm.c (thumb1_rtx_costs): Give a cost of 32
14114 instructions for small multiply cores.
14116 2017-04-04 Jeff Law <law@redhat.com>
14118 * config/mips/mips.c (mips_multi_add): Zero initialize the newly
14120 (mips_expand_vec_perm_const): Initialize elements in orig_perm
14121 that are not set by the loop over the elements.
14123 2017-04-04 Jakub Jelinek <jakub@redhat.com>
14126 * config/i386/i386.c (ix86_expand_args_builtin): If op has scalar
14127 int mode, convert_modes it to mode as unsigned, otherwise use
14128 lowpart_subreg to mode rather than SImode.
14129 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>,
14130 ashr<mode>3, ashr<mode>3<mask_name>, <shift_insn><mode>3<mask_name>):
14131 Use DImode instead of SImode for the shift count operand.
14132 * config/i386/mmx.md (mmx_ashr<mode>3, mmx_<shift_insn><mode>3):
14135 2017-04-04 Richard Biener <rguenther@suse.de>
14137 PR middle-end/80281
14138 * match.pd (A + (-B) -> A - B): Make sure to preserve unsigned
14139 arithmetic done for the negate or the plus. Simplify.
14140 (A - (-B) -> A + B): Likewise.
14141 * fold-const.c (split_tree): Make sure to not negate pointers.
14143 2017-04-04 Segher Boessenkool <segher@kernel.crashing.org>
14145 PR rtl-optimization/60818
14146 * simplify-rtx.c (simplify_binary_operation_1): Do not replace
14147 a compare of comparisons with the thing compared if this results
14148 in a different machine mode.
14150 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
14152 * alias.c (base_alias_check): Fix typo in comment.
14153 * cgraph.h (class ipa_polymorphic_call_context): Likewise.
14154 * cgraphunit.c (symbol_table::compile): Likewise.
14155 * collect2.c (maybe_run_lto_and_relink): Likewise.
14156 * config/arm/arm.c (arm_thumb1_mi_thunk): Likewise.
14157 * config/avr/avr-arch.h (avr_arch_info_t): Likewise.
14158 * config/avr/avr.c (avr_map_op_t): Likewise.
14159 * config/cr16/cr16.h (DATA_ALIGNMENT): Likewise.
14160 * config/epiphany/epiphany.c (TARGET_ARG_PARTIAL_BYTES): Likewise.
14161 * config/epiphany/epiphany.md (movcc): Likewise.
14162 * config/i386/i386.c (legitimize_pe_coff_extern_decl): Likewise.
14163 * config/m68k/m68k.c (struct _sched_ib, m68k_sched_variable_issue):
14165 * config/mips/mips.c (mips_save_restore_reg): Likewise.
14166 * config/rx/rx.c (rx_is_restricted_memory_address): Likewise.
14167 * config/s390/s390.c (Z10_EARLYLOAD_DISTANCE): Likewise.
14168 * config/sh/sh.c (sh_rtx_costs): Likewise.
14169 * fold-const.c (fold_truth_andor): Likewise.
14170 * genautomata.c (collapse_flag): Likewise.
14171 * gengtype.h (struct type::u::s): Likewise.
14172 * gensupport.c (has_subst_attribute, add_mnemonic_string): Likewise.
14173 * input.c (FORMAT_AMOUNT): Likewise.
14174 * ipa-cp.c (class ipcp_lattice, agg_replacements_to_vector)
14175 (known_aggs_to_agg_replacement_list): Likewise.
14176 * ipa-inline-analysis.c: Likewise.
14177 * ipa-inline.h (estimate_edge_time, estimate_edge_hints): Likewise.
14178 * ipa-polymorphic-call.c
14179 (ipa_polymorphic_call_context::restrict_to_inner_class): Likewise.
14180 * loop-unroll.c (analyze_insn_to_expand_var): Likewise.
14181 * lra.c (lra_optional_reload_pseudos, lra_subreg_reload_pseudos):
14183 * modulo-sched.c (apply_reg_moves): Likewise.
14184 * omp-expand.c (build_omp_regions_1): Likewise.
14185 * trans-mem.c (struct tm_wrapper_hasher): Likewise.
14186 * tree-ssa-loop-ivopts.c (may_eliminate_iv): Likewise.
14187 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Likewise.
14188 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
14189 * value-prof.c: Likewise.
14190 * var-tracking.c (val_reset): Likewise.
14192 2017-04-03 Richard Biener <rguenther@suse.de>
14194 PR tree-optimization/80275
14195 * fold-const.c (split_address_to_core_and_offset): Handle
14198 2017-04-03 Eric Botcazou <ebotcazou@adacore.com>
14200 * tree-nested.c (get_descriptor_type): Make sure that the alignment of
14201 descriptors is at least equal to that of functions.
14203 2017-04-02 Uros Bizjak <ubizjak@gmail.com>
14205 * config/i386/sse.md (movdi_to_sse): Add missing DONE.
14207 2017-04-02 Uros Bizjak <ubizjak@gmail.com>
14210 * config/i386/sse.md (mov<IMOD4:mode>): Remove insn pattern.
14211 (mov<IMOD4:mode>): New expander.
14212 (*mov<IMOD4:mode>_internal): New insn and split pattern.
14214 2017-03-31 Segher Boessenkool <segher@kernel.crashing.org>
14216 PR rtl-optimization/79405
14217 * fwprop.c (propagations_left): New variable.
14218 (forward_propagate_into): Decrement it.
14219 (fwprop_init): Initialize it.
14220 (fw_prop): If the variable has reached zero, stop propagating.
14221 (fwprop_addr): Ditto.
14223 2017-03-31 Jakub Jelinek <jakub@redhat.com>
14226 * dwarf2out.c (decls_for_scope): If BLOCK_NONLOCALIZED_VAR is
14227 a FUNCTION_DECL, pass it as decl instead of origin to
14230 2017-03-31 Alexander Monakov <amonakov@ispras.ru>
14232 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Correct format
14235 2017-03-31 Pat Haugen <pthaugen@us.ibm.com>
14238 * config/rs6000/rs6000.md (extendhi<mode>2): Add test for
14239 TARGET_VSX_SMALL_INTEGER.
14241 2017-03-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14243 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
14244 reference to the OpenPOWER 64-Bit ELF V2 ABI Specification.
14246 2017-03-31 Matthew Fortune <matthew.fortune@imgtec.com>
14248 * config/mips/mips-msa.md (msa_vec_extract_<msafmt_f>): Update
14249 extraction from odd-numbered MSA register.
14251 2017-03-31 Jakub Jelinek <jakub@redhat.com>
14253 PR middle-end/80173
14254 * expmed.c (store_bit_field_1): Don't attempt to create
14255 a word subreg out of hard registers wider than word if they
14256 have HARD_REGNO_NREGS of 1 for their mode.
14258 PR middle-end/80163
14259 * varasm.c (initializer_constant_valid_p_1): Disallow sign-extending
14260 conversions to integer types wider than word and pointer.
14263 * cselib.h (rtx_equal_for_cselib_1): Add depth argument.
14264 (rtx_equal_for_cselib_p): Pass 0 to it.
14265 * cselib.c (cselib_hasher::equal): Likewise.
14266 (rtx_equal_for_cselib_1): Add depth argument. If depth
14267 is 128, don't look up VALUE locs and punt. Increment
14268 depth in recursive calls when walking VALUE locs.
14270 2017-03-31 Bernd Edlinger <bernd.edlinger@hotmail.de>
14272 * gcov.c (md5sum_to_hex): Fix output of MD5 hex bytes.
14273 (make_gcov_file_name): Use the canonical path name for generating
14275 (read_line): Fix handling of files with ascii null bytes.
14277 2017-03-30 Matthew Fortune <matthew.fortune@imgtec.com>
14279 * config/mips/mips.c (mips_expand_vector_init): Create a const_vector
14280 to initialise a vector register instead
14281 of using a const_int.
14283 2017-03-30 Jakub Jelinek <jakub@redhat.com>
14285 PR translation/80189
14286 * gimplify.c (omp_default_clause): Use %qs instead of %s in
14287 diagnostic messages.
14289 2017-03-30 Peter Bergner <bergner@vnet.ibm.com>
14292 * config/rs6000/dfp.md (dfp_dxex_<mode>): Update mode of operand 0.
14293 (dfp_diex_<mode>): Update mode of operand 1.
14294 * doc/extend.texi (dxex, dxexq): Document change to return type.
14295 (diex, diexq): Document change to argument type.
14297 2017-03-30 Martin Jambor <mjambor@suse.cz>
14300 * cgraph.h (cgraph_build_function_type_skip_args): Declare.
14301 * cgraph.c (redirect_call_stmt_to_callee): Set gimple fntype so that
14302 it reflects the signature changes performed at the callee side.
14303 * cgraphclones.c (build_function_type_skip_args): Make public, renamed
14304 to cgraph_build_function_type_skip_args.
14305 (build_function_decl_skip_args): Adjust call to the above function.
14307 2017-03-30 Jakub Jelinek <jakub@redhat.com>
14310 * config/i386/sse.md
14311 (<extract_type>_vextract<shuffletype><extract_suf>_mask): Use
14312 register as dest whenever it is a MEM not rtx_equal_p to the
14313 corresponding dup operand, and when forcing into reg move the
14314 reg into the memory afterwards.
14315 (<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask):
14316 Likewise. Use <ssehalfvecmode> instead of <ssequartermode>
14317 for the force_reg mode.
14318 (avx512vl_vextractf128<mode>): Use register as dest either
14319 always when a MEM, or when it is a MEM not rtx_equal_p to the
14320 corresponding dup operand, or even not when it is a CONST_VECTOR
14321 depending on the mode and lo vs. hi.
14322 (avx512dq_vextract<shuffletype>64x2_1_maskm): Remove extraneous
14324 (avx512f_vextract<shuffletype>32x4_1_maskm): Likewise.
14325 (<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>):
14326 Likewise. Require that operands[2] is even.
14327 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>):
14328 Remove extraneous parens. Require that operands[2] is a multiple
14330 (vec_extract_lo_<mode><mask_name>): Don't bother testing if
14331 operands[0] is a MEM if <mask_applied>, the predicates/constraints
14332 disallow memory then.
14334 2017-03-30 Richard Biener <rguenther@suse.de>
14336 PR tree-optimization/77498
14337 * tree-ssa-pre.c (phi_translate_1): Do not allow simplifications
14338 to non-constants over backedges.
14340 2017-03-29 Segher Boessenkool <segher@kernel.crashing.org>
14342 PR rtl-optimization/80233
14343 * combine.c (combine_instructions): Only take NONDEBUG_INSN_P insns
14344 as last_combined_insn. Do not test for BARRIER_P separately.
14346 2017-03-29 Andreas Schwab <schwab@suse.de>
14349 * calls.c (prepare_call_address): Convert funexp to Pmode before
14350 copying to temp reg.
14352 2017-03-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14354 PR tree-optimization/80158
14355 * gimple-ssa-strength-reduction.c (replace_mult_candidate):
14356 Handle possible future case of more than one alternate
14358 (replace_rhs_if_not_dup): Likewise.
14359 (replace_one_candidate): Likewise.
14361 2017-03-28 Vladimir Makarov <vmakarov@redhat.com>
14363 PR rtl-optimization/80193
14364 * ira.c (ira): Do not check allocation for LRA.
14366 2017-03-28 Alexander Monakov <amonakov@ispras.ru>
14368 * config/nvptx/nvptx-protos.h (nvptx_output_simt_enter): Declare.
14369 (nvptx_output_simt_exit): Declare.
14370 * config/nvptx/nvptx.c (nvptx_init_unisimt_predicate): Use
14371 cfun->machine->unisimt_location. Handle NULL unisimt_predicate.
14372 (init_softstack_frame): Move initialization of crtl->is_leaf to...
14373 (nvptx_declare_function_name): ...here. Emit declaration of local
14374 memory space buffer for omp_simt_enter insn.
14375 (nvptx_output_unisimt_switch): New.
14376 (nvptx_output_softstack_switch): New.
14377 (nvptx_output_simt_enter): New.
14378 (nvptx_output_simt_exit): New.
14379 * config/nvptx/nvptx.h (struct machine_function): New fields
14380 has_simtreg, unisimt_location, simt_stack_size, simt_stack_align.
14381 * config/nvptx/nvptx.md (UNSPECV_SIMT_ENTER): New unspec.
14382 (UNSPECV_SIMT_EXIT): Ditto.
14383 (omp_simt_enter_insn): New insn.
14384 (omp_simt_enter): New expansion.
14385 (omp_simt_exit): New insn.
14386 * config/nvptx/nvptx.opt (msoft-stack-reserve-local): New option.
14388 * internal-fn.c (expand_GOMP_SIMT_ENTER): New.
14389 (expand_GOMP_SIMT_ENTER_ALLOC): New.
14390 (expand_GOMP_SIMT_EXIT): New.
14391 * internal-fn.def (GOMP_SIMT_ENTER): New internal function.
14392 (GOMP_SIMT_ENTER_ALLOC): Ditto.
14393 (GOMP_SIMT_EXIT): Ditto.
14394 * target-insns.def (omp_simt_enter): New insn.
14395 (omp_simt_exit): Ditto.
14396 * omp-low.c (struct omplow_simd_context): New fields simt_eargs,
14398 (lower_rec_simd_input_clauses): Implement SIMT privatization.
14399 (lower_rec_input_clauses): Likewise.
14400 (lower_lastprivate_clauses): Handle SIMT privatization.
14402 * omp-offload.c: Include langhooks.h, tree-nested.h, stor-layout.h.
14403 (ompdevlow_adjust_simt_enter): New.
14404 (find_simtpriv_var_op): New.
14405 (execute_omp_device_lower): Handle IFN_GOMP_SIMT_ENTER,
14406 IFN_GOMP_SIMT_ENTER_ALLOC, IFN_GOMP_SIMT_EXIT.
14408 * tree-inline.h (struct copy_body_data): New field dst_simt_vars.
14409 * tree-inline.c (expand_call_inline): Handle SIMT privatization.
14410 (copy_decl_for_dup_finish): Ditto.
14412 * tree-ssa.c (execute_update_addresses_taken): Handle GOMP_SIMT_ENTER.
14414 2017-03-28 Uros Bizjak <ubizjak@gmail.com>
14417 * config/i386/i386.c (ix86_option_override_internal): Always
14418 allow -mpreferred-stack-boundary=3 for 64-bit targets.
14420 2017-03-28 Bin Cheng <bin.cheng@arm.com>
14422 * tree-vect-loop.c (optimize_mask_stores): Add bb to the right loop.
14424 2017-03-28 Bin Cheng <bin.cheng@arm.com>
14426 * tree-vect-loop-manip.c (slpeel_add_loop_guard): New param and
14427 mark new edge's irreducible flag accordign to it.
14428 (vect_do_peeling): Check loop preheader edge's irreducible flag
14429 and pass it to function slpeel_add_loop_guard.
14431 2017-03-28 Richard Sandiford <richard.sandiford@arm.com>
14433 PR tree-optimization/80218
14434 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
14435 Update block frequencies and counts.
14437 2017-03-28 Richard Biener <rguenther@suse.de>
14439 PR tree-optimization/78644
14440 * tree-ssa-ccp.c (evaluate_stmt): When we may not use the value
14441 of a simplification result we may not use it at all.
14443 2017-03-28 Richard Biener <rguenther@suse.de>
14446 * tree-inline.c (copy_phis_for_bb): Do not create PHI node
14447 without arguments, generate default definition of a SSA name.
14449 2017-03-28 Richard Biener <rguenther@suse.de>
14451 PR middle-end/80222
14452 * gimple-fold.c (gimple_fold_indirect_ref): Do not touch
14453 TYPE_REF_CAN_ALIAS_ALL references.
14454 * fold-const.c (fold_indirect_ref_1): Likewise.
14456 2017-03-28 Martin Liska <mliska@suse.cz>
14459 * cgraphunit.c (cgraph_node::expand_thunk): Mark argument of a
14460 thunk call as DECL_GIMPLE_REG_P when vector or complex type.
14462 2017-03-28 Claudiu Zissulescu <claziss@synopsys.com>
14463 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14465 * config/arc/arc.h (CPP_SPEC): Add subtarget_cpp_spec.
14466 (EXTRA_SPECS): Define.
14467 (SUBTARGET_EXTRA_SPECS): Likewise.
14468 (SUBTARGET_CPP_SPEC): Likewise.
14469 * config/arc/elf.h (EXTRA_SPECS): Renamed to
14470 SUBTARGET_EXTRA_SPECS.
14471 * config/arc/linux.h (SUBTARGET_CPP_SPEC): Define.
14473 2017-03-28 Claudiu Zissulescu <claziss@synopsys.com>
14475 * config/arc/simdext.md (vst64_insn): Update pattern.
14476 (vld32wh_insn): Likewise.
14477 (vld32wl_insn): Likewise.
14478 (vld64_insn): Likewise.
14479 (vld32_insn): Likewise.
14481 2017-03-28 Marek Polacek <polacek@redhat.com>
14484 * fold-const.c (fold_comparison): Use protected_set_expr_location
14485 instead of SET_EXPR_LOCATION.
14487 2017-03-28 Markus Trippelsdorf <markus@trippelsdorf.de>
14489 * tree.c (add_expr): Avoid name lookup warning.
14491 2017-03-27 Jeff Law <law@redhat.com>
14493 PR tree-optimization/80216
14494 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Fix typo in
14495 function name. Limit recursion depth.
14496 (record_temporary_equivalences): Corresponding changes.
14498 2017-03-27 Jonathan Wakely <jwakely@redhat.com>
14500 * doc/invoke.texi (-Wno-narrowing): Reorder so default behavior is
14503 2017-03-27 Jakub Jelinek <jakub@redhat.com>
14506 * reg-notes.def (REG_CFA_NOTE): Define. Use it for CFA related
14508 * cfgcleanup.c (reg_note_cfa_p): New array.
14509 (insns_have_identical_cfa_notes): New function.
14510 (old_insns_match_p): Don't cross-jump in between /f
14511 and non-/f instructions. If both i1 and i2 are frame related,
14512 verify all CFA notes, their order and content.
14514 2017-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
14517 * config/rs6000/rs6000.md (bswaphi2_extenddi): Combine bswap
14518 HImode and SImode with zero extend to DImode to one insn.
14519 (bswap<mode>2_extenddi): Likewise.
14520 (bswapsi2_extenddi): Likewise.
14521 (bswaphi2_extendsi): Likewise.
14522 (bswaphi2): Combine bswap HImode and SImode into one insn.
14523 Separate memory insns from swapping register.
14524 (bswapsi2): Likewise.
14525 (bswap<mode>2): Likewise.
14526 (bswaphi2_internal): Delete, no longer used.
14527 (bswapsi2_internal): Likewise.
14528 (bswap<mode>2_load): Split bswap HImode/SImode into separate load,
14529 store, and gpr<-gpr swap insns.
14530 (bswap<mode>2_store): Likewise.
14531 (bswaphi2_reg): Register only splitter, combine with the splitter.
14532 (bswaphi2 splitter): Likewise.
14533 (bswapsi2_reg): Likewise.
14534 (bswapsi2 splitter): Likewise.
14535 (bswapdi2): If we have the LDBRX and STDBRX instructions, split
14536 the insns into load, store, and register/register insns.
14537 (bswapdi2_ldbrx): Likewise.
14538 (bswapdi2_load): Likewise.
14539 (bswapdi2_store): Likewise.
14540 (bswapdi2_reg): Likewise.
14542 2017-03-27 Gunther Nikl <gnikl@users.sourceforge.net>
14544 * system.h (HAVE_DESIGNATED_INITIALIZERS): Fix non C++ case.
14545 (HAVE_DESIGNATED_UNION_INITIALIZERS): Likewise.
14547 2017-03-27 Kelvin Nilsen <kelvin@gcc.gnu.org>
14550 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Edit and
14552 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
14553 special handling for target option conflicts between dform
14554 options (-mpower9-dform, -mpower9-dform-vector,
14555 -mpower9-dform-scalar) and -mno-direct-move.
14557 2017-03-27 Richard Biener <rguenther@suse.de>
14559 PR tree-optimization/80181
14560 * tree-ssa-ccp.c (likely_value): UNDEFINED ^ X is UNDEFINED.
14562 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
14564 * config/arc/predicates.md (move_double_src_operand): Replace the
14565 call to move_double_src_operand with a call to address_operand.
14567 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
14569 * config/arc/elf.h (ARGET_ARC_TP_REGNO_DEFAULT): Define.
14570 * config/arc/linux.h (ARGET_ARC_TP_REGNO_DEFAULT): Likewise.
14571 * config/arc/arc.opt (mtp-regno): Use ARGET_ARC_TP_REGNO_DEFAULT.
14573 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
14575 * config/arc/predicates.md (long_immediate_loadstore_operand):
14576 Consider scaled addresses cases.
14578 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
14580 * config/arc/arc.c (arc_epilogue_uses): BLINK should be also
14581 restored when in interrupt.
14582 * config/arc/arc.md (simple_return): ARCv2 rtie instruction
14583 doesn't have delay slot.
14585 2017-03-27 Richard Biener <rguenther@suse.de>
14588 * tree-ssa-structalias.c (associate_varinfo_to_alias): Skip
14589 inlined thunk clones.
14591 2017-03-27 Jakub Jelinek <jakub@redhat.com>
14594 * asan.c (instrument_derefs): Copy over last operand from
14595 original COMPONENT_REF to the new COMPONENT_REF with
14596 DECL_BIT_FIELD_REPRESENTATIVE.
14597 * ubsan.c (instrument_object_size): Likewise.
14599 2017-03-27 Richard Biener <rguenther@suse.de>
14601 PR tree-optimization/80170
14602 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Make
14603 sure DR/SCEV didnt fold in constants we do not see when looking
14604 at the reference base alignment.
14606 2017-03-27 Richard Biener <rguenther@suse.de>
14608 PR middle-end/80171
14609 * gimple-fold.c (fold_ctor_reference): Properly guard against
14610 NULL return value from canonicalize_constructor_val.
14612 2017-03-25 Uros Bizjak <ubizjak@gmail.com>
14615 * config/i386/i386.c (ix86_expand_builtin)
14616 <IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Do not expand arg0 between
14617 flags reg setting and flags reg using instructions.
14618 <IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Ditto. Use non-flags reg
14619 clobbering instructions to zero extend op2.
14621 2017-03-25 Gerald Pfeifer <gerald@pfeifer.com>
14623 * doc/install.texi (Configuration) <--with-aix-soname>:
14624 Update link to AIX ld.
14626 2017-03-25 Bernd Schmidt <bschmidt@redhat.com>
14628 PR rtl-optimization/80160
14629 PR rtl-optimization/80159
14630 * lra-assigns.c (must_not_spill_p): Tighten new test to also take
14631 reg_alternate_class into account.
14633 2017-03-24 Vladimir Makarov <vmakarov@redhat.com>
14636 * lra-assigns.c (assign_by_spills): Add spilled non-reload pseudos
14637 to consider in curr_insn_transform.
14639 2017-03-24 Jakub Jelinek <jakub@redhat.com>
14641 * genrecog.c (validate_pattern): Add VEC_SELECT validation.
14642 * genmodes.c (emit_min_insn_modes_c): Call emit_mode_nunits
14643 and emit_mode_inner.
14645 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14647 * config/s390/s390-builtins.def: Add VXE builtins. Add a flags
14648 argument to the overloaded builtin variants. Use the new flag to
14649 deprecate certain builtin variants.
14650 * config/s390/s390-builtin-types.def: Add new builtin types.
14651 * config/s390/s390-builtins.h: Support new flags field for
14652 overloaded builtins.
14653 * config/s390/s390-c.c (OB_DEF_VAR): New flags field.
14654 (s390_macro_to_expand): Enable vector float data type.
14655 (s390_cpu_cpp_builtins_internal): Indicate support of the new
14656 builtins by incrementing the __VEC__ version number.
14657 (s390_expand_overloaded_builtin): Support expansion of vec_xl and
14659 (s390_resolve_overloaded_builtin): Emit error messages depending
14660 on the builtin flags.
14661 * config/s390/s390.c (s390_expand_builtin): Support additional
14662 flags argument. Change error message to match the messages
14663 emitted in s390-c.c.
14664 * config/s390/s390.md: New UNSPEC_* constants.
14665 (op_type): Add new instruction types.
14666 * config/s390/vecintrin.h: Add new builtins and test data class
14668 * config/s390/vx-builtins.md (V_HW_32_64): Add V4SF.
14669 (V_HW_4, VEC_HW, VECF_HW): New mode iterators.
14670 (VEC_INEXACT, VEC_NOINEXACT): New constants.
14671 ("vec_splats<mode>", "vec_insert<mode>", "vec_promote<mode>")
14672 ("vec_insert_and_zero<mode>", "vec_mergeh<mode>")
14673 ("vec_mergel<mode>"): V_HW -> VEC_HW.
14675 ("vlrlrv16qi", "vstrlrv16qi", "vbpermv16qi", "vec_msumv2di")
14676 ("vmslg", "*vftci<mode>_cconly", "vftci<mode>_intcconly")
14677 ("*vftci<mode>", "vftci<mode>_intcc", "vec_double_s64")
14678 ("vec_double_u64", "vfmin<mode>", "vfmax<mode>"): New definition.
14680 ("and_av2df3", "and_cv2df3", "vec_andc_av2df3")
14681 ("vec_andc_cv2df3", "xor_av2df3", "xor_cv2df3", "vec_nor_av2df3")
14682 ("vec_nor_cv2df3", "ior_av2df3", "ior_cv2df3", "vec_nabs")
14683 ("*vftcidb", "*vftcidb_cconly", "vftcidb"): Remove definition.
14685 ("vec_all_<fpcmpcc:code>v2df", "vec_any_<fpcmpcc:code>v2df")
14686 ("vec_scatter_elementv4si_DI", "vec_cmp<fpcmp:code>v2df")
14687 ("vec_di_to_df_s64", "vec_di_to_df_u64", "vec_df_to_di_u64")
14688 ("vfidb", "*vldeb", "*vledb", "*vec_cmp<insn_cmp>v2df_cconly")
14689 ("vec_cmpeqv2df_cc", "vec_cmpeqv2df_cc", "vec_cmphv2df_cc")
14690 ("vec_cmphev2df_cc", "*vec_cmpeqv2df_cc")
14691 ("*vec_cmphv2df_cc", "*vec_cmphev2df_cc"): Enable new modes as ...
14693 ("vec_all_<fpcmpcc:code><mode>", "vec_any_<fpcmpcc:code><mode>")
14694 ("vec_scatter_element<V_HW_4:mode>_DI")
14695 ("vec_cmp<fpcmp:code><mode>", "vcdgb", "vcdlgb", "vclgdb")
14696 ("vec_fpint<mode>", "vflls")
14697 ("vflrd", "*vec_cmp<insn_cmp><mode>_cconly", "vec_cmpeq<mode>_cc")
14698 ("vec_cmpeq<mode>_cc", "vec_cmph<mode>_cc", "vec_cmphe<mode>_cc")
14699 ("*vec_cmpeq<mode>_cc", "*vec_cmph<mode>_cc")
14700 ("*vec_cmphe<mode>_cc"): ... these.
14702 ("vec_ctd_s64", "vec_ctsl", "vec_ctul", "vec_st2f"): Use rounding
14703 mode constant instead of magic value.
14705 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14707 * config/s390/s390.c (s390_expand_vec_compare): Support other
14708 vector floating point modes than just V2DF.
14709 (s390_expand_vcond): Likewise.
14710 (s390_hard_regno_mode_ok): Allow SFmode values in VRs.
14711 (s390_cannot_change_mode_class): Prevent mode changes between TF
14712 and V1TF in vector registers.
14713 * config/s390/s390.md (DF, SF): New mode attributes.
14714 ("*cmp<mode>_ccs", "add<mode>3", "sub<mode>3", "mul<mode>3")
14715 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2"): Add
14716 SFmode support for VRs.
14717 * config/s390/vector.md (V_HW, V_HW2, VT_HW, ti*, nonvec): Add new
14719 (VFT, VF_HW): New mode iterators.
14720 (vw, sdx): New mode attributes.
14721 ("addv2df3", "subv2df3", "mulv2df3", "divv2df3", "sqrtv2df2")
14722 ("fmav2df4","fmsv2df4", "negv2df2", "absv2df2", "*negabsv2df2")
14723 ("smaxv2df3", "sminv2df3", "*vec_cmp<VFCMP_HW_OP:code>v2df_nocc")
14724 ("vec_cmpuneqv2df", "vec_cmpltgtv2df", "vec_orderedv2df")
14725 ("vec_unorderedv2df"): Adjust the v2df only patterns to support
14726 also the new vector floating point modes. Renaming to ...
14728 ("add<mode>3", "sub<mode>3", "mul<mode>3", "div<mode>3")
14729 ("sqrt<mode>2", "fma<mode>4", "fms<mode>4", "neg<mode>2")
14730 ("abs<mode>2", "negabs<mode>2", "smax<mode>3")
14731 ("smin<mode>3", "*vec_cmp<VFCMP_HW_OP:code><mode>_nocc")
14732 ("vec_cmpuneq<mode>", "vec_cmpltgt<mode>", "vec_ordered<mode>")
14733 ("vec_unordered<mode>"): ... these.
14735 ("neg_fma<mode>4", "neg_fms<mode>4", "*smax<mode>3_vxe")
14736 ("*smin<mode>3_vxe", "*sminv2df3_vx", "*vec_extendv4sf")
14737 ("*vec_extendv2df"): New insn definitions.
14739 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14741 * config/s390/s390.md ("*adddi3_sign", "*subdi3_sign", "mulditi3")
14742 ("mulditi3_2", "*muldi3_sign"): New patterns.
14743 ("muldi3", "*muldi3", "mulsi3", "*mulsi3"): Add an expander and
14744 rename the pattern definition.
14746 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14748 * config/s390/s390.md ("indirect_jump"): Turn insn definition into
14750 ("*indirect_jump", "*indirect2_jump"): New pattern definitions.
14752 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14754 * config/s390/s390.c (s390_expand_vec_init): Use vllezl
14755 instruction if possible.
14756 * config/s390/vector.md (vec_halfnumelts): New mode
14758 ("*vec_vllezlf<mode>"): New pattern.
14760 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14762 * config/s390/vector.md ("popcountv16qi2", "popcountv8hi2")
14763 ("popcountv4si2", "popcountv2di2"): Rename to ...
14764 ("popcount<mode>2", "popcountv8hi2_vx", "popcountv4si2_vx")
14765 ("popcountv2di2_vx"): ... these and add !TARGET_VXE to the
14767 ("popcount<mode>2_vxe"): New pattern.
14769 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14771 * common/config/s390/s390-common.c (processor_flags_table): Add
14773 * config.gcc: Add arch12.
14774 * config/s390/driver-native.c (s390_host_detect_local_cpu):
14775 Default to arch12 for unknown CPU model numbers.
14776 * config/s390/s390-builtins.def: Add B_VXE builtin flag.
14777 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Adjust
14778 PROCESSOR_max sanity check.
14779 * config/s390/s390-opts.h (enum processor_type): Add
14781 * config/s390/s390.c (processor_table): Add arch12.
14782 (s390_expand_builtin): Add check for B_VXE flag.
14783 (s390_issue_rate): Add PROCESSOR_ARCH12.
14784 (s390_get_sched_attrmask): Likewise.
14785 (s390_get_unit_mask): Likewise.
14786 (s390_sched_score): Enable z13 scheduling for arch12.
14787 (s390_sched_reorder): Likewise.
14788 (s390_sched_variable_issue): Likewise.
14789 * config/s390/s390.h (enum processor_flags): Add PF_ARCH12 and
14791 (s390_tune_attr): Use z13 scheduling also for arch12.
14792 (TARGET_CPU_ARCH12, TARGET_CPU_ARCH12_P, TARGET_CPU_VXE)
14793 (TARGET_CPU_VXE_P, TARGET_ARCH12, TARGET_ARCH12_P, TARGET_VXE)
14794 (TARGET_VXE_P): New macros.
14795 * config/s390/s390.md: Add arch12 to cpu attribute. Add arch12
14796 and vxe to cpu_facility. Add arch12 and vxe to enabled attribute.
14797 * config/s390/s390.opt: Add arch12 as processor_type.
14799 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14801 * config/s390/s390.md
14802 ("fixuns_truncdddi2", "fixuns_trunctddi2")
14803 ("fixuns_trunc<BFP:mode><GPR:mode>2"): Merge into ...
14804 ("fixuns_trunc<FP:mode><GPR:mode>2"): New expander.
14806 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2"):
14807 Rename expanders to ...
14809 ("fixuns_trunc<BFP:mode><GPR:mode>2_emu")
14810 ("fixuns_truncdddi2_emu"): ... these.
14812 ("fixuns_trunc<mode>si2_emu"): New expander.
14814 ("*fixuns_truncdfdi2_z13"): Rename to ...
14815 ("*fixuns_truncdfdi2_vx"): ... this.
14817 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14819 * config/s390/2964.md: Remove the single element vector compare
14820 instructions which are no longer used.
14821 * config/s390/s390.c (s390_select_ccmode): Remove handling of
14823 (s390_canonicalize_comparison): Remove handling of DFmode
14825 (s390_expand_vec_compare_scalar): Remove function.
14826 (s390_emit_compare): Don't call s390_expand_vec_compare_scalar.
14827 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly"): Remove
14829 ("*cmp<mode>_ccs"): Add wfcdb instruction.
14831 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14833 * config/s390/s390.md ("mov<mode>_64dfp" DD_DF): Use vleig for loading a
14835 ("*mov<mode>_64" DD_DF): Remove the vector instructions. These
14836 will anyway by matched by mov<mode>_64dfp.
14838 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14840 * config/s390/s390.md ("mov<mode>" SD_SF): Change vleg/vsteg to
14841 vlef/vstef. Add missing operand to vleif.
14843 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14845 * config/s390/s390.c (s390_expand_vec_init): Enable vector load
14846 pair for all vector types with 64 bit elements.
14847 * config/s390/vx-builtins.md (V_HW_64): Move mode iterator to ...
14848 * config/s390/vector.md (V_HW_64): ... here.
14849 (V_128_NOSINGLE): New mode iterator.
14850 ("vec_init<V_HW:mode>"): Use V_128 as mode iterator.
14851 ("*vec_splat<mode>"): Use V_128_NOSINGLE mode iterator.
14852 ("*vec_tf_to_v1tf", "*vec_ti_to_v1ti"): New pattern definitions.
14853 ("*vec_load_pairv2di"): Change to ...
14854 ("*vec_load_pair<mode>"): ... this one.
14856 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14858 * config/s390/constraints.md: Add comments.
14859 (jKK): Reject element sizes > 8 bytes.
14860 * config/s390/s390.c (s390_split_ok_p): Enable splitting also for
14862 * config/s390/s390.md: Add the s_operand checks formerly in
14863 s390_split_ok_p to various splitters where they are still
14865 * config/s390/vector.md ("mov<mode>" V_128): Add GPR alternatives
14866 for 128 bit vectors. Plus two splitters.
14868 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14870 * config/s390/s390.md: Rename the cpu facilty vec to vx throughout
14873 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14876 * config/s390/s390-c.c (s390_adjust_builtin_arglist): Issue an
14877 error if the boundary argument is not constant.
14879 2017-03-24 Jakub Jelinek <jakub@redhat.com>
14881 PR rtl-optimization/80112
14882 * loop-doloop.c (doloop_condition_get): Don't check condition
14883 if cmp isn't SET with IF_THEN_ELSE src.
14885 2017-03-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14887 PR tree-optimization/80158
14888 * gimple-ssa-strength-reduction.c (replace_mult_candidate): When
14889 replacing a candidate statement, also replace it for the
14890 candidate's alternate interpretation.
14891 (replace_rhs_if_not_dup): Likewise.
14892 (replace_one_candidate): Likewise.
14894 2017-03-24 Richard Biener <rguenther@suse.de>
14896 PR tree-optimization/80167
14897 * graphite-isl-ast-to-gimple.c
14898 (translate_isl_ast_to_gimple::is_valid_rename): Handle default-defs
14900 (translate_isl_ast_to_gimple::get_rename): Likewise.
14902 2017-03-23 Kelvin Nilsen <kelvin@gcc.gnu.org>
14904 * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
14905 handling of certain combinations of target options, including the
14906 combinations -mpower8-vector vs. -mno-vsx, -mpower9-vector vs.
14907 -mno-power8-vector, and -mpower9_dform vs. -mno-power9-vector.
14909 2017-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14912 * config/arm/arm.md (*load_multiple): Add reload_completed to
14913 matching condition.
14915 2017-03-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14916 Richard Biener <rguenth@suse.de>
14918 PR tree-optimization/79908
14919 PR tree-optimization/80136
14920 * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
14921 been cast away, gimplify_and_add suffices.
14923 2017-03-23 Markus Trippelsdorf <markus@trippelsdorf.de>
14925 * tree-vrp.c (identify_jump_threads): Delete avail_exprs.
14927 2017-03-23 Richard Biener <rguenther@suse.de>
14929 PR tree-optimization/80032
14930 * gimplify.c (gimple_push_cleanup): Forced unconditional
14931 cleanups still have to go to the conditional_cleanups
14934 2017-03-22 Jakub Jelinek <jakub@redhat.com>
14936 PR tree-optimization/80072
14937 * tree-ssa-reassoc.c (struct operand_entry): Change id field type
14939 (next_operand_entry_id): Change type to unsigned int.
14940 (sort_by_operand_rank): Make sure to return the right return value
14941 even if unsigned fields are bigger than INT_MAX.
14942 (struct oecount): Change cnt and id type to unsigned int.
14943 (oecount_hasher::equal): Formatting fix.
14944 (oecount_cmp): Make sure to return the right return value
14945 even if unsigned fields are bigger than INT_MAX.
14946 (undistribute_ops_list): Change next_oecount_id type to unsigned int.
14949 * gimplify.c (gimplify_modify_expr_rhs) <case COND_EXPR>: Clear
14950 TREE_READONLY on result if writing it more than once.
14953 * doc/invoke.texi (-fsanitize=thread): Document that with
14954 -fnon-call-exceptions atomics are not able to throw
14958 * tsan.c: Include tree-eh.h.
14959 (instrument_builtin_call): Call maybe_clean_eh_stmt or
14960 maybe_clean_or_replace_eh_stmt where needed.
14961 (instrument_memory_accesses): Add cfg_changed argument.
14962 Call gimple_purge_dead_eh_edges on each block and set *cfg_changed
14963 if it returned true.
14964 (tsan_pass): Adjust caller. Return TODO_cleanup_cfg if cfg_changed.
14966 PR rtl-optimization/63191
14967 * config/i386/i386.c (ix86_delegitimize_address): Turn into small
14968 wrapper function, moved the whole old content into ...
14969 (ix86_delegitimize_address_1): ... this. New inline function.
14970 (ix86_find_base_term): Use ix86_delegitimize_address_1 with
14971 true as last argument instead of ix86_delegitimize_address.
14973 2017-03-22 Wilco Dijkstra <wdijkstr@arm.com>
14975 * config/aarch64/aarch64.c (generic_branch_cost): Copy
14976 cortexa57_branch_cost.
14978 2017-03-22 Wilco Dijkstra <wdijkstr@arm.com>
14980 * config/aarch64/aarch64.c (generic_tunings): Add AES fusion.
14982 2017-03-21 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
14985 * doc/md.texi (Constraints): Document wA constraint.
14986 * config/rs6000/constraints.md (wA): New.
14987 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add wA reg_class.
14988 (rs6000_init_hard_regno_mode_ok): Init wA constraint.
14989 * config/rs6000/rs6000.h (RS6000_CONSTRAINT_wA): New.
14990 * config/rs6000/vsx.md (vsx_splat_<mode>): Use wA constraint.
14992 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
14995 * gimplify.c (is_oacc_declared): New function.
14996 (oacc_default_clause): Use it to set default flags for acc declared
14997 variables inside parallel regions.
14998 (gimplify_scan_omp_clauses): Strip firstprivate pointers for acc
14999 declared variables.
15000 (gimplify_oacc_declare): Gimplify the declare clauses. Add the
15001 declare attribute to any decl as necessary.
15003 2017-03-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
15006 * config/arm/arm-isa.h (isa_bit_lpae): New feature bit.
15007 (ISA_ARMv7ve): Add isa_bit_lpae to the definition.
15008 * config/arm/arm-protos.h (arm_arch7ve): Rename into ...
15009 (arm_arch_lpae): This.
15010 * config/arm/arm.c (arm_arch7ve): Rename into ...
15011 (arm_arch_lpae): This. Define it in term of isa_bit_lpae.
15012 * config/arm/arm.h (TARGET_HAVE_LPAE): Redefine in term of
15015 2017-03-22 Martin Liska <mliska@suse.cz>
15018 * config/rs6000/rs6000.c (rs6000_inner_target_options): Show
15019 error message instead of an ICE.
15021 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15023 * doc/extend.texi (6.11 Additional Floating Types): Revise.
15025 2017-03-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
15027 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
15029 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
15032 2017-03-21 Martin Sebor <msebor@redhat.com>
15034 * doc/extend.texi: Use "cannot" instead of "can't."
15035 * doc/hostconfig.texi: Same.
15036 * doc/install.texi: Same.
15037 * doc/invoke.texi: Same.
15038 * doc/loop.texi: Same.
15039 * doc/md.texi: Same.
15040 * doc/objc.texi: Same.
15041 * doc/rtl.texi: Same.
15042 * doc/tm.texi: Same.
15043 * doc/tm.texi.in: Same.
15044 * doc/trouble.texi: Same.
15046 2017-03-21 Alexandre Oliva <aoliva@redhat.com>
15049 * dwarf2out.c (struct checksum_attributes): Add at_alignment.
15050 (collect_checksum_attributes): Set it.
15051 (die_checksum_ordered): Use it.
15053 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15055 PR tree-optimization/79908
15056 * tree-stdarg.c (expand_ifn_va_arg_1): Revert the following
15057 change: For a VA_ARG whose LHS has been cast away, use
15058 force_gimple_operand to construct the side effects.
15060 2017-03-21 David Malcolm <dmalcolm@redhat.com>
15062 PR translation/80001
15063 * omp-offload.c (oacc_loop_fixed_partitions): Make diagnostics
15064 more amenable to translation.
15065 (oacc_loop_auto_partitions): Likewise.
15067 2017-03-21 Marek Polacek <polacek@redhat.com>
15068 Martin Sebor <msebor@redhat.com>
15070 PR tree-optimization/80109
15071 * gimple-ssa-warn-alloca.c (alloca_call_type): Only call get_range_info
15072 on INTEGRAL_TYPE_P.
15074 2017-03-21 Jakub Jelinek <jakub@redhat.com>
15075 Segher Boessenkool <segher@kernel.crashing.org>
15078 * combine.c (can_combine_p): Revert the 2017-03-20 change, only
15079 check reg_used_between_p between insn and one of succ or succ2
15080 depending on if succ is artificial insn not inserted into insn
15083 2017-03-21 Martin Liska <mliska@suse.cz>
15085 PR gcov-profile/80081
15086 * Makefile.in: Add gcov-dump and fix installation of gcov-tool.
15087 * doc/gcc.texi: Include gcov-dump stuff.
15088 * doc/gcov-dump.texi: New file.
15090 2017-03-21 Toma Tabacu <toma.tabacu@imgtec.com>
15092 PR rtl-optimization/79150
15093 * config/mips/mips.c (mips_block_move_loop): Emit a NOP after the
15094 conditional jump, if the jump is the last insn of the loop.
15096 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15097 Richard Biener <rguenth@suse.de>
15099 PR tree-optimization/79908
15100 * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
15101 been cast away, use force_gimple_operand to construct the side
15104 2017-03-21 Martin Liska <mliska@suse.cz>
15106 PR libfortran/79956
15107 * simplify-rtx.c (simplify_immed_subreg): Initialize a variable
15110 2017-03-21 Brad Spengler <spender@grsecurity.net>
15113 * plugin.c (htab_hash_plugin): New function.
15114 (add_new_plugin): Use it and adjust.
15115 (parse_plugin_arg_opt): Adjust.
15116 (init_one_plugin): Likewise.
15118 2017-03-21 Richard Biener <rguenther@suse.de>
15120 PR tree-optimization/80032
15121 * gimplify.c (gimple_push_cleanup): Add force_uncond parameter,
15122 if set force the cleanup to happen unconditionally.
15123 (gimplify_target_expr): Push inserted clobbers with force_uncond
15124 to avoid them being removed by control-dependent DCE.
15126 2017-03-21 Richard Biener <rguenther@suse.de>
15128 PR tree-optimization/80122
15129 * tree-inline.c (copy_bb): Do not expans va-arg packs or
15130 va_arg_pack_len when the inlined call stmt requires pack
15132 * tree-inline.h (struct copy_body_data): Make call_stmt a gcall *.
15134 2017-03-21 Jakub Jelinek <jakub@redhat.com>
15137 * tsan.c (instrument_builtin_call): If the memory model argument
15138 is not a constant, assume it is valid.
15141 * fold-const.c (round_up_loc): Negate divisor in unsigned type to
15144 2017-03-20 Segher Boessenkool <segher@kernel.crashing.org>
15146 PR rtl-optimization/79910
15147 * combine.c (can_combine_p): Do not allow combining an I0 or I1
15148 if its dest is used by an insn before I2 (other than the combined
15149 insns themselves, which are properly handled already).
15151 2017-03-20 Segher Boessenkool <segher@kernel.crashing.org>
15154 2017-03-17 Bernd Schmidt <bschmidt@redhat.com>
15156 * combine.c (record_used_regs): New static function.
15157 (try_combine): Handle situations where there is an additional
15158 instruction between I2 and I3 which needs to have a LOG_LINK
15162 2017-03-17 Jim Wilson <jim.wilson@linaro.org>
15164 * combine.c (try_combine): Delete redundant i1 test. Call
15165 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
15167 2017-03-20 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
15170 * config/rs6000/rs6000.md (*movsi_internal1): Fix constraints for
15171 alternatives 13/14.
15173 2017-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15175 PR tree-optimization/80054
15176 * gimple-ssa-strength-reduction.c (all_phi_incrs_profitable): Fail
15177 the optimization if a PHI or any of its arguments is not dominated
15178 by the candidate's basis. Use gphi* rather than gimple* as
15180 (replace_profitable_candidates): Clean up a gimple* variable that
15181 should be a gphi* variable.
15183 2017-03-20 Martin Sebor <msebor@redhat.com>
15186 * doc/extend.texi (attribute constructor): Document present limitation.
15188 2017-03-20 Kelvin Nilsen <kelvin@gcc.gnu.org>
15191 * config/rs6000/altivec.h (vec_all_ne): Under __cplusplus__ and
15192 __POWER9_VECTOR__ #ifdef control, change template definition to
15193 use Power9-specific built-in function.
15194 (vec_any_eq): Likewise.
15195 * config/rs6000/vector.md (vector_ae_v2di_p): Change the flag used
15196 to control outcomes from this test.
15197 (vector_ae_<mode>p): For VEC_F modes, likewise.
15199 2017-03-20 Ian Lance Taylor <iant@google.com>
15201 * config/i386/i386.c (ix86_function_regparm): Save an extra
15202 register for -fsplit-stack with DECL_STATIC_CHAIN.
15204 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com>
15207 * config/riscv/riscv.c (riscv_preferred_reload_class): Remove.
15208 (TARGET_PREFERRED_RELOAD_CLASS): Likewise.
15210 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com>
15212 * config/riscv/riscv.c (riscv_print_operand): Use "fence
15214 * config/riscv/sync.mc (mem_thread_fence_1): Use "fence
15217 2017-03-20 Marek Polacek <polacek@redhat.com>
15220 * asan.c (DEF_SANITIZER_BUILTIN): Use do { } while (0).
15222 2017-03-20 Richard Biener <rguenther@suse.de>
15224 PR tree-optimization/80113
15225 * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Do not
15226 allocate extra SSA name for PHI def.
15227 (add_close_phis_to_outer_loops): Likewise.
15228 (add_close_phis_to_merge_points): Likewise.
15229 (copy_loop_close_phi_args): Likewise.
15230 (copy_cond_phi_nodes): Likewise.
15232 2017-03-20 Martin Liska <mliska@suse.cz>
15234 PR middle-end/79753
15235 * tree-chkp.c (chkp_build_returned_bound): Do not build
15236 returned bounds for a LHS that's not a BOUNDED_P type.
15238 2017-03-20 Martin Liska <mliska@suse.cz>
15242 * tree-chkp.c (chkp_find_bounds_1): Handle REAL_CST,
15243 COMPLEX_CST and VECTOR_CST.
15245 2017-03-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15248 * config/s390/s390.md ("cmp<mode>_ccs_0"): Add a clobber of the
15249 target operand. A new splitter adds the clobber statement in case
15250 the target operand is dead anyway.
15252 2017-03-19 Gerald Pfeifer <gerald@pfeifer.com>
15254 * doc/install.texi (Specific) <sparc-*-linux*>: No longer refer
15255 to age-old versions of binutils and glibc.
15257 2017-03-18 Segher Boessenkool <segher@kernel.crashing.org>
15259 * doc/contrib.texi (Contributors): Remove duplicate entry for myself.
15261 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
15263 * doc/contrib.texi (Contributors): Add Segher Boessenkool.
15265 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
15267 * doc/install.texi (Specific) <arm-*-eabi>: Remove old
15268 requirement for binutils 2.13.
15270 2017-03-17 Jim Wilson <jim.wilson@linaro.org>
15272 * combine.c (try_combine): Delete redundant i1 test. Call
15273 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
15275 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com
15277 * doc/install.texi (Specific) <riscv32-*-elf>: Add riscv32-*-elf,
15278 riscv32-*-linux, riscv64-*-elf, riscv64-*-linux to the table of
15280 <riscv64-*-elf>: Re-arrange section
15281 <riscv32-*-elf>: Add a note about requiring binutils 2.28.
15282 <riscv32-*-linux>: Likewise.
15283 <riscv64-*-elf>: Likewise
15284 <riscv64-*-linux>: Likewise.
15286 2017-03-17 Richard Earnshaw <rearnsha@arm.com>
15289 * aarch64.opt(verbose-cost-dump): Fix typo.
15291 2017-03-17 Pat Haugen <pthaugen@us.ibm.com>
15294 * config/rs6000/rs6000.md (copysign<mode>3_fcpsgn): Test
15295 for VECTOR_UNIT_VSX_P (<MODE>mode) too.
15297 2017-03-17 Bernd Schmidt <bschmidt@redhat.com>
15299 * reload.c (find_reloads): When reloading a nonoffsettable address,
15300 use RELOAD_OTHER for it and its address reloads.
15302 PR rtl-optimization/79910
15303 * combine.c (record_used_regs): New static function.
15304 (try_combine): Handle situations where there is an additional
15305 instruction between I2 and I3 which needs to have a LOG_LINK
15308 2017-03-17 Jeff Law <law@redhat.com>
15310 PR tree-optimization/71437
15311 * tree-vrp.c (simplify_stmt_for_jump_threading): Lookup the
15312 conditional in the hash table first.
15313 (vrp_dom_walker::before_dom_children): Extract condition from
15314 ASSERT_EXPR. Record condition, its inverion and any implied
15315 conditions as well.
15317 2017-03-17 Marek Polacek <polacek@redhat.com>
15318 Markus Trippelsdorf <markus@trippelsdorf.de>
15320 PR tree-optimization/80079
15321 * gimple-ssa-store-merging.c (class pass_store_merging): Initialize
15324 2017-03-17 Richard Biener <rguenther@suse.de>
15326 PR middle-end/80075
15327 * tree-eh.c (stmt_could_throw_1_p): Only handle gimple assigns.
15328 Properly verify the LHS before the RHS possibly claims to be
15330 (stmt_could_throw_p): Hande gimple conds fully here. Clobbers
15333 2017-03-17 Martin Jambor <mjambor@suse.cz>
15335 * doc/invoke.texi (Option Options): Include -fipa-vrp in the list.
15336 (List of -O2 options): Likewise.
15337 (-fipa-bit-cp): Replace "ipa" with "interprocedural."
15340 2017-03-17 Tom de Vries <tom@codesourcery.com>
15342 * gcov-dump.c (print_usage): Print bug_report_url.
15344 2017-03-17 Richard Biener <rguenther@suse.de>
15346 PR middle-end/80050
15347 * genmatch.c (parser::next): Remove pointless check for CPP_EOF.
15348 (parser::peek): Likewise.
15350 2017-03-17 Richard Biener <rguenther@suse.de>
15352 PR tree-optimization/80048
15353 * sese.c (free_sese_info): Properly release rename_map and
15354 copied_bb_map elements.
15356 2017-03-16 Alexandre Oliva <aoliva@redhat.com>
15358 * gimple-ssa-store-merging.c (struct imm_store_chain_info):
15359 Add linked-list forward and backlinks. Insert on
15360 construction, remove on destruction.
15361 (class pass_store_merging): Add m_stores_head field.
15362 (pass_store_merging::terminate_and_process_all_chains):
15363 Iterate over m_stores_head list.
15364 (pass_store_merging::terminate_all_aliasing_chains):
15366 (pass_store_merging::execute): Check for debug stmts first.
15367 Push new chains onto the m_stores_head stack.
15369 2017-03-16 Michael Meissner <meissner@linux.vnet.ibm.com>
15372 * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Allow a
15373 SPLAT operation on ISA 2.07 64-bit systems that have direct move,
15374 but no MTVSRDD support, by doing MTVSRD and XXPERMDI.
15376 2017-03-16 Jeff Law <law@redhat.com>
15378 PR tree-optimization/71437
15379 * tree-ssa-dom.c (dom_opt_dom_walker): Remove thread_across_edge
15380 member function. Implementation moved into after_dom_children
15381 member function and into the threader's thread_outgoing_edges
15383 (dom_opt_dom_walker::after_dom_children): Simplify by moving
15384 some code into new thread_outgoing_edges.
15385 * tree-ssa-threadedge.c (thread_across_edge): Make static and simplify
15386 definition. Simplify marker handling (do it here). Assume we always
15387 have the available expression and the const/copies tables.
15388 (thread_outgoing_edges): New function extracted from tree-ssa-dom.c
15390 * tree-ssa-threadedge.h (thread_outgoing_edges): Declare.
15391 * tree-vrp.c (equiv_stack): No longer file scoped.
15392 (vrp_dom_walker): New class.
15393 (vrp_dom_walker::before_dom_children): New member function.
15394 (vrp_dom_walker::after_dom_children): Likewise.
15395 (identify_jump_threads): Setup domwalker. Use it rather than
15396 walking edges in a random order by hand. Simplify setup/finalization.
15397 (finalize_jump_threads): Remove.
15398 (vrp_finalize): Do not call identify_jump_threads here.
15399 (execute_vrp): Do it here instead and call thread_through_all_blocks
15402 PR tree-optimization/71437
15403 * tree-ssa-dom.c (pfn_simplify): Add basic_block argument. All
15405 (simplify_stmt_for_jump_threading): Add basic_block argument. All
15407 (lhs_of_dominating_assert): Moved from here into tree-vrp.c.
15408 (dom_opt_dom_walker::thread_across_edge): Remove
15409 handle_dominating_asserts argument. All callers changed.
15410 (record_temporary_equivalences_from_stmts_at_dest): Corresponding
15411 changes. Remove calls to lhs_of_dominating_assert. Other
15412 uses of handle_dominating_asserts turn into unconditional code
15413 (simplify_control_stmt_condition_1): Likewise.
15414 (simplify_control_stmt_condition): Likewise.
15415 (thread_through_normal_block, thread_across_edge): Likewise.
15416 * tree-ssa-threadedge.h (thread_across_edge): Corresponding changes.
15417 * tree-vrp.c (lhs_of_dominating_assert): Move here. Return original
15418 object if it is not an SSA_NAME.
15419 (simplify_stmt_for_jump_threading): Call lhs_of_dominating_assert
15420 before calling into the VRP specific simplifiers.
15421 (identify_jump_threads): Remove handle_dominating_asserts
15424 2017-03-16 Jakub Jelinek <jakub@redhat.com>
15427 * tree-diagnostic.c (default_tree_printer): No longer static.
15428 * tree-diagnostic.h (default_tree_printer): New prototype.
15430 2017-03-16 Tamar Christina <tamar.christina@arm.com>
15432 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>)
15433 Change ins into fmov.
15435 2017-03-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15437 * config/aarch64/iterators.md (h_con): Return "x" for V4HF and V8HF.
15438 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_from_dup<mode>):
15439 Use h_con constraint for operand 1.
15440 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
15441 (*aarch64_mulx_elt_from_dup<mode>): Likewise for operand 2.
15443 2017-03-15 Jeff Law <law@redhat.com>
15445 PR tree-optimization/71437
15446 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): New function.
15447 (record_temporary_equivalences): Use it.
15449 PR tree-optimization/71437
15450 * tree-ssa-dom.c (struct cond_equivalence): Moved from here into
15451 tree-ssa-scopedtables.
15452 (lookup_avail_expr, build_and_record_new_cond): Likewise.
15453 (record_conditions, record_cond, vuse_eq): Likewise.
15454 (record_edge_info): Adjust to API tweak of record_conditions.
15455 (simplify_stmt_for_jump_threading): Similarly for lookup_avail_expr.
15456 (record_temporary_equivalences, optimize_stmt): Likewise.
15457 (eliminate_redundant_computations): Likewise.
15458 (record_equivalences_from_stmt): Likewise.
15459 * tree-ssa-scopedtables.c: Include options.h and params.h.
15460 (vuse_eq): New function, moved from tree-ssa-dom.c
15461 (build_and_record_new_cond): Likewise.
15462 (record_conditions): Likewise. Accept vector of conditions rather
15463 than edge_equivalence structure for first argument.
15464 for the first argument.
15465 (avail_exprs_stack::lookup_avail_expr): New member function, moved
15466 from tree-ssa-dom.c.
15467 (avail_exprs_stack::record_cond): Likewise.
15468 * tree-ssa-scopedtables.h (struct cond_equivalence): Moved here
15469 from tree-ssa-dom.c.
15470 (avail_exprs_stack): Add new member functions lookup_avail_expr
15472 (record_conditions): Declare.
15474 2017-03-15 Vladimir Makarov <vmakarov@redhat.com>
15477 * lra-constraints.c (process_alt_operands): Increase reject for
15478 reloading an input/output operand.
15480 2017-03-15 Michael Meissner <meissner@linux.vnet.ibm.com>
15483 * config/rs6000/rs6000.md (float<QHI:mode><IEEE128:mode>2): Define
15484 insns to convert from signed/unsigned char/short to IEEE 128-bit
15486 (floatuns<QHI:mode><IEEE128:mode>2): Likewise.
15488 2017-03-15 Uros Bizjak <ubizjak@gmail.com>
15491 * config/i386/i386.c (ix86_vector_duplicate_value): Create
15492 subreg of inner mode for values already in registers.
15494 2017-03-15 Bernd Schmidt <bschmidt@redhat.com>
15496 * config/c6x/c6x.c (hwloop_optimize): Handle case where the old
15497 iteration reg is used after the loop.
15499 2017-03-14 Martin Sebor <msebor@redhat.com>
15501 PR tree-optimization/79800
15502 * gimple-ssa-sprintf.c (format_floating: Add argument. Handle
15503 precision in negative-positive range.
15504 (format_floating): Call non-const overload with adjusted precision.
15506 2017-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
15509 * config/rs6000/rs6000.h (TARGET_FRSQRTES): Add check for
15512 2017-03-14 Martin Sebor <msebor@redhat.com>
15514 PR middle-end/80020
15515 * builtin-attrs.def (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): New macro.
15516 * builtins.def (aligned_alloc): Use it.
15519 * Makefile.in (GTFILES): Add calls.c.
15520 * calls.c: Include "gt-calls.h".
15522 2017-03-14 Bernd Schmidt <bschmidt@redhat.com>
15524 PR rtl-optimization/79728
15525 * regs.h (struct target_regs): New field
15526 x_contains_allocatable_regs_of_mode.
15527 (contains_allocatable_regs_of_mode): New macro.
15528 * reginfo.c (init_reg_sets_1): Initialize it, and change
15529 contains_reg_of_mode so it includes global regs as well.
15530 * reload.c (push_reload): Use contains_allocatable_regs_of_mode
15531 rather than contains_regs_of_mode.
15533 2017-03-14 Martin Liska <mliska@suse.cz>
15535 * doc/invoke.texi: Document options that can't be combined with
15536 -fcheck-pointer-bounds.
15538 2017-03-14 Martin Liska <mliska@suse.cz>
15540 PR middle-end/79831
15541 * doc/invoke.texi (-Wchkp): Document the option.
15543 2017-03-14 Martin Liska <mliska@suse.cz>
15545 * Makefile.in: Install gcov-dump.
15547 2017-03-14 Martin Liska <mliska@suse.cz>
15549 * multiple_target.c (expand_target_clones): Bail out for
15550 an invalid attribute.
15552 2017-03-14 Richard Biener <rguenther@suse.de>
15554 * alias.c (struct alias_set_entry): Pack properly.
15555 * cfgloop.h (struct loop): Likewise.
15556 * cse.c (struct set): Likewise.
15557 * ipa-utils.c (struct searchc_env): Likewise.
15558 * loop-invariant.c (struct invariant): Likewise.
15559 * lra-remat.c (struct cand): Likewise.
15560 * recog.c (struct change_t): Likewise.
15561 * rtl.h (struct address_info): Likewise.
15562 * symbol-summary.h (function_summary): Likewise.
15563 * tree-loop-distribution.c (struct partition): Likewise.
15564 * tree-object-size.c (struct object_size_info): Likewise.
15565 * tree-ssa-loop-ivopts.c (struct cost_pair): Likewise.
15566 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Likewise.
15567 * tree-vect-data-refs.c (struct _vect_peel_info): Likewise.
15568 * tree-vect-slp.c (struct _slp_oprnd_info): Likewise.
15569 * tree-vect-stmts.c (struct simd_call_arg_info): Likewise.
15570 * tree-vectorizer.h (struct _loop_vec_info): Likewise.
15571 (struct _stmt_vec_info): Likewise.
15573 2017-03-14 Martin Liska <mliska@suse.cz>
15576 * multiple_target.c (create_dispatcher_calls): Check that
15577 a target can create a function dispatcher.
15579 2017-03-14 Martin Liska <mliska@suse.cz>
15582 * multiple_target.c (expand_target_clones): Drop local.local
15583 flag for default implementation.
15585 2017-03-14 Richard Biener <rguenther@suse.de>
15587 PR tree-optimization/80030
15588 * tree-vect-stmts.c (vectorizable_store): Plug memleak.
15590 2017-03-13 Kito Cheng <kito.cheng@gmail.com>
15592 * config/riscv/riscv.c (riscv_emit_float_compare>: Use
15593 gcc_fallthrough() instead of __attribute__((fallthrough));
15595 2017-03-13 Gerald Pfeifer <gerald@pfeifer.com>
15597 * doc/gcc.texi: Remove "up" link to (DIR).
15598 * doc/gccint.texi: Ditto.
15600 2017-03-13 Gerald Pfeifer <gerald@pfeifer.com>
15602 * doc/install.texi (Specific) <avr>: Remove reference to
15605 2017-03-13 Jeff Law <law@redhat.com>
15607 * config/riscv/riscv.c (riscv_emit_float_compare): Use fallthru
15608 attribute rather than comments.
15610 * config/pdp11/pdp11.md (movmemhi): Adjust operand numbers to
15611 match_scratch operand is highest.
15613 2017-03-13 Martin Liska <mliska@suse.cz>
15615 PR middle-end/78339
15616 * ipa-pure-const.c (warn_function_noreturn): If the declarations
15617 is a CHKP clone, use original declaration.
15619 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
15621 * config/arc/arc.c (arc_init): Use multiplier whenever we have it.
15622 (arc_conditional_register_usage): Use a different allocation order
15623 when optimizing for size.
15624 * common/config/arc/arc-common.c (arc_option_optimization_table):
15625 Section anchors default on when optimizing for size.
15627 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
15629 * config/arc/arc.md (*tst_bitfield_tst): Fix pattern.
15631 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
15633 * config/arc/arc.c (arc_output_addsi): Emit code density adds.
15634 * config/arc/arc.md (cpu_facility): Add cd variant.
15635 (*movqi_insn): Add code density variant.
15636 (*movhi_insn): Likewise.
15637 (*movqi_insn): Likewise.
15638 (*addsi3_mixed): Likewise.
15639 (subsi3_insn): Likewise.
15641 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
15643 * config/arc/arc.md (movsi_cond_exec): Update constraint.
15645 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
15647 * config/arc/arc.c (arc_legitimize_pic_address): Handle PIC
15648 expressions with MINUS and UNARY ops.
15650 2017-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15653 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3):
15655 (vec_sel_widen_ssum_lo<mode><V_half>3): ... This. Avoid mismatch
15656 between vec_select and vector argument.
15657 (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): Rename to...
15658 (vec_sel_widen_ssum_hi<mode><V_half>3): ... This. Likewise.
15659 (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): Rename to...
15660 (vec_sel_widen_usum_lo<mode><V_half>3): ... This.
15661 (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): Rename to...
15662 (vec_sel_widen_usum_hi<mode><V_half>3): ... This.
15664 2017-03-13 Richard Biener <rguenther@suse.de>
15667 * params.def (vect-max-peeling-for-alignment): Fix typo.
15669 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
15671 * doc/install.texi (Specific) <mips-*-*>: Remove description of
15672 issue that only occurred with binutils below 2.18.
15674 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
15676 * doc/install.texi (Specific) <cris-axis-elf>: No longer
15677 refer to binutils 2.11/2.12 minimum.
15679 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
15681 * doc/install.texi (Specific) <powerpc-*-*>: Remove link to
15682 ftp.kernel.org and simplify binutils requirement.
15684 2017-03-11 Gerald Pfeifer <gerald@pfeifer.com>
15686 * doc/invoke.texi (Warning Options): Fix spelling of link-time
15688 (Optimize Options): Ditto. Also remove redundancy.
15690 2017-03-10 David Malcolm <dmalcolm@redhat.com>
15692 PR translation/79848
15693 * ipa-devirt.c (warn_types_mismatch): Simplify uses of "%<%s%>" to
15695 * ipa-pure-const.c (suggest_attribute): Likewise. Convert _
15696 to G_ to avoid double translation.
15698 2017-03-10 David Malcolm <dmalcolm@redhat.com>
15700 PR translation/79923
15701 * auto-profile.c (get_combined_location): Convert leading
15702 character of diagnostics to lower case and remove trailing period.
15703 (read_profile): Likewise for various diagnostics.
15704 * config/arm/arm.c (arm_option_override): Remove trailing period
15705 from various diagnostics.
15706 * config/msp430/msp430.c (msp430_expand_delay_cycles): Likewise.
15707 (msp430_expand_delay_cycles): Likewise.
15709 2017-03-10 David Malcolm <dmalcolm@redhat.com>
15712 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Quote the
15713 full command-line argument, rather than just "str".
15714 (aarch64_validate_march): Likewise.
15715 (aarch64_validate_mtune): Likewise.
15717 2017-03-10 Bernd Schmidt <bschmidt@redhat.com>
15719 PR rtl-optimization/78911
15720 * lra-assigns.c (must_not_spill_p): New function.
15721 (spill_for): Use it.
15723 2017-03-10 Jakub Jelinek <jakub@redhat.com>
15725 PR tree-optimization/79981
15726 * tree-vrp.c (extract_range_basic): Handle IMAGPART_EXPR of
15727 ATOMIC_COMPARE_EXCHANGE ifn result.
15728 (stmt_interesting_for_vrp, vrp_visit_stmt): Handle
15729 IFN_ATOMIC_COMPARE_EXCHANGE.
15731 2017-03-10 David Malcolm <dmalcolm@redhat.com>
15734 * opts.c (parse_sanitizer_options): Add missing question mark to
15735 "did you mean" message.
15737 2017-03-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15739 * config/rs6000/rs6000-builtin.def (VMULEUB_UNS): Remove orphaned
15741 (VMULEUH_UNS): Likewise.
15742 (VMULOUB_UNS): Likewise.
15743 (VMULOUH_UNS): Likewise.
15744 * config/rs6000/rs6000.c (builtin_function_type): Remove
15745 references to ALTIVEC_BUILTIN_VMUL[EO]U[BH]_UNS.
15747 2017-03-10 David Malcolm <dmalcolm@redhat.com>
15750 * read-rtl-function.c (function_reader::read_rtx_operand): Update
15751 x with result of extra_parsing_for_operand_code_0.
15752 (function_reader::extra_parsing_for_operand_code_0): Convert
15753 return type from void to rtx, returning x. When reading
15754 SYMBOL_REF with SYMBOL_FLAG_HAS_BLOCK_INFO, reallocate x to the
15755 larger size containing struct block_symbol.
15757 2017-03-10 Segher Boessenkool <segher@kernel.crashing.org>
15759 * config/rs6000/rs6000.c (rs6000_option_override_internal): Disallow
15760 -mfloat128-hardware without -m64.
15762 2017-03-10 Will Schmidt <will_schmidt@vnet.ibm.com>
15765 * config/rs6000/rs6000.c (builtin_function_type): Add VMUL*U[HB]
15766 entries to the case statement that marks unsigned arguments to
15767 overloaded functions.
15769 2017-03-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
15771 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
15772 two typographic errors in the handling of TARGET_UPPER_REGS_DI.
15774 2017-03-10 Pat Haugen <pthaugen@us.ibm.com>
15777 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Test
15778 TARGET_UPPER_REGS_DI when setting 'wi' constraint regclass.
15780 2017-03-10 Martin Liska <mliska@suse.cz>
15784 * toplev.c (process_options): Enable MPX with LSAN and UBSAN.
15785 * tree-chkp.c (chkp_walk_pointer_assignments): Verify that
15788 2017-03-10 Olivier Hainque <hainque@adacore.com>
15790 * tree-switch-conversion (array_value_type): Start by resetting
15791 candidate type to it's main variant.
15793 2017-03-10 Jakub Jelinek <jakub@redhat.com>
15795 PR rtl-optimization/79909
15796 * combine.c (try_combine): Use simplify_replace_rtx on individual
15797 CALL_INSN_FUNCTION_USAGE elements instead of replace_rtx on copy_rtx
15798 of the whole CALL_INSN_FUNCTION_USAGE.
15800 PR tree-optimization/79972
15801 * gimple-ssa-warn-alloca.c (alloca_call_type): Only call
15802 get_range_info on SSA_NAMEs. Formatting fixes.
15804 2017-03-10 Richard Biener <rguenther@suse.de>
15805 Jakub Jelinek <jakub@redhat.com>
15807 PR tree-optimization/77975
15808 * tree-ssa-loop-niter.c (get_base_for): Allow phi argument from latch
15809 edge to be constant.
15810 (get_val_for): For constant x return it. Formatting fix.
15811 (loop_niter_by_eval): Avoid pointless looping if the next iteration
15812 would use the same bases as the current one.
15814 2017-03-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15816 * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Use rotate
15817 instead of vec_select for V1TImode.
15818 * conifg/rs6000/vsx.md (VSX_LE): Remove mode iterator that is no
15820 (VSX_LE_128): Add V1TI to this mode iterator.
15821 (*vsx_le_perm_load_<mode>): Change to use VSX_D mode iterator.
15822 (*vsx_le_perm_store_<mode>): Likewise.
15823 (pre-reload splitter for VSX stores): Likewise.
15824 (post-reload splitter for VSX stores): Likewise.
15825 (*vsx_xxpermdi2_le_<mode>): Likewise.
15826 (*vsx_lxvd2x2_le_<mode>): Likewise.
15827 (*vsx_stxvd2x2_le_<mode>): Likewise.
15829 2017-03-09 Michael Eager <eager@eagercon.com>
15831 Correct failures with --enable-checking=yes,rtl.
15833 * config/microblaze/microblaze.c (microblaze_expand_shift):
15834 Replace GET_CODE test with CONST_INT_P and INTVAL test with
15835 test for const0_rtx.
15836 * config/microblaze/microblaze.md (ashlsi3_byone, ashrsi3_byone,
15837 lshrsi3_byone): Replace INTVAL with test for const1_rtx.
15839 2017-03-09 Richard Biener <rguenther@suse.de>
15841 PR tree-optimization/79977
15842 * graphite-scop-detection.c (scop_detection::merge_sese):
15843 Handle the case of extra exits to blocks dominating the entry.
15845 2017-03-09 Toma Tabacu <toma.tabacu@imgtec.com>
15847 * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
15850 2017-03-09 Vladimir Makarov <vmakarov@redhat.com>
15852 PR rtl-optimization/79949
15853 * lra-constraints.c (process_alt_operands): Check memory when
15854 trying to predict a cycle. Print about the overall increase.
15856 2017-03-09 Richard Biener <rguenther@suse.de>
15858 PR middle-end/79971
15859 * gimple-expr.c (useless_type_conversion_p): Preserve
15860 TYPE_SATURATING for fixed-point types.
15862 2017-03-09 Richard Biener <rguenther@suse.de>
15865 * ipa-prop.c (ipa_modify_formal_parameters): Avoid changing
15866 alignment of BLKmode params.
15868 2017-03-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15871 * config/aarch64/iterators.md (VALL_F16_NO_V2Q): New mode iterator.
15872 (VALL_NO_V2Q): Likewise.
15874 * config/aarch64/aarch64-simd.md
15875 (aarch64_dup_lane_<vswap_width_name><mode>): Use VALL_F16_NO_V2Q
15877 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Use
15878 VALL_NO_V2Q mode iterator.
15879 (*aarch64_vgetfmulx<mode>): Use VDQF iterator.
15881 2017-03-09 Martin Liska <mliska@suse.cz>
15883 PR tree-optimization/79631
15884 * tree-chkp-opt.c (chkp_is_constant_addr): Call
15885 tree_int_cst_sign_bit just for INTEGER constants.
15887 2017-03-09 Martin Liska <mliska@suse.cz>
15891 * toplev.c (process_options): Disable -fcheck-pointer-bounds with
15894 2017-03-09 Marek Polacek <polacek@redhat.com>
15897 * tree.c (inchash::add_expr): Handle TREE_VEC.
15899 2017-03-09 Martin Liska <mliska@suse.cz>
15902 (chkp_narrow_size_and_offset): New function.
15903 (chkp_parse_array_and_component_ref): Support BIT_FIELD_REF.
15904 (void chkp_parse_bit_field_ref): New function.
15905 (chkp_make_addressed_object_bounds): Add case for BIT_FIELD_REF.
15906 (chkp_process_stmt): Use chkp_parse_bit_field_ref.
15908 2017-03-09 Martin Liska <mliska@suse.cz>
15911 * tree-chkp.c (chkp_get_bound_for_parm): Get bounds for a param.
15912 (chkp_find_bounds_1): Remove gcc_unreachable.
15914 2017-03-09 Jakub Jelinek <jakub@redhat.com>
15917 * asan.c (get_mem_refs_of_builtin_call): For BUILT_IN_ATOMIC* and
15918 BUILT_IN_SYNC*, determine the access type from the size suffix and
15919 always build a MEM_REF with that type. Handle forgotten
15920 BUILT_IN_SYNC_FETCH_AND_NAND_16 and BUILT_IN_SYNC_NAND_AND_FETCH_16.
15923 * config/i386/avx512vlintrin.h (_mm256_cmpge_epi32_mask,
15924 _mm256_cmpge_epi64_mask, _mm256_cmpge_epu32_mask,
15925 _mm256_cmpge_epu64_mask, _mm256_cmple_epi32_mask,
15926 _mm256_cmple_epi64_mask, _mm256_cmple_epu32_mask,
15927 _mm256_cmple_epu64_mask, _mm256_cmplt_epi32_mask,
15928 _mm256_cmplt_epi64_mask, _mm256_cmplt_epu32_mask,
15929 _mm256_cmplt_epu64_mask, _mm256_cmpneq_epi32_mask,
15930 _mm256_cmpneq_epi64_mask, _mm256_cmpneq_epu32_mask,
15931 _mm256_cmpneq_epu64_mask, _mm256_mask_cmpge_epi32_mask,
15932 _mm256_mask_cmpge_epi64_mask, _mm256_mask_cmpge_epu32_mask,
15933 _mm256_mask_cmpge_epu64_mask, _mm256_mask_cmple_epi32_mask,
15934 _mm256_mask_cmple_epi64_mask, _mm256_mask_cmple_epu32_mask,
15935 _mm256_mask_cmple_epu64_mask, _mm256_mask_cmplt_epi32_mask,
15936 _mm256_mask_cmplt_epi64_mask, _mm256_mask_cmplt_epu32_mask,
15937 _mm256_mask_cmplt_epu64_mask, _mm256_mask_cmpneq_epi32_mask,
15938 _mm256_mask_cmpneq_epi64_mask, _mm256_mask_cmpneq_epu32_mask,
15939 _mm256_mask_cmpneq_epu64_mask, _mm_cmpge_epi32_mask,
15940 _mm_cmpge_epi64_mask, _mm_cmpge_epu32_mask, _mm_cmpge_epu64_mask,
15941 _mm_cmple_epi32_mask, _mm_cmple_epi64_mask, _mm_cmple_epu32_mask,
15942 _mm_cmple_epu64_mask, _mm_cmplt_epi32_mask, _mm_cmplt_epi64_mask,
15943 _mm_cmplt_epu32_mask, _mm_cmplt_epu64_mask, _mm_cmpneq_epi32_mask,
15944 _mm_cmpneq_epi64_mask, _mm_cmpneq_epu32_mask, _mm_cmpneq_epu64_mask,
15945 _mm_mask_cmpge_epi32_mask, _mm_mask_cmpge_epi64_mask,
15946 _mm_mask_cmpge_epu32_mask, _mm_mask_cmpge_epu64_mask,
15947 _mm_mask_cmple_epi32_mask, _mm_mask_cmple_epi64_mask,
15948 _mm_mask_cmple_epu32_mask, _mm_mask_cmple_epu64_mask,
15949 _mm_mask_cmplt_epi32_mask, _mm_mask_cmplt_epi64_mask,
15950 _mm_mask_cmplt_epu32_mask, _mm_mask_cmplt_epu64_mask,
15951 _mm_mask_cmpneq_epi32_mask, _mm_mask_cmpneq_epi64_mask,
15952 _mm_mask_cmpneq_epu32_mask, _mm_mask_cmpneq_epu64_mask): Move
15953 definitions outside of __OPTIMIZE__ guarded section.
15956 * config/i386/avx512bwintrin.h (_mm512_packs_epi32,
15957 _mm512_maskz_packs_epi32, _mm512_mask_packs_epi32,
15958 _mm512_packus_epi32, _mm512_maskz_packus_epi32,
15959 _mm512_mask_packus_epi32): Move definitions outside of __OPTIMIZE__
15962 2017-03-09 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15964 * config/s390/vx-builtins.md ("vfee<mode>", "vfeez<mode>")
15965 ("vfenez<mode>"): Add missing constraints.
15967 2017-03-08 Martin Sebor <msebor@redhat.com>
15970 * config/nds32/nds32.c (nds32_option_override):
15971 Fix misspelled diagnostic.
15973 2017-03-08 Jakub Jelinek <jakub@redhat.com>
15976 * gimplify.c (gimplify_omp_for): Replace index var in outer
15977 taskloop statement with an artificial variable and add
15978 OMP_CLAUSE_PRIVATE clause for it.
15980 2017-03-08 Richard Biener <rguenther@suse.de>
15982 PR tree-optimization/79955
15983 * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
15984 for accesses that are completely outside of the variable.
15986 2017-03-08 Andrew Haley <aph@redhat.com>
15988 PR tree-optimization/79943
15989 * tree-ssa-loop-split.c (compute_new_first_bound): When
15990 calculating the new upper bound, (END-BEG) should be added, not
15993 2017-03-08 Jakub Jelinek <jakub@redhat.com>
15995 * config/avr/avr.md (setmemhi): Make sure match_dup
15996 operand number comes before match_scratch.
15998 2017-03-08 Richard Biener <rguenther@suse.de>
16000 PR tree-optimization/79920
16001 * tree-vect-slp.c (vect_create_mask_and_perm): Remove and inline
16002 with ncopies == 1 to ...
16003 (vect_transform_slp_perm_load): ... here. Properly compute
16004 all element loads by iterating VF times over the group. Do
16005 not handle ncopies (computed in a broken way) in
16006 vect_create_mask_and_perm.
16008 2017-03-08 Jakub Jelinek <jakub@redhat.com>
16011 * internal-fn.c (expand_vector_ubsan_overflow): If arg0 or arg1
16012 is a uniform vector, use uniform_vector_p return value instead of
16013 building ARRAY_REF on folded VIEW_CONVERT_EXPR to array type.
16015 2017-03-07 Marek Polacek <polacek@redhat.com>
16017 PR middle-end/79809
16018 * gimple-ssa-warn-alloca.c (pass_walloca::gate): Use HOST_WIDE_INT.
16019 (alloca_call_type): Likewise.
16021 2017-03-07 Martin Liska <mliska@suse.cz>
16023 * gcov.c (process_args): Put comment to correct location.
16025 2017-03-07 Martin Liska <mliska@suse.cz>
16027 PR middle-end/68270
16028 * tree-chkp.c (chkp_may_narrow_to_field): Add new argument ref.
16029 Use array_at_struct_end_p instead of DECL_CHAIN (field).
16030 (chkp_narrow_bounds_for_field): Likewise.
16031 (chkp_parse_array_and_component_ref): Pass one more argument to
16034 2017-03-07 Richard Biener <rguenther@suse.de>
16036 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Preserve
16039 2017-03-07 Segher Boessenkool <segher@kernel.crashing.org>
16041 * config/i386/i386.c (ix86_local_alignment): Align most aggregates
16042 of 16 bytes and more to 16 bytes, not those of 16 bits and more.
16044 2017-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16047 * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Add full stop
16048 to end of description.
16049 (PARAM_MAX_STORES_TO_MERGE): Likewise.
16051 2017-03-07 Jakub Jelinek <jakub@redhat.com>
16053 PR rtl-optimization/79901
16054 * config/i386/sse.md (*avx512bw_<code><mode>3<mask_name>): Renamed to
16056 (*avx512f_<code><mode>3<mask_name>): ... this.
16057 (<code><mode>3 with maxmin code iterator): Use VI8_AVX2_AVX512F
16058 iterator instead of VI8_AVX2_AVX512BW.
16060 PR rtl-optimization/79901
16061 * expr.c (expand_expr_real_2): For vector MIN/MAX, if there is no
16062 min/max expander, expand it using expand_vec_cond_expr.
16065 * ubsan.c (ubsan_encode_value): Call mark_addressable on the
16068 2017-03-06 Jakub Jelinek <jakub@redhat.com>
16071 * dwarf2out.h (dw_vec_const): Change array type from unsigned char *
16072 to void * for PCH reasons.
16073 * dwarf2out.c (output_loc_operands, output_die): Cast
16074 v.val_vec.array to unsigned char *.
16076 2017-03-06 John David Anglin <danglin@gcc.gnu.org>
16079 * config/pa/pa-64.h (PAD_VARARGS_DOWN): Don't pad down complex and
16082 2017-03-06 Vladimir Makarov <vmakarov@redhat.com>
16084 PR rtl-optimization/79571
16085 * lra-constraints.c (process_alt_operands): Calculate static
16086 reject and subtract it from overall when only addresses will be
16089 2017-03-06 Julia Koval <julia.koval@intel.com>
16092 * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): Set
16093 incoming stack boundary to 128 for 64-bit targets.
16095 2017-03-06 Richard Biener <rguenther@suse.de>
16097 PR tree-optimization/79894
16098 * tree-vectorizer.c (vectorize_loops): Set loop_vectorized_call
16099 to NULL after folding it.
16101 2017-03-06 Richard Biener <rguenther@suse.de>
16103 PR tree-optimization/79824
16104 * tree-vect-stmts.c (get_group_load_store_type): Fix alignment
16105 check disabling peeling for gaps.
16107 2017-03-06 Toma Tabacu <toma.tabacu@imgtec.com>
16109 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
16110 attributes): Document gettimeofday.
16112 2017-03-06 Robin Dapp <rdapp@linux.vnet.ibm.com>
16114 * config/s390/s390.c (s390_option_override_internal): Set
16115 PARAM_MIN_VECT_LOOP_BOUND
16117 2017-03-06 Robin Dapp <rdapp@linux.vnet.ibm.com>
16119 * config/s390/s390.c (s390_asm_output_function_label): Use nopr %r0.
16120 * config/s390/s390.md: Likewise.
16122 2017-03-06 Jakub Jelinek <jakub@redhat.com>
16125 * config/i386/sse.md (VI8F_256_512): Remove mode iterator.
16126 (<avx2_avx512>_perm<mode>): Rename to ...
16127 (avx2_perm<mode>): ... this. Use VI8F_256 iterator instead
16129 (<avx512>_perm<mode>_mask): Rename to ...
16130 (avx512vl_perm<mode>_mask): ... this. Use VI8F_256 iterator instead
16132 (<avx2_avx512>_perm<mode>_1<mask_name>): Rename to ...
16133 (avx2_perm<mode>_1<mask_name): ... this. Use VI8F_256 iterator
16134 instead of VI8F_256_512.
16135 (avx512f_perm<mode>): New define_expand.
16136 (avx512f_perm<mode>_mask): Likewise.
16137 (avx512f_perm<mode>_1<mask_name>): New define_insn.
16138 (<avx512>_vec_dup<mode>_1): Fix up vec_select mode.
16140 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
16142 * config/mips/mips-msa.md (msa_fmax_a_<msafmt>, msa_fmin_a_<msafmt>,
16143 msa_max_a_<msafmt>, msa_min_a_<msafmt>): Introduce mode interator for
16145 (smin<mode>3, smax<mode>3): Change operand print code from 'B' to 'E'.
16147 2017-03-06 Martin Liska <mliska@suse.cz>
16150 * asan.c (asan_expand_poison_ifn): Do not expand ASAN_POISON
16151 when having a SSA NAME w/o VAR_DECL assigned to it.
16153 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
16155 * config/mips/mips-msa.md (msa_dotp_<su>_d, msa_dpadd_<su>_d,
16156 msa_dpsub_<su>_d): Fix MODE for vec_select.
16158 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
16160 * config/mips/mips.c (mips_gen_const_int_vector): Change type of last
16162 * config/mips/mips-protos.h (mips_gen_const_int_vector): Likewise.
16164 2017-03-06 Richard Biener <rguenther@suse.de>
16166 * lto-streamer.c (lto_check_version): Use %qs in diagnostics.
16167 * plugin.c (register_plugin_info): Likewise.
16168 * tree-chkp.c (chkp_make_static_const_bounds): Likewise.
16170 2017-03-05 Jakub Jelinek <jakub@redhat.com>
16172 * config/i386/sse.md (sse_storehps, sse_storelps,
16173 avx_<castmode><avxsizesuffix>_<castmode>,
16174 avx512f_<castmode><avxsizesuffix>_<castmode>,
16175 avx512f_<castmode><avxsizesuffix>_256<castmode>): Require
16176 in condition that at least one operand is not a MEM.
16178 2017-03-03 Jakub Jelinek <jakub@redhat.com>
16180 PR middle-end/79805
16181 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET, ATOMIC_BIT_TEST_AND_RESET,
16182 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_COMPARE_EXCHANGE): Remove
16184 * gimple-fold.c (fold_builtin_atomic_compare_exchange): Set
16185 gimple_call_nothrow_p flag based on whether original builtin can throw.
16186 If it can, emit following stmts on the fallthrough edge.
16187 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Similarly, except
16188 don't create new bb if inserting just debug stmts on the edge, try to
16189 insert them on the fallthru bb or just reset debug stmts.
16191 2017-03-03 Segher Boesssenkool <segher@kernel.crashing.org>
16194 * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Save and
16195 restore recog_data (including the operand rtxes inside it) around
16196 the call to get_insn_template.
16198 2017-03-03 Martin Sebor <msebor@redhat.com>
16200 PR tree-optimization/79699
16201 * context.c (context::~context): Free MPFR caches to avoid
16202 a memory leak on program exit.
16204 2017-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16206 * config/aarch64/aarch64.c (aarch64_float_const_representable_p):
16207 Use wide_int::ulow () instead of .elt (0).
16209 2017-03-03 Uros Bizjak <ubizjak@gmail.com>
16211 * config/i386/i386.md (*pushtf): Change *roF constraint to *roC.
16212 (*pushxf): Limit oF constraint to 32bit targets and add oC
16213 constraint for 64bit targets.
16214 (pushxf splitter): Use PUSH_ROUNDING to calculate stack adjustment.
16215 (*pushdf): Change rmF constraint to rmC.
16217 2017-03-03 Martin Liska <mliska@suse.cz>
16219 * tree-ssa-loop-prefetch.c (pass_loop_prefetch::execute):
16220 Remove unused variable.
16222 2017-03-03 Jakub Jelinek <jakub@redhat.com>
16225 * config/i386/i386.c (ix86_expand_multi_arg_builtin): If target
16226 is a memory operand, increase num_memory.
16227 (ix86_expand_args_builtin): Likewise.
16229 2017-03-03 Jan Hubicka <jh@suse.cz>
16232 * ipa-devirt.c (maybe_record_node): Properly handle
16233 __cxa_pure_virtual visibility.
16235 2017-03-03 Martin Liska <mliska@suse.cz>
16237 PR tree-optimization/79803
16238 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Remove
16240 (pass_loop_prefetch::execute): Disabled optimization if an
16241 assumption about L1 cache size is not met.
16243 2017-03-03 Martin Liska <mliska@suse.cz>
16245 PR rtl-optimization/79574
16246 * gcse.c (struct gcse_expr): Use HOST_WIDE_INT instead of int.
16247 (hash_scan_set): Likewise.
16248 (dump_hash_table): Likewise.
16249 (hoist_code): Likewise.
16251 2017-03-03 Richard Biener <rguenther@suse.de>
16253 * fixed-value.c (fixed_from_string): Restore use of elt (1)
16254 in place of uhigh ().
16255 (fixed_convert_from_real): Likewise.
16257 2017-03-03 Uros Bizjak <ubizjak@gmail.com>
16260 * config/i386/i386.md (*pushxf_rounded): Use Pmode instead of DImode.
16262 2017-03-03 Richard Biener <rguenther@suse.de>
16264 PR middle-end/79818
16265 * match.pd ( X +- C1 CMP C2 -> X CMP C2 -+ C1): Add missing
16266 TYPE_OVERFLOW_UNDEFINED check.
16268 2017-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16270 * config/rs6000/vector.md (vector_ne_<mode>_p): Correct operand
16272 (vector_ae_<mode>_p): Likewise.
16273 (vector_nez_<mode>_p): Likewise.
16274 (vector_ne_v2di_p): Likewise.
16275 (vector_ae_v2di_p): Likewise.
16276 (vector_ne_<mode>_p): Likewise.
16277 * config/rs6000/vsx.md (vsx_tsqrt<mode>2_fg): Correct operand
16279 (vsx_tsqrt<mode>2_fe): Likewise.
16281 2017-03-02 Uros Bizjak <ubizjak@gmail.com>
16284 * config/i386/i386.md (*pushxf_rounded): New insn_and_split pattern.
16286 2017-03-02 Jakub Jelinek <jakub@redhat.com>
16288 PR rtl-optimization/79780
16289 * cprop.c (one_cprop_pass): When second and further conditional trap
16290 in a single basic block is turned into an unconditional trap, turn it
16291 into a deleted note to avoid RTL verification failures.
16293 2017-03-02 Richard Biener <rguenther@suse.de>
16295 * fold-const.c (const_binop): Use ulow () instead of elt (0).
16297 2017-03-02 Richard Biener <rguenther@suse.de>
16299 PR tree-optimization/79345
16301 * tree-ssa-alias.c (walk_aliased_vdefs_1): Take a limit
16302 param and abort the walk, returning -1 if it is hit.
16303 (walk_aliased_vdefs): Take a limit param and pass it on.
16304 * tree-ssa-alias.h (walk_aliased_vdefs): Add a limit param,
16305 defaulting to 0 and return a signed int.
16306 * tree-ssa-uninit.c (struct check_defs_data): New struct.
16307 (check_defs): New helper.
16308 (warn_uninitialized_vars): Use walk_aliased_vdefs to warn
16309 about uninitialized memory.
16310 * fixed-value.c (fixed_from_string): Use ulow/uhigh to avoid
16311 bogus uninitialized warning.
16312 (fixed_convert_from_real): Likewise.
16314 2017-03-02 Bin Cheng <bin.cheng@arm.com>
16316 PR tree-optimization/66768
16317 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Skip addr
16318 iv_use if base object can't be determined.
16320 2017-03-02 Jakub Jelinek <jakub@redhat.com>
16322 PR tree-optimization/79345
16323 * gensupport.h (struct pattern_stats): Add min_scratch_opno field.
16324 * gensupport.c (get_pattern_stats_1) <case MATCH_SCRATCH>: Update it.
16325 (get_pattern_stats): Initialize it.
16326 * genemit.c (gen_expand): Verify match_scratch numbers come after
16327 match_operand/match_dup numbers.
16328 * config/i386/i386.md (<s>mul<mode>3_highpart): Swap match_dup and
16329 match_scratch numbers.
16330 * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>):
16332 * config/s390/s390.md (trunctdsd2): Likewise.
16334 2017-03-02 Richard Biener <rguenther@suse.de>
16336 * wide-int.h (wide_int_storage::operator=): Implement in terms
16339 2017-03-02 Richard Biener <rguenther@suse.de>
16341 PR tree-optimization/79777
16342 * tree-ssa-pre.c (eliminate_insert): Give up if we simplify
16343 the to insert expression to sth existing.
16345 2017-03-01 Martin Sebor <msebor@redhat.com>
16347 PR middle-end/79692
16348 * gimple-ssa-sprintf.c
16349 (directive::known_width_and_precision): New function.
16350 (format_integer): Use it.
16351 (get_mpfr_format_length): Consider the full range of precision
16352 when computing %g output with the # flag. Set the likely byte
16353 count to 3 rather than 1 when precision is indeterminate.
16354 (format_floating): Correct the lower bound of precision.
16356 2017-03-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16358 * doc/invoke.texi: Document default code model for 64-bit Linux.
16360 2017-03-01 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
16363 * config/rs6000/rs6000.md (peephole2 for udiv/umod): Should emit
16364 udiv rather than div since input pattern is unsigned.
16366 2017-03-01 Uros Bizjak <ubizjak@gmail.com>
16368 * config/i386/i386.c (print_reg): Warn for values of
16369 unsupported size in integer register.
16371 2017-03-01 Michael Meissner <meissner@linux.vnet.ibm.com>
16374 * config/rs6000/predicates.md (current_file_function_operand): Do
16375 not allow self calls to be local if the function is replaceable.
16377 2017-03-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
16380 * config/rs6000/altivec.h (vec_ctz and others): Change the
16381 preprocessor macro that controls conditional compilation from
16382 _ARCH_PWR9 to __POWER9_VECTOR__.
16383 (vec_all_ne): Change parameterization of __altivec_scalar_pred
16384 macro expansion under preprocessor #ifdef __POWER9_VECTOR__
16385 control (instead of _ARCH_PWR9 control) so that template
16386 definition uses power9-specific function.
16387 (vec_any_eq): Likewise.
16388 (vec_all_ne): Change macro definition to use a power9-specific
16389 expansion under #ifdef __POWER9_VECTOR__ control (instead of
16390 _ARCH_PWR9 control).
16391 (vec_any_eq) Likewise.
16392 * config/rs6000/rs6000-builtin.def (CMPNEF): Remove BU_P9V_AV_2
16393 expansion for CMPNEF to remove support for xvcmpnesp instruction.
16394 (CMPNED): Remove BU_P9V_AV2 expansion for CMPNED to remove
16395 support for xvcmpnedp instruction.
16396 (VCMPNEB_P): Replace BU_P9V_AV_P macro expansion with BU_P9V_AV_2
16397 macro expansion so that Power9 implementation of vec_all_ne does
16398 not use the AltiVec predicate framework.
16399 (VCMPNEH_P): Likewise.
16400 (VCMPNEW_P): Likewise.
16401 (VCMPNED_P): Likewise.
16402 (VCMPNEFP_P): Likewise.
16403 (VCMPNEDP_P): Likewise.
16404 (VCMPAEB_P): Add BU_P9V_AV_2 macro expansion to change
16405 implementation of vec_any_eq to not use AltiVec predicate
16407 (VCMPAEH_P): Likewise.
16408 (VCMPAEW_P): Likewise.
16409 (VCMPAED_P): Likewise.
16410 (VCMPAEFP_P): Likewise.
16411 (VCMPAEDP_P): Likewise.
16412 (VCMPNE_P): Replace BU_P9V_OVERLOAD_P macro expansion with
16413 BU_P9V_OVERLOAD_2 so that Power9 implementation of vec_all_ne does
16414 not use the AltiVec predicate framework.
16415 (VCMPAE_P): Add BU_P9V_OVERLOAD_2 macro to change implementation
16416 of vec_any_eq to not use AltiVec predicate framework.
16417 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
16418 support for predefined __POWER9_VECTOR__ macro to indicate that
16419 Power9 instruction selection is enabled.
16420 (altivec_overloaded_builtins): Remove extraneous
16421 ALTIVEC_BUILTIN_VEC_CMPNE entry for overloaded
16422 function argument types RS6000_BTI_bool_V16QI and
16423 RS6000_BTI_bool_V16QI. Remove erroneous ALTIVEC_BUILTIN_VEC_CMPNE
16424 entry for overloaded function argument types RS6000_BTI_bool_V4SI
16425 andRS6000_BTI_bool_V4SI, mapping to P9V_BUILTIN_CMPNEB. Remove
16426 two entries mapping to P9V_BUITIN_CMPNED and one entry mapping to
16427 P9V_BUILTIN_CMPNEF to force use of instructions not specific to
16428 Power9 for implementations of vec_cmpne. Change the signature for
16429 all definitions of the overloaded P9V_BUILTIN_VEC_CMPNE_P function
16430 (representing vec_all_ne) to remove the previously described first
16431 argument of type RS6000_BTI_INTSI, as this was an artifact of
16432 reliance on the AltiVec predicate framework, which is no longer
16433 used in the implementation of these functions. Add
16434 P9V_BUILTIN_VEC_VCMPAE_P entries (representing the vec_anyeq
16435 function) to match all of the P9V_BUILTIN_VEC_VCMNE_P entries
16436 since, unlike the AltiVec predicate framework implementation, we
16437 do not share function descriptors between vec_alle and vec_anyeq.
16438 (altivec_resolve_overloaded_builtin): Add SFmode and DFmode to the
16439 set of modes that receive special treatment even when
16440 TARGET_P9_VECTOR is true. The special treatment emits code that
16441 does not depend on Power9 instructions.
16442 * config/rs6000/vector.md (vector_ne_<mode>_p): Change this
16443 define_expand to not rely on AltiVec predicate framework.
16444 (vector_ae_<mode>p): New define_expand to represent vec_any_eq
16446 (vector_ne_v2di_p): Change this define_expand to not rely on
16447 AltiVec predicate framework.
16448 (vector_ae_v2di_p): New define_expand to represent vec_any_eq
16450 (vector_ne_<mode>_p): Change this define_expand to not rely on
16451 AltiVec predicate framework.
16452 (vector_ae_<mode>p): New define_expand to represent vec_any_eq
16454 * config/rs6000/vsx.md (*vsx_ne_<mode>_p): For modes VSX_EXTRACT_I
16455 (V16QI, V8HI, V4SI), correct a typo in the code emitted for this
16456 define_insn pattern.
16457 (*vsx_ne_<mode>_p): For modes VSX_F (V4SF and V2DF), remove this
16458 define_insn pattern because the xvcmpne<VSs>. instruction is not
16460 (vcmpne<VSs>): Remove this define_insn because xvcmpne<VSs>
16461 instruction is not supported.
16463 2017-03-01 Jakub Jelinek <jakub@redhat.com>
16465 * config/nvptx/nvptx.c: Include intl.h.
16467 2017-03-01 Martin Jambor <mjambor@suse.cz>
16470 * ipa-prop.h (ipa_bits): Removed field known.
16471 (ipa_jump_func): Removed field vr_known. Changed fields bits and m_vr
16472 to pointers. Adjusted their comments to warn about their sharing.
16473 (ipcp_transformation_summary): Change bits to a vector of pointers.
16474 (ipa_check_create_edge_args): Moved to ipa-prop.c, declare.
16475 (ipa_get_ipa_bits_for_value): Declare.
16476 * tree-vrp.h (value_range): Mark as GTY((for_user)).
16477 * ipa-prop.c (ipa_bit_ggc_hash_traits): New.
16478 (ipa_bits_hash_table): Likewise.
16479 (ipa_vr_ggc_hash_traits): Likewise.
16480 (ipa_vr_hash_table): Likewise.
16481 (ipa_print_node_jump_functions_for_edge): Adjust for bits and m_vr
16482 being pointers and vr_known being removed.
16483 (ipa_set_jf_unknown): Likewise.
16484 (ipa_get_ipa_bits_for_value): New function.
16485 (ipa_set_jfunc_bits): Likewise.
16486 (ipa_get_value_range): New overloaded functions.
16487 (ipa_set_jfunc_vr): Likewise.
16488 (ipa_compute_jump_functions_for_edge): Use the above functions to
16489 construct bits and vr parts of jump functions.
16490 (ipa_check_create_edge_args): Move here from ipa-prop.h, also allocate
16491 ipa_bits_hash_table and ipa_vr_hash_table if they do not already
16493 (ipcp_grow_transformations_if_necessary): Also allocate
16494 ipa_bits_hash_table and ipa_vr_hash_table if they do not already
16496 (ipa_node_params_t::duplicate): Do not copy bits, just pointers to
16497 them. Fix too long lines.
16498 (ipa_write_jump_function): Adjust for bits and m_vr being pointers and
16499 vr_known being removed.
16500 (ipa_read_jump_function): Use new setter functions to construct bits
16501 and vr parts of jump functions or set them to NULL.
16502 (write_ipcp_transformation_info): Adjust for bits being pointers.
16503 (read_ipcp_transformation_info): Likewise.
16504 (ipcp_update_bits): Likewise. Fix excessively long lines a trailing
16506 Include gt-ipa-prop.h.
16507 * ipa-cp.c (propagate_bits_across_jump_function): Adjust for bits
16509 (ipcp_store_bits_results): Likewise.
16510 (propagate_vr_across_jump_function): Adjust for m_vr being a pointer.
16511 Do not write to existing jump functions but use a temporary instead.
16513 2017-03-01 Jakub Jelinek <jakub@redhat.com>
16516 * fold-const.c (make_bit_field_ref): If orig_inner is COMPONENT_REF,
16517 attempt to use its first operand as BIT_FIELD_REF base.
16519 2017-03-01 Richard Biener <rguenther@suse.de>
16521 PR middle-end/79721
16522 * tree-chrec.c (chrec_evaluate): Perform computation of Newtons
16523 interpolating formula in wrapping arithmetic.
16524 (chrec_apply): Convert chrec_evaluate return value to wanted type.
16526 2017-03-01 Jakub Jelinek <jakub@redhat.com>
16528 PR tree-optimization/79734
16529 * tree-vect-generic.c (expand_vector_condition): Optimize
16530 AVX512 vector boolean VEC_COND_EXPRs into bitwise operations.
16531 Handle VEC_COND_EXPR where comparison has different inner width from
16532 type's inner width.
16534 2017-02-28 Sandra Loosemore <sandra@codesourcery.com>
16536 * doc/invoke.texi (ARC Options): Copy-edit to fix punctuation,
16537 markup, and similar issues. Remove @opindex entries for things
16538 that aren't options. Add missing -mmpy-option entries.
16540 2017-02-28 Jakub Jelinek <jakub@redhat.com>
16542 PR tree-optimization/79737
16543 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): If bitlen is
16544 a multiple of BITS_PER_UNIT and !BYTES_BIG_ENDIAN, clear
16545 tmpbuf[byte_size - 1]. Call natice_encode_expr with byte_size - 1
16546 instead of byte_size. Formatting fix.
16547 (shift_bytes_in_array_right): Formatting fix.
16549 2017-02-28 Eric Botcazou <ebotcazou@adacore.com>
16552 * config/sparc/sparc.c (sparc_frame_pointer_required): Add missing
16553 condition on optimize for the leaf function test.
16555 2017-02-28 Martin Liska <mliska@suse.cz>
16558 * read-rtl-function.c (function_reader::handle_unknown_directive):
16559 Bail out when one uses -flto.
16561 2017-02-28 Martin Liska <mliska@suse.cz>
16563 * common.opt: Replace space with tabular for options of <number>
16565 * config/i386/i386.opt: Show <number> value for
16566 -mlarge-data-threshold.
16567 * opts.c (print_filtered_help): Do not display number in hexadecimal
16570 2017-02-28 Martin Liska <mliska@suse.cz>
16572 * common.opt: Fix --help=option -Q for options which are of
16575 2017-02-28 Uros Bizjak <ubizjak@gmail.com>
16577 * config/i386/i386.c (print_reg): Error out for values
16578 of 8-bit size in invalid integer register.
16580 2017-02-28 Martin Sebor <msebor@redhat.com>
16582 PR tree-optimization/79691
16583 * passes.def (pass_all_optimizations_g): Enable pass_sprintf_length.
16585 2017-02-28 Jakub Jelinek <jakub@redhat.com>
16588 * config/i386/i386.c (ix86_print_operand) <case 'R'>: Replace
16589 gcc_unreachable with output_operand_lossage.
16591 2017-02-28 Richard Biener <rguenther@suse.de>
16593 PR tree-optimization/79740
16594 * tree-ssa-sccvn.c (vn_nary_op_insert_into): Allow redundant
16596 (visit_nary_op): Insert the nary into the hashtable if we
16597 pattern-matched sth.
16598 * tree-ssa-pre.c (eliminate_insert): Robustify.
16600 2017-02-28 Richard Biener <rguenther@suse.de>
16602 PR middle-end/79731
16603 * fold-const.c (decode_field_reference): Reject out-of-bound
16606 2017-02-28 Jakub Jelinek <jakub@redhat.com>
16608 * config/i386/i386.c: Include intl.h.
16609 (ix86_option_override_internal): Use cond ? G_("...") : G_("...")
16610 instead of just cond ? "..." : "...".
16611 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Likewise.
16612 * coverage.c (read_counts_file): Likewise.
16613 * omp-offload.c: Include intl.h.
16614 (oacc_loop_fixed_partitions): Use cond ? G_("...") : G_("...") instead
16615 of just cond ? "..." : "...".
16616 * gcov.c (read_count_file): Use cond ? N_("...") : N_("...") instead
16617 of just cond ? "..." : "...".
16619 2017-02-28 Richard Earnshaw <rearnsha@arm.com>
16622 * config/arm/parsecpu.awk (gen_data): Set tuning target to 'tune for'
16624 * config/arm/arm-cpus.in (cortex-m0plus.small-multiply): Correct
16625 'tune for' CPU name.
16626 * config/arm/arm-cpu-data.h: Regenerated.
16628 2017-02-28 Richard Biener <rguenther@suse.de>
16630 PR tree-optimization/79732
16631 * tree-inline.c (expand_call_inline): Do not shadow var.
16633 2017-02-28 Richard Biener <rguenther@suse.de>
16635 PR tree-optimization/79723
16636 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Preserve
16637 address-space properly.
16639 2017-02-28 Thomas Schwinge <thomas@codesourcery.com>
16641 * doc/optinfo.texi (Optimization groups): Fix option used for
16643 * doc/invoke.texi (-fopt-info): Document "omp".
16644 * dumpfile.h: Sort OPTGROUP_OMP before OPTGROUP_VEC.
16645 (OPTGROUP_ALL): Add OPTGROUP_OMP.
16646 * hsa-gen.c (pass_data_gen_hsail): Use OPTGROUP_OMP.
16647 * ipa-hsa.c (pass_data_ipa_hsa): Likewise.
16648 * omp-simd-clone.c (pass_data_omp_simd_clone): Likewise.
16650 * dumpfile.h (OPTGROUP_OPENMP): Rename to OPTGROUP_OMP. Adjust
16652 * dumpfile.c (optgroup_options): Instead of "openmp", associate
16653 OPTGROUP_OMP with "omp".
16655 2017-02-27 Pat Haugen <pthaugen@us.ibm.com>
16658 * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Use VSRAD
16659 for arithmetic shift of unsigned V2DI.
16661 2017-02-27 Claudiu Zissulescu <claziss@synopsys.com>
16663 * config.gcc (arc*-): Clean up, use arc/big.h, arc/elf.h, and
16664 arc/linux.h headers.
16665 * config/arc/arc.h (TARGET_OS_CPP_BUILTINS): Remove.
16666 (LINK_SPEC): Likewise.
16667 (ARC_TLS_EXTRA_START_SPEC): Likewise.
16668 (EXTRA_SPECS): Likewise.
16669 (STARTFILE_SPEC): Likewise.
16670 (ENDFILE_SPEC): Likewise.
16671 (LIB_SPEC): Likewise.
16672 (TARGET_SDATA_DEFAULT): Likewise.
16673 (TARGET_MMEDIUM_CALLS_DEFAULT): Likewise.
16674 (MULTILIB_DEFAULTS): Likewise.
16675 (DWARF2_UNWIND_INFO): Likewise.
16676 * config/arc/big.h: New file.
16677 * config/arc/elf.h: Likewise.
16678 * config/arc/linux.h: Likewise.
16679 * config/arc/t-uClibc: Remove.
16681 2017-02-27 Bin Cheng <bin.cheng@arm.com>
16683 PR tree-optimization/77536
16684 * tree-ssa-loop-manip.c (niter_for_unrolled_loop): New function.
16685 (tree_transform_and_unroll_loop): Use above function to compute the
16686 estimated niter of unrolled loop and use it when scaling profile.
16687 Also use count info rather than frequency if it's non-zero.
16688 * tree-ssa-loop-manip.h niter_for_unrolled_loop(): New declaration.
16689 * tree-vect-loop.c (scale_profile_for_vect_loop): New function.
16690 (vect_transform_loop): Call above function.
16692 2017-02-27 Richard Biener <rguenther@suse.de>
16694 PR tree-optimization/45397
16695 * tree-ssa-pre.c (eliminate_insert): Handle BIT_AND_EXPR.
16696 * tree-ssa-sccvn.c (valueized_wider_op): New helper.
16697 (visit_nary_op): Add pattern matching for CSEing sign-changed
16698 or truncated operations with wider ones.
16700 2017-02-27 Richard Biener <rguenther@suse.de>
16702 PR tree-optimization/79690
16703 * tree-vect-stmts.c (vectorizable_store): Use vector type
16704 built from the DR with address-space.
16706 2017-02-26 Gerald Pfeifer <gerald@pfeifer.com>
16708 * doc/invoke.texi (Optimize Options): Refine the description
16709 of asan-use-after-return.
16711 2017-02-25 Alan Modra <amodra@gmail.com>
16713 PR rtl-optimization/79584
16714 * lra-constraints.c (base_to_reg): Reload ad->base, the entire
16715 base, not ad->base_term, the reg within base. Remove assertion
16716 that ad->base == ad->base_term. Replace gen_int_mode using
16717 bogus mode with const0_rtx.
16719 2017-02-25 Jakub Jelinek <jakub@redhat.com>
16721 PR middle-end/79396
16722 * tree-eh.c (operation_could_trap_p, stmt_could_throw_1_p): Handle
16723 FMA_EXPR like tcc_binary or tcc_unary.
16725 * tree-ssa-loop-niter.c (number_of_iterations_exit): Simplify warning.
16728 * dwarf2out.c (struct dw_loc_list_struct): Add noted_variable_value
16730 (size_of_loc_descr): Handle DW_OP_GNU_variable_value.
16731 (output_loc_operands): Handle DW_OP_call_ref and
16732 DW_OP_GNU_variable_value.
16733 (struct variable_value_struct): New type.
16734 (struct variable_value_hasher): Likewise.
16735 (variable_value_hash): New variable.
16736 (string_types): Remove.
16737 (copy_loc_descr): New function.
16738 (add_loc_descr_to_each): Clarify comment. Use copy_loc_descr.
16739 (prepend_loc_descr_to_each): New function.
16740 (add_loc_list): Fix comment typo. Use prepend_loc_descr_to_each
16741 instead of add_loc_descr_to_each if the first argument is single
16742 location list and the second has multiple.
16743 (resolve_args_picking_1): Handle DW_OP_GNU_variable_value.
16744 (loc_list_from_tree_1): For early_dwarf, emit DW_OP_GNU_variable_value
16745 when looking for variable value which doesn't have other location info.
16746 (loc_list_from_tree): Formatting fix.
16747 (gen_array_type_die): Simplify DW_AT_string_length handling.
16748 (adjust_string_types): Remove.
16749 (gen_subprogram_die): Don't call adjust_string_types nor test/set
16750 string_types. Call resolve_variable_values.
16751 (prune_unused_types_walk_loc_descr): Handle DW_OP_GNU_variable_value.
16752 (resolve_addr_in_expr): Likewise. Add A argument.
16753 (copy_deref_exprloc): Remove deref argument. Adjust for the
16754 original expression being DW_OP_GNU_variable_value with optionally
16755 DW_OP_stack_value after it instead of DW_OP_call4 with DW_OP_deref
16756 optionally after it.
16757 (optimize_string_length): Rework for DW_OP_GNU_variable_value.
16758 (resolve_addr): Adjust optimize_string_length and resolve_addr_in_expr
16759 callers. Set remove_AT_byte_size if removing DW_AT_string_length.
16760 (variable_value_hasher::hash, variable_value_hasher::equal): New
16762 (resolve_variable_value_in_expr, resolve_variable_value,
16763 resolve_variable_values, note_variable_value_in_expr,
16764 note_variable_value): New functions.
16765 (dwarf2out_early_finish): Call note_variable_value on all toplevel
16768 2017-02-24 Jakub Jelinek <jakub@redhat.com>
16771 * opts.h (handle_generated_option): Add GENERATED_P argument.
16772 * opts-common.c (handle_option): Adjust function comment.
16773 (handle_generated_option): Add GENERATED_P argument, pass it to
16775 (control_warning_option): Pass false to handle_generated_option
16777 * opts.c (maybe_default_option): Pass true to handle_generated_option
16779 * optc-gen.awk: Likewise.
16781 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
16783 * config/sh/sh.md (tstsi_t): If operands[0] is a SUBREG instead of
16784 a REG, look at the REG it is a SUBREG of.
16785 (splitter for cmpeqsi_t): Ditto.
16787 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
16789 * config/pa/pa.c (pa_combine_instructions): Do not share RTL. Make
16790 the special USEs with the pattern of the insn, not the insn itself.
16792 2017-02-24 Matthew Fortune <matthew.fortune@imgtec.com>
16795 * doc/invoke.texi: Document -mload-store-pairs.
16797 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
16798 Sandra Loosemore <sandra@codesourcery.com>
16800 * config/nios2/nios2.c (nios2_simple_const_p): Returns false if the
16801 argument isn't a CONST_INT.
16802 (nios2_alternate_compare_const): Assert op is a CONST_INT.
16803 (nios2_valid_compare_const_p): Assert op is a CONST_INT.
16804 (nios2_validate_compare): Bypass alternate compare logic if *op2
16805 is not a CONST_INT.
16806 (ldstwm_operation_p): Return false if first_base is not a REG or
16807 if first_offset is not a CONST_INT.
16809 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
16811 * config/cris/cris.md: Use correct operand in a define_peephole2.
16813 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
16815 * config/c6x/c6x.c (predicate_insn): Do not incorrectly share RTL.
16817 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
16819 * config/arc/arc.c (arc_ccfsm_advance): Only take the PATTERN of
16820 this_insn if it is an INSN or JUMP_INSN.
16821 (force_offsettable): Look at base, not at addr.
16822 * config/arc/predicates.md (brcc_nolimm_operator): Don't call INTVAL
16823 on things that aren't necessarily CONST_INTs.
16825 2017-02-24 Uros Bizjak <ubizjak@gmail.com>
16827 * doc/invoke.texi (x86 Options, -mfpmath=sse): Mention that
16828 -mfpmath=sse is the default also for x86-32 targets with SSE2
16829 instruction set when @option{-ffast-math} is enabled
16831 2017-02-24 Jeff Law <law@redhat.com>
16833 PR rtl-optimizatoin/79286
16834 * ira.c (update_equiv_regs): Drop may_trap_p exception to
16837 2017-02-24 Richard Biener <rguenther@suse.de>
16839 PR tree-optimization/79389
16840 * gimple-ssa-split-paths.c (is_feasible_trace): Properly skip
16843 2017-02-24 Aldy Hernandez <aldyh@redhat.com>
16845 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update
16846 function comment to reflect reality.
16847 (loop_exits_before_overflow): Fix typo in function description.
16849 2017-02-24 Richard Biener <rguenther@suse.de>
16851 PR tree-optimization/79389
16852 * gimple-ssa-split-paths.c (is_feasible_trace): Verify more
16853 properly that a threading opportunity exists. Detect conditional
16854 copy/constant propagation opportunities.
16856 2017-02-23 Eric Botcazou <ebotcazou@adacore.com>
16858 * config/visium/visium.md (type): Add trap.
16859 (b): New mode attribute.
16860 (*btst): Rename into...
16861 (*btst<mode>): ...this and adjust.
16862 (*cbranchsi4_btst_insn): Rename into...
16863 (*cbranch<mode>4_btst_insn): ...this and adjust.
16864 (trap): New define_insn.
16866 2017-02-23 Jakub Jelinek <jakub@redhat.com>
16868 PR tree-optimization/79389
16869 * ifcvt.c (struct noce_if_info): Add rev_cond field.
16870 (noce_reversed_cond_code): New function.
16871 (noce_emit_store_flag): Use rev_cond if non-NULL instead of
16872 reversed_comparison_code. Formatting fix.
16873 (noce_try_store_flag): Test rev_cond != NULL in addition to
16874 reversed_comparison_code.
16875 (noce_try_store_flag_constants): Likewise.
16876 (noce_try_store_flag_mask): Likewise.
16877 (noce_try_addcc): Use rev_cond if non-NULL instead of
16878 reversed_comparison_code.
16879 (noce_try_cmove_arith): Likewise. Formatting fixes.
16880 (noce_try_minmax, noce_try_abs): Clear rev_cond.
16881 (noce_find_if_block): Initialize rev_cond.
16882 (find_cond_trap): Call noce_get_condition with then_bb == trap_bb
16883 instead of false as last argument never attempt to reverse it
16886 2017-02-23 Bin Cheng <bin.cheng@arm.com>
16888 PR tree-optimization/79663
16889 * tree-predcom.c (combine_chains): Process refs in reverse order
16890 only for ZERO length chains, and add explaining comment.
16892 2017-02-23 Jeff Law <law@redhat.com>
16894 PR tree-optimization/79578
16895 * tree-ssa-dse.c (clear_bytes_written_by): Use OEP_ADDRESS_OF
16896 in call to operand_equal_p.
16898 2017-01-23 Dominique d'Humieres <dominiq@lps.ens.fr>
16901 * config/i386/cpuid.h: Fix another undefined behavior.
16903 2017-02-23 Richard Biener <rguenther@suse.de>
16905 PR tree-optimization/79683
16906 * tree-vect-stmts.c (vect_analyze_stmt): Do not overwrite
16907 vector types for data-refs.
16909 2017-02-23 Martin Liska <mliska@suse.cz>
16911 * params.def (PARAM_MIN_NONDEBUG_INSN_UID): Change default to 0.
16913 2017-02-23 Jakub Jelinek <jakub@redhat.com>
16915 PR middle-end/79665
16916 * internal-fn.c (get_range_pos_neg): Moved to ...
16917 * tree.c (get_range_pos_neg): ... here. No longer static.
16918 * tree.h (get_range_pos_neg): New prototype.
16919 * expr.c (expand_expr_real_2) <case TRUNC_DIV_EXPR>: If both arguments
16920 are known to be in between 0 and signed maximum inclusive, try to
16921 expand both unsigned and signed divmod and use the cheaper one from
16924 2017-02-22 Jeff Law <law@redhat.com>
16926 PR tree-optimization/79578
16927 * tree-ssa-dse.c (clear_bytes_written_by): Use operand_equal_p
16928 to compare base operands.
16930 2017-02-22 Segher Boessenkool <segher@kernel.crashing.org>
16933 * config/rs6000/rs6000.md (*fsel<SFDF:mode><SFDF2:mode>4): Use
16934 gpc_reg_operand instead of fpr_reg_operand.
16936 2017-02-22 Sameera Deshpande <sameera.deshpande@imgtec.com>
16938 * config/mips/mips.c (mips_return_in_memory): Force FP
16939 vector types to be returned in memory for o32 ABI.
16941 2017-02-22 Jakub Jelinek <jakub@redhat.com>
16943 * dwarf2out.c (gen_variable_die): For -gdwarf-5, use DW_TAG_variable
16944 instead of DW_TAG_member for static data member declarations and don't
16945 set no_linkage_name for static inline data members.
16946 (gen_member_die): For -gdwarf-5 don't change DW_TAG_variable
16949 2017-02-22 Martin Liska <mliska@suse.cz>
16951 * doc/invoke.texi: Replace inequality signs with square brackets
16954 2017-02-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16956 PR tree-optimization/68644
16957 * gcc.dg/tree-ssa/ivopts-lt-2.c: Skip for powerpc*-*-*.
16959 2017-02-22 Matthew Fortune <matthew.fortune@imgtec.com>
16962 * lra-constraints.c (simplify_operand_subreg): Handle
16963 WORD_REGISTER_OPERATIONS targets.
16965 2017-02-22 Jakub Jelinek <jakub@redhat.com>
16968 * reg-stack.c (emit_swap_insn): Treat (float_extend:?F (mem:?F))
16969 and (const_double:?F) like (mem:?F) for the purpose of fxch %st(1)
16970 elimination by swapping fld*.
16972 2017-02-22 Richard Biener <rguenther@suse.de>
16974 PR tree-optimization/79673
16975 * tree-ssa-pre.c (compute_avail): Use wide_int_to_tree to
16976 convert the [TARGET_]MEM_REF offset INTEGER_CST, scrapping off
16977 irrelevant address-space qualifiers and avoiding a
16978 ADDR_SPACE_CONVERT_EXPR from fold_convert.
16980 2017-02-22 Richard Biener <rguenther@suse.de>
16982 PR tree-optimization/79666
16983 * tree-vrp.c (extract_range_from_binary_expr_1): Make sure
16984 to not symbolically negate if that may introduce undefined
16987 2017-02-22 Martin Liska <mliska@suse.cz>
16990 * data-streamer-in.c (streamer_read_gcov_count): Remove assert.
16991 * data-streamer-out.c (streamer_write_gcov_count_stream):
16993 * value-prof.c (stream_out_histogram_value): Make assert more
16994 precise based on type of counter.
16996 2017-02-21 Uros Bizjak <ubizjak@gmail.com>
16999 * config/i386/i386.md (standard_x87sse_constant_load splitter):
17000 Use nonimmediate_operand instead of memory_operand for operand 1.
17001 (float-extend standard_x87sse_constant_load splitter): Ditto.
17003 2017-02-21 Jeff Law <law@redhat.com>
17005 PR tree-optimization/79621
17006 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Ignore
17007 blocks with edges to themselves.
17009 2017-02-21 Jakub Jelinek <jakub@redhat.com>
17012 * tree-chkp-opt.c (chkp_optimize_string_function_calls): Use
17013 is_gimple_call instead of comparing gimple_code with GIMPLE_CALL.
17014 Use gimple_call_builtin_p.
17017 * sel-sched.c (moveup_expr_cached): Don't call sel_bb_head
17018 on temporarily removed DEBUG_INSNs.
17020 PR tree-optimization/79649
17021 * tree-loop-distribution.c (classify_partition): Give up on
17022 non-generic address space loads/stores.
17024 2017-02-21 Aldy Hernandez <aldyh@redhat.com>
17026 * doc/loop.texi (Loop manipulation): Remove nonexistent
17027 tree_ssa_loop_version from the documentation.
17028 * cfgloopmanip.c (loop_version): Document CONDITION_BB argument.
17030 2017-02-21 Jakub Jelinek <jakub@redhat.com>
17033 * config/i386/i386.c (ix86_expand_split_stack_prologue): Call
17034 make_reg_eh_region_note_nothrow_nononlocal on call_insn.
17035 * config/rs6000/rs6000.c: Include except.h.
17036 (rs6000_expand_split_stack_prologue): Call
17037 make_reg_eh_region_note_nothrow_nononlocal on the call insn.
17039 2017-02-21 Martin Jambor <mjambor@suse.cz>
17042 * ipa-prop.c (ipa_prop_write_jump_functions): Bail out if no edges
17043 have been analyzed.
17045 2017-02-21 Martin Jambor <mjambor@suse.cz>
17047 * common.opt (-fipa-cp-alignment): Mark as ignored and preserved
17048 for backward compatibility only.
17049 * doc/invoke.texi (Option Summary): Remove all references to
17050 -fipa-cp-alignment.
17052 2017-02-21 Matthew Fortune <matthew.fortune@imgtec.com>
17056 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
17058 * lra-constraints.c (curr_insn_transform): Handle
17059 WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
17061 2017-02-21 Martin Liska <mliska@suse.cz>
17063 * config/i386/i386.opt: Replace -masm-dialect with -masm.
17065 2017-02-21 Thomas Schwinge <thomas@codesourcery.com>
17067 PR translation/79638
17068 * config/nvptx/nvptx.c (ENTRY_TEMPLATE): Single out "%ntid.y".
17070 2017-02-21 Eric Botcazou <ebotcazou@adacore.com>
17073 * config/arm/arm.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
17074 (arm_function_ok_for_sibcall): Return false for an indirect call by
17075 descriptor if all the argument registers are used.
17076 (arm_relayout_function): Use FUNCTION_ALIGNMENT macro to adjust the
17077 alignment of the function.
17079 2017-02-21 Jakub Jelinek <jakub@redhat.com>
17081 PR tree-optimization/61441
17082 * simplify-rtx.c (simplify_const_unary_operation): For
17083 -fsignaling-nans and sNaN operand, return NULL_RTX rather than
17084 the sNaN unmodified.
17086 2017-02-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
17088 * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
17089 (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
17090 instead of SYSTEM_HEADER_DIR.
17092 2017-02-20 Gerald Pfeifer <gerald@pfeifer.com>
17093 Martin Liška <mliska@suse.cz>
17095 * doc/invoke.texi (use-after-scope-direct-emission-threshold):
17096 Fix typos and grammar, use active voice, and clarify.
17098 2017-02-20 Marek Polacek <polacek@redhat.com>
17100 PR middle-end/79537
17101 * gimplify.c (gimplify_expr): Handle unused *&&L;.
17104 * ubsan.c (ubsan_type_descriptor): Check if TYPE_MAX_VALUE is null.
17106 2017-02-20 Jakub Jelinek <jakub@redhat.com>
17109 * config/i386/i386.c (ix86_expand_builtin): Handle
17110 OPTION_MASK_ISA_AVX512VL and OPTION_MASK_ISA_64BIT in
17111 ix86_builtins_isa[fcode].isa as a requirement of those
17112 flags and any other flag in the bitmask.
17113 (ix86_init_mmx_sse_builtins): Use 0 instead of
17114 ~OPTION_MASK_ISA_64BIT as mask.
17115 * config/i386/i386-builtin.def (__builtin_ia32_rdtsc,
17116 __builtin_ia32_rdtscp, __builtin_ia32_pause, __builtin_ia32_bsrsi,
17117 __builtin_ia32_rdpmc, __builtin_ia32_rolqi, __builtin_ia32_rolhi,
17118 __builtin_ia32_rorqi, __builtin_ia32_rorhi): Likewise.
17120 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
17123 * lra-constraints.c (split_reg): Check requested split mode
17124 is supported by the register.
17126 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
17128 * lra-constraints.c (simplify_operand_subreg): Remove early
17131 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
17134 * lra-constraints.c (curr_insn_transform): Tighten condition
17135 for converting SUBREG reloads from OP_OUT to OP_INOUT.
17137 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
17140 * lra-constraints.c (curr_insn_transform): Handle
17141 WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
17143 2017-02-19 Uros Bizjak <ubizjak@gmail.com>
17146 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
17148 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
17150 2017-02-19 Jonathan Wakely <jwakely@redhat.com>
17153 * doc/invoke.texi (C++ Dialect Options) [-Wliteral-suffix]: Update
17156 2017-02-19 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17158 * gimple-pretty-print.c (dump_ternary_rhs): Adjust gimple dump format
17161 2017-02-18 Jakub Jelinek <jakub@redhat.com>
17163 * final.c (last_columnnum, override_columnnum): New variables.
17164 (final_start_function): Set last_columnnum, pass it to begin_prologue
17165 hook and pass 0 to dwarf2out_begin_prologue.
17166 (final_scan_insn): Update override_columnnum. Pass last_columnnum
17167 to source_line debug hook.
17168 (notice_source_line): Compute last_columnnum and for debug_column_info
17169 return true on column changes.
17170 * debug.h (struct gcc_debug_hooks): Add column argument to
17171 source_line and begin_prologue hooks.
17172 (debug_nothing_int_charstar_int_bool): Remove prototype.
17173 (debug_nothing_int_int_charstar,
17174 debug_nothing_int_int_charstar_int_bool): New prototypes.
17175 (dwarf2out_begin_prologue): Add column argument.
17176 * debug.c (do_nothing_debug_hooks): Adjust source_line and
17177 begin_prologue hooks.
17178 (debug_nothing_int_charstar_int_bool): Remove.
17179 (debug_nothing_int_int_charstar,
17180 debug_nothing_int_int_charstar_int_bool): New functions.
17181 * dwarf2out.c (dwarf2out_begin_prologue): Add column argument, pass it
17182 through to dwarf2out_source_line.
17183 (dwarf2_lineno_debug_hooks): Adjust begin_prologue hook.
17184 (dwarf2out_source_line): Add column argument, emit it if requested.
17185 * sdbout.c (sdbout_source_line, sdbout_begin_prologue): Add column
17187 * xcoffout.h (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
17188 * xcoffout.c (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
17189 * vmsdbgout.c (vmsdbgout_begin_prologue): Add column argument, pass it
17190 through to dwarf2out_begin_prologue.
17191 (vmsdbgout_source_line): Add column argument, pass it through to
17192 dwarf2out_source_line.
17193 * dbxout.c (dbxout_begin_prologue): Add column argument, adjust
17194 dbxout_source_line caller.
17195 (dbxout_source_line): Add column argument.
17197 * common.opt (gno-column-info, gcolumn-info): New options.
17198 * dwarf2out.c (dwarf2_lineno_debug_hooks): Formatting fix.
17199 (check_die): Also test for multiple DW_AT_decl_column attributes.
17200 (add_src_coords_attributes, dwarf2out_imported_module_or_decl_1): Add
17201 DW_AT_decl_column if requested.
17202 (gen_subprogram_die): Compare and/or add also DW_AT_decl_column
17204 (gen_variable_die): Likewise.
17205 (add_call_src_coords_attributes): Add DW_AT_call_column if requested.
17206 * doc/invoke.texi (-gcolumn-info, -gno-column-info): Document.
17209 * config/i386/i386.opt (m3dnowa): Replace Undocumented with Report.
17210 * common/config/i386/i386-common.c (OPTION_MASK_ISA_3DNOW_A_SET): Define.
17211 (ix86_handle_option): Handle OPT_m3dnowa.
17212 * doc/invoke.texi (-m3dnowa): Document.
17213 * doc/extend.texi (__builtin_ia32_pmulhuw, __builtin_ia32_pf2iw): Use
17214 -m3dnowa instead of -m3dnow -march=athlon.
17217 * config/i386/i386.c (ix86_print_operand): Use output_operand_lossage
17218 instead of gcc_assert for K, r and R code checks. Formatting fixes.
17220 2017-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17223 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
17224 support for CODE_FOR_vsx_xxpermdi_v2d[fi]_be.
17225 * config/rs6000/rs6000.md (reload_gpr_from_vsx<mode>): Call
17226 generator for vsx_xxpermdi_<mode>_be.
17227 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Remove logic to
17228 force big-endian semantics.
17229 (vsx_xxpermdi_<mode>_be): New define_expand with same
17230 implementation as previous version of vsx_xxpermdi_<mode>.
17232 2017-02-17 Jakub Jelinek <jakub@redhat.com>
17234 PR tree-optimization/79327
17235 * gimple-ssa-sprintf.c (format_integer): Remove likely_adjust
17236 variable, its initialization and use.
17238 2017-02-17 Julia Koval <julia.koval@intel.com>
17240 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDPID_SET): New.
17241 (OPTION_MASK_ISA_PKU_UNSET): New.
17242 (ix86_handle_option): Handle -mrdpid.
17243 * config/i386/cpuid.h (bit_RDPID): New.
17244 * config/i386/driver-i386.c (host_detect_local_cpu):
17245 Detect RDPID feature.
17246 * config/i386/i386-builtin.def (__builtin_ia32_rdpid): New.
17247 * config/i386/i386-c.c (ix86_target_macros_internal):
17249 * config/i386/i386.c (ix86_target_string): Add -mrdpid to isa2_opts.
17250 (ix86_valid_target_attribute_inner_p): Add "rdpid".
17251 (ix86_expand_builtin): Handle IX86_BUILTIN_RDPID.
17252 * config/i386/i386.h (TARGET_RDPID, TARGET_RDPID_P): New.
17253 * config/i386/i386.md (define_insn "rdpid"): New.
17254 * config/i386/i386.opt Add -mrdpid.
17255 * config/i386/immintrin.h (_rdpid_u32): New.
17257 2017-02-17 Vladimir Makarov <vmakarov@redhat.com>
17259 PR rtl-optimization/79541
17260 * lra-constraints.c (curr_insn_transform): Remove wrong asm insn
17261 instead of transforming it into USE.
17263 2017-02-17 Segher Boessenkool <segher@kernel.crashing.org>
17265 * config/rs6000/rs6000.md (extendsfdf2): Remove default arguments.
17266 If HONOR_SNANS (SFmode) force the input to a register.
17267 (*extendsfdf2_fpr): Add !HONOR_SNANS (SFmode) condition.
17268 (*extendsfdf2_snan): New pattern, used when using SNaNs; it generates
17269 an frsp or similar insn.
17271 2017-02-17 Martin Liska <mliska@suse.cz>
17273 PR rtl-optimization/79577
17274 * params.def (selsched-max-sched-times): Increase minimum to 1.
17276 2017-02-17 Martin Liska <mliska@suse.cz>
17278 PR rtl-optimization/79574
17279 * gcse.c (want_to_gcse_p): Prevent integer overflow.
17281 2017-02-17 Martin Liska <mliska@suse.cz>
17283 PR tree-optimization/79529
17284 * tree-ssa-loop-unswitch.c (is_maybe_undefined): Use
17285 ssa_defined_default_def_p to handle cases which are implicitly
17287 * tree-ssa.c (ssa_defined_default_def_p): New function.
17288 (ssa_undefined_value_p): Use ssa_defined_default_def_p to handle cases
17289 which are implicitly defined.
17290 * tree-ssa.h (ssa_defined_default_def_p): Declare.
17292 2017-02-17 Richard Biener <rguenther@suse.de>
17294 PR middle-end/79576
17295 * params.def (max-ssa-name-query-depth): Limit to 10.
17297 2017-02-17 Richard Biener <rguenther@suse.de>
17299 PR tree-optimization/79552
17300 * tree-ssa-structalias.c (visit_loadstore): Properly verify
17303 2017-02-17 Richard Biener <rguenther@suse.de>
17306 * genmatch.c (output_line_directive): Handle DIR_SEPARATOR_2.
17308 2017-02-17 Marek Polacek <polacek@redhat.com>
17310 PR middle-end/79536
17311 * fold-const.c (fold_negate_expr_1): Renamed from fold_negate_expr.
17312 (fold_negate_expr): New wrapper.
17314 2017-02-16 Sandra Loosemore <sandra@codesourcery.com>
17316 * doc/invoke.texi (C++ Dialect Options) [-Wno-non-template-friend]:
17317 Correct terminology and de-emphasize pre-standard behavior.
17319 2017-02-16 Alan Modra <amodra@gmail.com>
17321 PR rtl-optimization/79286
17322 * ira.c (def_dominates_uses): New function.
17323 (update_equiv_regs): Don't create an equivalence for insns that
17324 may trap where the register def does not dominate the use.
17326 2017-02-16 Vladimir Makarov <vmakarov@redhat.com>
17328 PR rtl-optimization/78127
17329 * lra.c (lra): Call lra_eliminate before finish the loop after
17332 2017-02-16 Richard Biener <rguenther@suse.de>
17334 * graphite.h: Do not include isl/isl_val_gmp.h, instead include
17336 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): Remove.
17337 (gcc_expression_from_isl_expr_int): Use generic isl_val interface.
17338 * graphite-sese-to-poly.c: Do not include isl/isl_val_gmp.h.
17339 (isl_val_int_from_wi): New function.
17340 (extract_affine_gmp): Rename to ...
17341 (extract_affine_wi): ... this, take a widest_int.
17342 (extract_affine_int): Just wrap extract_affine_wi.
17343 (add_param_constraints): Use isl_val_int_from_wi.
17344 (add_loop_constraints): Likewise, and extract_affine_wi.
17346 2017-02-15 Jeff Law <law@redhat.com>
17348 PR middle-end/79521
17349 * ira-costs.c (scan_one_insn): Check have_regs_of_mode before calling
17350 ira_init_register_move_cost_if_necessary.
17352 2017-02-15 Martin Sebor <msebor@redhat.com>
17354 PR middle-end/32003
17355 * doc/invoke.texi (-fdump-final-insns): Replace option accidentally
17356 removed in a prior commit.
17358 2017-02-15 Bin Cheng <bin.cheng@arm.com>
17360 PR tree-optimization/79347
17361 * tree-vect-loop-manip.c (vect_do_peeling): Maintain profile
17362 counters during peeling.
17364 2017-02-15 Thomas Schwinge <thomas@codesourcery.com>
17366 * Makefile.in (site.exp): Remove "set ISLVER".
17368 2017-02-15 Jakub Jelinek <jakub@redhat.com>
17371 * real.c (real_from_integer): Call real_convert even for decimal.
17373 2017-02-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
17376 * config/s390/s390.c: define TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
17378 2017-02-14 Andrew Pinski <apinski@cavium.com>
17380 * config/aarch64/aarch64-cores.def (thunderx2t99): Move to under 'C"
17381 cores and change the partno/implementer to be correct.
17382 (thunderx2t99p1): New core which replaces thunderx2t99 and still has
17383 the 'B" as the implementer.
17384 * config/aarch64/aarch64-tune.md: Regenerate.
17386 2017-02-14 Carl Love <cel@us.ibm.com>
17388 * config/rs6000/rs6000.c: Add case statement entry to make the
17389 xvcvuxdsp built-in argument unsigned.
17390 * config/rs6000/vsx.md: Fix the source and return operand types so they
17391 match the instruction definitions from the ISA document. Fix typo
17392 in the instruction generation for the (define_insn "vsx_xvcvuxdsp"
17395 2017-02-14 Vladimir Makarov <vmakarov@redhat.com>
17398 * lra-int.h (struct lra_operand_data, struct lra_insn_reg): Add
17399 member early_clobber_alts.
17400 * lra-lives.c (reg_early_clobber_p): New.
17401 (process_bb_lives): Use it.
17402 * lra.c (new_insn_reg): New arg early_clobber_alts. Use it.
17403 (debug_operand_data): Initialize early_clobber_alts.
17404 (setup_operand_alternative): Set up early_clobber_alts.
17405 (collect_non_operand_hard_regs): Ditto. Pass early clobber
17406 alternatives to new_insn_reg.
17407 (add_regs_to_insn_regno_info): Add arg early_clobber_alts. Use
17409 (lra_update_insn_regno_info): Pass the new arg.
17411 2017-02-14 Jakub Jelinek <jakub@redhat.com>
17413 PR middle-end/79505
17414 * omp-offload.c (free_oacc_loop): Release loop->ifns vector.
17415 (new_oacc_loop_raw): Don't clear already cleared fields.
17418 * config/i386/avx512pfintrin.h (_mm512_prefetch_i32gather_pd,
17419 _mm512_prefetch_i32gather_ps, _mm512_prefetch_i64gather_pd,
17420 _mm512_prefetch_i64gather_ps): New inline functions and macros.
17422 2017-02-14 Uros Bizjak <ubizjak@gmail.com>
17425 * config/i386/i386.md (*movxf_internal): Add (o,rC) alternative.
17427 2017-02-14 H.J. Lu <hongjiu.lu@intel.com>
17430 * config/i386/i386.c (timode_scalar_chain::convert_insn): Insert
17431 the extra instruction to the right place to store 128-bit constant
17434 2017-02-14 Martin Sebor <msebor@redhat.com>
17436 PR middle-end/79448
17437 * gimple-ssa-sprintf.c (format_directive): Avoid issuing INT_MAX
17438 warning for strings of unknown length.
17440 2017-02-13 Segher Boessenkool <segher@kernel.crashing.org>
17442 * config.gcc (supported_defaults) [powerpc*-*-*]: Update.
17444 2017-02-14 Jeff Law <law@redhat.com>
17447 * ira-costs.c (scan_one_insn): Initialize register move costs
17448 for pseudos seen in USE/CLOBBER insns.
17450 PR tree-optimization/79095
17451 * tree-vrp.c (extract_range_from_binary_expr_1): For EXACT_DIV_EXPR,
17452 if the numerator has the range ~[0,0] make the resultant range ~[0,0].
17453 (extract_range_from_binary_expr): For MINUS_EXPR with no derived range,
17454 if the operands are known to be not equal, then the resulting range
17456 (intersect_ranges): If the new range is ~[0,0] and the old range is
17457 wide, then prefer ~[0,0].
17458 * tree-vrp.c (overflow_comparison_p_1): New function.
17459 (overflow_comparison_p): New function.
17460 * tree-vrp.c (register_edge_assert_for_2): Register additional asserts
17461 if NAME is used in an overflow test.
17462 (vrp_evaluate_conditional_warnv_with_ops): If the ops represent an
17463 overflow check that can be expressed as an equality test, then adjust
17464 ops to be that equality test.
17466 2017-02-14 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17468 * config/s390/s390-builtin-types.def: Remove flags argument.
17469 * config/s390/s390.c (s390_init_builtins): Likewise.
17471 2017-02-14 Martin Liska <mliska@suse.cz>
17473 * tree-ssa-loop-unswitch.c (hoist_guard): Release get_loop_body
17474 vector. Fix trailing white spaces.
17476 2017-02-14 James Greenhalgh <james.greenhalgh@arm.com>
17478 * config/aarch64/aarch64.c (aarch64_simd_container_mode): Handle
17481 2017-02-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17483 PR rtl-optimization/68664
17484 * config/arm/arm.c (arm_sched_can_speculate_insn):
17485 New function. Declare prototype.
17486 (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
17488 2017-02-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17490 PR rtl-optimization/68664
17491 * config/aarch64/aarch64.c (aarch64_sched_can_speculate_insn):
17493 (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
17495 2017-02-14 Amit Pawar <amit.pawar@amd.com>
17497 * config/i386/i386.c (znver1_cost): Fix the alignment for function and
17498 max skip bytes for function, loop and jump.
17500 2017-02-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17502 * gimple-pretty-print.c (dump_unary_rhs): Adjust dump format for
17503 ABS_EXPR for gimple dump.
17505 2017-02-14 Jakub Jelinek <jakub@redhat.com>
17508 * config/sh/sh.c (expand_cbranchdi4): Don't clear operands[4].
17510 PR tree-optimization/79408
17511 * tree-vrp.c (simplify_div_or_mod_using_ranges): Handle also the
17512 case when on TRUNC_MOD_EXPR op0 is INTEGER_CST.
17513 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
17514 also if rhs1 is INTEGER_CST.
17516 2017-02-14 Richard Biener <rguenther@suse.de>
17518 PR middle-end/79432
17519 * tree-into-ssa.c (insert_phi_nodes): When the function can
17520 have abnormal edges rewrite SSA names with broken use-def
17521 dominance out of SSA and register them for PHI insertion.
17523 2017-02-13 Martin Sebor <msebor@redhat.com>
17525 PR middle-end/79496
17526 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call): Avoid
17527 clearing info.nowrite flag when snprintf size argument is a range.
17529 2017-02-13 Jakub Jelinek <jakub@redhat.com>
17531 * cprop.c (cprop_jump): Add missing space in string literal.
17532 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
17533 (get_constraint_for_component_ref): Likewise.
17534 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
17535 * tree-outof-ssa.c (insert_partition_copy_on_edge): Likewise.
17536 * lra-constraints.c (process_alt_operands): Likewise.
17537 * ipa-inline.c (inline_small_functions): Likewise.
17538 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise.
17539 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
17540 * trans-mem.c (diagnose_tm_1_op): Likewise.
17541 * omp-grid.c (grid_find_single_omp_among_assignments): Likewise.
17542 (grid_parallel_clauses_gridifiable): Likewise.
17544 * config/nvptx/mkoffload.c (process): Add space in between
17547 * config/i386/i386.h (REG_CLASS_NAMES): Add , in between
17548 "MOD4_SSE_REGS" and "ALL_REGS".
17550 * spellcheck.c (test_data): Add , in between "foo" and "food".
17552 2017-02-13 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
17555 * config/rs6000/rs6000.c (expand_block_compare): Make sure runtime
17556 boundary crossing check and subsequent code generation agree.
17558 2017-02-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17560 * config/aarch64/aarch64.c (has_memory_op): Delete.
17561 (aarch64_madd_needs_nop): Use contains_mem_rtx_p instead of
17564 2017-02-13 Jakub Jelinek <jakub@redhat.com>
17566 PR rtl-optimization/79388
17567 PR rtl-optimization/79450
17568 * combine.c (distribute_notes): When removing TEM_INSN for which
17569 corresponding dest has last value recorded, invalidate that last
17572 2017-02-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17574 * config/arm/arm.c (arm_print_tune_info): Use ASM_COMMENT_START instead
17575 of explicit '@'. Add missing assembly comment marker on branch costs
17578 2017-02-13 Nathan Sidwell <nathan@acm.org>
17580 * gengtype-lex.l (<in_struct>): Add '/'.
17582 2017-02-13 Martin Liska <mliska@suse.cz>
17585 * calls.c (expand_call): Replace XALLOCAVEC with XCNEWVEC.
17587 2017-02-13 Richard Biener <rguenther@suse.de>
17589 * configure.ac (HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS):
17591 * configure: Re-generate.
17592 * config.in: Likewise.
17593 * graphite-dependences.c: Simplify as if
17594 HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS was defined.
17595 * graphite-isl-ast-to-gimple.c: Likewise.
17596 * graphite-optimize-isl.c: Likewise.
17597 * graphite-poly.c: Likewise.
17598 * graphite-sese-to-poly.c: Likewise.
17599 * graphite.h: Likewise.
17600 * toplev.c: Include isl/version.h and use isl_version () for
17601 printing the ISL version.
17602 * doc/install.texi: Update ISL requirement.
17604 2017-02-12 Gerald Pfeifer <gerald@pfeifer.com>
17606 * doc/standards.texi (Standards): Update reference to
17609 2017-02-12 Gerald Pfeifer <gerald@pfeifer.com>
17611 * doc/extend.texi (Named Address Spaces): sourceware.org now
17613 * doc/install.texi (Binaries): Ditto.
17616 2017-02-11 Sandra Loosemore <sandra@codesourcery.com>
17618 * doc/cpp.texi: Replace "stringify"/"stringification" with C
17619 standard terminology "stringize"/"stringizing" throughout.
17620 * doc/cppinternals.texi: Likewise.
17622 2017-02-11 Sandra Loosemore <sandra@codesourcery.com>
17624 * doc/extend.texi: Fix some spelling mistakes and typos.
17625 * doc/invoke.texi: Likewise.
17627 2017-02-11 Jan Hubicka <hubicka@ucw.cz>
17630 * params.def (inline-min-speedup) Change from 10 to 8.
17632 2017-02-11 Jakub Jelinek <jakub@redhat.com>
17634 * doc/invoke.texi (fopenmp): Bump OpenMP version from 4.0 to
17637 2017-02-11 Jan Hubicka <hubicka@ucw.cz>
17640 * ipa-inline-analysis.c (get_minimal_bb): New function.
17641 (record_modified): Use it.
17642 (remap_edge_change_prob): Handle also ancestor functions.
17644 2017-02-11 Gerald Pfeifer <gerald@pfeifer.com>
17646 * doc/contrib.texi (Contributors): Remove broken link into
17647 the Mauve CVS repository.
17649 2017-02-11 Jakub Jelinek <jakub@redhat.com>
17651 PR middle-end/79454
17652 * internal-fn.c (expand_vector_ubsan_overflow): Use piece-wise
17653 result computation whenever lhs doesn't have vector mode, not
17654 just when it has BLKmode.
17656 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
17658 * doc/makefile.texi (profiledbootstrap): Refer to the
17659 installation instructions only in textual form.
17661 2017-02-10 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
17664 * config/rs6000/altivec.md (bcd<bcd_add_sub>): Fix constraints.
17666 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
17668 * doc/install.texi (Specific): Use https for blackfin.uclinux.org.
17669 (Specific): Update mingw-w64 reference.
17671 (Specific): Remove broken link to Renesas RX processor.
17673 2017-02-10 Richard Biener <rguenther@suse.de>
17675 * toplev.c (process_options): Do not mention obsolete graphite
17676 options when printing sorry message about missing graphite support.
17677 Mention -floop-nest-optimize.
17679 2017-02-10 Christophe Lyon <christophe.lyon@linaro.org>
17681 * config/aarch64/arm_neon.h (vtst_p8): Rewrite without asm.
17682 (vtst_p16): Likewise.
17683 (vtstq_p8): Likewise.
17684 (vtstq_p16): Likewise.
17686 (vtstq_p64): Likewise.
17687 * config/arm/arm_neon.h (vgetq_lane_p64): New.
17688 (vset_lane_p64): New.
17689 (vsetq_lane_p64): New.
17691 2017-02-10 Jakub Jelinek <jakub@redhat.com>
17693 PR tree-optimization/79411
17694 * tree-ssa-reassoc.c (is_reassociable_op): Return false if
17695 stmt operands are SSA_NAMEs used in abnormal phis.
17696 (can_reassociate_p): Return false if op is SSA_NAME used in abnormal
17699 2017-02-09 Jan Hubicka <hubicka@ucw.cz>
17702 * cgraphunit.c (cgraph_node::add_new_function): Set externally_visible
17705 2017-02-09 Jan Hubicka <hubicka@ucw.cz>
17707 * tree-ssa-loop-unswitch.c (hoist_guard): Update profile.
17709 2017-02-09 Jakub Jelinek <jakub@redhat.com>
17711 * omp-offload.c (oacc_loop_auto_partitions): Use || instead of |
17715 * gimplify.h (is_gimple_sizepos): Only test for INTEGER_CST constants,
17716 not arbitrary TREE_CONSTANT.
17719 * gimplify.c (gimplify_adjust_omp_clauses): Ignore
17720 "omp declare target link" attribute unless is_global_var.
17721 * omp-offload.c (find_link_var_op): Likewise.
17723 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
17724 Chung-Lin Tang <cltang@codesourcery.com>
17726 * gimplify.c (gimplify_scan_omp_clauses): No special handling for
17728 (gimplify_adjust_omp_clauses): Don't delete TILE.
17729 (gimplify_omp_for): Deal with TILE.
17730 * internal-fn.c (expand_GOACC_TILE): New function.
17731 * internal-fn.def (GOACC_DIM_POS): Comment may be overly conservative.
17733 * omp-expand.c (struct oacc_collapse): Add tile and outer fields.
17734 (expand_oacc_collapse_init): Add LOC paramter. Initialize tile
17736 (expand_oacc_collapse_vars): Add INNER parm, adjust for tiling,
17737 avoid DIV for outermost collapse var.
17738 (expand_oacc_for): Insert tile element loop as needed. Adjust.
17739 Remove out of date comments, fix whitespace.
17740 * omp-general.c (omp_extract_for_data): Deal with tiling.
17741 * omp-general.h (enum oacc_loop_flags): Add OLF_TILE flag,
17742 adjust OLF_DIM_BASE value.
17743 (struct omp_for_data): Add tiling field.
17744 * omp-low.c (scan_sharing_clauses): Allow OMP_CLAUSE_TILE.
17745 (lower_oacc_head_mark): Add OLF_TILE as appropriate. Ensure 2 levels
17746 for auto loops. Remove default auto determining, moved to
17747 oacc_loop_fixed_partitions.
17748 * omp-offload.c (struct oacc_loop): Change 'ifns' to vector of call
17749 stmts, add e_mask field.
17750 (oacc_dim_call): New function, abstracted out from oacc_thread_numbers.
17751 (oacc_thread_numbers): Use oacc_dim_call.
17752 (oacc_xform_tile): New.
17753 (new_oacc_loop_raw): Initialize e_mask, adjust for ifns vector.
17754 (finish_oacc_loop): Adjust for ifns vector.
17755 (oacc_loop_discover_walk): Append loop abstraction sites to list,
17756 add case for GOACC_TILE fns.
17757 (oacc_loop_xform_loop): Delete.
17758 (oacc_loop_process): Iterate over call list directly, and add
17759 handling for GOACC_TILE fns.
17760 (oacc_loop_fixed_partitions): Determine default auto, deal with TILE,
17762 (oacc_loop_auto_partitions): Add outer_assign parm. Assign all but
17763 vector partitioning to outer loops. Assign 2 partitions to loops
17764 when available. Add TILE handling.
17765 (oacc_loop_partition): Adjust oacc_loop_auto_partitions call.
17766 (execite_oacc_device_lower): Process GOACC_TILE fns,
17767 ignore unknown specs.
17768 * tree-nested.c (convert_nonlocal_omp_clauses): Allow OMP_CLAUSE_TILE.
17769 * tree.c (omp_clause_num_ops): Adjust TILE ops.
17770 * tree.h (OMP_CLAUSE_TILE_ITERVAR, OMP_CLAUSE_TILE_COUNT): New.
17772 2017-02-09 Gerald Pfeifer <gerald@pfeifer.com>
17774 * configure.ac (ACX_BUGURL): Update.
17775 * configure: Regenerate.
17777 2017-02-09 Richard Biener <rguenther@suse.de>
17779 PR tree-optimization/69823
17780 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
17781 Properly enumerate all BBs in the region. Use auto_vec/auto_bitmap.
17783 2017-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
17785 * config/arc/arc-c.def: Add __NPS400__ definition.
17786 * config/arc/arc.h (CPP_SPEC): Don't define __NPS400__ here.
17787 (TARGET_NPS400): Define.
17789 2017-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
17791 * config/arc/arc-arch.h (arc_arch_t): Move unchanged to earlier in
17793 (arc_cpu_t): Change base_architecture field, arch, to a arc_arc_t
17794 pointer, arch_info.
17795 (arc_cpu_types): Fill the arch_info field with a pointer into the
17796 arc_arch_types table.
17797 (arc_selected_cpu): Declare.
17798 * config/arc/arc.c (arc_selected_cpu): Make global.
17799 (arc_selected_arch): Delete.
17800 (arc_base_cpu): Delete.
17801 (arc_override_options): Remove references to deleted variables,
17802 update access to arch information.
17803 (ARC_OPT): Update access to arch information.
17804 (ARC_OPTX): Likewise.
17805 * config/arc/arc.h (arc_base_cpu): Remove declaration.
17806 (TARGET_ARC600): Update access to arch information.
17807 (TARGET_ARC601): Likewise.
17808 (TARGET_ARC700): Likewise.
17809 (TARGET_EM): Likewise.
17810 (TARGET_HS): Likewise.
17811 * config/arc/driver-arc.c (arc_cpu_to_as): Update access to arch
17814 2017-02-08 Pat Haugen <pthaugen@us.ibm.com>
17817 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Invert
17818 condition/operands for integer GE/LE/GEU/LEU operations.
17820 2017-02-08 Segher Boessenkool <segher@kernel.crashing.org>
17822 PR translation/79397
17823 * config/rs6000/rs6000.opt (maltivec=le, maltivec=be): Fix spelling
17826 2017-02-08 Martin Jambor <mjambor@suse.cz>
17829 * ipa-prop.c (ipa_alloc_node_params): Make static, return bool
17830 whether allocation happened.
17831 (ipa_initialize_node_params): Do not call ipa_alloc_node_params if
17832 nothing was allocated.
17834 2017-02-08 Jakub Jelinek <jakub@redhat.com>
17836 PR tree-optimization/79408
17837 * tree-vrp.c (simplify_div_or_mod_using_ranges): If op1 is not
17838 constant, but SSA_NAME with a known integer range, use the minimum
17839 of that range instead of op1 to determine if modulo can be replaced
17840 with its first operand.
17842 2016-02-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17844 * config/riscv/riscv.c (riscv_build_integer_1): Avoid use of INT16_MAX.
17846 2017-02-08 Richard Biener <rguenther@suse.de>
17848 PR tree-optimization/71824
17849 * graphite-scop-detection.c (scop_detection::build_scop_breadth):
17850 Check all loops contained in the merged region.
17852 2017-02-07 Andrew Pinski <apinski@cavium.com>
17854 * config/aarch64/aarch64.md (popcount<mode>2): New pattern.
17856 2017-02-07 Andrew Pinski <apinski@cavium.com>
17858 * config/aarch64/aarch64-cores.def (thunderx): Disable LSE.
17859 (thunderxt88): Likewise.
17860 (thunderxt81): Disable LSE and change v8.1 to v8.
17861 (thunderxt83): Likewise.
17863 2017-02-07 Jakub Jelinek <jakub@redhat.com>
17864 Richard Biener <rguenther@suse.de>
17866 PR middle-end/79399
17867 * ira-int.h (struct target_ira_int): Change x_max_struct_costs_size
17868 type from int to size_t.
17869 * ira-costs.c (struct_costs_size): Change type from int to size_t.
17871 2017-02-07 Jakub Jelinek <jakub@redhat.com>
17873 PR rtl-optimization/79386
17874 * cprop.c (bypass_conditional_jumps): Initialize
17875 bypass_last_basic_block already before splitting bbs after
17876 unconditional traps...
17877 (bypass_conditional_jumps): ... rather than here.
17880 * config/i386/sse.md (xtg_mode, gatherq_mode): New mode attrs.
17881 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2,
17882 *avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2): Use them,
17883 fix -masm=intel patterns.
17885 2017-02-07 Richard Biener <rguenther@suse.de>
17887 PR tree-optimization/79256
17888 PR middle-end/79278
17889 * builtins.c (get_object_alignment_2): Use min_align_of_type
17890 to extract alignment for MEM_REFs to honor BIGGEST_FIELD_ALIGNMENT
17891 and ADJUST_FIELD_ALIGN.
17893 * doc/tm.texi.in (ADJUST_FIELD_ALIGN): Adjust to take additional
17895 * doc/tm.texi: Regenerate.
17896 * stor-layout.c (layout_decl): Adjust.
17897 (update_alignment_for_field): Likewise.
17898 (place_field): Likewise.
17899 (min_align_of_type): Likewise.
17900 * config/arc/arc.h (ADJUST_FIELD_ALIGN): Adjust.
17901 * config/epiphany/epiphany.h (ADJUST_FIELD_ALIGN): Likewise.
17902 * config/epiphany/epiphany.c (epiphany_adjust_field_align): Likewise.
17903 * config/frv/frv.h (ADJUST_FIELD_ALIGN): Likewise.
17904 * config/frv/frv.c (frv_adjust_field_align): Likewise.
17905 * config/i386/i386.h (ADJUST_FIELD_ALIGN): Likewise.
17906 * config/i386/i386.c (x86_field_alignment): Likewise.
17907 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
17908 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Likewise.
17909 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
17910 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
17911 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Likewise.
17912 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
17916 2017-01-30 Richard Biener <rguenther@suse.de>
17918 PR tree-optimization/79256
17919 * targhooks.c (default_builtin_vector_alignment_reachable): Honor
17920 BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
17923 2017-02-07 Toma Tabacu <toma.tabacu@imgtec.com>
17925 * config/mips/mips.c (mips_expand_builtin_insn): Convert the QImode
17926 argument of the pshufh, psllh, psllw, psrah, psraw, psrlh, psrlw
17927 builtins to SImode and emit a zero-extend, if necessary.
17929 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
17931 * docs/invoke.texi (RISC-V Options): Alphabetize.
17933 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
17935 * doc/invoke.texi (RISC-V Options): Use two spaces to separate
17938 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
17940 * config/riscv/riscv.c: New file.
17941 * common/config/riscv/riscv-common.c: Likewise.
17942 * config.gcc: Likewise.
17943 * config/riscv/constraints.md: Likewise.
17944 * config/riscv/elf.h: Likewise.
17945 * config/riscv/generic.md: Likewise.
17946 * config/riscv/linux.h: Likewise.
17947 * config/riscv/multilib-generator: Likewise.
17948 * config/riscv/peephole.md: Likewise.
17949 * config/riscv/pic.md: Likewise.
17950 * config/riscv/predicates.md: Likewise.
17951 * config/riscv/riscv-builtins.c: Likewise.
17952 * config/riscv/riscv-c.c: Likewise.
17953 * config/riscv/riscv-ftypes.def: Likewise.
17954 * config/riscv/riscv-modes.def: Likewise.
17955 * config/riscv/riscv-opts.h: Likewise.
17956 * config/riscv/riscv-protos.h: Likewise.
17957 * config/riscv/riscv.h: Likewise.
17958 * config/riscv/riscv.md: Likewise.
17959 * config/riscv/riscv.opt: Likewise.
17960 * config/riscv/sync.md: Likewise.
17961 * config/riscv/t-elf-multilib: Likewise.
17962 * config/riscv/t-linux: Likewise.
17963 * config/riscv/t-linux-multilib: Likewise.
17964 * config/riscv/t-riscv: Likewise.
17965 * configure.ac: Likewise.
17966 * doc/contrib.texi: Add Kito Cheng, Palmer Dabbelt, and Andrew
17967 Waterman as RISC-V maintainers.
17968 * doc/install.texi: Add RISC-V entries.
17969 * doc/invoke.texi: Add RISC-V options section.
17970 * doc/md.texi: Add RISC-V constraints section.
17971 * configure: Regenerated.
17973 2017-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
17976 * config/rs6000/vector.md (vcond<mode><mode>): Allow the true and
17977 false values to be constant vectors with all 0 or all 1 bits set.
17978 (vcondu<mode><mode>): Likewise.
17979 * config/rs6000/predicates.md (vector_int_reg_or_same_bit): New
17981 (fpmask_comparison_operator): Update comment.
17982 (vecint_comparison_operator): New predicate.
17983 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Optimize
17984 vector conditionals when the true and false values are constant
17985 vectors with all 0 bits or all 1 bits set.
17987 2017-02-06 Martin Sebor <msebor@redhat.com>
17989 PR tree-optimization/79376
17990 * gimple-fold.c (get_range_strlen): Set the minimum length to zero.
17992 2017-02-06 Uros Bizjak <ubizjak@gmail.com>
17994 * config/i386/sse.md (vector modes -> vec_extract* splitter): Use
17995 explicit subreg RTX with operand 1. Use VECTOR_MODE_P predicate
17996 to simplify split condition.
17998 2017-02-06 Jakub Jelinek <jakub@redhat.com>
18000 * omp-expand.c (oxpand_omp_atomic_fetch_op,
18001 expand_omp_atomic_pipeline): Return false if can_atomic_load_p is
18004 2017-02-06 Segher Boessenkool <segher@kernel.crashing.org>
18006 PR rtl-optimization/68664
18007 * target.def (can_speculate_insn): New hook.
18008 * doc/tm.texi.in (TARGET_SCHED_CAN_SPECULATE_INSN): New hook.
18009 * doc/tm.texi: Regenerate.
18010 * sched-rgn.c (can_schedule_ready_p): Use the new hook.
18011 * config/rs6000/rs6000.c (TARGET_SCHED_CAN_SPECULATE_INSN): New macro.
18012 (rs6000_sched_can_speculate_insn): New function.
18014 2017-02-06 Jakub Jelinek <jakub@redhat.com>
18016 PR tree-optimization/79284
18017 * tree-vectorizer.h (VECT_SCALAR_BOOLEAN_TYPE_P): Define.
18018 * tree-vect-stmts.c (vect_get_vec_def_for_operand,
18019 vectorizable_mask_load_store, vectorizable_operation,
18020 vect_is_simple_cond, get_same_sized_vectype): Use it instead
18021 of comparing TREE_CODE of a type against BOOLEAN_TYPE.
18022 * tree-vect-patterns.c (check_bool_pattern, search_type_for_mask_1,
18023 vect_recog_bool_pattern, vect_recog_mask_conversion_pattern): Likewise.
18024 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
18025 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
18026 Remove redundant gimple_code (stmt) == GIMPLE_ASSIGN test after
18027 is_gimple_assign (stmt). Replace another such test with
18028 is_gimple_assign (stmt).
18030 2017-02-06 Georg-Johann Lay <avr@gjlay.de>
18033 * config/avr/avr.c (rtl-iter.h): Include it.
18034 (TARGET_LEGITIMATE_COMBINED_INSN): New hook define...
18035 (avr_legitimate_combined_insn): ...and implementation.
18037 2017-02-06 Dominik Vogt <vogt@linux.vnet.ibm.com>
18039 * config/s390/predicates.md ("larl_operand"): Use macros from hwint.h.
18040 * config/s390/s390.c (s390_const_operand_ok)
18041 (s390_canonicalize_comparison, s390_extract_part)
18042 (s390_single_part, s390_contiguous_bitmask_nowrap_p)
18043 (s390_contiguous_bitmask_p, s390_rtx_costs)
18044 (legitimize_pic_address): Likewise.
18045 * config/s390/s390.md ("clzdi2", "clztidi2"): Likewise.
18046 * config/s390/vx-builtins.md ("vec_genbytemaskv16qi")
18047 ("vec_permi<mode>", "vfae<mode>", "*vfaes<mode>", "vstrc<mode>")
18048 ("*vstrcs<mode>"): Use UINTVAL() to set unsigned HOST_WIDE_INT.
18049 * config/s390/vector.md ("vec_vfenes<mode>"): Likewise.
18051 2017-02-06 Georg-Johann Lay <avr@gjlay.de>
18053 * config/avr/avr.md (*addhi3_zero_extend): Add alternative where
18054 REGNO($0) == REGNO($1).
18056 2017-02-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18058 * config/s390/linux.h(SIZE_TYPE): Add comment.
18060 2017-02-06 Julian Brown <julian@codesourcery.com>
18061 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
18062 Virendra Pathak <virendra.pathak@broadcom.com>
18064 * config/aarch64/aarch64-cores.def: Change the scheduler
18066 * config/aarch64/aarch64.md: Include thunderx2t99.md.
18067 * config/aarch64/thunderx2t99.md: New file.
18069 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
18071 * doc/standards.texi (Go Language): Update link to language
18074 2017-02-05 Jan Hubicka <hubicka@ucw.cz>
18076 * tree-eh.c (lower_resx): Sanitize profile.
18077 (cleanup_empty_eh_move_lp): Likewise.
18079 2017-02-05 Jan Hubicka <hubicka@ucw.cz>
18082 * cfgloopmanip.c (lv_adjust_loop_entry_edge, loop_version): Add
18084 * cfgloopmanip.h (loop_version): Update prototype.
18085 * modulo-sched.c (sms_schedule): Update call of loop_version.
18086 * tree-if-conv.c(version_loop_for_if_conversion): Likewise.
18087 * tree-parloops.c (gen_parallel_loop): Likewise.
18088 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
18089 * tree-ssa-loop-split.c (split_loop): Likewise.
18090 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Likewise.
18091 * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
18093 2017-02-05 Martin Liska <mliska@suse.cz>
18096 * config/s390/s390.c (s390_gimplify_va_arg): Initialize local
18098 (print_operand_address): Initialize a struct to zero.
18100 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
18102 * doc/contrib.texi (Contributors): Refer to Hans Boehm's
18103 garbage collector only in textual form.
18105 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
18107 * doc/extend.texi (x86 specific memory model extensions for
18108 transactional memory): Simplify a phrase.
18110 2017-02-05 Eric Botcazou <ebotcazou@adacore.com>
18113 * config/sparc/sync.md (atomic_loaddi_1): Replace 'U' constraint with
18114 'r', 'm' constraint with 'T' and !TARGET_ARCH64 with TARGET_ARCH32.
18115 (atomic_storedi_1): Likewise.
18117 2017-02-04 Jakub Jelinek <jakub@redhat.com>
18119 PR tree-optimization/79338
18120 * tree-parloops.c (gather_scalar_reductions): Don't call
18121 vect_analyze_loop_form for loop->inner before destroying loop's
18124 2017-02-03 Martin Sebor <msebor@redhat.com>
18126 PR tree-optimization/79327
18127 * gimple-ssa-sprintf.c (tree_digits): Avoid adding the base prefix
18128 when precision has resulted in leading zeros.
18129 (format_integer): Adjust the likely counter to assume an unknown
18130 argument that may be zero is non-zero.
18132 2017-02-03 Jason Merrill <jason@redhat.com>
18135 * tree-inline.c (copy_tree_body_r) [COND_EXPR]: Revert change to
18136 avoid copying non-taken branch.
18138 2017-02-03 Jakub Jelinek <jakub@redhat.com>
18140 PR tree-optimization/79340
18141 * tree-vect-loop.c (vectorizable_reduction): Release
18142 vec_defs elements after safe_splicing them into other vectors.
18145 PR tree-optimization/79327
18146 * gimple-ssa-sprintf.c (adjust_range_for_overflow): If returning
18147 true, always set *argmin and *argmax to TYPE_{MIN,MAX}_VALUE of
18149 (format_integer): Use wide_int_to_tree instead of build_int_cst
18150 + to_?hwi. If argmin is NULL, just set argmin and argmax to
18151 TYPE_{MIN,MAX}_VALUE of argtype. Simplify and fix computation
18152 of shortest and longest sequence.
18154 2017-02-03 Uros Bizjak <ubizjak@gmail.com>
18156 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
18157 Use pextrd for TARGET_SSE4_1 when creating scalar copy.
18159 2017-02-03 Walter Lee <walt@tilera.com>
18162 * config/tilegx/tilegx.md (tilegx_expand_prologue): Add blockage
18163 after initial stackframe link reg save.
18164 * config/tilepro/tilepro.md (tilepro_expand_prologue): Likewise.
18166 2017-02-03 Jakub Jelinek <jakub@redhat.com>
18169 * config/rs6000/rs6000.md (movsi_from_sf): Use wb constraint instead of
18170 wu for stxssp alternative.
18172 2017-02-03 Martin Sebor <msebor@redhat.com>
18174 PR tree-optimization/79352
18175 * gimple-fold.c (get_range_strlen): Add argument.
18176 (get_range_strlen): Change return type to bool.
18177 (get_maxval_strlen): Pass in a dummy argument.
18178 * gimple-fold.h (get_range_strlen): Change return type to bool.
18179 * gimple-ssa-sprintf.c (get_string_length): Set unlikely counter.
18180 * tree.h (array_at_struct_end_p): Add argument.
18181 * tree.c (array_at_struct_end_p): Handle it.
18183 2017-02-03 Martin Liska <mliska@suse.cz>
18186 * multiple_target.c (create_dispatcher_calls): Redirect edge
18187 from a caller of a dispatcher.
18188 (expand_target_clones): Make the clones local.
18189 (ipa_target_clone): Do both target clones and resolvers.
18190 (ipa_dispatcher_calls): Remove the pass.
18191 (pass_dispatcher_calls::gate): Likewise.
18192 (make_pass_dispatcher_calls): Likewise.
18193 * passes.def (pass_target_clone): Put as very first IPA early
18196 2017-02-03 Martin Liska <mliska@suse.cz>
18198 * symtab.c (symtab_node::binds_to_current_def_p): Bail out
18199 in case of a function with ifunc attribute.
18201 2017-02-03 Martin Liska <mliska@suse.cz>
18203 * cgraph.c (cgraph_node::dump): Dump function version info.
18204 * symtab.c (symtab_node::dump_base): Add missing new line.
18206 2017-02-02 Jan Hubicka <hubicka@ucw.cz>
18208 * tree-ssa-ifcombine.c (update_profile_after_ifcombine): New function.
18209 (ifcombine_ifandif): Use it.
18211 2017-02-03 Martin Liska <mliska@suse.cz>
18213 * doc/invoke.texi: Document default value for
18214 use-after-scope-direct-emission-threshold.
18216 2017-02-03 Martin Liska <mliska@suse.cz>
18218 PR tree-optimization/79339
18219 * gimple-ssa-sprintf.c (format_floating_max): Call mpfr_clear.
18220 (format_floating): Likewise.
18222 2017-02-03 Martin Liska <mliska@suse.cz>
18225 * ipa-prop.c (ipa_node_params_t::insert): Remove current
18227 (ipa_node_params_t::remove): Likewise.
18228 * ipa-prop.h (ipa_node_params::ipa_node_params): Make default
18229 initialization from removed ipa_node_params_t::insert.
18230 (ipa_node_params::~ipa_node_params): Move from removed
18231 ipa_node_params_t::release.
18232 * symbol-summary.h (symbol_summary::m_released): New member.
18233 Do not release a summary twice. Do not allow to call finalizer
18234 for types of a summary that live in GGC memory.
18236 2017-02-02 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
18238 * config/aarch64/aarch64.c (thunderx2t99_tunings): Enable AES and
18241 2017-02-02 Martin Sebor <msebor@redhat.com>
18243 PR middle-end/79275
18244 * gimple-ssa-sprintf.c (get_string_length): Set lower bound to zero.
18245 (format_string): Tighten up the range of output for non-constant
18246 strings and correct the expected range for wide non-constant strings.
18248 2017-02-02 Martin Sebor <msebor@redhat.com>
18250 * doc/invoke.texi (-maccumulate-args): Fix bad grammar.
18252 PR middle-end/32003
18253 * doc/invoke.texi (-fdump-tree-): Remove pass-specific options from
18255 (-fdump-tree-@var): Add to index and document how to come up
18256 with pass-specific option and dump file names.
18257 (-fdump-passes): Clarify where to look for output.
18259 2017-02-02 Jan Hubicka <hubicka@ucw.cz>
18261 PR middle-end/77445
18262 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Dump
18263 statistics of the analyzed path; allow threading for speed when
18264 any of BBs along the path are optimized for speed.
18266 2017-02-02 Eric Botcazou <ebotcazou@adacore.com>
18268 PR middle-end/78468
18269 * emit-rtl.c (init_emit): Add ??? comment for problematic alignment
18270 settings of the virtual registers.
18273 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
18275 * explow.c (get_dynamic_stack_size): Take known alignment of stack
18276 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
18279 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18281 * config/s390/vx-builtins.md ("vec_ceil", "vec_floor")
18282 ("vec_trunc", "vec_roundc", "vec_round"): Remove expanders.
18284 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18286 * config/s390/s390.md: Add missing comments with the expanded
18288 * config/s390/vector.md: Likewise.
18289 * config/s390/vx-builtins.md: Likewise.
18291 2017-02-02 Jakub Jelinek <jakub@redhat.com>
18294 * config/rs6000/rs6000.md (*fixuns_trunc<mode>di2_fctiduz): Rename to ...
18295 (fixuns_trunc<mode>di2): ... this, remove previous expander. Put all
18296 conditions on a single line.
18298 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18300 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
18301 __S390_VX__ to __VX__.
18303 2017-02-01 Andrew Pinski <apinski@cavium.com>
18305 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost): Pass
18306 stmt_info to record_stmt_cost.
18307 (vect_get_known_peeling_cost): Pass stmt_info if known to
18309 * config/aarch64/aarch64-protos.h (cpu_vector_cost): Split
18310 cpu_vector_cost field into
18311 scalar_int_stmt_cost and scalar_fp_stmt_cost. Split vec_stmt_cost
18312 field into vec_int_stmt_cost and vec_fp_stmt_cost.
18313 * config/aarch64/aarch64.c (generic_vector_cost): Update for the
18314 splitting of scalar_stmt_cost and vec_stmt_cost.
18315 (thunderx_vector_cost): Likewise.
18316 (cortexa57_vector_cost): LIkewise.
18317 (exynosm1_vector_cost): Likewise.
18318 (xgene1_vector_cost): Likewise.
18319 (thunderx2t99_vector_cost): Improve after the splitting of the two
18321 (aarch64_builtin_vectorization_cost): Update for the splitting of
18322 scalar_stmt_cost and vec_stmt_cost.
18324 2017-02-01 Torvald Riegel <triegel@redhat.com>
18325 Richard Henderson <rth@redhat.com>
18327 * builtins.c (fold_builtin_atomic_always_lock_free): Make "lock-free"
18328 conditional on existance of a fast atomic load.
18329 * optabs-query.c (can_atomic_load_p): New function.
18330 * optabs-query.h (can_atomic_load_p): Declare it.
18331 * optabs.c (expand_atomic_exchange): Always delegate to libatomic if
18332 no fast atomic load is available for the particular size of access.
18333 (expand_atomic_compare_and_swap): Likewise.
18334 (expand_atomic_load): Likewise.
18335 (expand_atomic_store): Likewise.
18336 (expand_atomic_fetch_op): Likewise.
18337 * testsuite/lib/target-supports.exp
18338 (check_effective_target_sync_int_128): Remove x86 because it provides
18339 no fast atomic load.
18340 (check_effective_target_sync_int_128_runtime): Likewise.
18342 2017-02-01 Richard Biener <rguenther@suse.de>
18344 * graphite.c: Include tree-vectorizer.h for find_loop_location.
18345 (graphite_transform_loops): Provide opt-info for optimized nests.
18346 * tree-parloop.c (parallelize_loops): Provide opt-info for
18347 parallelized loops.
18349 2017-02-01 Richard Biener <rguenther@suse.de>
18351 PR middle-end/79315
18352 * tree-cfg.c (move_stmt_op): Never set TREE_BLOCK when it
18353 was not set before.
18355 2017-02-01 Richard Biener <rguenther@suse.de>
18357 PR tree-optimization/71824
18358 * graphite-scop-detection.c (scop_detection::build_scop_breadth):
18359 Verify the loops are valid in the merged SESE region.
18360 (scop_detection::can_represent_loop_1): Check analyzing the
18361 evolution of the number of iterations in the region succeeds.
18363 2017-01-31 Ian Lance Taylor <iant@golang.org>
18365 * config/i386/i386.c (ix86_expand_split_stack_prologue): Add
18366 REG_ARGS_SIZE note to 32-bit push insns and call insn.
18368 2017-01-31 David Malcolm <dmalcolm@redhat.com>
18370 PR preprocessor/79210
18371 * input.c (get_substring_ranges_for_loc): Replace line_width
18372 assertion with error-handling.
18374 2017-01-31 Richard Biener <rguenther@suse.de>
18376 PR tree-optimization/77318
18377 * graphite-sese-to-poly.c (extract_affine): Fix assert.
18378 (create_pw_aff_from_tree): Take loop parameter.
18379 (add_condition_to_pbb): Pass loop of the condition to
18380 create_pw_aff_from_tree.
18382 2017-01-31 Jakub Jelinek <jakub@redhat.com>
18384 * config/s390/s390.c (s390_asan_shadow_offset): New function.
18385 (TARGET_ASAN_SHADOW_OFFSET): Redefine.
18387 2017-01-31 Michael Meissner <meissner@linux.vnet.ibm.com>
18391 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Delete,
18393 (convert_int_to_float128): Likewise.
18394 * config/rs6000/rs6000.c (convert_float128_to_int): Likewise.
18395 (convert_int_to_float128): Likewise.
18396 * config/rs6000/rs6000.md (UNSPEC_IEEE128_MOVE): Likewise.
18397 (UNSPEC_IEEE128_CONVERT): Likewise.
18398 (floatsi<mode>2, FLOAT128 iterator): Bypass calling
18399 rs6000_expand_float128_convert if we have IEEE 128-bit hardware.
18400 Use local variables for IBM extended format.
18401 (fix_trunc<mode>si2, FLOAT128 iterator): Likewise.
18402 (fix_trunc<mode>si2_fprs): Likewise.
18403 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
18404 (floatuns<IEEE128:mode>2, IEEE128 iterator): Likewise.
18405 (fix<uns>_<mode>si2_hw): Rework the IEEE 128-bt hardware support
18406 to know that we can now have integers of all sizes in vector
18408 (fix<uns>_<mode>di2_hw): Likewise.
18409 (float<uns>_<mode>si2_hw): Likewise.
18410 (fix_<mode>si2_hw): Likewise.
18411 (fixuns_<mode>si2_hw): Likewise.
18412 (float<uns>_<mode>di2_hw): Likewise.
18413 (float_<mode>di2_hw): Likewise.
18414 (float_<mode>si2_hw): Likewise.
18415 (floatuns_<mode>di2_hw): Likewise.
18416 (floatuns_<mode>si2_hw): Likewise.
18417 (xscvqp<su>wz_<mode>): Delete, no longer used.
18418 (xscvqp<su>dz_<mode>): Likewise.
18419 (xscv<su>dqp_<mode>): Likewise.
18420 (ieee128_mfvsrd_64bit): Likewise.
18421 (ieee128_mfvsrd_32bit): Likewise.
18422 (ieee128_mfvsrwz): Likewise.
18423 (ieee128_mtvsrw): Likewise.
18424 (ieee128_mtvsrd_64bit): Likewise.
18425 (ieee128_mtvsrd_32bit): Likewise.
18427 2017-01-31 Martin Liska <mliska@suse.cz>
18430 * ipa-prop.c (ipa_free_all_node_params): Call release method
18431 instead of ~sumbol_summary to not to trigger double times
18434 2017-01-31 Aldy Hernandez <aldyh@redhat.com>
18436 PR tree-optimization/71691
18437 * bitmap.h (class auto_bitmap): New.
18438 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Call
18439 is_maybe_undefined instead of ssa_undefined_value_p.
18441 2017-01-31 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18443 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
18444 __S390_ARCH_LEVEL__ to __ARCH__.
18446 2017-01-31 Jakub Jelinek <jakub@redhat.com>
18448 PR tree-optimization/79267
18449 * value-prof.c (gimple_ic): Only drop lhs for noreturn calls
18450 if should_remove_lhs_p is true.
18452 2017-01-30 Alexandre Oliva <aoliva@redhat.com>
18455 * dwarf2out.c (clone_as_declaration): Drop DW_AT_alignment.
18456 (add_alignment_attribute): New.
18457 (base_type_die): Add alignment attribute.
18458 (subrange_type_die): Likewise.
18459 (modified_type_die): Likewise.
18460 (gen_array_type_die): Likewise.
18461 (gen_descr_array_type_die: Likewise.
18462 (gen_enumeration_type_die): Likewise.
18463 (gen_subprogram_die): Likewise.
18464 (gen_variable_die): Likewise.
18465 (gen_field_die): Likewise.
18466 (gen_ptr_to_mbr_type_die): Likewise.
18467 (gen_struct_or_union_type_die): Likewise.
18468 (gen_subroutine_type_die): Likewise.
18469 (gen_typedef_die): Likewise.
18470 (base_type_cmp): Compare alignment attribute.
18472 2017-01-30 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
18475 * config/rs6000/altivec.md (*setb_internal): Rename to setb_signed.
18476 (setb_unsigned) New pattern for setb with CCUNS.
18477 * config/rs6000/rs6000.c (expand_block_compare): Use a different
18478 subfc./subfe sequence to avoid overflow problems. Generate a
18479 shorter sequence with cmpld/setb for power9.
18480 * config/rs6000/rs6000.md (subf<mode>3_carry_dot2): Add a new pattern
18481 for generating subfc. instruction.
18482 (cmpstrsi): Add TARGET_POPCNTD predicate as the generate sequence
18483 now uses this instruction.
18485 2017-01-30 Ian Lance Taylor <iant@google.com>
18488 * dwarf2out.c (gen_type_die_with_usage): When picking a variant
18489 for FUNCTION_TYPE/METHOD_TYPE, use the first matching one.
18491 2017-01-30 Martin Sebor <msebor@redhat.com>
18493 * gimple-ssa-sprintf.c (fmtresult::adjust_for_width_or_precision):
18494 Move constant to the right of a relational operator.
18495 (get_mpfr_format_length, format_character, format_string): Ditto.
18496 (should_warn_p, maybe_warn): Same.
18498 * doc/invoke.texi (-Wformat-truncation=1): Fix typo.
18500 2017-01-30 Maxim Ostapenko <m.ostapenko@samsung.com>
18503 * asan.c (get_translation_unit_decl): Remove function.
18504 (asan_add_global): Force has_dynamic_init to zero in LTO mode.
18506 2017-01-30 Martin Liska <mliska@suse.cz>
18508 PR gcov-profile/79259
18509 * opts.c (common_handle_option): Enable flag_ipa_bit_cp w/
18510 -fprofile-generate.
18512 2017-01-30 Martin Liska <mliska@suse.cz>
18515 * config/aarch64/cortex-a57-fma-steering.c (func_fma_steering::analyze):
18516 Initialize variables with NULL value.
18518 2017-01-30 Richard Earnshaw <rearnsh@arm.com>
18521 * config.gcc (arm*-*-*): Add arm/arm-flags.h and arm/arm-isa.h to
18523 * arm/arm-protos.h: Don't directly include arm-flags.h and arm-isa.h.
18525 2017-01-30 Richard Biener <rguenther@suse.de>
18527 PR tree-optimization/79276
18528 * tree-vrp.c (process_assert_insertions): Properly adjust common
18529 when removing a duplicate.
18531 * gcc.dg/torture/pr79276.c: New testcase.
18533 2017-01-30 Richard Biener <rguenther@suse.de>
18535 PR tree-optimization/79256
18536 * targhooks.c (default_builtin_vector_alignment_reachable): Honor
18537 BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
18539 * tree.c (build_aligned_type): Set TYPE_USER_ALIGN.
18541 2017-01-30 Dominik Vogt <vogt@linux.vnet.ibm.com>
18544 * config/s390/s390.md ("*r<noxa>sbg_<mode>_srl_bitmask")
18545 ("*r<noxa>sbg_<mode>_sll_bitmask")
18546 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
18547 ("*extzv_<mode>_sll<clobbercc_or_nocc>"):
18548 Use contiguous_bitmask_nowrap_operand.
18550 2017-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18553 * config/rs6000/altivec.h (vec_xl): Revise #define.
18554 (vec_xst): Likewise.
18556 2017-01-27 Uros Bizjak <ubizjak@gmail.com>
18558 * config/i386/i386.c (print_reg): Use REGNO instead of true_regnum.
18560 2017-01-27 Bernd Schmidt <bschmidt@redhat.com>
18562 PR rtl-optimization/79194
18563 * cprop.c (one_cprop_pass): Move deletion of code after unconditional
18564 traps before call to bypass_conditional_jumps.
18566 2017-01-27 Vladimir Makarov <vmakarov@redhat.com>
18568 PR tree-optimization/71374
18569 * lra-constraints.c (check_conflict_input_operands): New.
18570 (match_reload): Use it.
18572 2017-01-27 Vladimir Makarov <vmakarov@redhat.com>
18575 * lra-assigns.c (find_hard_regno_for_1): Take endianess for into
18576 account to calculate conflict_set.
18578 2017-01-27 Bin Cheng <bin.cheng@arm.com>
18580 PR rtl-optimization/78559
18581 * combine.c (try_combine): Discard REG_EQUAL and REG_EQUIV for
18582 other_insn in combine.
18584 2017-01-27 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
18586 * builtin-types.def: Use unsigned_char_type_node for BT_UINT8. Use
18587 uint16_type_node for BT_UINT16.
18589 2017-01-27 David Malcolm <dmalcolm@redhat.com>
18591 * doc/sourcebuild.texi (Testsuites): Add "GIMPLE Tests" and
18592 "RTL Tests" to menu.
18593 (GIMPLE Tests): New node.
18594 (RTL Tests): New node.
18596 2017-01-27 Richard Biener <rguenther@suse.de>
18598 PR tree-optimization/79245
18599 * tree-loop-distribution.c (distribute_loop): Apply cost
18600 modeling also to detected patterns.
18602 2017-01-27 Richard Biener <rguenther@suse.de>
18604 PR tree-optimization/71433
18605 * tree-vrp.c (register_new_assert_for): Revert earlier changes.
18606 (compare_assert_loc): New function.
18607 (process_assert_insertions): Sort and optimize assert locations
18608 to remove duplicates and push down identical assertions on
18609 edges to their destination block.
18611 2017-01-27 Richard Biener <rguenther@suse.de>
18613 PR tree-optimization/79244
18614 * tree-vrp.c (remove_range_assertions): Forcefully propagate
18615 out SSA names even if abnormal.
18617 2017-01-27 Jakub Jelinek <jakub@redhat.com>
18619 * realmpfr.h: Poison MPFR_RND{N,Z,U,D}.
18620 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN
18621 instead of MPFR_RNDN.
18623 2017-01-27 Richard Earnshaw <rearnsha@arm.com>
18626 * arm.c (arm_option_override): Don't call build_target_option_node
18627 until after doing all option overrides.
18628 (arm_valid_target_attribute_tree): Likewise.
18630 2017-01-27 Martin Liska <mliska@suse.cz>
18632 * doc/invoke.texi (-fprofile-arcs): Document profiling support
18633 for {cd}tors and C++ {cd}tors.
18635 2017-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
18637 * config/s390/s390.md ("*setmem_long_and")
18638 ("*setmem_long_and_31z"): Use zero_extend instead of and.
18640 2017-01-26 Martin Sebor <msebor@redhat.com>
18642 * gimple-ssa-sprintf.c (format_floating): Simplify the computation
18645 2017-01-26 Martin Sebor <msebor@redhat.com>
18647 * gimple-ssa-sprintf.c (format_floating): Test HAVE_XFmode and
18648 HAVE_DFmode before using XFmode or DFmode.
18649 (parse_directive): Avoid using the z length modifier to avoid
18650 the ISO C++98 does not support the ‘z’ gnu_printf length modifier.
18652 PR middle-end/78703
18653 * gimple-ssa-sprintf.c (adjust_for_width_or_precision): Change
18654 to accept adjustment as an array.
18655 (get_int_range): New function.
18656 (struct directive): Make width and prec arrays.
18657 (directive::set_width, directive::set_precision): Call get_int_range.
18658 (format_integer, format_floating): Handle width and precision ranges.
18659 (format_string, parse_directive): Same.
18661 2017-01-26 Jakub Jelinek <jakub@redhat.com>
18664 * dwarf2out.c (generate_skeleton_bottom_up): For children with
18665 comdat_type_p set, just clone them, but keep the children in the
18669 * dwarf2out.c (prune_unused_types): Mark all functions with DIEs
18670 which have direct callers with -fvar-tracking-assignments enabled
18672 (resolve_addr): Avoid adding skeleton DIEs for DW_AT_call_origin
18673 inside of type units.
18675 2017-01-26 Martin Sebor <msebor@redhat.com>
18677 PR middle-end/78703
18678 * gimple-ssa-sprintf.c (struct result_range): Add likely and
18680 (struct format_result): Replace number_chars, number_chars_min,
18681 and number_chars_max with a single member of struct result_range.
18683 (format_result::operator+=): Adjust.
18684 (struct fmtresult): Remove bounded. Handle likely and unlikely
18686 (fmtresult::adjust_for_width_or_precision): New function.
18687 (fmtresult:type_max_digits): New function.
18688 (bytes_remaining): Handle likely and unlikely counters.
18689 (min_bytes_remaining): Remove.
18690 (format_percent): Simplify.
18691 (format_integer, format_floating): Set likely and unlikely counters.
18692 (get_string_length, format_character, format_string): Same.
18693 (format_plain, should_warn_p): New function.
18694 (maybe_warn): Call should_warn_p. Update diagnostic messages
18695 and handle those for all directives, including plain strings.
18696 (format_directive): Handle likely and unlikely counters.
18697 Remove unnecessary quoting from diagnostics. Add an informational
18699 (add_bytes): Remove.
18700 (pass_sprintf_length::compute_format_length): Simplify.
18701 (try_substitute_return_value): Handle likely and unlikely counters.
18703 2017-01-26 Carl Love <cel@us.ibm.com>
18705 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Remove
18706 bogus entries for the P8V_BUILTIN_VEC_VGBBD built-ins
18708 2017-01-26 Vladimir Makarov <vmakarov@redhat.com>
18711 * lra-assigns.c (setup_live_pseudos_and_spill_after_risky): Take
18712 endianess for subregs into account.
18713 * lra-constraints.c (lra_constraints): Do risky transformations
18714 always on the first iteration.
18715 * lra-lives.c (check_pseudos_live_through_calls): Add arg
18716 last_call_used_reg_set.
18717 (process_bb_lives): Define and use last_call_used_reg_set.
18718 * lra.c (lra): Always continue after lra_constraints on the first
18721 2017-01-26 Kirill Yukhin <kirill.yukhin@gmail.com>
18723 * gcc.target/i386/avx512bw-kshiftlq-2.c: Use unsigned long long
18725 * gcc.target/i386/avx512bw-kshiftrq-2.c: Ditto.
18727 2017-01-26 Jakub Jelinek <jakub@redhat.com>
18729 * config/i386/avx512fintrin.h (_ktest_mask16_u8,
18730 _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): Move to ...
18731 * config/i386/avx512dqintrin.h (_ktest_mask16_u8,
18732 _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): ... here.
18733 * config/i386/i386-builtin.def (__builtin_ia32_ktestchi,
18734 __builtin_ia32_ktestzhi, __builtin_ia32_kaddhi): Use
18735 OPTION_MASK_ISA_AVX512DQ instead of OPTION_MASK_ISA_AVX512F.
18736 * config/i386/sse.md (SWI1248_AVX512BWDQ2): New mode iterator.
18737 (kadd<mode>, ktest<mode>): Use it instead of SWI1248_AVX512BWDQ.
18739 2017-01-26 Marek Polacek <polacek@redhat.com>
18742 * fold-const.c (operand_equal_p) [COND_EXPR]: Use OP_SAME_WITH_NULL
18743 for the third operand.
18745 2017-01-26 Jakub Jelinek <jakub@redhat.com>
18747 PR middle-end/79236
18748 * omp-low.c (struct omp_context): Add simt_stmt field.
18749 (scan_omp_for): Return omp_context *.
18750 (scan_omp_simd): Set simt_stmt on the non-_simt_ SIMD
18751 context to the _simt_ SIMD stmt.
18752 (lower_omp_for): For combined SIMD with sibling _simt_
18753 SIMD, make sure to use the same decls in _looptemp_
18754 clauses as in the sibling.
18756 2017-01-26 David Sherwood <david.sherwood@arm.com>
18758 PR middle-end/79212
18759 * gimplify.c (omp_notice_variable): Add GOVD_SEEN flag to variables in
18762 2017-01-26 Jakub Jelinek <jakub@redhat.com>
18765 * reg-stack.c (emit_swap_insn): Instead of fld a; fld b; fxchg %st(1);
18766 emit fld b; fld a; if possible.
18768 * brig-builtins.def: Update copyright years.
18769 * config/arm/arm_acle_builtins.def: Update copyright years.
18771 2017-01-25 Michael Meissner <meissner@linux.vnet.ibm.com>
18774 * config/rs6000/vsx.md (vsx_extract_<mode>_store): Use wY
18775 constraint instead of o for the stxsd instruction.
18777 2017-01-25 Carl Love <cel@us.ibm.com>
18779 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Fix order
18780 of entries for ALTIVEC_BUILTIN_VEC_PACKS and P8V_BUILTIN_VEC_VGBBD.
18782 2017-01-25 Jonathan Wakely <jwakely@redhat.com>
18784 * doc/invoke.texi (C++ Dialect Options): Fix typo.
18786 2017-01-25 Richard Biener <rguenther@suse.de>
18788 PR tree-optimization/69264
18789 * target.def (vector_alignment_reachable): Improve documentation.
18790 * doc/tm.texi: Regenerate.
18791 * targhooks.c (default_builtin_vector_alignment_reachable): Simplify
18793 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Revert
18794 earlier changes with respect to TYPE_USER_ALIGN.
18795 (vector_alignment_reachable_p): Likewise. Improve dumping.
18797 2016-01-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18800 * config/arm/arm.md (xordi3): Force constant operand into a register
18803 2016-01-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18805 * doc/invoke.texi (-fstore-merging): Correct default optimization
18806 levels at which it is enabled.
18807 (-O): Move -fstore-merging from list to...
18810 2017-01-25 Richard Biener <rguenther@suse.de>
18813 * omp-expand.c: Include debug.h.
18814 (expand_omp_taskreg): Make sure to generate early debug before
18815 outlining anything from a function.
18816 (expand_omp_target): Likewise.
18817 (grid_expand_target_grid_body): Likewise.
18819 2017-01-25 Maxim Ostapenko <m.ostapenko@samsung.com>
18822 * asan.c (get_translation_unit_decl): New function.
18823 (asan_add_global): Extract modules file name from globals
18824 TRANSLATION_UNIT_DECL name.
18826 2017-01-24 Eric Botcazou <ebotcazou@adacore.com>
18829 * config/arm/arm.c (arm_function_ok_for_sibcall): Add back restriction
18830 for long calls with APCS frame and VFP.
18832 2017-01-24 David Malcolm <dmalcolm@redhat.com>
18834 * cfg.c (original_copy_tables_initialized_p): New function.
18835 * cfg.h (original_copy_tables_initialized_p): New decl.
18836 * cfgrtl.c (relink_block_chain): Guard the call to
18837 free_original_copy_tables with a call to
18838 original_copy_tables_initialized_p.
18839 * cgraph.h (symtab_node::native_rtl_p): New decl.
18840 * cgraphunit.c (symtab_node::native_rtl_p): New function.
18841 (symtab_node::needed_p): Don't assert for early assembly output
18842 for __RTL functions.
18843 (cgraph_node::finalize_function): Set "force_output" for __RTL
18845 (cgraph_node::analyze): Bail out early for __RTL functions.
18846 (analyze_functions): Update assertion to support __RTL functions.
18847 (cgraph_node::expand): Bail out early for __RTL functions.
18848 * final.c (rest_of_clean_state): Don't call delete_tree_ssa for
18850 * function.h (struct function): Update comment for field
18852 * gimple-expr.c: Include "tree-pass.h".
18853 (gimple_has_body_p): Return false for __RTL functions.
18854 * Makefile.in (OBJS): Add run-rtl-passes.o.
18855 * pass_manager.h (gcc::pass_manager::get_rest_of_compilation): New
18857 (gcc::pass_manager::get_clean_slate): New accessor.
18858 * passes.c: Include "insn-addr.h".
18859 (should_skip_pass_p): Add logging. Update logic for running
18860 "expand" to be compatible with both __GIMPLE and __RTL. Guard
18861 property-provider override so it is only done for gimple passes.
18863 (skip_pass): New function.
18864 (execute_one_pass): Call skip_pass when skipping passes.
18865 * read-md.c (md_reader::read_char): Support filtering
18866 the input to a subset of line numbers.
18867 (md_reader::md_reader): Initialize fields
18868 m_first_line and m_last_line.
18869 (md_reader::read_file_fragment): New function.
18870 * read-md.h (md_reader::read_file_fragment): New decl.
18871 (md_reader::m_first_line): New field.
18872 (md_reader::m_last_line): New field.
18873 * read-rtl-function.c (function_reader::create_function): Only
18874 create cfun if it doesn't already exist. Set PROP_rtl on cfun's
18875 curr_properties. Set DECL_INITIAL to a dummy block.
18876 (read_rtl_function_body_from_file_range): New function.
18877 * read-rtl-function.h (read_rtl_function_body_from_file_range):
18879 * run-rtl-passes.c: New file.
18880 * run-rtl-passes.h: New file.
18882 2017-01-24 Jeff Law <law@redhat.com>
18884 * config/microblaze/microblaze.h (ASM_FORMAT_PRIVATE_NAME): Increase
18887 2017-01-24 Bin Cheng <bin.cheng@arm.com>
18889 PR tree-optimization/79159
18890 * tree-ssa-loop-niter.c (get_cst_init_from_scev): New function.
18891 (record_nonwrapping_iv): Improve boundary using above function if no
18892 value range information.
18894 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
18895 Martin Jambor <mjambor@suse.cz>
18897 * brig-builtins.def: New file.
18898 * builtins.def (DEF_HSAIL_BUILTIN): New macro.
18899 (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
18900 (DEF_HSAIL_SAT_BUILTIN): Likewise.
18901 (DEF_HSAIL_INTR_BUILTIN): Likewise.
18902 (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
18903 * builtin-types.def (BT_INT8): New.
18904 (BT_INT16): Likewise.
18905 (BT_UINT8): Likewise.
18906 (BT_UINT16): Likewise.
18907 (BT_FN_ULONG): Likewise.
18908 (BT_FN_UINT_INT): Likewise.
18909 (BT_FN_UINT_ULONG): Likewise.
18910 (BT_FN_UINT_LONG): Likewise.
18911 (BT_FN_UINT_PTR): Likewise.
18912 (BT_FN_ULONG_PTR): Likewise.
18913 (BT_FN_INT8_FLOAT): Likewise.
18914 (BT_FN_INT16_FLOAT): Likewise.
18915 (BT_FN_UINT32_FLOAT): Likewise.
18916 (BT_FN_UINT16_FLOAT): Likewise.
18917 (BT_FN_UINT8_FLOAT): Likewise.
18918 (BT_FN_UINT64_FLOAT): Likewise.
18919 (BT_FN_UINT16_UINT32): Likewise.
18920 (BT_FN_UINT32_UINT16): Likewise.
18921 (BT_FN_UINT16_UINT16_UINT16): Likewise.
18922 (BT_FN_INT_PTR_INT): Likewise.
18923 (BT_FN_UINT_PTR_UINT): Likewise.
18924 (BT_FN_LONG_PTR_LONG): Likewise.
18925 (BT_FN_ULONG_PTR_ULONG): Likewise.
18926 (BT_FN_VOID_UINT64_UINT64): Likewise.
18927 (BT_FN_UINT8_UINT8_UINT8): Likewise.
18928 (BT_FN_INT8_INT8_INT8): Likewise.
18929 (BT_FN_INT16_INT16_INT16): Likewise.
18930 (BT_FN_INT_INT_INT): Likewise.
18931 (BT_FN_UINT_FLOAT_UINT): Likewise.
18932 (BT_FN_FLOAT_UINT_UINT): Likewise.
18933 (BT_FN_ULONG_UINT_UINT): Likewise.
18934 (BT_FN_ULONG_UINT_PTR): Likewise.
18935 (BT_FN_ULONG_ULONG_ULONG): Likewise.
18936 (BT_FN_UINT_UINT_UINT): Likewise.
18937 (BT_FN_VOID_UINT_PTR): Likewise.
18938 (BT_FN_UINT_UINT_PTR: Likewise.
18939 (BT_FN_UINT32_UINT64_PTR): Likewise.
18940 (BT_FN_INT_INT_UINT_UINT): Likewise.
18941 (BT_FN_UINT_UINT_UINT_UINT): Likewise.
18942 (BT_FN_UINT_UINT_UINT_PTR): Likewise.
18943 (BT_FN_UINT_ULONG_ULONG_UINT): Likewise.
18944 (BT_FN_ULONG_ULONG_ULONG_ULONG): Likewise.
18945 (BT_FN_LONG_LONG_UINT_UINT): Likewise.
18946 (BT_FN_ULONG_ULONG_UINT_UINT): Likewise.
18947 (BT_FN_VOID_UINT32_UINT64_PTR): Likewise.
18948 (BT_FN_VOID_UINT32_UINT32_PTR): Likewise.
18949 (BT_FN_UINT_UINT_UINT_UINT_UINT): Likewise.
18950 (BT_FN_UINT_FLOAT_FLOAT_FLOAT_FLOAT): Likewise.
18951 (BT_FN_ULONG_ULONG_ULONG_UINT_UINT): Likewise.
18952 * doc/frontends.texi: List BRIG FE.
18953 * doc/install.texi (Testing): Add BRIG tesring requirements.
18954 * doc/invoke.texi (Overall Options): Mention BRIG.
18955 * doc/standards.texi (Standards): Doucment BRIG HSA version.
18957 2017-01-24 Richard Biener <rguenther@suse.de>
18959 PR translation/79208
18960 * ipa-devirt.c (odr_types_equivalent_p): Fix typo in diagnostic.
18962 2017-01-24 Martin Jambor <mjambor@suse.cz>
18965 * ipa-prop.c (ipa_free_all_node_params): Call summary destructor.
18966 * ipa-prop.c (ipa_node_params_t::insert): Initialize fields known_csts
18967 and known_contexts.
18969 2017-01-24 Aldy Hernandez <aldyh@redhat.com>
18971 PR middle-end/79123
18972 * gimple-ssa-warn-alloca.c (alloca_call_type): Make sure
18973 casts from signed to unsigned really don't have a range.
18975 2017-01-24 Markus Trippelsdorf <markus@trippelsdorf.de>
18977 * gimple-ssa-sprintf.c (format_floating): Change MPFR_RNDx to
18978 GMP_RNDx for compatiblity.
18980 2017-01-24 Martin Liska <mliska@suse.cz>
18983 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Insert assert
18984 that would prevent us to call alloca with -1 as argument.
18986 2017-01-24 Jakub Jelinek <jakub@redhat.com>
18988 * dwarf2out.c (output_compilation_unit_header, output_file_names):
18989 Avoid -Wformat-security warning.
18991 2017-01-23 Andrew Pinski <apinski@cavium.com>
18993 * config/aarch64/aarch64.c (thunderx2t99_addrcost_table): Improve
18996 2017-01-23 Martin Sebor <msebor@redhat.com>
18998 PR middle-end/78703
18999 * gimple-ssa-sprintf.c (warn_level): New global.
19000 (format_integer): Use it here and throughout the rest of the file.
19001 Use the same switch to compute sign as base.
19002 (maybe_warn): New function.
19003 (format_directive): Factor out warnings into maybe_warn.
19004 Add debugging output. Use warn_level.
19005 (add_bytes): Use warn_level.
19006 (pass_sprintf_length::compute_format_length): Add debugging output.
19007 (try_substitute_return_value): Same.
19008 (pass_sprintf_length::handle_gimple_call): Set and use warn_level.
19010 PR middle-end/78703
19011 * gimple-ssa-sprintf.c (struct format_result): Remove constant member.
19012 (struct fmtresult, format_integer, format_floating): Adjust.
19013 (fmtresult::fmtresult): Set max correctly in two argument ctor.
19014 (get_string_length, format_string,format_directive): Same.
19015 (pass_sprintf_length::compute_format_length): Same.
19016 (try_substitute_return_value): Simplify slightly.
19018 PR middle-end/78703
19019 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust formatting.
19020 (fmtresult::operator+=): Outlined.
19021 (struct fmtresult): Add ctors.
19022 (struct conversion_spec): Rename...
19023 (struct directive): ...to this. Add and remove data members.
19024 (directive::set_width, directive::set_precision): New functions.
19025 (format_percent): Use fmtresult ctor.
19026 (get_width_and_precision): Remove.
19027 (format_integer): Make naming changes. Avoid computing width and
19029 (format_floating): Same. Adjust indentation.
19030 (format_character, format_none): New functions.
19031 (format_string): Moved character handling to format_character.
19032 (format_directive): Remove arguments, change return type.
19033 (parse_directive): New function.
19034 (pass_sprintf_length::compute_format_length): Move directive
19035 parsing to parse_directive.
19037 2017-01-23 Jakub Jelinek <jakub@redhat.com>
19039 * tree.h (assign_assembler_name_if_neeeded): Rename to ...
19040 (assign_assembler_name_if_needed): ... this.
19041 * tree.c (assign_assembler_name_if_neeeded): Rename to ...
19042 (assign_assembler_name_if_needed): ... this.
19043 (free_lang_data_in_cgraph): Adjust callers.
19044 * cgraphunit.c (cgraph_node::analyze): Likewise.
19045 * omp-expand.c (expand_omp_taskreg, expand_omp_target):
19048 2017-01-23 Richard Biener <rguenther@suse.de>
19050 PR tree-optimization/79088
19051 PR tree-optimization/79188
19052 * tree-ssa-threadupdate.c (mark_threaded_blocks): Move code
19053 resetting loop bounds after last path deletion. Reset loop
19054 bounds of the target loop, make code match the comments.
19055 * tree-ssa-threadbackwards.c (pass_early_thread_jumps::execute):
19056 Make sure loops need no fixups.
19058 2017-01-23 Kelvin Nilsen <kelvin@gcc.gnu.org>
19060 * config/rs6000/rs6000-builtin.def (VSIEDPF): Add scalar insert
19061 exponent support with double type for first argument.
19062 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Changed
19063 type returned by __builtin_vec_extract_sig,
19064 __builtin_vec_extract_sig_sp, and __builtin_vec_extract_sig_dp
19065 functions from "vector int" to "vector unsigned int" or from
19066 "vector long long int" to "vector unsigned long long int".
19067 Changed type returned by __builtin_vec_extract_exp,
19068 __builtin_vec_extract_exp_sp, and __builtin_vec_extract_exp_dp
19069 functions from "vector int" to "vector unsigned int" or from
19070 "vector long long int" to "vector unsigned long long int".
19071 Changed return type of __builtin_vec_test_data_class,
19072 __builtin_vec_test_data_class_sp, and
19073 __builtin_vec_test_data_class_dp from "vector int" to
19074 "vector bool int" or from "vector long long int" to "vector bool
19075 long long int" and changed second argument type from "unsigned
19076 int" to "int". Added new overloaded function forms "vector float
19077 __builtin_vec_insert_exp (vector float, vector unsigned int)" and
19078 "vector float __builtin_vec_insert_exp_sp (vector float, vector
19079 unsigned int)" and "vector double __builtin_vec_insert_exp (vector
19080 double, vector unsigned long long int)" and "vector double
19081 __builtin_vec_insert_exp_dp (vector double, vector unsigned long
19082 long int)". Changed return type of
19083 __builtin_scalar_test_data_class and
19084 __builtin_scalar_test_data_class_sp and
19085 __builtin_scalar_test_data_class_dp from "unsigned int" to "bool
19086 int" and changed second argument from "unsigned int" to "int".
19087 Changed type returned by __builtin_scalar_test_neg,
19088 __builtin_scalar_test_neg_sp, and __builtin_scalar_test_neg_dp
19089 from "int" to "bool int". Added new overloaded function form
19090 "double __builtin_scalar_insert_exp (double, unsigned long long int)".
19091 * config/rs6000/vsx.md (xsiexpdpf): New insn for scalar insert
19092 exponent double-precision with floating point first argument.
19093 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Adjust
19094 documentation of scalar_test_data_class, scalar_test_neg,
19095 scalar_extract_sig, scalar_extract_exp, scalar_insert_exp,
19096 vector_extract_exp, vec_extract_sig, vec_insert_exp, and
19097 vec_test_data_class built-in functions to reflect refinements in
19098 their type signatures.
19100 2017-01-23 Andreas Tobler <andreast@gcc.gnu.org>
19102 * config/aarch64/aarch64.c (aarch64_elf_asm_constructor): Increase
19104 (aarch64_elf_asm_destructor): Likewise.
19106 2017-01-23 Bernd Schmidt <bschmidt@redhat.com>
19108 PR rtl-optimization/78634
19109 * config/i386/i386.c (ix86_max_noce_ifcvt_seq_cost): New function.
19110 (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Define.
19111 * ifcvt.c (noce_try_cmove): Add missing cost check.
19113 PR rtl-optimization/71724
19114 * combine.c (if_then_else_cond): Look for situations where it is
19115 beneficial to undo the work of one of the recursive calls.
19117 2017-01-23 Bin Cheng <bin.cheng@arm.com>
19119 PR tree-optimization/70754
19120 * tree-predcom.c (stmt_combining_refs): New parameter INSERT_BEFORE.
19121 (reassociate_to_the_same_stmt): New parameter INSERT_BEFORE. Insert
19122 combined stmt before it if not NULL.
19123 (combine_chains): Process refs reversely and compute dominance point
19126 2017-01-23 Martin Liska <mliska@suse.cz>
19128 PR tree-optimization/79196
19129 * tree-ssa-strlen.c (fold_strstr_to_memcmp): Rename to ...
19130 (fold_strstr_to_strncmp): ... this. Fold the pattern to strncmp
19132 (strlen_optimize_stmt): Call the renamed function.
19134 2017-01-23 Michael Matz <matz@suse.de>
19136 PR tree-optimization/78384
19137 * tree-ssa-loop-split.c (patch_loop_exit): Use correct edge.
19139 2017-01-23 Richard Biener <rguenther@suse.de>
19141 PR tree-optimization/79186
19142 * tree-vrp.c (register_new_assert_for): Make sure we've seen
19143 both incoming edges before moving an assert.
19145 2017-01-23 Martin Jambor <mjambor@suse.cz>
19147 * ipa-prop.c (load_from_param_1): Removed.
19148 (load_from_unmodified_param): Bits from load_from_param_1 put back
19150 (load_from_param): Removed.
19151 (compute_complex_assign_jump_func): Removed stmt2 and just replaced it
19152 with stmt. Reverted back to use of load_from_unmodified_param.
19154 2017-01-23 Martin Jambor <mjambor@suse.cz>
19157 * ipa-prop.h (ipa_param_descriptor): Anotate with with GTY(()).
19158 (ipa_node_params): Annotate with GTY((for_user)). Make descriptors
19159 field a pointer to garbage collected vector, mark lattices and
19160 ipcp_orig_node with GTY((skip)).
19161 (ipa_get_param_count): Adjust to descriptors being a pointer.
19162 (ipa_get_param): Likewise.
19163 (ipa_get_type): Likewise.
19164 (ipa_get_param_move_cost): Likewise.
19165 (ipa_set_param_used): Likewise.
19166 (ipa_get_controlled_uses): Likewise.
19167 (ipa_set_controlled_uses): Likewise.
19168 (ipa_is_param_used): Likewise.
19169 (ipa_node_params_t): Move into garbage collector. New methods insert
19171 (ipa_node_params_sum): Annotate wth GTY(()).
19172 (ipa_check_create_node_params): Adjust to ipa_node_params_sum being
19174 (ipa_load_from_parm_agg): Adjust declaration.
19175 * ipa-icf.c (param_used_p): Adjust to descriptors being a pointer.
19176 * ipa-profile.c (ipa_profile): Likewise.
19177 * ipa-prop.c (ipa_get_param_decl_index_1): Likewise.
19178 (ipa_populate_param_decls): Make descriptors parameter garbage
19180 (ipa_dump_param): Adjust to descriptors being a pointer.
19181 (ipa_alloc_node_params): Likewise.
19182 (ipa_initialize_node_params): Likewise.
19183 (load_from_param_1): Make descriptors parameter garbage collected.
19184 (load_from_unmodified_param): Likewise.
19185 (load_from_param): Likewise.
19186 (ipa_load_from_parm_agg): Likewise.
19187 (ipa_node_params::~ipa_node_params): Removed.
19188 (ipa_free_all_node_params): Remove call to delete operator.
19189 (ipa_node_params_t::insert): New.
19190 (ipa_node_params_t::remove): Likewise.
19191 (ipa_node_params_t::duplicate): Adjust to descriptors being a pointer,
19192 copy known_csts and known_contexts vectors.
19193 (ipa_read_node_info): Adjust to descriptors being a pointer.
19194 (ipcp_modif_dom_walker): Make m_descriptors field garbage
19196 (ipcp_transform_function): Make descriptors variable garbage
19199 2017-01-23 Andrew Senkevich <andrew.senkevich@intel.com>
19201 * config/i386/avx512bwintrin.h: Add k-mask test, kortest intrinsics.
19202 * config/i386/avx512dqintrin.h: Ditto.
19203 * config/i386/avx512fintrin.h: Ditto.
19204 * config/i386/i386.c: Handle new builtins.
19205 * config/i386/i386-builtin.def: Add new builtins.
19206 * config/i386/sse.md (ktest<mode>, kortest<mode>): New.
19207 (UNSPEC_KORTEST, UNSPEC_KTEST): New.
19209 2017-01-23 Jakub Jelinek <jakub@redhat.com>
19210 Martin Liska <mliska@suse.cz>
19212 * asan.h: Define ASAN_USE_AFTER_SCOPE_ATTRIBUTE.
19213 * asan.c (asan_expand_poison_ifn): Support stores and use
19214 appropriate ASAN report function.
19215 * internal-fn.c (expand_ASAN_POISON_USE): New function.
19216 * internal-fn.def (ASAN_POISON_USE): Declare.
19217 * tree-into-ssa.c (maybe_add_asan_poison_write): New function.
19218 (maybe_register_def): Create ASAN_POISON_USE when sanitizing.
19219 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove
19220 ASAN_POISON calls w/o LHS.
19221 * tree-ssa.c (execute_update_addresses_taken): Create clobber
19222 for ASAN_MARK (UNPOISON, &x, ...) in order to prevent usage of a LHS
19223 from ASAN_MARK (POISON, &x, ...) coming to a PHI node.
19224 * gimplify.c (asan_poison_variables): Add attribute
19225 use_after_scope_memory to variables that really needs to live
19227 * tree-ssa.c (is_asan_mark_p): Do not rewrite into SSA when
19228 having the attribute.
19230 2017-01-23 Martin Liska <mliska@suse.cz>
19232 * asan.c (create_asan_shadow_var): New function.
19233 (asan_expand_poison_ifn): Likewise.
19234 * asan.h (asan_expand_poison_ifn): New declaration.
19235 * internal-fn.c (expand_ASAN_POISON): Likewise.
19236 * internal-fn.def (ASAN_POISON): New builtin.
19237 * sanopt.c (pass_sanopt::execute): Expand
19238 asan_expand_poison_ifn.
19239 * tree-inline.c (copy_decl_for_dup_finish): Make function
19241 * tree-inline.h (copy_decl_for_dup_finish): Likewise.
19242 * tree-ssa.c (is_asan_mark_p): New function.
19243 (execute_update_addresses_taken): Rewrite local variables
19244 (identified just by use-after-scope as addressable) into SSA.
19246 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
19248 * doc/install.texi (Specific): opensource.apple.com uses https
19249 now. Remove trailing slash.
19251 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
19253 * README.Portability: Remove note on an Irix compatibility issue.
19255 2017-01-22 Dimitry Andric <dim@FreeBSD.org>
19257 * gcov.c (INCLUDE_ALGORITHM): Define.
19258 (INCLUDE_VECTOR): Define.
19259 No longer include <vector> and <algorithm> directly.
19261 2017-01-21 Gerald Pfeifer <gerald@pfeifer.com>
19263 * doc/extend.texi (Thread-Local): Change www.akkadia.org reference
19265 * doc/invoke.texi (Code Gen Options): Ditto.
19267 2017-01-21 Jan Hubicka <hubicka@ucw.cz>
19270 * cfg.c (update_bb_profile_for_threading): Fix updating of probablity.
19272 2017-01-21 Bernd Schmidt <bschmidt@redhat.com>
19274 rtl-optimization/79125
19275 * cprop.c (local_cprop_pass): Handle cases where we make an
19276 unconditional trap.
19278 2017-01-20 Segher Boessenkool <segher@kernel.crashing.org>
19282 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust address to
19283 read from, for big endian.
19285 2017-01-20 Jiong Wang <jiong.wang@arm.com>
19287 * config/aarch64/aarch64-builtins.c (aarch64_init_builtins): Register
19288 register pauth builtins for LP64 only.
19290 2017-01-20 Marek Polacek <polacek@redhat.com>
19293 * gimplify.c (should_warn_for_implicit_fallthrough): Handle consecutive
19296 2017-01-20 Alexander Monakov <amonakov@ispras.ru>
19298 * omp-expand.c (expand_omp_simd): Clear PROP_gimple_lomp_dev regardless
19300 * omp-offload.c (pass_omp_device_lower::gate): Use PROP_gimple_lomp_dev.
19301 * passes.c (dump_properties): Handle PROP_gimple_lomp_dev.
19302 * tree-inline.c (expand_call_inline): Propagate PROP_gimple_lomp_dev.
19304 2017-01-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19307 * config/arm/arm.c (neon_valid_immediate): Reject vector constants
19308 in big-endian mode when they are not a single duplicated value.
19310 2017-01-20 Richard Biener <rguenther@suse.de>
19312 * BASE-VER: Bump to 7.0.1.
19314 2017-01-20 Alexander Monakov <amonakov@ispras.ru>
19316 * omp-low.c (omplow_simd_context): New struct. Use it...
19317 (lower_rec_simd_input_clauses): ...here and...
19318 (lower_rec_input_clauses): ...here to hold common data. Adjust all
19319 references to idx, lane, max_vf, is_simt.
19321 2017-01-20 Graham Markall <graham.markall@embecosm.com>
19323 * config/arc/arc.h (LINK_SPEC): Use arclinux_nps emulation when
19326 2017-01-20 Martin Jambor <mjambor@suse.cz>
19328 * hsa.h: Renaed to hsa-common.h. Adjusted a comment.
19329 * hsa.c: Renaed to hsa-common.c. Change include of gt-hsa.h to
19331 * Makefile.in (OBJS): Rename hsa.o to hsa-common.o.
19332 (GTFILES): Rename hsa.c to hsa-common.c.
19333 * hsa-brig.c: Change include of hsa.h to hsa-common.h.
19334 * hsa-dump.c: Likewise.
19335 * hsa-gen.c: Likewise.
19336 * hsa-regalloc.c: Likewise.
19337 * ipa-hsa.c: Likewise.
19338 * omp-expand.c: Likewise.
19339 * omp-low.c: Likewise.
19340 * toplev.c: Likewise.
19342 2017-01-20 Marek Polacek <polacek@redhat.com>
19345 * doc/invoke.texi: Document -Wduplicated-branches.
19346 * fold-const.c (operand_equal_p): Handle MODIFY_EXPR, INIT_EXPR,
19347 COMPOUND_EXPR, PREDECREMENT_EXPR, PREINCREMENT_EXPR,
19348 POSTDECREMENT_EXPR, POSTINCREMENT_EXPR, CLEANUP_POINT_EXPR, EXPR_STMT,
19349 STATEMENT_LIST, and RETURN_EXPR. For non-pure non-const functions
19350 return 0 only when not OEP_LEXICOGRAPHIC.
19351 (fold_build_cleanup_point_expr): Use the expression
19352 location when building CLEANUP_POINT_EXPR.
19353 * tree-core.h (enum operand_equal_flag): Add OEP_LEXICOGRAPHIC.
19354 * tree.c (add_expr): Handle error_mark_node.
19356 2017-01-20 Martin Liska <mliska@suse.cz>
19359 * tree-profile.c (init_ic_make_global_vars): Do not call
19361 (gimple_init_gcov_profiler): Likewise.
19363 2017-01-20 Martin Liska <mliska@suse.cz>
19366 * cgraph.h (maybe_create_reference): Remove argument and
19368 * cgraphclones.c (cgraph_node::create_virtual_clone): Remove one
19370 * ipa-cp.c (create_specialized_node): Likewise.
19371 * symtab.c (symtab_node::maybe_create_reference): Handle
19372 VAR_DECLs and ADDR_EXPRs and select ipa_ref_use type.
19374 2017-01-20 Martin Liska <mliska@suse.cz>
19376 * read-rtl-function.c (function_reader::create_function): Use
19377 build_decl instread of build_decl_stat.
19379 2017-01-20 Andrew Senkevich <andrew.senkevich@intel.com>
19381 * config/i386/avx512bwintrin.h: Add k-mask registers shift intrinsics.
19382 * config/i386/avx512dqintrin.h: Ditto.
19383 * config/i386/avx512fintrin.h: Ditto.
19384 * config/i386/i386-builtin-types.def: Add new types.
19385 * config/i386/i386.c: Handle new types.
19386 * config/i386/i386-builtin.def (__builtin_ia32_kshiftliqi)
19387 (__builtin_ia32_kshiftlihi, __builtin_ia32_kshiftlisi)
19388 (__builtin_ia32_kshiftlidi, __builtin_ia32_kshiftriqi)
19389 (__builtin_ia32_kshiftrihi, __builtin_ia32_kshiftrisi)
19390 (__builtin_ia32_kshiftridi): New.
19391 * config/i386/sse.md (k<code><mode>): Rename *k<code><mode>.
19393 2017-01-19 Segher Boessenkool <segher@kernel.crashing.org>
19397 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Unconditionally
19398 define to rs6000_init_stack_protect_guard.
19399 (rs6000_init_stack_protect_guard): New function.
19401 2017-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
19402 Yunqiang Su <yunqiang.su@imgtec.com>
19404 * config.gcc (supported_defaults): Add madd4.
19405 (with_madd4): Add validation.
19406 (all_defaults): Add madd4.
19407 * config/mips/mips.opt (mmadd4): New option.
19408 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
19410 (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
19412 (ISA_HAS_UNFUSED_MADD4): Gate with mips_madd4.
19413 (ISA_HAS_FUSED_MADD4): Likewise.
19414 * doc/invoke.texi (-mmadd4): Document the new option.
19415 * doc/install.texi (--with-madd4): Document the new option.
19417 2017-01-19 Jiong Wang <jiong.wang@arm.com>
19419 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): New
19420 entries for AARCH64_PAUTH_BUILTIN_XPACLRI,
19421 AARCH64_PAUTH_BUILTIN_PACIA1716, AARCH64_PAUTH_BUILTIN_AUTIA1716.
19422 (aarch64_init_pauth_hint_builtins): New.
19423 (aarch64_init_builtins): Call aarch64_init_pauth_hint_builtins.
19424 (aarch64_expand_builtin): Expand new builtins.
19426 2017-01-19 Jiong Wang <jiong.wang@arm.com>
19428 * reg-notes.def (CFA_TOGGLE_RA_MANGLE): New reg-note.
19429 * combine-stack-adj.c (no_unhandled_cfa): Handle
19430 REG_CFA_TOGGLE_RA_MANGLE.
19431 * dwarf2cfi.c (dwarf2out_frame_debug): Handle REG_CFA_TOGGLE_RA_MANGLE.
19432 * config/aarch64/aarch64.c (aarch64_expand_prologue): Generates DWARF
19433 info for return address signing.
19434 (aarch64_expand_epilogue): Likewise.
19436 2017-01-19 Jiong Wang <jiong.wang@arm.com>
19438 * config/aarch64/aarch64-opts.h (aarch64_function_type): New enum.
19439 * config/aarch64/aarch64-protos.h
19440 (aarch64_return_address_signing_enabled): New declaration.
19441 * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
19443 (aarch64_expand_prologue): Sign return address before it's pushed onto
19445 (aarch64_expand_epilogue): Authenticate return address fetched from
19447 (aarch64_override_options): Sanity check for ILP32 and ISA level.
19448 (aarch64_attributes): New function attributes for "sign-return-address".
19449 * config/aarch64/aarch64.md (UNSPEC_AUTI1716, UNSPEC_AUTISP,
19450 UNSPEC_PACI1716, UNSPEC_PACISP, UNSPEC_XPACLRI): New unspecs.
19451 ("*do_return"): Generate combined instructions according to key index.
19452 ("<pauth_mnem_prefix>sp", "<pauth_mnem_prefix1716", "xpaclri"): New.
19453 * config/aarch64/iterators.md (PAUTH_LR_SP, PAUTH_17_16): New integer
19455 (pauth_mnem_prefix, pauth_hint_num_a): New integer attributes.
19456 * config/aarch64/aarch64.opt (msign-return-address=): New.
19457 * doc/extend.texi (AArch64 Function Attributes): Documents
19458 "sign-return-address=".
19459 * doc/invoke.texi (AArch64 Options): Documents "-msign-return-address=".
19461 2017-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
19463 * doc/invoke.texi: Add missing -mlxc1-sxc1 options to
19464 overall option summary.
19466 2017-01-19 Jiong Wang <jiong.wang@arm.com>
19468 * config/aarch64/aarch64-arches.def: New entry for "armv8.3-a".
19469 * config/aarch64/aarch64.h (AARCH64_FL_V8_3, AARCH64_FL_FOR_ARCH8_3,
19470 AARCH64_ISA_V8_3, TARGET_ARMV8_3): New.
19471 * doc/invoke.texi (AArch64 Options): Document "armv8.3-a".
19473 2017-01-19 Michael Meissner <meissner@linux.vnet.ibm.com>
19475 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Enable
19476 -mpower9-minmax by default for -mcpu=power9.
19477 (ISA_3_MASKS_IEEE): Require -mvsx-small-integer to enable IEEE
19478 128-bit floating point.
19480 2017-01-20 Alan Modra <amodra@gmail.com>
19482 * config/rs6000/rs6000.md (cmpstrnsi, cmpstrsi): Fail if
19483 optimizing for size.
19485 2017-01-20 Alan Modra <amodra@gmail.com>
19488 * config/rs6000/rs6000.c (expand_strn_compare): Get the asm name
19489 for strcmp and strncmp from corresponding builtin decl.
19491 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
19493 * config.gcc (x86_64-*-rtems*): Use i386/rtemself.h
19494 instead of i386/rtems-64.h.
19495 * config/i386/rtems-64.h: Remove.
19497 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
19501 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
19503 * config/i386/rtemself.h (LONG_DOUBLE_TYPE_SIZE): New define.
19505 2017-01-19 Tamar Christina <tamar.christina@arm.com>
19507 * config/aarch64/aarch64.c (aarch64_simd_gen_const_vector_dup):
19508 Change int to HOST_WIDE_INT.
19509 * config/aarch64/aarch64-protos.h
19510 (aarch64_simd_gen_const_vector_dup): Likewise.
19511 * config/aarch64/aarch64-simd.md: Add copysign<mode>3.
19513 2017-01-19 David Malcolm <dmalcolm@redhat.com>
19515 * langhooks-def.h (lhd_type_for_size): New decl.
19516 (LANG_HOOKS_TYPE_FOR_SIZE): Define as lhd_type_for_size.
19517 * langhooks.c (lhd_type_for_size): New function, taken from
19520 2017-01-19 Pat Haugen <pthaugen@us.ibm.com>
19522 * config/rs6000/power9.md (power9-alu): Remove 'cmp' type and add
19523 define_bypass for CR latency.
19524 (power9-cracked-alu): Update bypass latency and remove power9-branch.
19525 (power9-alu2): Add define_bypass for CR latency.
19527 (power9-mul): Update insn latency.
19528 (power9-mul-compare): Update insn latency, bypass latency and remove
19531 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19533 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
19535 * config/aarch64/aarch64.md
19536 (aarch64_reload_movcp<GPF_TF:mode><P:mode>): Delete reference to
19537 aarch64_nopcrelative_literal_loads.
19538 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
19540 2017-01-19 Chenghua Xu <paul.hua.gm@gmail.com>
19542 * config/mips/mips.h (ISA_HAS_FUSED_MADD4): Enable for
19543 TARGET_LOONGSON_3A.
19544 (ISA_HAS_UNFUSED_MADD4): Exclude TARGET_LOONGSON_3A.
19546 2017-01-19 Doug Gilmore <doug.gilmore@imgtec.com>
19549 * config.gcc (supported_defaults): Add lxc1-sxc1.
19550 (with_lxc1_sxc1): Add validation.
19551 (all_defaults): Add lxc1-sxc1.
19552 * config/mips/mips.opt (mlxc1-sxc1): New option.
19553 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
19555 (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
19556 __mips_no_lxc1_sxc1.
19557 (ISA_HAS_LXC1_SXC1): Gate with mips_lxc1_sxc1.
19558 * doc/invoke.texi (-mlxc1-sxc1): Document the new option.
19559 * doc/install.texi (--with-lxc1-sxc1): Document the new option.
19561 2017-01-19 Richard Biener <rguenther@suse.de>
19563 PR tree-optimization/72488
19564 * tree-ssa-sccvn.c (run_scc_vn): When we abort the VN make
19565 sure to restore SSA info.
19566 * tree-ssa.c (verify_ssa): Verify SSA info is not shared.
19568 2017-01-19 Richard Earnshaw <rearnsha@arm.com>
19570 PR rtl-optimization/79121
19571 * expr.c (expand_expr_real_2, case LSHIFT_EXPR): Look at the signedness
19572 of the inner type when shifting an extended value.
19574 2017-01-17 Jan Hubicka <hubicka@ucw.cz>
19577 * symtab.c (symtab_node::equal_address_to): Fix comparing of
19578 interposable aliases.
19580 2017-01-18 Peter Bergner <bergner@vnet.ibm.com>
19583 * config/rs6000/spe.md (mov_si<mode>_e500_subreg0): Fix constraints.
19584 Use the evmergelohi instruction.
19585 (mov_si<mode>_e500_subreg4_2_le): Likewise.
19586 (mov_sitf_e500_subreg8_2_be): Likewise.
19587 (mov_sitf_e500_subreg12_2_le): Likewise.
19588 (mov_si<mode>_e500_subreg0_2_le): Fix constraints.
19589 (mov_si<mode>_e500_subreg4_2_be): Likewise.
19590 (mov_sitf_e500_subreg8_2_le): Likewise.
19591 (mov_sitf_e500_subreg12_2_be): Likewise.
19593 2017-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19595 * config/rs6000/altivec.md (altivec_vbpermq): Change "type"
19596 attribute from vecsimple to vecperm.
19597 (altivec_vbpermq2): Likewise.
19599 2017-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19602 * config/rs6000/altivec.h: Fix typo of vec_cntlz to vec_cnttz.
19604 2017-01-18 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
19605 * config/rs6000/rs6000-protos.h (expand_strn_compare): Add arg.
19606 * config/rs6000/rs6000.c (expand_strn_compare): Add ability to expand
19607 strcmp. Fix bug where comparison didn't stop with zero byte. Fix
19608 case where N arg is SIZE_MAX.
19609 * config/rs6000/rs6000.md (cmpstrnsi): Args to expand_strn_compare.
19610 (cmpstrsi): Add pattern.
19612 2017-01-18 Michael Meissner <meissner@linux.vnet.ibm.com>
19614 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19615 __builtin_vec_revb builtins.
19616 * config/rs6000/rs6000-builtins.def (P9V_BUILTIN_XXBRQ_V16QI): Add
19617 built-in functions to support generation of the ISA 3.0 XXBR<x>
19618 vector byte reverse instructions.
19619 (P9V_BUILTIN_XXBRQ_V1TI): Likewise.
19620 (P9V_BUILTIN_XXBRD_V2DI): Likewise.
19621 (P9V_BUILTIN_XXBRD_V2DF): Likewise.
19622 (P9V_BUILTIN_XXBGW_V4SI): Likewise.
19623 (P9V_BUILTIN_XXBGW_V4SF): Likewise.
19624 (P9V_BUILTIN_XXBGH_V8HI): Likewise.
19625 (P9V_BUILTIN_VEC_REVB): Likewise.
19626 * config/rs6000/vsx.md (p9_xxbrq_v1ti): New insns/expanders to
19627 generate the ISA 3.0 XXBR<x> vector byte reverse instructions.
19628 (p9_xxbrq_v16qi): Likewise.
19629 (p9_xxbrd_<mode>, VSX_D iterator): Likewise.
19630 (p9_xxbrw_<mode>, VSX_W iterator): Likewise.
19631 (p9_xxbrh_v8hi): Likewise.
19632 * config/rs6000/altivec.h (vec_revb): Define if ISA 3.0.
19633 * doc/extend.texi (RS/6000 Altivec Built-ins): Document the
19634 vec_revb built-in functions.
19636 2017-01-18 Uros Bizjak <ubizjak@gmail.com>
19638 PR rtl-optimization/78952
19639 * config/i386/i386.md (any_extract): New code iterator.
19640 (*insvqi_2): Use any_extract for source operand.
19641 (*insvqi_3): Use any_shiftrt for source operand.
19643 2017-01-18 Wilco Dijkstra <wdijkstr@arm.com>
19645 * config/aarch64/aarch64.c (aarch64_sched_adjust_priority)
19647 (TARGET_SCHED_ADJUST_PRIORITY): Define target hook.
19649 2017-01-18 Matthias Klose <doko@ubuntu.com>
19651 * doc/install.texi: Allow default for --with-target-bdw-gc-include.
19653 2016-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19655 * config/rs6000/altivec.h (vec_bperm): Change #define.
19656 * config/rs6000/altivec.md (UNSPEC_VBPERMD): New enum constant.
19657 (altivec_vbpermq2): New define_insn.
19658 (altivec_vbpermd): Likewise.
19659 * config/rs6000/rs6000-builtin.def (VBPERMQ2): New monomorphic
19660 function interface.
19661 (VBPERMD): Likewise.
19662 (VBPERM): New polymorphic function interface.
19663 * config/rs6000/r6000-c.c (altivec_overloaded_builtins_table):
19664 Add entries for P9V_BUILTIN_VEC_VBPERM.
19665 * doc/extend.texi: Add interfaces for vec_bperm.
19667 2017-01-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19669 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Downcase
19670 first letter of error messages.
19671 (s390_resolve_overloaded_builtin): Likewise.
19672 * config/s390/s390.c (s390_expand_builtin): Likewise.
19673 (s390_invalid_arg_for_unprototyped_fn): Likewise.
19674 (s390_valid_target_attribute_inner_p): Likewise.
19675 * config/s390/s390.md ("tabort"): Likewise.
19677 2017-01-18 Toma Tabacu <toma.tabacu@imgtec.com>
19679 * config/mips/mips.h (ISA_HAS_DIV3): Remove unused macro.
19680 (ISA_AVOID_DIV_HILO): New macro.
19681 (ISA_HAS_DIV): Use new ISA_AVOID_DIV_HILO macro.
19682 (ISA_HAS_DDIV): Likewise.
19684 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
19686 * doc/invoke.texi (fabi-version): Correct number of occurrences.
19688 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
19690 * doc/invoke.texi (fabi-version): Spelling fix.
19692 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
19695 * doc/invoke.texi (fabi-version): Mention mangling fix for
19698 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
19701 * doc/invoke.texi (fabi-version): Document discriminator mangling.
19703 2017-01-17 Segher Boessenkool <segher@kernel.crashing.org>
19706 * config/rs6000/rs6000-opts.h (stack_protector_guard): New enum.
19707 * config/rs6000/rs6000.c (rs6000_option_override_internal): Handle
19709 * config/rs6000/rs6000.md (stack_protect_set): Handle the new more
19711 (stack_protect_test): Ditto.
19712 * config/rs6000/rs6000.opt (mstack-protector-guard=,
19713 mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
19715 * doc/invoke.texi (Option Summary) [RS/6000 and PowerPC Options]:
19716 Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
19717 -mstack-protector-guard-offset=.
19718 (RS/6000 and PowerPC Options): Ditto.
19720 2017-01-17 Uros Bizjak <ubizjak@gmail.com>
19722 * config/i386/i386.h (MASK_CLASS_P): New define.
19723 * config/i386/i386.c (inline_secondary_memory_needed): Ensure that
19724 there are no registers from different register sets also when
19725 mask registers are used. Update function comment.
19726 * config/i386/i386.md (*movsi_internal): Split (*k/*krm) alternative
19727 to (*k/*r) and (*k/*km) alternatives.
19729 2017-01-17 Wilco Dijkstra <wdijkstr@arm.com>
19731 * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
19732 * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
19733 (EH_RETURN_HANDLER_RTX): New define.
19734 * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
19735 Force frame pointer in EH return functions.
19736 (aarch64_expand_epilogue): Add barrier for eh_return.
19737 (aarch64_final_eh_return_addr): Remove.
19738 (aarch64_eh_return_handler_rtx): New function.
19739 * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
19741 (aarch64_eh_return_handler_rtx): New prototype.
19743 2017-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19745 * config/rs6000/altivec.h (vec_rlmi): New #define.
19746 (vec_vrlnm): Likewise.
19747 (vec_rlnm): Likewise.
19748 * config/rs6000/altivec.md (UNSPEC_VRLMI): New UNSPEC enum value.
19749 (UNSPEC_VRLNM): Likewise.
19750 (VIlong): New mode iterator.
19751 (altivec_vrl<VI_char>mi): New define_insn.
19752 (altivec_vrl<VI_char>nm): Likewise.
19753 * config/rs6000/rs6000-builtin.def (VRLWNM): New monomorphic
19755 (VRLDNM): Likewise.
19756 (RLNM): New polymorphic function entry.
19757 (VRLWMI): New monomorphic function entry.
19758 (VRLDMI): Likewise.
19759 (RLMI): New polymorphic function entry.
19760 * config/rs6000/r6000-c.c (altivec_overloaded_builtin_table): Add
19761 new entries for P9V_BUILTIN_VEC_RLMI and P9V_BUILTIN_VEC_RLNM.
19762 * doc/extend.texi: Add description of vec_rlmi, vec_rlnm, and
19765 2017-01-17 Jakub Jelinek <jakub@redhat.com>
19768 * dwarf2out.c (field_byte_offset): Restore the
19769 PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
19770 and DECL_FIELD_BIT_OFFSET. Use fold_build2 instead of build2 + fold.
19771 (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
19774 2017-01-17 Eric Botcazou <ebotcazou@adacore.com>
19777 * config/aarch64/aarch64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define
19779 2017-01-17 Jakub Jelinek <jakub@redhat.com>
19782 * dwarf2out.c (add_data_member_location_attribute): For constant
19783 offset bitfield emit for -gdwarf-5 DW_AT_data_bit_offset attribute
19784 instead of DW_AT_data_member_location, DW_AT_bit_offset and
19785 DW_AT_byte_size attributes.
19787 2017-01-17 Eric Botcazou <ebotcazou@adacore.com>
19789 * config/rs6000/rs6000.c (rs6000_emit_move): Also use a TOC reference
19790 after forcing to constant memory when the code model is medium.
19792 2017-01-17 Julia Koval <julia.koval@intel.com>
19795 * config/i386/avx512fintrin.h
19796 (_mm512_i32gather_ps): Change __addr type to void const*.
19797 (_mm512_mask_i32gather_ps): Ditto.
19798 (_mm512_i32gather_pd): Ditto.
19799 (_mm512_mask_i32gather_pd): Ditto.
19800 (_mm512_i64gather_ps): Ditto.
19801 (_mm512_mask_i64gather_ps): Ditto.
19802 (_mm512_i64gather_pd): Ditto.
19803 (_mm512_mask_i64gather_pd): Ditto.
19804 (_mm512_i32gather_epi32): Ditto.
19805 (_mm512_mask_i32gather_epi32): Ditto.
19806 (_mm512_i32gather_epi64): Ditto.
19807 (_mm512_mask_i32gather_epi64): Ditto.
19808 (_mm512_i64gather_epi32): Ditto.
19809 (_mm512_mask_i64gather_epi32): Ditto.
19810 (_mm512_i64gather_epi64): Ditto.
19811 (_mm512_mask_i64gather_epi64): Ditto.
19812 (_mm512_i32scatter_ps): Change __addr type to void*.
19813 (_mm512_mask_i32scatter_ps): Ditto.
19814 (_mm512_i32scatter_pd): Ditto.
19815 (_mm512_mask_i32scatter_pd): Ditto.
19816 (_mm512_i64scatter_ps): Ditto.
19817 (_mm512_mask_i64scatter_ps): Ditto.
19818 (_mm512_i64scatter_pd): Ditto.
19819 (_mm512_mask_i64scatter_pd): Ditto.
19820 (_mm512_i32scatter_epi32): Ditto.
19821 (_mm512_mask_i32scatter_epi32): Ditto.
19822 (_mm512_i32scatter_epi64): Ditto.
19823 (_mm512_mask_i32scatter_epi64): Ditto.
19824 (_mm512_i64scatter_epi32): Ditto.
19825 (_mm512_mask_i64scatter_epi32): Ditto.
19826 (_mm512_i64scatter_epi64): Ditto.
19827 (_mm512_mask_i64scatter_epi64): Ditto.
19828 * config/i386/avx512pfintrin.h
19829 (_mm512_mask_prefetch_i32gather_pd): Change __addr type to void const*.
19830 (_mm512_mask_prefetch_i32gather_ps): Ditto.
19831 (_mm512_mask_prefetch_i64gather_pd): Ditto.
19832 (_mm512_mask_prefetch_i64gather_ps): Ditto.
19833 (_mm512_prefetch_i32scatter_pd): Change __addr type to void*.
19834 (_mm512_prefetch_i32scatter_ps): Ditto.
19835 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
19836 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
19837 (_mm512_prefetch_i64scatter_pd): Ditto.
19838 (_mm512_prefetch_i64scatter_ps): Ditto.
19839 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
19840 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
19841 * config/i386/avx512vlintrin.h
19842 (_mm256_mmask_i32gather_ps): Change __addr type to void const*.
19843 (_mm_mmask_i32gather_ps): Ditto.
19844 (_mm256_mmask_i32gather_pd): Ditto.
19845 (_mm_mmask_i32gather_pd): Ditto.
19846 (_mm256_mmask_i64gather_ps): Ditto.
19847 (_mm_mmask_i64gather_ps): Ditto.
19848 (_mm256_mmask_i64gather_pd): Ditto.
19849 (_mm_mmask_i64gather_pd): Ditto.
19850 (_mm256_mmask_i32gather_epi32): Ditto.
19851 (_mm_mmask_i32gather_epi32): Ditto.
19852 (_mm256_mmask_i32gather_epi64): Ditto.
19853 (_mm_mmask_i32gather_epi64): Ditto.
19854 (_mm256_mmask_i64gather_epi32): Ditto.
19855 (_mm_mmask_i64gather_epi32): Ditto.
19856 (_mm256_mmask_i64gather_epi64): Ditto.
19857 (_mm_mmask_i64gather_epi64): Ditto.
19858 (_mm256_i32scatter_ps): Change __addr type to void*.
19859 (_mm256_mask_i32scatter_ps): Ditto.
19860 (_mm_i32scatter_ps): Ditto.
19861 (_mm_mask_i32scatter_ps): Ditto.
19862 (_mm256_i32scatter_pd): Ditto.
19863 (_mm256_mask_i32scatter_pd): Ditto.
19864 (_mm_i32scatter_pd): Ditto.
19865 (_mm_mask_i32scatter_pd): Ditto.
19866 (_mm256_i64scatter_ps): Ditto.
19867 (_mm256_mask_i64scatter_ps): Ditto.
19868 (_mm_i64scatter_ps): Ditto.
19869 (_mm_mask_i64scatter_ps): Ditto.
19870 (_mm256_i64scatter_pd): Ditto.
19871 (_mm256_mask_i64scatter_pd): Ditto.
19872 (_mm_i64scatter_pd): Ditto.
19873 (_mm_mask_i64scatter_pd): Ditto.
19874 (_mm256_i32scatter_epi32): Ditto.
19875 (_mm256_mask_i32scatter_epi32): Ditto.
19876 (_mm_i32scatter_epi32): Ditto.
19877 (_mm_mask_i32scatter_epi32): Ditto.
19878 (_mm256_i32scatter_epi64): Ditto.
19879 (_mm256_mask_i32scatter_epi64): Ditto.
19880 (_mm_i32scatter_epi64): Ditto.
19881 (_mm_mask_i32scatter_epi64): Ditto.
19882 (_mm256_i64scatter_epi32): Ditto.
19883 (_mm256_mask_i64scatter_epi32): Ditto.
19884 (_mm_i64scatter_epi32): Ditto.
19885 (_mm_mask_i64scatter_epi32): Ditto.
19886 (_mm256_i64scatter_epi64): Ditto.
19887 (_mm256_mask_i64scatter_epi64): Ditto.
19888 (_mm_i64scatter_epi64): Ditto.
19889 (_mm_mask_i64scatter_epi64): Ditto.
19890 * config/i386/i386-builtin-types.def (V16SF_V16SF_PCFLOAT_V16SI_HI_INT)
19891 (V8DF_V8DF_PCDOUBLE_V8SI_QI_INT, V8SF_V8SF_PCFLOAT_V8DI_QI_INT)
19892 (V8DF_V8DF_PCDOUBLE_V8DI_QI_INT, V16SI_V16SI_PCINT_V16SI_HI_INT)
19893 (V8DI_V8DI_PCINT64_V8SI_QI_INT, V8SI_V8SI_PCINT_V8DI_QI_INT)
19894 (V8DI_V8DI_PCINT64_V8DI_QI_INT, V2DF_V2DF_PCDOUBLE_V4SI_QI_INT)
19895 (V4DF_V4DF_PCDOUBLE_V4SI_QI_INT, V2DF_V2DF_PCDOUBLE_V2DI_QI_INT)
19896 (V4DF_V4DF_PCDOUBLE_V4DI_QI_INT, V4SF_V4SF_PCFLOAT_V4SI_QI_INT)
19897 (V8SF_V8SF_PCFLOAT_V8SI_QI_INT, V4SF_V4SF_PCFLOAT_V2DI_QI_INT)
19898 (V4SF_V4SF_PCFLOAT_V4DI_QI_INT, V2DI_V2DI_PCINT64_V4SI_QI_INT)
19899 (V4DI_V4DI_PCINT64_V4SI_QI_INT, V2DI_V2DI_PCINT64_V2DI_QI_INT)
19900 (V4DI_V4DI_PCINT64_V4DI_QI_INT, V4SI_V4SI_PCINT_V4SI_QI_INT)
19901 (V8SI_V8SI_PCINT_V8SI_QI_INT, V4SI_V4SI_PCINT_V2DI_QI_INT)
19902 (V4SI_V4SI_PCINT_V4DI_QI_INT, VOID_PFLOAT_HI_V16SI_V16SF_INT)
19903 (VOID_PFLOAT_QI_V8SI_V8SF_INT, VOID_PFLOAT_QI_V4SI_V4SF_INT)
19904 (VOID_PDOUBLE_QI_V8SI_V8DF_INT, VOID_PDOUBLE_QI_V4SI_V4DF_INT)
19905 (VOID_PDOUBLE_QI_V4SI_V2DF_INT, VOID_PFLOAT_QI_V8DI_V8SF_INT)
19906 (VOID_PFLOAT_QI_V4DI_V4SF_INT, VOID_PFLOAT_QI_V2DI_V4SF_INT)
19907 (VOID_PDOUBLE_QI_V8DI_V8DF_INT, VOID_PDOUBLE_QI_V4DI_V4DF_INT)
19908 (VOID_PDOUBLE_QI_V2DI_V2DF_INT, VOID_PINT_HI_V16SI_V16SI_INT)
19909 (VOID_PINT_QI_V8SI_V8SI_INT, VOID_PINT_QI_V4SI_V4SI_INT)
19910 (VOID_PLONGLONG_QI_V8SI_V8DI_INT, VOID_PLONGLONG_QI_V4SI_V4DI_INT)
19911 (VOID_PLONGLONG_QI_V4SI_V2DI_INT, VOID_PINT_QI_V8DI_V8SI_INT)
19912 (VOID_PINT_QI_V4DI_V4SI_INT, VOID_PINT_QI_V2DI_V4SI_INT)
19913 (VOID_PLONGLONG_QI_V8DI_V8DI_INT, VOID_QI_V8SI_PCINT64_INT_INT)
19914 (VOID_PLONGLONG_QI_V4DI_V4DI_INT, VOID_PLONGLONG_QI_V2DI_V2DI_INT)
19915 (VOID_HI_V16SI_PCINT_INT_INT, VOID_QI_V8DI_PCINT64_INT_INT)
19916 (VOID_QI_V8DI_PCINT_INT_INT): Remove.
19917 (V16SF_V16SF_PCVOID_V16SI_HI_INT, V8DF_V8DF_PCVOID_V8SI_QI_INT)
19918 (V8SF_V8SF_PCVOID_V8DI_QI_INT, V8DF_V8DF_PCVOID_V8DI_QI_INT)
19919 (V16SI_V16SI_PCVOID_V16SI_HI_INT, V8DI_V8DI_PCVOID_V8SI_QI_INT)
19920 (V8SI_V8SI_PCVOID_V8DI_QI_INT, V8DI_V8DI_PCVOID_V8DI_QI_INT)
19921 (VOID_PVOID_HI_V16SI_V16SF_INT, VOID_PVOID_QI_V8SI_V8DF_INT)
19922 (VOID_PVOID_QI_V8DI_V8SF_INT, VOID_PVOID_QI_V8DI_V8DF_INT)
19923 (VOID_PVOID_HI_V16SI_V16SI_INT, VOID_PVOID_QI_V8SI_V8DI_INT)
19924 (VOID_PVOID_QI_V8DI_V8SI_INT, VOID_PVOID_QI_V8DI_V8DI_INT)
19925 (V2DF_V2DF_PCVOID_V4SI_QI_INT, V4DF_V4DF_PCVOID_V4SI_QI_INT)
19926 (V2DF_V2DF_PCVOID_V2DI_QI_INT, V4DF_V4DF_PCVOID_V4DI_QI_INT
19927 (V4SF_V4SF_PCVOID_V4SI_QI_INT, V8SF_V8SF_PCVOID_V8SI_QI_INT)
19928 (V4SF_V4SF_PCVOID_V2DI_QI_INT, V4SF_V4SF_PCVOID_V4DI_QI_INT)
19929 (V2DI_V2DI_PCVOID_V4SI_QI_INT, V4DI_V4DI_PCVOID_V4SI_QI_INT)
19930 (V2DI_V2DI_PCVOID_V2DI_QI_INT, V4DI_V4DI_PCVOID_V4DI_QI_INT)
19931 (V4SI_V4SI_PCVOID_V4SI_QI_INT, V8SI_V8SI_PCVOID_V8SI_QI_INT)
19932 (V4SI_V4SI_PCVOID_V2DI_QI_INT, V4SI_V4SI_PCVOID_V4DI_QI_INT)
19933 (VOID_PVOID_QI_V8SI_V8SF_INT, VOID_PVOID_QI_V4SI_V4SF_INT)
19934 (VOID_PVOID_QI_V4SI_V4DF_INT, VOID_PVOID_QI_V4SI_V2DF_INT)
19935 (VOID_PVOID_QI_V4DI_V4SF_INT, VOID_PVOID_QI_V2DI_V4SF_INT)
19936 (VOID_PVOID_QI_V4DI_V4DF_INT, VOID_PVOID_QI_V2DI_V2DF_INT)
19937 (VOID_PVOID_QI_V8SI_V8SI_INT, VOID_PVOID_QI_V4SI_V4SI_INT)
19938 (VOID_PVOID_QI_V4SI_V4DI_INT, VOID_PVOID_QI_V4SI_V2DI_INT)
19939 (VOID_PVOID_QI_V4DI_V4SI_INT, VOID_PVOID_QI_V2DI_V4SI_INT)
19940 (VOID_PVOID_QI_V4DI_V4DI_INT, VOID_PVOID_QI_V2DI_V2DI_INT)
19941 (VOID_QI_V8SI_PCVOID_INT_INT, VOID_HI_V16SI_PCVOID_INT_INT)
19942 (VOID_QI_V8DI_PCVOID_INT_INT): Add.
19943 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Adjust builtin
19944 definitions accordingly.
19946 2017-01-17 Kito Cheng <kito.cheng@gmail.com>
19947 Kuan-Lin Chen <kuanlinchentw@gmail.com>
19950 * internal-fn.c (expand_mul_overflow): Use convert_modes instead of
19953 2017-01-17 Vladimir Makarov <vmakarov@redhat.com>
19956 * ira-conflicts.c (ira_build_conflicts): Update total conflict
19957 hard regs for inner regno.
19959 2017-01-17 Martin Liska <mliska@suse.cz>
19962 * ipa-polymorphic-call.c (contains_type_p): Fix wrong
19963 assumption and add comment.
19965 2017-01-17 Nathan Sidwell <nathan@acm.org>
19967 * ipa-visibility.c (localize_node): New function, broken out of ...
19968 (function_and_variable_visibility): ... here. Call it.
19970 2017-01-17 Jan Hubicka <hubicka@ucw.cz>
19972 PR middle-end/77445
19973 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
19974 correctly set frequency of oudgoing edge.
19975 (duplicate_thread_path): Fix profile updating.
19977 2017-01-17 Jakub Jelinek <jakub@redhat.com>
19980 * configure.ac: Add GCC_BASE_VER.
19981 * Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
19982 version from BASE-VER file.
19983 (CFLAGS-gcc.o): Add -DBASEVER=$(BASEVER_s).
19984 (gcc.o): Depend on $(BASEVER).
19985 * common.opt (dumpfullversion): New option.
19986 * gcc.c (driver_handle_option): Handle OPT_dumpfullversion.
19987 * doc/invoke.texi: Document -dumpfullversion.
19988 * doc/install.texi: Document --with-gcc-major-version-only.
19989 * configure: Regenerated.
19991 2017-01-17 Richard Biener <rguenther@suse.de>
19993 PR tree-optimization/71433
19994 * tree-vrp.c (register_new_assert_for): Merge same asserts
19995 on all incoming edges.
19996 (process_assert_insertions_for): Handle insertions at the
19999 2017-01-17 Gerald Pfeifer <gerald@pfeifer.com>
20001 * config/i386/cygwin.h (LIBGCJ_SONAME): Remove.
20002 * config/i386/mingw32.h (LIBGCJ_SONAME): Remove.
20004 2017-01-17 Kaz Kojima <kkojima@gcc.gnu.org>
20007 * config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
20010 2017-01-17 Alan Modra <amodra@gmail.com>
20013 * config/rs6000/rs6000.md (elf_high, elf_low): Disable when pic.
20014 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Don't allow
20015 symbolic stack limit when pic.
20017 2017-01-16 Martin Sebor <msebor@redhat.com>
20019 PR tree-optimization/78608
20020 * gimple-ssa-sprintf.c (tree_digits): Avoid negating TYPE_MIN.
20022 2017-01-16 Jeff Law <law@redhat.com>
20025 2016-12-02 Tadek Kijkowski <tkijkowski@gmail.com>
20026 * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
20027 for several include directories that may be relative to sysroot.
20028 * config/i386/x-mingw32 (gplus_includedir): Define.
20029 (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
20030 (native_system_includedir): Likewise.
20031 * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
20032 override if TARGET_SYSTEM_ROOT is defined.
20033 (NATIVE_SYSTEM_HEADER_DIR): Likewise.
20035 PR tree-optimization/79090
20036 PR tree-optimization/33562
20037 PR tree-optimization/61912
20038 PR tree-optimization/77485
20039 * tree-ssa-dse.c (compute_trims): Accept STMT argument. Dump STMT
20040 and computed trims into the dump file.
20042 2017-01-17 Uros Bizjak <ubizjak@gmail.com>
20044 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Remove.
20046 2017-01-16 Jakub Jelinek <jakub@redhat.com>
20049 * gimplify.c (gimplify_init_constructor): If want_value and
20050 object == lhs, unshare lhs to avoid invalid tree sharing. Formatting
20054 * loop-doloop.c (doloop_modify): Call unshare_all_rtl_in_chain on
20055 sequence. Formatting fixes.
20056 (doloop_optimize): Formatting fixes.
20059 * gcc.c (debug_level_greater_than_spec_func): New function.
20060 (static_spec_functions): Add debug-level-gt spec function.
20061 (ASM_DEBUG_SPEC, cpp_options): Use %:debug-level-gt(0) instead of
20063 * config/darwin.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
20064 * config/darwin9.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
20065 * common.opt (g, gcoff, gdwarf, gdwarf-, ggdb, gno-pubnames,
20066 gpubnames, ggnu-pubnames, gno-record-gcc-switches,
20067 grecord-gcc-switches, gno-strict-dwarf, gstrict-dwarf, gstabs,
20068 gstabs+, gtoggle, gvms, gxcoff, gxcoff+): Add Driver flag.
20070 2017-01-16 Uros Bizjak <ubizjak@gmail.com>
20072 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Apply HImode and
20073 QImode fixups to general and mask registers only.
20075 2017-01-16 Carl Love <cel@us.ibm.com>
20077 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Add support
20078 for built-in functions
20079 vector signed char vec_nabs (vector signed char)
20080 vector signed short vec_nabs (vector signed short)
20081 vector signed int vec_nabs (vector signed int)
20082 vector signed long long vec_nabs (vector signed long long)
20083 vector float vec_nabs (vector float)
20084 vector double vec_nabs (vector double)
20085 * config/rs6000/rs6000-builtin.def: Add definitions for NABS functions
20087 * config/rs6000/altivec.md: New define_expand nabs<mode>2 types
20088 * config/rs6000/altivec.h: New define for vec_nabs built-in function.
20089 * doc/extend.texi: Update the documentation file for the new built-in
20092 2017-01-16 Martin Sebor <msebor@redhat.com>
20094 * gimple-ssa-sprintf.c (format_directive): Correct a typo in a warning
20097 2017-01-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20099 * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
20100 UNSPEC_VSX__XXSPLTD to require special splat handling.
20102 2017-01-16 David Malcolm <dmalcolm@redhat.com>
20105 * system.h: Poison strndup.
20107 2017-01-16 Alan Modra <amodra@gmail.com>
20110 * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Don't
20113 2017-01-16 Georg-Johann Lay <avr@gjlay.de>
20115 * config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4.
20117 2017-01-15 Uros Bizjak <ubizjak@gmail.com>
20119 * config/i386/i386.c (ix86_legitimate_combined_insn): Do not
20120 call recog here. Assert that INSN_CODE (insn) is non-negative.
20122 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
20125 * cfgrtl.c (rtl_split_edge): Also patch jump insns that jump to the
20127 * haifa-sched.c (dump_insn_stream): Don't crash if there is a label
20128 in the currently scheduled RTL fragment.
20130 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
20132 PR rtl-optimization/78751
20133 * ifcvt.c (find_cond_trap): If we generated a non-existing insn,
20136 2017-01-14 Jeff Law <law@redhat.com>
20138 PR tree-optimization/79090
20139 * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject zero length and
20140 variable length stores.
20141 (compute_trims): Delete dead assignment to *trim_tail.
20142 (dse_dom_walker::dse_optimize_stmt): Optimize mem* calls with
20145 2017-01-14 Bernd Schmidt <bschmidt@redhat.com>
20147 PR rtl-optimization/78626
20148 PR rtl-optimization/78727
20149 * cprop.c (one_cprop_pass): Collect unconditional traps in the middle
20150 of a block, and split such blocks after everything else is finished.
20152 2017-01-14 Alan Modra <amodra@gmail.com>
20155 * combine.c (recog_for_combine_1): Set INSN_CODE before calling
20156 target legitimate_combined_insn.
20157 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_COMBINED_INSN): Define.
20158 (rs6000_legitimate_combined_insn): New function.
20159 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): Delete, and remove
20161 (ctr<mode>_internal3): Rename from *ctr<mode>_internal5.
20162 (ctr<mode>_internal4): Rename from *ctr<mode>_internal6.
20163 (ctr<mode>_internal1, ctr<mode>_internal2): Remove '*' from name.
20165 2017-01-14 Gerald Pfeifer <gerald@pfeifer.com>
20167 * doc/frontends.texi (G++ and GCC): Remove references to Java.
20169 2017-01-13 Jeff Law <law@redhat.com>
20171 PR tree-optimization/33562
20172 PR tree-optimization/61912
20173 PR tree-optimization/77485
20174 * tree-ssa-dse.c (delete_dead_call): Accept gsi rather than
20176 (delete_dead_assignment): Likewise.
20177 (dse_dom_walker::dse_optimize_stmt): Pass in the gsi rather than
20178 statement to delete_dead_call and delete_dead_assignment.
20180 2017-01-13 David Malcolm <dmalcolm@redhat.com>
20183 * substring-locations.c (format_warning_va): Strengthen case 1 so
20184 that both endpoints of the substring must be within the format
20185 range for just the substring to be printed.
20187 2017-01-13 Uros Bizjak <ubizjak@gmail.com>
20189 * config/i386/i386.opt (msgx): Use ix86_isa_flags2 variable.
20190 * config/i386/i386.c (ix86_target_string): Add missing options
20191 to isa_opts and reorder options by implied ISAs. Rename isa_opts2 to
20192 isa2_opts, ix86_flag_opts to flag2_opts, ix86_target_other to
20193 flags_other and ix86_target_other to flags2_other. Display unknown
20195 (ix86_valid_target_attribute_inner_p): Add missing options and
20196 reorder options by implied ISAs, as in ix86_target_string.
20198 2017-01-13 Richard Sandiford <richard.sandiford@arm.com>
20200 * hash-table.h (hash_table::too_empty_p): New function.
20201 (hash_table::expand): Use it.
20202 (hash_table::traverse): Likewise.
20203 (hash_table::empty_slot): Use sizeof (value_type) instead of
20204 sizeof (PTR) to convert bytes to elements. Shrink the table
20205 if the current size is excessive for the current number of
20208 2017-01-13 Richard Sandiford <richard.sandiford@arm.com>
20210 * ira-costs.c (record_reg_classes): Break from the inner loop
20211 early once alt_fail is known to be true. Update outer loop
20212 handling accordingly.
20214 2017-01-13 Jeff Law <law@redhat.com>
20216 * tree-ssa-dse.c (decrement_count): New function.
20217 (increment_start_addr, maybe_trim_memstar_call): Likewise.
20218 (dse_dom_walker::optimize_stmt): Call maybe_trim_memstar_call directly
20219 when we know the partially dead statement is a mem* function.
20221 PR tree-optimization/61912
20222 PR tree-optimization/77485
20223 * tree-ssa-dse.c: Include expr.h.
20224 (maybe_trim_constructor_store): New function.
20225 (maybe_trim_partially_dead_store): Call maybe_trim_constructor_store.
20227 PR tree-optimization/33562
20228 PR tree-optimization/61912
20229 PR tree-optimization/77485
20230 * doc/invoke.texi: Document new dse-max-object-size param.
20231 * params.def (PARM_DSE_MAX_OBJECT_SIZE): New PARAM.
20232 * tree-ssa-dse.c: Include params.h.
20233 (dse_store_status): New enum.
20234 (initialize_ao_ref_for_dse): New, partially extracted from
20236 (valid_ao_ref_for_dse, normalize_ref): New.
20237 (setup_live_bytes_from_ref, compute_trims): Likewise.
20238 (clear_bytes_written_by, maybe_trim_complex_store): Likewise.
20239 (maybe_trim_partially_dead_store): Likewise.
20240 (maybe_trim_complex_store): Likewise.
20241 (dse_classify_store): Renamed from dse_possibly_dead_store_p.
20242 Track what bytes live from the original store. Return tri-state
20243 for dead, partially dead or live.
20244 (dse_dom_walker): Add constructor, destructor and new private members.
20245 (delete_dead_call, delete_dead_assignment): New extracted from
20247 (dse_optimize_stmt): Make a member of dse_dom_walker.
20248 Use initialize_ao_ref_for_dse.
20250 PR tree-optimization/33562
20251 PR tree-optimization/61912
20252 PR tree-optimization/77485
20253 * sbitmap.h (bitmap_count_bits): Prototype.
20254 (bitmap_clear_range, bitmap_set_range): Likewise.
20255 * sbitmap.c (bitmap_clear_range): New function.
20256 (bitmap_set_range, sbitmap_popcount, bitmap_count_bits): Likewise.
20258 2017-01-13 Martin Liska <mliska@suse.cz>
20261 * function.c (set_cfun): Add new argument force.
20262 * function.h (set_cfun): Likewise.
20263 * ipa-inline-transform.c (inline_call): Use the function when
20264 strict alising from is dropped for function we inline to.
20266 2017-01-13 Richard Biener <rguenther@suse.de>
20268 * tree-pretty-print.c (dump_generic_node): Fix inverted condition
20269 for dumping GIMPLE INTEGER_CSTs.
20271 2017-01-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20273 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__
20274 to 201112L since C++17.
20276 2017-01-13 Maxim Ostapenko <m.ostapenko@samsung.com>
20279 * asan.c (asan_needs_odr_indicator_p): Don't emit ODR indicators
20280 if -fsanitize=kernel-address is present.
20282 2017-01-13 Richard Biener <rguenther@suse.de>
20284 * tree-pretty-print.c (dump_generic_node): Dump INTEGER_CSTs
20285 as _Literal ( type ) number in case usual suffixes do not
20286 preserve all information.
20288 2017-01-13 Richard Biener <rguenther@suse.de>
20290 PR tree-optimization/77283
20291 * gimple-ssa-split-paths.c: Include gimple-ssa.h, tree-phinodes.h
20292 and ssa-iterators.h.
20293 (is_feasible_trace): Implement a cost model based on joiner
20296 2017-01-12 Michael Meissner <meissner@linux.vnet.ibm.com>
20299 * config/rs6000/rs6000.md (FP_ISA3): Do not optimize converting
20300 char or short to __float128/_Float128 directly.
20302 2017-01-12 Martin Sebor <msebor@redhat.com>
20304 to -Wformat-overflow.
20305 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
20306 (min_bytes_remaining): Same.
20307 (get_string_length): Same.
20308 (format_string): Same.
20309 (format_directive): Same.
20311 (pass_sprintf_length::handle_gimple_call): Same.
20313 2017-01-12 Jakub Jelinek <jakub@redhat.com>
20315 * gimple-ssa-sprintf.c (try_substitute_return_value): Remove
20316 info.nowrite calls with no lhs that can't throw. Return bool
20317 whether gsi_remove has been called or not.
20318 (pass_sprintf_length::handle_gimple_call): Return bool whether
20319 try_substitute_return_value called gsi_remove. Formatting fix.
20320 (pass_sprintf_length::execute): Don't use gsi_remove if
20321 handle_gimple_call returned true.
20324 * cfgrtl.c (rtl_tidy_fallthru_edge): For any_uncondjump_p that can't
20325 be removed due to side-effects, don't remove following barrier nor
20326 turn the successor edge into fallthru edge.
20328 2017-01-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20331 * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
20332 element-reversing loads and stores as not swappable.
20334 2017-01-12 Nathan Sidwell <nathan@acm.org>
20335 Nicolai Stange <nicstange@gmail.com>
20337 * combine.c (try_combine): Don't ignore result of overlap checking
20338 loop. Combine overlap & asm check into single loop.
20340 2017-01-12 Richard Biener <rguenther@suse.de>
20342 * tree-pretty-print.c (dump_generic_node): Provide -gimple
20343 variant for MEM_REF. Sanitize INTEGER_CST for -gimple.
20345 2017-01-12 Richard Biener <rguenther@suse.de>
20347 * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
20348 and TS_TARGET_OPTION directly derive from TS_BASE.
20349 * tree-core.h (tree_optimization_option): Derive from tree_base.
20350 (tree_target_option): Likewise.
20352 2017-01-11 Uros Bizjak <ubizjak@gmail.com>
20354 * config/i386/i386.c (memory_address_length): Increase len
20355 only when rip_relative_addr_p returns false.
20357 2017-01-11 Julia Koval <julia.koval@intel.com>
20359 * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET): New.
20360 (OPTION_MASK_ISA_SGX_SET): New.
20361 (ix86_handle_option): Handle OPT_msgx.
20362 * config.gcc: Added sgxintrin.h.
20363 * config/i386/driver-i386.c (host_detect_local_cpu): Detect sgx.
20364 * config/i386/i386-c.c (ix86_target_macros_internal): Define __SGX__.
20365 * config/i386/i386.c (ix86_target_string): Add -msgx.
20367 (ix86_option_override_internal): Handle new options.
20368 (ix86_valid_target_attribute_inner_p): Add sgx.
20369 * config/i386/i386.h (TARGET_SGX, TARGET_SGX_P): New.
20370 * config/i386/i386.opt: Add msgx.
20371 * config/i386/sgxintrin.h: New file.
20372 * config/i386/x86intrin.h: Add sgxintrin.h.
20374 2017-01-11 Jakub Jelinek <jakub@redhat.com>
20377 * fold-const.c (maybe_nonzero_address): Return 1 for function
20379 (tree_single_nonzero_warnv_p): Don't handle function local objects
20383 * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
20386 2017-01-11 David Malcolm <dmalcolm@redhat.com>
20389 * opts.c: Include "spellcheck.h"
20390 (struct string_fragment): New struct.
20391 (struct edit_distance_traits<const string_fragment &>): New
20393 (get_closest_sanitizer_option): New function.
20394 (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
20396 2017-01-11 Jakub Jelinek <jakub@redhat.com>
20398 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
20400 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
20401 DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
20402 (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
20403 (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
20404 for initial die_offset if dwarf_split_debug_info.
20405 (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
20406 initial next_die_offset if dwo_id is non-NULL. Don't emit padding
20408 (output_skeleton_debug_sections): Formatting fix. Use
20409 DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
20410 DWARF_COMPILE_UNIT_HEADER_SIZE. Don't emit padding.
20412 2017-01-11 Wilco Dijkstra <wdijkstr@arm.com>
20414 * config/arm/cortex-a53.md: Add bypasses for
20415 cortex_a53_r2f_cvt.
20416 (cortex_a53_r2f): Only use for transfers.
20417 (cortex_a53_f2r): Likewise.
20418 (cortex_a53_r2f_cvt): Add reservation for conversions.
20419 (cortex_a53_f2r_cvt): Likewise.
20421 2017-01-11 Tamar Christina <tamar.christina@arm.com>
20423 * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
20424 to all inlined functions, change static to extern.
20426 2017-01-11 Christophe Lyon <christophe.lyon@linaro.org>
20429 * config/arm/arm.c (legitimize_pic_address): Handle reference to
20431 (arm_assemble_integer): Likewise.
20433 2017-01-11 Richard Earnshaw <rearnsha@arm.com>
20435 * config.gcc: Use new awk script to check CPU, FPU and architecture
20436 parameters for --with-... options.
20437 * config/arm/parsecpu.awk: New file
20438 * config/arm/arm-cpus.in: New file.
20439 * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
20441 * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
20443 * config/arm/t-arm: Update dependency rules.
20444 * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
20445 of processing .def files.
20446 * config/arm/genopt.sh: Deleted.
20447 * config/arm/gentune.sh: Deleted.
20448 * config/arm/arm-cores.def: Deleted.
20449 * config/arm/arm-arches.def: Deleted.
20450 * config/arm/arm-fpus.def: Deleted.
20451 * config/arm/arm-tune.md: Regenerated.
20452 * config/arm/arm-tables.opt: Regenerated.
20453 * config/arm/arm-cpu.h: New generated file.
20454 * config/arm/arm-cpu-data.h: New generated file.
20455 * config/arm/arm-cpu-cdata.h: New generated file.
20457 2017-01-11 Maxim Ostapenko <m.ostapenko@samsung.com>
20460 * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
20462 (input_varpool_node): Unpack dynamically_initialized bit.
20464 2017-01-11 Eric Botcazou <ebotcazou@adacore.com>
20466 PR rtl-optimization/79032
20467 * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
20468 the alignment of the adjusted memory reference against that of MODE,
20469 instead of the alignment of the original memory reference.
20471 2017-01-11 Martin Jambor <mjambor@suse.cz>
20473 * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
20475 * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
20476 decorated functions.
20478 2017-01-11 Richard Biener <rguenther@suse.de>
20480 * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
20481 set range/nonnull info for PHI results. Do not set it on
20482 stmts marked for removal.
20484 2017-01-10 Eric Botcazou <ebotcazou@adacore.com>
20486 * expr.c (store_field): In the bitfield case, fetch the return value
20487 from the registers before applying a single big-endian adjustment.
20488 Always do a final load for a BLKmode value not larger than a word.
20490 2017-01-10 David Malcolm <dmalcolm@redhat.com>
20493 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
20494 that we correctly handle column numbers greater than
20495 LINE_MAP_MAX_COLUMN_NUMBER.
20497 2017-01-10 Martin Sebor <msebor@redhat.com>
20499 PR middle-end/78245
20500 * gimple-ssa-sprintf.c (get_destination_size): Call
20501 {init,fini}object_sizes.
20502 * tree-object-size.c (addr_object_size): Adjust.
20503 (pass_through_call): Adjust.
20504 (pass_object_sizes::execute): Adjust.
20505 * tree-object-size.h (fini_object_sizes): Declare.
20507 2017-01-10 Martin Sebor <msebor@redhat.com>
20509 PR tree-optimization/78775
20510 * builtins.c (get_size_range): Move...
20511 * calls.c: ...to here.
20512 (alloc_max_size): Accept zero argument.
20513 (operand_signed_p): Remove.
20514 (maybe_warn_alloc_args_overflow): Call get_size_range.
20515 * calls.h (get_size_range): Declare.
20517 2017-01-10 Joe Seymour <joe.s@somniumtech.com>
20519 * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
20520 from TI's devices.csv file as of September 2016.
20521 * config/msp430/msp430.c (msp430_mcu_data): Likewise.
20523 2017-01-10 Sandra Loosemore <sandra@codesourcery.com>
20525 * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
20526 * doc/invoke.texi: Likewise.
20527 * doc/md.texi: Likewise.
20528 * doc/objc.texi: Likewise.
20530 2017-01-10 Joshua Conner <joshconner@google.com>
20532 * config/arm/fuchsia-elf.h: New file.
20533 * config/fuchsia.h: New file.
20534 * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
20535 (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
20537 * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
20539 2016-01-10 Richard Biener <rguenther@suse.de>
20541 PR tree-optimization/79034
20542 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
20543 Propagate out degenerate PHIs in the joiner.
20545 2017-01-10 Martin Liska <mliska@suse.cz>
20547 * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
20548 (sort_congruence_classes_by_decl_uid): Likewise.
20549 (sort_congruence_class_groups_by_decl_uid): Likewise.
20550 (sem_item_optimizer::merge_classes): Sort class, groups in these
20551 classes and members in the groups by DECL_UID of declarations.
20552 This would make merge operations stable.
20554 2017-01-10 Martin Liska <mliska@suse.cz>
20556 * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
20557 usage of m_classes_vec.
20558 (sem_item_optimizer::~sem_item_optimizer): Likewise.
20559 (sem_item_optimizer::get_group_by_hash): Likewise.
20560 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
20561 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
20562 (sem_item_optimizer::verify_classes): Likewise.
20563 (sem_item_optimizer::process_cong_reduction): Likewise.
20564 (sem_item_optimizer::dump_cong_classes): Likewise.
20565 (sem_item_optimizer::merge_classes): Likewise.
20566 * ipa-icf.h (congruence_class_hash): Rename from
20567 congruence_class_group_hash. Remove declaration of m_classes_vec.
20569 2017-01-10 Andrew Senkevich <andrew.senkevich@intel.com>
20571 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
20572 OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
20573 * config.gcc: Add avx512vpopcntdqintrin.h.
20574 * config/i386/avx512vpopcntdqintrin.h: New.
20575 * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
20576 * config/i386/i386-builtin-types.def: Add new types.
20577 * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
20578 __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
20579 __builtin_ia32_vpopcountq_v8di_mask): New.
20580 * config/i386/i386-c.c (ix86_target_macros_internal): Define
20581 __AVX512VPOPCNTDQ__.
20582 * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
20583 (PTA_AVX512VPOPCNTDQ): Define.
20584 * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
20585 TARGET_AVX512VPOPCNTDQ_P): Define.
20586 * config/i386/i386.opt: Add mavx512vpopcntdq.
20587 * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
20588 * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
20590 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
20592 PR middle-end/77484
20593 * predict.def (PRED_CALL): Set to 67.
20595 2017-01-09 Eric Botcazou <ebotcazou@adacore.com>
20597 * expr.c (store_field): In the bitfield case, if the value comes from
20598 a function call and is of an aggregate type returned in registers, do
20599 not modify the field mode; extract the value in all cases if the mode
20600 is BLKmode and the size is not larger than a word.
20602 2017-01-09 Dominique d'Humieres <dominiq@lps.ens.fr>
20605 * config/i386/cpuid.h: Fix undefined behavior.
20607 2017-01-04 Jeff Law <law@redhat.com>
20609 PR tree-optimization/79007
20610 PR tree-optimization/67955
20611 * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
20612 conservative for pt.null when flag_non_call_exceptions is on.
20614 2017-01-09 Jakub Jelinek <jakub@redhat.com>
20616 PR translation/79019
20617 PR translation/79020
20618 * params.def (PARAM_INLINE_MIN_SPEEDUP,
20619 PARAM_IPA_CP_SINGLE_CALL_PENALTY,
20620 PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
20622 * config/avr/avr.opt (maccumulate-args): Likewise.
20623 * config/msp430/msp430.opt (mwarn-mcu): Likewise.
20624 * common.opt (freport-bug): Likewise.
20625 * cif-code.def (CIF_FINAL_ERROR): Likewise.
20626 * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
20627 * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
20628 translatable string.
20629 * config/i386/i386.c (function_value_32): Likewise.
20630 * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
20631 * config/msp430/msp430.c (msp430_option_override, msp430_attr):
20633 * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
20634 * common/config/msp430/msp430-common.c (msp430_handle_option):
20636 * symtab.c (symtab_node::verify_base): Likewise.
20637 * opts.c (set_debug_level): Likewise.
20638 * tree.c (verify_type_variant): Likewise. Fix typo in comment.
20639 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
20640 missing whitespace to translatable strings.
20641 * config/avr/avr.md (bswapsi2): Fix typo in comment.
20642 * config/sh/superh.h: Likewise.
20643 * config/i386/xopintrin.h: Likewise.
20644 * config/i386/znver1.md: Likewise.
20645 * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
20646 * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
20647 * double-int.h (struct double_int): Likewise.
20648 * double-int.c (div_and_round_double): Likewise.
20649 * wide-int.cc: Likewise.
20650 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
20651 * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
20652 * cfgcleanup.c (crossjumps_occured): Renamed to ...
20653 (crossjumps_occurred): ... this.
20654 (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
20657 PR tree-optimization/78899
20658 * tree-if-conv.c (version_loop_for_if_conversion): Instead of
20659 returning bool return struct loop *, NULL for failure and the new
20661 (versionable_outer_loop_p): Don't version outer loop if it has
20662 dont_vectorized bit set.
20663 (tree_if_conversion): When versioning outer loop, ensure
20664 tree_if_conversion is performed also on the inner loop of the
20665 non-vectorizable outer loop copy.
20666 * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix. Fold
20667 LOOP_VECTORIZED in inner loop of the scalar outer loop and
20668 prevent vectorization of it.
20669 (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
20670 the outer loop vectorization of the non-scalar version is attempted
20671 before vectorization of the inner loop in scalar version. If
20672 outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
20673 vectorization of its inner loop.
20674 * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
20675 has 2 inner loops, rename also on edges from bb whose single pred
20676 is outer_loop->header. Fix typo in function comment.
20678 2017-01-09 Martin Sebor <msebor@redhat.com>
20681 * asan.c (asan_emit_stack_protection): Increase local buffer size
20682 to avoid snprintf truncation warning.
20684 2017-01-09 Andrew Pinski <apinski@cavium.com>
20686 * config/aarch64/aarch64-cores.def: Add thunderx2t99. Change vulcan
20687 to reference thunderx2t99 for the tuning structure
20688 * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
20690 (thunderx2t99_extra_costs): This.
20691 * config/aarch64/aarch64-tune.md: Regenerate.
20692 * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
20693 (vulcan_addrcost_table): This.
20694 (vulcan_regmove_cost): Rename to ...
20695 (thunderx2t99_regmove_cost): This.
20696 (vulcan_vector_cost): Rename to ...
20697 (thunderx2t99_vector_cost): this.
20698 (vulcan_branch_cost): Rename to ...
20699 (thunderx2t99_branch_cost): This.
20700 (vulcan_tunings): Rename to ...
20701 (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
20702 * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
20704 2017-01-09 Martin Jambor <mjambor@suse.cz>
20708 * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
20709 * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
20710 (propagate_vr_accross_jump_function): Use the above function for all
20711 value range computations for pass-through jump functions and type
20712 converasion from explicit value range values.
20713 (ipcp_propagate_stage): Do not attempt to deduce types of formal
20714 parameters from TYPE_ARG_TYPES.
20715 * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
20716 (ipa_write_node_info): Stream type of the actual argument.
20717 (ipa_read_node_info): Likewise. Also remove trailing whitespace.
20719 2017-01-09 Martin Liska <mliska@suse.cz>
20722 * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
20723 (lookup_compiler): Do not show error message with have_E.
20725 2017-01-09 Jakub Jelinek <jakub@redhat.com>
20727 PR tree-optimization/78938
20728 * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
20729 where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
20730 BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
20731 {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR. Formatting
20734 2017-01-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20736 * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
20739 2017-01-09 Richard Biener <rguenther@suse.de>
20741 PR tree-optimization/78997
20742 * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
20743 name condition properly.
20745 2017-01-09 Richard Biener <rguenther@suse.de>
20748 * dwarf2out.c (is_cxx): New overload with context.
20749 (is_naming_typedef_decl): Use it.
20751 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
20753 * invoke.texi (Option Summary): Correct spacing in option lists
20754 and add line breaks to fix over-long lines.
20756 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
20758 PR middle-end/17660
20760 * extend.texi (Common Variable Attributes): Add xref to GCC
20761 Internals manual to explain mode attribute keywords.
20763 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
20766 * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
20767 and Preprocessor Options.
20768 (Options for Linking): Document -pthread here....
20769 (RS/6000 and PowerPC Options): ...not here.
20770 (Solaris 2 Options): ...or here.
20771 * doc/cppopts.texi: Document -pthread.
20773 2017-01-08 Martin Sebor <msebor@redhat.com>
20775 PR middle-end/77708
20776 * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
20777 * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
20778 New member functions.
20779 (format_directive): Used them.
20781 (pass_sprintf_length::handle_gimple_call): Same.
20782 * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
20783 to avoid truncation for any argument.
20784 (extract_affine_mul): Same.
20785 * tree.c (get_file_function_name): Same.
20787 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
20789 PR middle-end/77484
20790 * predict.def (PRED_INDIR_CALL): Set to 86.
20792 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
20794 PR preprocessor/54124
20795 * doc/cppopts.texi: Reformat -d subtable to list the full name
20796 of the options. Add cross-reference to the docs for the general
20797 compiler -d options.
20798 * doc/invoke.texi (Developer Options): Add cross-reference to the
20799 preprocessor-specific -d option documentation.
20801 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
20803 PR preprocessor/13498
20804 * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
20805 redudant material, and reflect new command-line options.
20806 (System Headers): Likewise.
20808 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
20810 * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
20811 -isystem, and -idirafter. Copy-edit.
20812 * doc/cppopts.texi: Copy-edit. Remove contradiction about
20813 default for -ftrack-macro-expansion. Delete obsolete and
20814 badly-formatted implementation details about -fdebug-cpp output.
20815 * doc/cppwarnopts.texi: Copy-edit.
20817 2017-01-07 David Malcolm <dmalcolm@redhat.com>
20820 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
20821 that the transition from a max line width >= 1<<10 to narrower
20822 lines works correctly.
20824 2017-01-07 Alexandre Oliva <aoliva@redhat.com>
20826 * doc/options.texi (PerFunction): New.
20827 * opt-functions.awk (switch_flags): Map both Optimization and
20828 PerFunction to CL_OPTIMIZATION.
20829 * opth-gen.awk: Test for PerFunction flag along with
20831 * optc-save-gen.awk: Likewise. Introduce var_opt_hash and set
20832 it only when the latter is present. Skip those that don't in
20833 the hash function generator.
20834 * common.opt (fvar-tracking): Mark as PerFunction instead of
20836 (fvar-tracking-assignments): Likewise.
20837 (fvar-tracking-assignments-toggle): Likewise.
20838 (fvar-tracking-uninit): Likewise.
20840 2017-01-07 Jakub Jelinek <jakub@redhat.com>
20842 PR translation/79018
20843 * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
20846 2017-01-06 Mikael Pettersson <mikpelinux@gmail.com>
20849 * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
20850 * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
20851 TARGET_LONG_JUMP_TABLE_OFFSETS.
20852 * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
20853 * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
20854 * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
20855 (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
20856 * config/m68k/m68k.md (tablejump expander): Likewise.
20857 (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
20858 TARGET_LONG_JUMP_TABLE_OFFSETS.
20859 (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
20860 * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
20862 2017-01-06 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
20863 David Holsgrove <david.holsgrove@xilinx.com>
20865 * common/config/microblaze/microblaze-common.c
20866 (TARGET_EXCEPT_UNWIND_INFO): Remove.
20867 * config/microblaze/microblaze-protos.h (microblaze_eh_return):
20869 * config/microblaze/microblaze.c (microblaze_must_save_register)
20870 (microblaze_expand_epilogue, microblaze_return_addr): Handle
20872 (microblaze_eh_return): New function.
20873 * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
20874 (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
20875 (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
20876 * config/microblaze/microblaze.md (eh_return): New pattern.
20878 2017-01-06 Jakub Jelinek <jakub@redhat.com>
20880 * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
20881 GCC_DIAGNOSTIC_STRINGIFY): Define.
20883 * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
20885 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
20887 * config/arm/arm.md (<mcrr>): New.
20889 * config/arm/arm.c (arm_arch5te): New.
20890 (arm_option_override): Set arm_arch5te.
20891 (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
20893 * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
20894 (arm_mcrr_qualifiers): ... this. New.
20895 (MRRC_QUALIFIERS): Define to...
20896 (arm_mrrc_qualifiers): ... this. New.
20897 * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
20899 * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
20900 * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
20901 (MRRCI, mrrc, MRRC): New.
20902 * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
20903 VUNSPEC_MRRC2): New.
20905 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
20907 * config/arm/arm.md (<mcr>): New.
20909 * config/arm/arm.c (arm_coproc_builtin_available): Add
20910 support for mcr, mrc, mcr2 and mrc2.
20911 * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
20912 (arm_mcr_qualifiers): ... this. New.
20913 (MRC_QUALIFIERS): Define to ...
20914 (arm_mrc_qualifiers): ... this. New.
20915 (MCR_QUALIFIERS): Define to ...
20916 (arm_mcr_qualifiers): ... this. New.
20917 * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
20919 * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
20920 * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
20921 * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
20922 VUNSPEC_MRC2): New.
20924 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
20926 * config/arm/arm.md (*ldc): New.
20930 * config/arm/arm.c (arm_coproc_builtin_available): Add
20931 support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
20932 (arm_coproc_ldc_stc_legitimate_address): New.
20933 * config/arm/arm-builtins.c (arm_type_qualifiers): Add
20934 'qualifier_const_pointer'.
20935 (LDC_QUALIFIERS): Define to...
20936 (arm_ldc_qualifiers): ... this. New.
20937 (STC_QUALIFIERS): Define to...
20938 (arm_stc_qualifiers): ... this. New.
20939 * config/arm/arm-protos.h
20940 (arm_coproc_ldc_stc_legitimate_address): New.
20941 * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
20942 __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
20943 * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
20944 stc2, stcl, stc2l): New.
20945 * config/arm/constraints.md (Uz): New.
20946 * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
20947 * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
20948 VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
20949 VUNSPEC_STC2L): New.
20951 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
20953 * config/arm/arm.md (<cdp>): New.
20954 * config/arm/arm.c (neon_const_bounds): Rename this ...
20955 (arm_const_bounds): ... this.
20956 (arm_coproc_builtin_available): New.
20957 * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
20958 (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
20959 (CDP_QUALIFIERS): Define to...
20960 (arm_cdp_qualifiers): ... this. New.
20962 (arm_expand_builtin_args): Add case for 6 arguments.
20963 * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
20964 (arm_const_bounds): ... this.
20965 (arm_coproc_builtin_available): New.
20966 * config/arm/arm_acle.h (__arm_cdp): New.
20968 * config/arm/arm_acle_builtins.def (cdp): New.
20970 * config/arm/iterators.md (CDPI,CDP,cdp): New.
20971 * config/arm/neon.md: Rename all 'neon_const_bounds' to
20972 'arm_const_bounds'.
20973 * config/arm/types.md (coproc): New.
20974 * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
20975 * doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
20976 * doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
20977 arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
20979 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
20981 * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
20982 (UBINOP_QUALIFIERS): New.
20984 (acle_builtin_data): New. Change comment.
20985 (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
20986 ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
20987 ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
20988 arm_acle_builtins.def.
20989 (ARM_BUILTIN_ACLE_PATTERN_START): Define.
20990 (arm_init_acle_builtins): New.
20991 (CRC32_BUILTIN): Remove.
20992 (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
20993 crc32cb, crc32ch and crc32cw.
20994 (arm_init_crc32_builtins): Remove.
20995 (arm_init_builtins): Use arm_init_acle_builtins rather
20996 than arm_init_crc32_builtins.
20997 (arm_expand_acle_builtin): New.
20998 (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
20999 * config/arm/arm_acle_builtins.def: New.
21001 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
21003 * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
21004 (arm_builtin_datum): ... this.
21005 (arm_init_neon_builtin): Rename to ...
21006 (arm_init_builtin): ... this. Add a new parameters PREFIX
21007 and USE_SIG_IN_NAME.
21008 (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
21009 'arm_init_builtin'. Replace type 'neon_builtin_datum' with
21010 'arm_builtin_datum'.
21011 (arm_init_vfp_builtins): Likewise.
21012 (builtin_arg): Rename enum's replacing 'NEON_ARG' with
21013 'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
21014 (arm_expand_neon_args): Rename to ...
21015 (arm_expand_builtin_args): ... this. Rename builtin_arg
21016 enum values and differentiate between ARG_BUILTIN_MEMORY
21017 and ARG_BUILTIN_NEON_MEMORY.
21018 (arm_expand_neon_builtin_1): Rename to ...
21019 (arm_expand_builtin_1): ... this. Rename builtin_arg enum
21020 values, arm_expand_builtin_args and add bool parameter NEON.
21021 (arm_expand_neon_builtin): Use arm_expand_builtin_1.
21022 (arm_expand_vfp_builtin): Likewise.
21023 (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
21025 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
21027 PR middle-end/77484
21028 * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
21029 * predict.c (tree_estimate_probability_bb): Reverse direction of
21030 polymorphic call predictor.
21032 2017-01-06 David Malcolm <dmalcolm@redhat.com>
21034 * passes.c (execute_one_pass): Split out pass-skipping logic into...
21035 (determine_pass_name_match): ...this new function and...
21036 (should_skip_pass_p): ...this new function.
21038 2017-01-06 Nathan Sidwell <nathan@acm.org>
21040 * ipa-visibility.c (function_and_variable_visibility): Reformat
21041 comments and long lines. Remove extrneous if.
21042 * symtab.c (symtab_node::make_decl_local): Fix code format.
21043 (symtab_node::set_section_for_node): Fix comment typo.
21045 2017-01-06 Martin Liska <mliska@suse.cz>
21048 * lra-constraints.c: Rename invariant to lra_invariant.
21049 * predict.c (set_even_probabilities): Initialize e to NULL.
21051 2017-01-05 Martin Sebor <msebor@redhat.com>
21053 PR tree-optimization/78910
21054 * gimple-ssa-sprintf.c (tree_digits): Add an argument.
21055 (format_integer): Correct off-by-one error in the handling
21056 of precision with negative numbers in signed conversions..
21058 2017-01-05 Eric Botcazou <ebotcazou@adacore.com>
21060 * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
21062 2017-01-05 Jakub Jelinek <jakub@redhat.com>
21064 PR tree-optimization/71016
21065 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
21066 factor_out_conditional_conversion. Formatting fix.
21067 (factor_out_conditional_conversion): Add cond_stmt argument.
21068 If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
21069 cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
21072 2017-01-05 David Malcolm <dmalcolm@redhat.com>
21074 * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
21075 read-rtl-function.o, and selftest-rtl.o.
21076 * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
21077 (selftest::aarch64_test_loading_full_dump): New function.
21078 (selftest::aarch64_run_selftests): New function.
21079 (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
21080 selftest::aarch64_run_selftests.
21081 * config/i386/i386.c
21082 (selftest::ix86_test_loading_dump_fragment_1): New function.
21083 (selftest::ix86_test_loading_call_insn): New function.
21084 (selftest::ix86_test_loading_full_dump): New function.
21085 (selftest::ix86_test_loading_unspec): New function.
21086 (selftest::ix86_run_selftests): Call the new functions.
21087 * emit-rtl.c (maybe_set_max_label_num): New function.
21088 * emit-rtl.h (maybe_set_max_label_num): New decl.
21089 * function.c (instantiate_decls): Guard call to
21090 instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
21091 * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
21093 * gensupport.c (gen_reader::gen_reader): Pass "false"
21094 for new "compact" param of rtx_reader.
21095 * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
21096 rather than an empty string for NULL strings.
21097 * read-md.c: Potentially include config.h rather than bconfig.h.
21098 Wrap include of errors.h with #ifdef GENERATOR_FILE.
21099 (have_error): New global, copied from errors.c.
21100 (md_reader::read_name): Rename to...
21101 (md_reader::read_name_1): ...this, adding "out_loc" param,
21102 and converting "missing name or number" to returning false, rather
21104 (md_reader::read_name): Reimplement in terms of read_name_1.
21105 (md_reader::read_name_or_nil): New function.
21106 (md_reader::read_string): Handle "(nil)" by returning NULL.
21107 (md_reader::md_reader): Add new param "compact".
21108 (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
21109 (md_reader::read_file): New method.
21110 * read-md.h (md_reader::md_reader): Add new param "compact".
21111 (md_reader::read_file): New method.
21112 (md_reader::is_compact): New accessor.
21113 (md_reader::read_name): Convert return type from void to file_location.
21114 (md_reader::read_name_or_nil): New decl.
21115 (md_reader::read_name_1): New decl.
21116 (md_reader::m_compact): New field.
21117 (noop_reader::noop_reader): Pass "false" for new "compact" param
21119 (rtx_reader::rtx_reader): Add new "compact" param.
21120 (rtx_reader::read_rtx_operand): Make virtual and convert return
21121 type from void to rtx.
21122 (rtx_reader::read_until): New decl.
21123 (rtx_reader::handle_any_trailing_information): New virtual function.
21124 (rtx_reader::postprocess): New virtual function.
21125 (rtx_reader::finalize_string): New virtual function.
21126 (rtx_reader::m_in_call_function_usage): New field.
21127 (rtx_reader::m_reuse_rtx_by_id): New field.
21128 * read-rtl-function.c: New file.
21129 * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
21130 * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
21131 (selftest::verify_three_block_rtl_cfg): New decl.
21132 * read-rtl-function.h: New file.
21133 * read-rtl.c: Potentially include config.h rather than bconfig.h.
21134 For host, include function.h, memmodel.h, and emit-rtl.h.
21135 (one_time_initialization): New function.
21136 (struct compact_insn_name): New struct.
21137 (compact_insn_names): New array.
21138 (find_code): Handle insn codes in compact dumps.
21139 (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
21140 (bind_subst_iter_and_attr): Likewise.
21141 (add_condition_to_string): Likewise.
21142 (add_condition_to_rtx): Likewise.
21143 (apply_attribute_uses): Likewise.
21144 (add_current_iterators): Likewise.
21145 (apply_iterators): Likewise.
21146 (initialize_iterators): Guard usage of apply_subst_iterator with
21147 #ifdef GENERATOR_FILE.
21148 (read_conditions): Wrap with #ifdef GENERATOR_FILE.
21149 (md_reader::read_mapping): Likewise.
21150 (add_define_attr_for_define_subst): Likewise.
21151 (add_define_subst_attr): Likewise.
21152 (read_subst_mapping): Likewise.
21153 (check_code_iterator): Likewise.
21154 (rtx_reader::read_rtx): Likewise. Move one-time initialization
21156 (one_time_initialization): New function.
21157 (rtx_reader::read_until): New method.
21158 (read_flags): New function.
21159 (parse_reg_note_name): New function.
21160 (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
21161 Handle reuse_rtx ids.
21162 Wrap iterator lookup within #ifdef GENERATOR_FILE.
21163 Add parsing support for RTL dumps, mirroring the special-cases in
21164 print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
21165 values, and calling handle_any_trailing_information.
21166 (rtx_reader::read_rtx_operand): Convert return type from void
21167 to rtx, returning return_rtx. Handle case 'e'. Call
21168 finalize_string on XSTR and XTMPL fields.
21169 (rtx_reader::read_nested_rtx): Handle dumps in which trailing
21170 "(nil)" values were omitted. Call the postprocess vfunc on the
21172 (rtx_reader::rtx_reader): Add new "compact" param and pass to base
21173 class ctor. Initialize m_in_call_function_usage. Call
21174 one_time_initialization.
21175 * rtl-tests.c (selftest::test_uncond_jump): Call
21176 set_new_first_and_last_insn.
21177 * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
21178 * selftest-rtl.c: New file.
21179 * selftest-rtl.h (class selftest::rtl_dump_test): New class.
21180 (selftest::get_insn_by_uid): New decl.
21181 * selftest-run-tests.c (selftest::run_tests): Call
21182 read_rtl_function_c_tests.
21183 * selftest.h (selftest::read_rtl_function_c_tests): New decl.
21184 * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
21187 2017-01-05 Uros Bizjak <ubizjak@gmail.com>
21189 * config/i386/i386.md (*testqi_ext_3): No need to handle memory
21190 operands in a special way. Assert that pos+len <= mode precision.
21192 2017-01-05 Jakub Jelinek <jakub@redhat.com>
21194 * common.opt (fvect-cost-model): Remove RejectNegative flag, use
21195 3 argument Alias with unlimited for the negative form.
21196 (fno-vect-cost-model): Removed.
21198 2017-01-05 Martin Liska <mliska@suse.cz>
21200 * hsa-gen.c (gen_hsa_divmod): New function.
21201 (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
21203 2017-01-05 Martin Liska <mliska@suse.cz>
21206 * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
21209 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21211 * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
21212 small constant length operands.
21214 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21216 * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
21217 between loop iterations.
21219 2017-01-05 Martin Liska <mliska@suse.cz>
21222 * gimplify.c (gimplify_decl_expr): Compare to
21223 asan_poisoned_variables instread of checking flags.
21224 (gimplify_target_expr): Likewise.
21225 (gimplify_expr): Likewise.
21226 (gimplify_function_tree): Conditionally initialize
21227 asan_poisoned_variables.
21229 2017-01-04 Jeff Law <law@redhat.com>
21231 PR tree-optimizatin/78812
21232 * rtl.h (contains_mem_rtx_p): Prototype.
21233 * ifcvt.c (containts_mem_rtx_p): Move from here to...
21234 * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
21235 * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
21236 and prune MEMs that are not at the toplevel of a SET_SRC rtx. Look
21237 through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
21239 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
21241 * input.c (assert_char_at_range): Default-initialize actual_range.
21243 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
21245 * df-scan.c (df_ref_create_structure): Make regno unsigned,
21246 to match the caller.
21248 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
21250 * cfgexpand.c (expand_gimple_basic_block): Disregard debug
21251 insns after final jump in test to emit dummy move.
21253 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
21255 * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
21256 * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
21258 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
21260 * multiple_target.c (create_dispatcher_calls): Init e_next.
21261 * tree-ssa-loop-split.c (split_loop): Init border.
21262 * tree-vect-loop.c (vect_determine_vectorization_factor): Init
21265 2017-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
21270 * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
21271 (altivec_register_operand): Do not return true if the operand
21272 contains a SUBREG mixing SImode and SFmode.
21273 (vsx_register_operand): Likewise.
21274 (vsx_reg_sfsubreg_ok): New predicate.
21275 (vfloat_operand): Do not return true if the operand contains a
21276 SUBREG mixing SImode and SFmode.
21277 (vint_operand): Likewise.
21278 (vlogical_operand): Likewise.
21279 (gpc_reg_operand): Likewise.
21280 (int_reg_operand): Likewise.
21281 * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
21282 * config/rs6000/rs6000.c (valid_sf_si_move): New function to
21283 determine if a MOVSI or MOVSF operation contains SUBREGs that mix
21285 (rs6000_emit_move_si_sf_subreg): New helper function.
21286 (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
21287 fixup SUBREGs involving SImode and SFmode.
21288 * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
21289 numbers for the new peephole2 optimization.
21290 (peephole2 for SFmode unions): New peephole2 to optimize cases in
21291 the GLIBC math library that do AND/IOR/XOR operations on single
21292 precision floating point.
21293 * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
21294 target macros to say whether we need to avoid SUBREGs mixing
21296 (TARGET_ALLOW_SF_SUBREG): Likewise.
21297 * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
21298 (UNSPEC_SI_FROM_SF): Likewise.
21299 (iorxor): Change spacing.
21300 (and_ior_xor): New iterator for AND, IOR, and XOR.
21301 (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
21302 (movdi_from_sf_zero_ext): Likewise.
21303 (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
21304 instead of gpc_reg_operand. Add SImode/SFmode SUBREG support.
21305 (movsf_from_si): New insn for SImode/SFmode SUBREG support.
21306 (fma<mode>4): Use gpc_reg_operand instead of register_operand.
21307 (fms<mode>4): Likewise.
21308 (fnma<mode>4): Likewise.
21309 (fnms<mode>4): Likewise.
21310 (nfma<mode>4): Likewise.
21311 (nfms<mode>4): Likewise.
21313 2017-01-04 Marek Polacek <polacek@redhat.com>
21316 * doc/invoke.texi: Document -Wpointer-compare.
21318 2017-01-04 Jakub Jelinek <jakub@redhat.com>
21320 * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
21323 * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
21324 descriptions for -gdwarf-5 and emit them as uleb128 instead of
21327 2017-01-04 Kelvin Nilsen <kelvin@gcc.gnu.org>
21330 * doc/sourcebuild.texi (PowerPC-specific attributes): Add
21331 documentation of the powerpc_popcntb_ok attribute.
21332 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
21333 code to issue warning messages if a requested CPU configuration is
21334 not supported by the binary (assembler and loader) toolchain.
21335 (spe_init_builtins): Add two assertions to prevent ICE if attempt is
21336 made to define a built-in function that has been disabled.
21337 (paired_init_builtins): Add assertion to prevent ICE if attempt is
21338 made to define a built-in function that has been disabled.
21339 (altivec_init_builtins): Add comment explaining why definition
21340 of the DST built-in functions is not preceded by an assertion
21341 check. Add assertions to prevent ICE if attempts are made to
21342 define an altivec predicate or an abs* built-in function that has
21344 (htm_init_builtins): Add comment explaining why definition of the
21345 htm built-in functions is not preceded by an assertion check.
21347 2017-01-04 Jeff Law <law@redhat.com>
21349 PR tree-optimizatin/67955
21350 * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
21351 Allow any SSA_VAR_P as the base objects. Use integer_zerop. Verify
21352 the points-to solution does not include pt_null. Use DECL_PT_UID
21355 2017-01-04 Uros Bizjak <ubizjak@gmail.com>
21357 * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
21358 Use gen_int_mode instead of gen_lopwart for const_int operands.
21360 2017-01-04 Jakub Jelinek <jakub@redhat.com>
21362 PR tree-optimization/71563
21363 * match.pd: Simplify X << Y into X if Y is known to be 0 or
21364 out of range value - has low bits known to be zero.
21366 2017-01-04 Alan Modra <amodra@gmail.com>
21368 * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
21369 * configure: Regenerate.
21370 * config.in: Regenerate.
21372 2017-01-04 Jakub Jelinek <jakub@redhat.com>
21375 * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
21376 a substring of the message, but strcmp with the whole message. Ifdef
21377 ENABLE_NLS, translate the message first using dgettext.
21379 2017-01-03 Jeff Law <law@redhat.com>
21381 PR tree-optimizatin/78856
21382 * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
21383 (mark_threaded_blocks): Remove code to truncate thread paths that
21384 cross multiple loop headers. Instead invalidate the cached loop
21385 iteration information and handle case of a thread path walking
21386 into an irreducible region.
21388 2017-01-03 Michael Meissner <meissner@linux.vnet.ibm.com>
21391 * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
21392 assertions. Add support for doing the signbit if the IEEE 128-bit
21393 floating point value is in a GPR.
21394 * config/rs6000/rs6000.md (Fsignbit): Delete.
21395 (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
21396 Update the length attribute if the value is in a GPR.
21397 (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
21398 the sign or zero extension instruction, since the value is always 0/1.
21399 (signbit<mode>2_dm2): Delete using <Fsignbit>.
21402 * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
21403 extracting SImode to a GPR register so that we can generate a
21404 store, limit the vector to be in a traditional Altivec register
21405 for the vextuwrx instruction.
21407 2017-01-03 Ian Lance Taylor <iant@google.com>
21409 * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
21411 2017-01-03 Martin Sebor <msebor@redhat.com>
21413 PR tree-optimization/78696
21414 * gimple-ssa-sprintf.c (format_floating): Correct handling of
21415 precision. Use MPFR for %f for greater fidelity. Correct handling
21417 (pass_sprintf_length::compute_format_length): Set width and precision
21418 specified by asrerisk to void_node for vararg functions.
21419 (try_substitute_return_value): Adjust dump output.
21421 2017-01-03 David Edelsohn <dje.gcc@gmail.com>
21423 * doc/invoke.texi (RS6000 options): LRA is enabled by default.
21425 2017-01-03 Eric Botcazou <ebotcazou@adacore.com>
21427 * doc/invoke.texi (SPARC options): Document -mlra as the default.
21428 * config/sparc/sparc.c (sparc_option_override): Force LRA unless
21429 -mlra/-mno-lra was passed to the compiler.
21431 2017-01-03 James Cowgill <James.Cowgill@imgtec.com>
21433 PR rtl-optimization/65618
21434 * emit-rtl.c (try_split): Move initialization of "before" and
21435 "after" to just before the call to emit_insn_after_setloc.
21437 2017-01-03 Gerald Pfeifer <gerald@pfeifer.com>
21439 * doc/md.texi (Standard Names): Remove reference to Java frontend.
21441 2017-01-03 Pierre-Marie de Rodat <derodat@adacore.com>
21443 * dwarf2out.c (gen_enumeration_type_die): When
21444 -gno-strict-dwarf, add a DW_AT_encoding attribute.
21446 2017-01-03 Jakub Jelinek <jakub@redhat.com>
21448 PR tree-optimization/78965
21449 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
21450 Change first argument from const call_info & to call_info &. For %n
21451 set info.nowrite to false.
21453 PR middle-end/78901
21454 * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
21455 possibly throwing calls.
21457 * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
21458 and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
21459 and fns handling, rather than in a separate case SSA_NAME.
21461 2017-01-02 Jeff Law <law@redhat.com>
21463 * config/darwin-driver.c (darwin_driver_init): Const-correctness
21464 fixes for first_period and second_period variables.
21466 2017-01-02 Uros Bizjak <ubizjak@gmail.com>
21469 * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
21470 (*insvqi_1): New insn pattern.
21471 (*insvqi_1_mem_rex64): Ditto.
21472 (*insvqi_2): Ditto.
21473 (*insvqi_3): Rename from *insvqi.
21475 (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
21477 2017-01-02 Gerald Pfeifer <gerald@pfeifer.com>
21479 * doc/cfg.texi (Edges): Remove reference to Java.
21480 (Maintaining the CFG): Ditto.
21482 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
21484 PR middle-end/77674
21485 * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
21486 transparent aliases.
21488 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
21490 PR middle-end/77484
21491 * predict.def (PRED_CALL): Update hitrate.
21492 (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
21493 * predict.c (tree_estimate_probability_bb): Split CALL predictor
21494 into direct/indirect/polymorphic variants.
21496 2017-01-01 Jakub Jelinek <jakub@redhat.com>
21498 Update copyright years.
21500 * gcc.c (process_command): Update copyright notice dates.
21501 * gcov-dump.c (print_version): Ditto.
21502 * gcov.c (print_version): Ditto.
21503 * gcov-tool.c (print_version): Ditto.
21504 * gengtype.c (create_file): Ditto.
21505 * doc/cpp.texi: Bump @copying's copyright year.
21506 * doc/cppinternals.texi: Ditto.
21507 * doc/gcc.texi: Ditto.
21508 * doc/gccint.texi: Ditto.
21509 * doc/gcov.texi: Ditto.
21510 * doc/install.texi: Ditto.
21511 * doc/invoke.texi: Ditto.
21513 Copyright (C) 2017 Free Software Foundation, Inc.
21515 Copying and distribution of this file, with or without modification,
21516 are permitted in any medium without royalty provided the copyright
21517 notice and this notice are preserved.