1 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
5 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
6 Return false for variable DImode shifts.
7 (dimode_scalar_chain::compute_convert_gain): Do not handle
8 register count operand in variable DImode shifts.
9 (dimode_scalar_chain::make_vector_copies): Remove support to copy
10 count argument of a variable shift instruction to a vector register.
11 (dimode_scalar_chain::convert_reg): Remove support to convert
12 count argument of a variable shift instruction.
14 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
16 PR rtl-optimization/84206
17 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
18 iterating over loop headers.
20 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
22 PR rtl-optimization/85876
23 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
24 beyond the original fence.
26 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
28 * config.gcc: Mark spu* targets as deprecated/obsolete.
30 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
32 * config/s390/s390-builtin-types.def: New builtin function type
33 definitions. Remove unused types.
34 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
35 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
36 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
38 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
39 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
40 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
41 (vec_double, vec_signed, vec_unsigned): Define to use the new
43 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
46 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
48 * config/s390/s390-builtin-types.def: New builtin function type
50 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
51 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
52 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
53 (s390_vstrszh, s390_vstrszf): New low-level builtins.
54 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
56 * config/s390/vecintrin.h (vec_search_string_cc)
57 (vec_search_string_until_zero_cc): New builtin name definitions.
58 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
60 ("vec_vstrs<mode>"): New insn definition.
62 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
64 * config/s390/s390-builtin-types.def: Add new builtin function
66 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
67 New overloaded builtins.
68 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
70 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
71 (UNSPEC_VEC_SLDBYTE): ... this.
72 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
73 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
75 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
76 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
77 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
79 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
81 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
83 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
84 * config/s390/vector.md (V_HW_HSD): ... here.
86 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
88 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
89 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
90 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
91 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
94 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
96 * config/s390/s390-builtin-types.def: Add new builtin function type.
97 * config/s390/s390-builtins.def: Add overloaded builtin
98 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
99 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
100 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
101 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
102 ("eltswap<mode>"): New expander.
103 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
106 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
108 * config/s390/s390-builtin-types.def: Add new builtin function types.
109 * config/s390/s390-builtins.def: Add overloaded builtin
110 s390_vec_revb. Add low-level builtins for vlbr and vstbr
112 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
113 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
114 ("bswap<mode>"): New expander.
115 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
117 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
119 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
120 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
121 vector builtin version number in __VEC__.
123 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
125 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
127 (SFSI): New mode attribute.
128 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
129 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
131 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
132 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
133 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
134 ("floatsi<mode>2"): Add wcefb instruction.
136 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
138 * config/s390/s390.md ("xde"): Extend mode attribute to vector
140 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
142 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
143 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
144 support 32 bit fp-int conversions. Rename to ...
145 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
146 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
147 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
148 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
151 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
153 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
154 if-then-else constructs if we can use the select instruction.
155 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
157 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
159 * config/s390/s390.md ("*popcountdi_arch13_cc")
160 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
162 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
163 Append _z196 to make it ...
164 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
165 ("popcounthi2_z196"): ... this.
166 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
167 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
169 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
171 * config/s390/s390.c (s390_canonicalize_comparison): Convert
172 certain compares for arch13 in order to make use of the condition
173 code result produced by the new instructions.
174 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
175 nxrk, and nxgrk instruction patterns.
176 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
177 (inv_no): Add new code iterator together with some attributes.
178 ("*andc_split_<mode>"): Disable splitter for arch13.
179 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
180 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
181 ("*<ANDOR:bitops_name>c<GPR:mode>")
182 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
183 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
184 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
185 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
187 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
189 * common/config/s390/s390-common.c (processor_flags_table): New
191 * config.gcc: Support arch13 with the --with-arch= configure flag.
192 * config/s390/driver-native.c (s390_host_detect_local_cpu):
193 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
194 * config/s390/s390.c (s390_get_sched_attrmask)
195 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
196 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
197 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
198 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
199 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
201 * config/s390/s390.opt: Support arch13 as processor type in
202 command line options.
204 2019-04-02 Martin Liska <mliska@suse.cz>
207 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
208 Fix param description of graphite-max-arrays-per-scop.
210 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
212 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
213 (ASAN_CC1_SPEC): Use it in 64-bit mode.
214 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
216 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
218 PR rtl-optimization/85412
219 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
220 sel_sched_region_1, not after.
222 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
224 PR rtl-optimization/86928
225 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
226 compute_live if necessary.
227 (sel_redirect_edge_and_branch): Likewise.
229 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
231 PR rtl-optimization/89865
232 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
233 register if it is a part of small class.
235 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
237 PR rtl-optimization/87273
238 * sel-sched-ir.c (merge_fences): Remove assert.
240 2019-04-01 Richard Biener <rguenther@suse.de>
242 PR tree-optimization/46590
243 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
244 (dom_walker::m_reachability): Add in place of...
245 (dom_walker::m_skip_unreachable_blocks): ...this.
246 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
247 Move complex initialization ...
248 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
249 lazily and initialize edge flags on each invocation.
250 (dom_walker::bb_reachable): Use m_reachability.
252 2019-04-01 Martin Liska <mliska@suse.cz>
255 * opt-suggestions.c (option_proposer::build_option_suggestions):
256 Add variant without any argument in order to provide better
259 2019-04-01 Richard Biener <rguenther@suse.de>
262 * gimple.c: Include langhooks.h.
263 (gimple_get_alias_set): Treat enumeral types as the underlying
266 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
267 Eric Botcazou <ebotcazou@adacore.com>
269 PR rtl-optimization/89862
270 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
271 that operates on the full registers for WORD_REGISTER_OPERATIONS
274 2019-03-29 Jim Wilson <jimw@sifive.com>
276 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
277 Clear MASK_RVC and then set if C subset supported.
279 2019-03-29 Jakub Jelinek <jakub@redhat.com>
282 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
283 non-addressable complit into its initializer if it is volatile.
285 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
287 * opts-common.c (integral_argument): Set errno properly in one case.
289 2019-03-29 Martin Liska <mliska@suse.cz>
291 * doc/invoke.texi: Remove -Wchkp from documentation.
293 2019-03-29 Martin Liska <mliska@suse.cz>
295 * dbgcnt.c (print_limit_reach): New function.
298 2019-03-29 Martin Liska <mliska@suse.cz>
300 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
301 (dbg_cnt_process_opt): Parse first tokens aas
302 dbg_cnt_process_single_pair is also using strtok.
304 2019-03-29 Jakub Jelinek <jakub@redhat.com>
306 PR rtl-optimization/87485
307 * function.c (expand_function_end): Move stack_protect_epilogue
308 before loading of return value into hard register(s).
310 2019-03-28 Jakub Jelinek <jakub@redhat.com>
313 * tree-inline.h (struct copy_body_data): Add
314 dont_remap_vla_if_no_change flag.
315 * tree-inline.c (remap_type_3, remap_type_2): New functions.
316 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
317 and remap_type_2 returns false.
318 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
319 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
320 only from where it is copied to nested contexts.
322 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
325 * config/i386/i386.md (RMW operation with LEA peephole):
326 Use LEAMODE mode attribute instead of SWI mode iterator for
329 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
332 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
333 Also process XEXP (src, 0) of a shift insn.
335 2019-03-28 David Malcolm <dmalcolm@redhat.com>
338 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
339 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
341 2019-03-28 Jakub Jelinek <jakub@redhat.com>
343 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
345 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
346 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
347 immediately after first one with df_analyze in between, but rather
348 process all bbs, queueing ones that need second pass in a worklist,
349 df_analyze, process queued debug insn changes and if second pass is
350 needed, process bbs from worklist, df_analyze, process queued debug
353 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
354 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
355 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
357 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
360 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
363 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
366 * config/i386/i386.c (ix86_function_value_1): Call the newly added
367 function for 32-bit MS_ABI.
368 (function_value_ms_32): New function.
370 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
372 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
373 (movdi): Call gen_movdi_symbol_save_scc.
374 (gen_movdi_symbol_save_scc): New insn and split.
376 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
378 PR rtl-optimization/89313
379 * function.c (matching_constraint_num): New static function.
380 (match_asm_constraints_1): Use it. Fixup white space and comment.
381 Don't replace inputs with non-matching constraints which conflict
382 with early clobber outputs.
384 2019-03-27 Jeff Law <law@redhat.com>
387 PR rtl-optimization/87761
388 PR rtl-optimization/89826
389 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
391 (pass_cprop_hardreg::execute): Call df_analyze after adding the
392 note problem to get REG_DEAD/REG_UNUSED notes updated.
394 2019-03-27 Richard Biener <rguenther@suse.de>
396 PR tree-optimization/89463
397 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
398 queue edges to remove.
399 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
400 dead stmts. Delay edge removal until PHIs are removed to
401 make debug-stmt creation not confused by seemingly degenerate
404 2019-03-27 Alan Modra <amodra@gmail.com>
406 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
408 * config/rs6000/darwin.h: Likewise.
409 * config/rs6000/rs6000.c: Likewise.
411 2019-03-27 Alan Modra <amodra@gmail.com>
413 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
414 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
416 2019-03-26 Andrew Waterman <andrew@sifive.com>
417 Jim Wilson <jimw@sifive.com>
419 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
420 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
421 (generic_idivdi, generic_fmul_single, generic_fmul_double)
422 (generic_fdiv, generic_fsqrt): Add check for generic tune.
423 (generic_alu): Add auipc to type list.
424 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
425 (riscv_microarchitecture): Declare.
426 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
427 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
429 (riscv_microarchitecture): New.
430 (sifive_7_tune_info): New.
431 (riscv_cpu_info_table): Add microarchitecture value for rocket and
432 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
434 (riscv_store_data_bypass_p): New.
435 (riscv_option_override): Set riscv_microarchitecture from
436 cpu->microarchitecture.
437 * config/riscv/riscv.md: Include sifive-7.md.
440 (auipc<mode>): Change type to auipc.
441 (restore_stack_nonlocal): New.
442 * config/riscv/sifive-7.md: New.
443 * doc/invoke.texi (RISC-V Options): Update mtune docs.
445 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
448 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
449 Also process XEXP (src, 0) of a shift insn.
451 2019-03-26 Richard Biener <rguenther@suse.de>
453 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
454 (copy_debug_stmt): Likewise.
455 (expand_call_inline): Likewise.
456 (copy_bb): Avoid redundant lookup & set of gimple_block.
457 * gimple-low.c (lower_gimple_return): Likewise.
458 (lower_builtin_setjmp): Likewise.
460 2019-03-26 Jakub Jelinek <jakub@redhat.com>
462 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
463 is constant 0, turn into static const data member initialized to false.
464 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
465 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
467 2019-03-26 Jason Merrill <jason@redhat.com>
468 Jakub Jelinek <jakub@redhat.com>
470 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
472 (mem_alloc_description::release_object_overhead): Fix comment typos.
473 * hash-table.h (hash_table::~hash_table): Call
474 release_instance_overhead only if m_entries is non-NULL, otherwise
475 call unregister_descriptor.
477 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
479 PR tree-optimization/81740
480 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
481 In case of outer loop vectorization, check for backward dependence
482 at the inner loop if outer loop dependence is reversed.
484 2019-03-26 Alan Modra <amodra@gmail.com>
486 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
487 rs6000_vector_mem init. Correct wI and wJ comment.
489 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
491 PR rtl-optimization/88347
492 PR rtl-optimization/88423
493 * sched-deps.c (sched_analyze_insn): Take into account that for
494 tablejumps the barrier appears after a label and a jump_table_data.
496 2019-03-25 Martin Sebor <msebor@redhat.com>
499 * c-common.c (check_user_alignment): Rename local. Correct maximum
500 alignment in diagnostic. Avoid assuming argument fits in SHWI,
501 convert it to UHWI when it fits.
503 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
506 * dwarf2out.c (premark_used_variables): New function.
507 (prune_unused_types_walk): Do not mark not premarked external
509 (prune_unused_types): Call premark_used_variables.
511 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
513 PR rtl-optimization/89676
514 * lra-constraints.c (curr_insn_transform): Do match reload for
515 early clobbers when the match was successful only for different
518 2019-03-25 Martin Sebor <msebor@redhat.com>
520 * doc/extend.texi (Common Type Attributes): Document vector_size.
521 (Common Variable Attributes): Mention size constraint. Correct
523 (Vector Extensions): Use @dfn when defining bas type. Clarify
524 base type and size constraints.
526 2019-03-25 Richard Biener <rguenther@suse.de>
528 PR tree-optimization/89789
529 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
530 changes from non-undefined back to undefined.
532 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
534 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
535 heap string and a gc string, but since this variable is unknown to
536 ggc the gc string might get reused and corrupted. Fixed by always
539 2019-03-25 Richard Biener <rguenther@suse.de>
541 PR tree-optimization/89779
542 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
543 to remove IV defs, delay actual removal.
544 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
545 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
546 very end, properly also reset loop control IV information.
548 2019-03-25 Richard Biener <rguenther@suse.de>
550 PR tree-optimization/89802
551 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
552 move EH data to folded stmt.
554 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
556 * config/s390/s390-builtin-types.def: Remove few unused types and
557 fix sort order for others.
559 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
561 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
562 expected and found types with -mdebug during builtin matching.
564 2019-03-25 Richard Biener <rguenther@suse.de>
567 * fold-const.c (operand_equal_p): Revert last change with
570 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
572 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
573 notes for the result of the __tls_get_addr calls.
574 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
576 2019-03-24 Jeff Law <law@redhat.com>
578 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
580 PR rtl-optimization/87761
581 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
582 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
584 (pass_cprop_hardreg::execute): Add df note problem and defer insn
585 rescans. Reprocess blocks as needed, calling df_analyze before
586 reprocessing. Always call df_analyze before fixing up debug bind
589 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
591 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
594 2019-03-22 Andrew Pinski <apinski@marvell.com>
596 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
599 2019-03-26 Jeff Law <law@redhat.com>
601 PR rtl-optimization/87761
602 * config/mips/mips-protos.h (mips_split_move): Add new argument.
603 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
604 (mips_split_move): Accept new INSN argument. Try to forward SRC
605 into the next instruction.
606 (mips_split_move_insn): Pass INSN through to mips_split_move.
608 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
610 PR rtl-optimization/89676
611 * lra-constraints.c (curr_insn_transform): Do match reload for
612 early clobbers even if the match was successful.
614 2019-03-22 Jakub Jelinek <jakub@redhat.com>
617 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
619 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
621 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
623 2019-03-22 Jakub Jelinek <jakub@redhat.com>
625 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
626 <avx512>_fmsub_<mode>_mask3<round_name>,
627 <avx512>_fnmadd_<mode>_mask3<round_name>,
628 <avx512>_fnmsub_<mode>_mask3<round_name>,
629 avx512f_vmfmadd_<mode>_mask3<round_name>,
630 avx512f_vmfmsub_<mode>_mask3<round_name>,
631 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
632 instead of register_operand and %v instead of v for match_operand 1.
633 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
634 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
635 <round_nimm_predicate> instead of register_operand and %v instead of v
638 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
639 <avx512>_fmadd_<mode>_mask3<round_name>,
640 <avx512>_fmsub_<mode>_mask<round_name>,
641 <avx512>_fmsub_<mode>_mask3<round_name>,
642 <avx512>_fnmadd_<mode>_mask<round_name>,
643 <avx512>_fnmadd_<mode>_mask3<round_name>,
644 <avx512>_fnmsub_<mode>_mask<round_name>,
645 <avx512>_fnmsub_<mode>_mask3<round_name>,
646 <avx512>_fmaddsub_<mode>_mask<round_name>,
647 <avx512>_fmaddsub_<mode>_mask3<round_name>,
648 <avx512>_fmsubadd_<mode>_mask<round_name>,
649 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
650 <round_nimm_predicate> instead of nonimmediate_operand.
651 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
652 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
653 Use register_operand instead of <round_nimm_predicate> for the
654 operand that needs to match output.
655 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
656 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
657 Likewise. Formatting fixes.
660 * config/i386/i386.c (enum ix86_builtins): Remove
661 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
662 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
663 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
664 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
665 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
666 __builtin_ia32_vfmsubss3_mask3): New builtins.
667 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
668 avx512f_vmfmadd_<mode>_mask3<round_name>,
669 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
670 *avx512f_vmfmsub_<mode>_mask<round_name>,
671 avx512f_vmfmsub_<mode>_mask3<round_name>,
672 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
673 *avx512f_vmfnmadd_<mode>_mask<round_name>,
674 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
675 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
676 *avx512f_vmfnmsub_<mode>_mask<round_name>,
677 avx512f_vmfnmsub_<mode>_mask3<round_name>,
678 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
679 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
680 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
681 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
682 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
683 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
684 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
685 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
686 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
687 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
688 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
689 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
690 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
691 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
692 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
693 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
694 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
695 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
696 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
697 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
698 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
699 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
701 2019-03-21 Martin Sebor <msebor@redhat.com>
703 PR tree-optimization/89350
704 * builtins.c (compute_objsize): Also ignore offsets whose upper
706 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
707 (builtin_memref::builtin_memref): Initialize new member.
708 Allow EXPR to be null.
709 (builtin_memref::extend_offset_range): Replace local with a member.
710 Avoid assuming pointer offsets are unsigned.
711 (builtin_memref::set_base_and_offset): Determine base object
712 before computing offset range.
713 (builtin_access::builtin_access): Handle memset.
714 (builtin_access::generic_overlap): Replace local with a member.
715 (builtin_access::strcat_overlap): Same.
716 (builtin_access::overlap): Same.
717 (maybe_diag_overlap): Same.
718 (maybe_diag_access_bounds): Same.
719 (wrestrict_dom_walker::check_call): Handle memset.
720 (check_bounds_or_overlap): Same.
722 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
723 Jakub Jelinek <jakub@redhat.com>
726 * tree.c (fld_type_variant, fld_incomplete_type_of,
727 fld_process_array_type): Call fld->pset.add and don't call
728 add_tree_to_fld_list if it returns true.
729 (free_lang_data_in_type): Similarly with self-recursive call. Purge
730 non-marked types from TYPE_NEXT_VARIANT list.
731 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
733 2019-03-21 Jakub Jelinek <jakub@redhat.com>
735 * hash-table.h (hash_table): Add Lazy template parameter defaulted
736 to false, if true, don't alloc_entries during construction, but defer
737 it to the first method that needs m_entries allocated.
738 (hash_table::hash_table, hash_table::~hash_table,
739 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
740 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
741 hash_table::clear_slot, hash_table::traverse_noresize,
742 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
743 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
745 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
746 NO_INSERT instead of find_with_hash.
747 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
748 hash_set::m_table): Add Lazy to template params of hash_table.
749 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
750 * attribs.c (test_attribute_exclusions): Likewise.
751 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
752 hash_set. Add tests for hash_set with Lazy = true.
754 2019-03-21 Richard Biener <rguenther@suse.de>
756 PR tree-optimization/89779
757 * tree.c (tree_nop_conversion): Consolidate and fix defensive
758 checks with respect to released SSA names now having error_mark_node
760 * fold-const.c (operand_equal_p): Likewise.
762 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
765 * config/s390/s390.c (global_not_special_regno_p): Move to make it
767 (s390_optimize_register_info): Use global_not_special_regno_p to
768 check for global regs.
770 2019-03-20 Jakub Jelinek <jakub@redhat.com>
773 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
774 update this_alternative nor this_alternative_set.
776 2019-03-19 Jim Wilson <jimw@sifive.com>
779 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
780 align, size, offset. Use them to handle a BLKmode reference. Update
782 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
784 2019-03-19 Jakub Jelinek <jakub@redhat.com>
786 PR rtl-optimization/89768
787 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
789 (unroll_loop_runtime_iterations): Likewise.
791 2019-03-19 Martin Sebor <msebor@redhat.com>
793 PR tree-optimization/89644
794 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
795 rather than endptr as an indicator of nul-termination.
797 PR tree-optimization/89644
798 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
799 arrays in determining sequence sizes in strncpy and stpncpy.
801 2019-03-19 Martin Liska <mliska@suse.cz>
804 * predict.c (combine_predictions_for_bb): Empty likely_edges and
805 unlikely_edges if there's an edge that belongs to both these sets.
807 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
810 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
811 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
812 go via a stack temporary.
814 2019-03-19 Jakub Jelinek <jakub@redhat.com>
817 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
818 instead of gen_rtx_SUBREG.
819 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
821 2019-03-19 Richard Biener <rguenther@suse.de>
824 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
826 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
830 * tree.c (free_lang_data_in_decl): Do not free context of C++
833 2019-03-19 Jakub Jelinek <jakub@redhat.com>
836 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
837 subs for the first alternative except when operands[3] is 1.
840 * gimplify.c (gimplify_asm_expr): For output argument with
841 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
844 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
846 PR rtl-optimization/89753
847 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
848 explicit unrolling factor even more robust.
850 2019-03-19 Jakub Jelinek <jakub@redhat.com>
853 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
854 compensation use x2 += 1 instead of x2 -= -1 and when honoring
855 signed zeros, do another copysign after the compensation.
857 2019-03-18 Martin Sebor <msebor@redhat.com>
859 PR tree-optimization/89720
860 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
861 more conservatively, the same as anti-range.
863 2019-03-18 Richard Biener <rguenther@suse.de>
866 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
867 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
868 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
869 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
871 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
873 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
874 Extend queue to 1024 entries.
875 Add "consumed" field.
876 (gomp_print_output): Remove print_index parameter.
878 Change limit to unsigned.
879 Use consumed field to implement circular buffer.
880 Detect interrupted print in final pass.
881 Flush output at the end.
882 (run): Update gomp_print_output usage.
883 (main): Initialize kernargs->output_data.consumed.
885 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
887 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
888 calculation of the minimum number of scalar iterations for
889 fully-predicated loops.
891 2019-03-18 Martin Jambor <mjambor@suse.cz>
893 PR tree-optimization/89546
894 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
895 any propagation to its children took place.
897 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
900 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
901 parameter, and make use of it.
902 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
904 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
906 * config/arc/arc.opt (mcode-density-frame): Get the inital value
907 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
908 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
909 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
910 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
911 match what the ops is doing.
912 (push_multi_fp_blink): Likewise.
913 * config/arc/arc.c (arc_override_options): Enable enter/leave when
914 compiling for size and elf target.
915 (arc_save_callee_enter): Adjust note to match what enter/leave
918 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
920 * config/arc/arc.md (tst_movb): Fix constraint.
922 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
924 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
926 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
928 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
929 * config/arc/arc.c (arc_conditional_register_usage): Remove all
930 reg_alloc_order references.
931 (size_alloc_order): Define.
932 (arc_adjust_reg_alloc_order): New function.
933 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
935 (ADJUST_REG_ALLOC_ORDER): Define.
936 (HONOR_REG_ALLOC_ORDER): Likewise.
938 2019-03-18 Richard Biener <rguenther@suse.de>
941 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
942 loads and stores a bit more.
944 2019-03-18 Richard Biener <rguenther@suse.de>
947 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
948 load pessimization to stores as well.
950 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
953 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
954 successor, use NULL as its av set.
956 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
958 PR rtl-optimization/89721
959 * lra-constraints (invariant_p): Return false if side_effects_p holds.
961 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
964 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
965 When handling vec_extract, use modular arithmetic to allow
966 constant selectors greater than vector length.
967 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
968 V1TImode vectors to have constant selector values greater than 0.
969 Use modular arithmetic to compute vector index.
970 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
971 index for in-memory vectors. Correct code generation for
973 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
976 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
980 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
983 2019-03-15 Jakub Jelinek <jakub@redhat.com>
986 * tree.c (inchash::add_expr): Strip any location wrappers.
987 * fold-const.c (operand_equal_p): Move stripping of location wrapper
988 after hash verification.
991 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
992 SIGN_EXTEND and ZERO_EXTEND.
994 2019-03-14 Jason Merrill <jason@redhat.com>
995 Jakub Jelinek <jakub@redhat.com>
997 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
998 than if is_empty (*slot).
999 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
1000 existing elt and for elt removal.
1001 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
1002 of already removed elt.
1004 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
1007 * config/i386/i386.c (remove_partial_avx_dependency): Handle
1010 2019-03-14 Martin Liska <mliska@suse.cz>
1013 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
1015 2019-03-14 Richard Biener <rguenther@suse.de>
1018 * config/i386/i386.c (make_resolver_func): Properly set
1019 DECL_CONTEXT on the RESULT_DECL.
1020 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
1022 2019-03-14 Richard Biener <rguenther@suse.de>
1024 * gimple-pretty-print.c: Include cfgloop.h.
1025 (dump_gimple_phi): Adjust.
1026 (dump_gimple_bb_header): Dump loop header for GIMPLE.
1027 (pp_cfg_jump): Adjust.
1028 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
1029 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
1030 (lower_phi_internal_fn): Remove.
1031 (verify_gimple_call): Remove IFN_PHI special-casing.
1032 (dump_function_to_file): Dump IL state.
1033 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
1034 done to deal with PHI nodes being present in non-SSA state.
1036 2019-03-14 Jakub Jelinek <jakub@redhat.com>
1039 * multiple_target.c (create_dispatcher_calls): Change
1040 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
1041 In the node->iterate_referring loop, push *ref rather than ref, call
1042 ref->remove_reference () and always pass 0 to iterate_referring.
1044 PR rtl-optimization/89679
1045 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
1046 would contain a paradoxical SUBREG.
1048 2019-03-14 Richard Biener <rguenther@suse.de>
1050 PR tree-optimization/89710
1051 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
1054 2019-03-14 Martin Liska <mliska@suse.cz>
1056 * coverage.c (coverage_begin_function): Stream also
1058 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
1059 documentation about function declaration location.
1060 * gcov-dump.c (tag_function): Print whole range
1061 of function declaration.
1062 * gcov.c (struct function_info): Add end_column field.
1063 (function_info::function_info): Initialize it.
1064 (output_json_intermediate_file): Output {start,end}_column
1066 (read_graph_file): Read end_column.
1068 2019-03-14 Richard Biener <rguenther@suse.de>
1071 * fold-const.c (operand_equal_p): For INDIRECT_REF check
1072 that the access types are similar.
1074 2019-03-14 Jakub Jelinek <jakub@redhat.com>
1076 PR tree-optimization/89703
1077 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
1078 aren't compatible also with builtin_decl_explicit. Check pure
1079 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
1080 and BUILT_IN_STPNCPY{,_CHK}.
1082 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
1085 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
1086 addr32 prefix to VSIB address for X32.
1087 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
1089 (*avx512pf_gatherpf<mode>df_mask): Likewise.
1090 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
1091 (*avx512pf_scatterpf<mode>df_mask): Likewise.
1092 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
1093 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
1094 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
1095 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
1096 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
1097 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
1098 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
1099 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
1100 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
1101 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
1102 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
1103 (*avx512f_scatterdi<mode>): Likewise.
1105 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
1108 * lra-constraints.c (inherit_in_ebb): Update
1109 potential_reload_hard_regs along with live_hard_regs.
1111 2019-03-13 Jakub Jelinek <jakub@redhat.com>
1114 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
1116 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
1118 2019-03-13 Martin Sebor <msebor@redhat.com>
1120 PR tree-optimization/89662
1121 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
1124 2019-03-13 Richard Biener <rguenther@suse.de>
1127 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
1128 throw FP expressions at tree-affine.
1130 2019-03-14 Richard Biener <rguenther@suse.de>
1132 * tree-pretty-print.c (dump_generic_node): For -gimple properly
1133 dump negative integer constants using _Literal (type) -num.
1135 2019-03-13 Jakub Jelinek <jakub@redhat.com>
1137 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
1138 nonlocal_value member.
1141 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
1142 (ipa_simd_modify_function_body): Handle PHIs.
1144 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
1146 * config/s390/s390.c (s390_option_override_internal): Use more
1147 aggressive inlining parameters.
1149 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
1151 * config/s390/3906.md: New file.
1152 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
1153 (LONGRUNNING_THRESHOLD): Remove.
1154 (MAX_SCHED_MIX_SCORE): Decrease.
1155 (MAX_SCHED_MIX_DISTANCE): Decrease.
1156 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
1157 (struct s390_sched_state): New struct to hold scheduling state.
1158 (S390_SCHED_STATE_NORMAL): Remove.
1159 (S390_SCHED_STATE_CRACKED): Remove.
1160 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
1161 (s390_get_sched_attrmask): Use new attribute.
1162 (s390_get_unit_mask): Use new units.
1163 (s390_is_fpd): New function.
1164 (s390_is_fxd): New function.
1165 (s390_is_longrunning): New function.
1166 (s390_sched_score): Use new functions.
1167 (s390_sched_reorder): Likewise.
1168 (s390_sched_variable_issue): Rework and use new functions.
1169 (s390_sched_init): Use new functions.
1170 * config/s390/s390.h (s390_tune_attr): Add z14.
1171 * config/s390/s390.md: Add z14.
1173 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
1175 * config/s390/2964.md: Update pipeline description.
1176 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
1177 (LONGRUNNING_THRESHOLD): Remove.
1178 (LATENCY_FACTOR): Remove.
1179 (s390_get_unit_mask): Add unit.
1180 (s390_sched_score): Use fxd/fpd.
1181 (s390_sched_variable_issue): Use fxd/fpd.
1183 2019-03-12 Martin Liska <mliska@suse.cz>
1185 * config/i386/i386.c: Reword an error message.
1187 2019-03-12 Martin Jambor <mjambor@suse.cz>
1189 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
1190 terminate with newline.
1192 2019-03-12 Jakub Jelinek <jakub@redhat.com>
1195 * config/s390/s390.md (tabort): Use %wd instead of
1196 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
1197 letters and periods.
1198 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
1199 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
1203 * builtins.c (expand_builtin_int_roundingfn,
1204 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
1205 gcc_unreachable if validate_arglist fails.
1207 2019-03-12 Richard Biener <rguenther@suse.de>
1209 PR tree-optimization/89664
1210 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
1211 free the occurance tree after the early out.
1213 2019-03-11 Jakub Jelinek <jakub@redhat.com>
1217 * vr-values.c (vr_values::update_value_range): If
1218 old_vr->varying_p (), don't update it, make new_vr also VARYING
1221 2019-03-11 Martin Liska <mliska@suse.cz>
1223 * config/aarch64/aarch64.c (aarch64_override_options_internal):
1224 Fix double string quoting.
1226 2019-03-11 Martin Liska <mliska@suse.cz>
1228 * collect-utils.c (collect_wait): Wrap apostrophes
1229 in gcc internal format with %'.
1230 * collect2.c (main): Likewise.
1231 (scan_prog_file): Likewise.
1232 (scan_libraries): Likewise.
1233 * config/i386/i386.c (ix86_expand_call): Likewise.
1234 (ix86_handle_interrupt_attribute): Likewise.
1235 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
1236 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
1237 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
1238 * lto-wrapper.c (find_crtoffloadtable): Likewise.
1239 * symtab.c (symtab_node::verify_base): Likewise.
1240 * tree-cfg.c (verify_gimple_label): Likewise.
1241 * tree.c (verify_type_variant): Likewise.
1243 2019-03-11 Martin Liska <mliska@suse.cz>
1245 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
1246 in a string format message and fix GNU coding style.
1247 (expand_builtin_set_thread_pointer): Likewise.
1248 * common/config/aarch64/aarch64-common.c (aarch64_rewrite_selected_cpu): Likewise.
1249 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
1250 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
1251 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
1252 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
1253 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
1254 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
1255 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
1256 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
1257 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
1258 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option): Likewise.
1259 * common/config/riscv/riscv-common.c (riscv_subset_list::parsing_subset_version): Likewise.
1260 (riscv_subset_list::parse_std_ext): Likewise.
1261 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
1262 (riscv_subset_list::parse): Likewise.
1263 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
1264 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
1265 (aarch64_override_options_internal): Likewise.
1266 (aarch64_validate_mcpu): Likewise.
1267 (aarch64_validate_march): Likewise.
1268 (aarch64_validate_mtune): Likewise.
1269 (aarch64_override_options): Likewise.
1270 * config/alpha/alpha.c (alpha_option_override): Likewise.
1271 * config/arc/arc.c (arc_init): Likewise.
1272 (parse_mrgf_banked_regs_option): Likewise.
1273 (arc_override_options): Likewise.
1274 (arc_expand_builtin_aligned): Likewise.
1275 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
1276 (arm_expand_builtin): Likewise.
1277 * config/arm/arm.c (arm_option_check_internal): Likewise.
1278 (arm_configure_build_target): Likewise.
1279 (arm_option_override): Likewise.
1280 (arm_options_perform_arch_sanity_checks): Likewise.
1281 (arm_handle_cmse_nonsecure_entry): Likewise.
1282 (arm_handle_cmse_nonsecure_call): Likewise.
1283 (arm_tls_referenced_p): Likewise.
1284 (thumb1_expand_prologue): Likewise.
1285 * config/avr/avr.c (avr_option_override): Likewise.
1286 * config/bfin/bfin.c (bfin_option_override): Likewise.
1287 * config/c6x/c6x.c (c6x_option_override): Likewise.
1288 * config/cr16/cr16.c (cr16_override_options): Likewise.
1289 * config/cris/cris.c (cris_option_override): Likewise.
1290 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
1291 * config/darwin-c.c (macosx_version_as_macro): Likewise.
1292 * config/darwin.c (darwin_override_options): Likewise.
1293 * config/frv/frv.c (frv_expand_builtin): Likewise.
1294 * config/h8300/h8300.c (h8300_option_override): Likewise.
1295 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
1296 (ix86_option_override_internal): Likewise.
1297 (warn_once_call_ms2sysv_xlogues): Likewise.
1298 (ix86_expand_prologue): Likewise.
1299 (split_stack_prologue_scratch_regno): Likewise.
1300 (ix86_warn_parameter_passing_abi): Likewise.
1301 * config/ia64/ia64.c (fix_range): Likewise.
1302 * config/m68k/m68k.c (m68k_option_override): Likewise.
1303 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
1304 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
1305 (mips_set_compression_mode): Likewise.
1306 * config/mmix/mmix.c (mmix_option_override): Likewise.
1307 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
1308 * config/msp430/msp430.c (msp430_option_override): Likewise.
1309 * config/nds32/nds32.c (nds32_option_override): Likewise.
1310 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
1311 (nios2_option_override): Likewise.
1312 (nios2_expand_custom_builtin): Likewise.
1313 * config/nvptx/mkoffload.c (main): Likewise.
1314 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
1315 * config/pa/pa.c (fix_range): Likewise.
1316 (pa_option_override): Likewise.
1317 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
1318 (riscv_option_override): Likewise.
1319 * config/rl78/rl78.c (rl78_option_override): Likewise.
1320 * config/rs6000/aix61.h: Likewise.
1321 * config/rs6000/aix71.h: Likewise.
1322 * config/rs6000/aix72.h: Likewise.
1323 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
1324 * config/rs6000/freebsd64.h: Likewise.
1325 * config/rs6000/linux64.h: Likewise.
1326 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
1327 (rs6000_expand_zeroop_builtin): Likewise.
1328 (rs6000_expand_mtfsb_builtin): Likewise.
1329 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
1330 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
1331 (rs6000_invalid_builtin): Likewise.
1332 (rs6000_expand_split_stack_prologue): Likewise.
1333 * config/rs6000/rtems.h: Likewise.
1334 * config/rx/rx.c (valid_psw_flag): Likewise.
1335 (rx_expand_builtin): Likewise.
1336 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
1337 * config/s390/s390.c (s390_expand_builtin): Likewise.
1338 (s390_function_profiler): Likewise.
1339 (s390_option_override_internal): Likewise.
1340 (s390_option_override): Likewise.
1341 * config/sh/sh.c (sh_option_override): Likewise.
1342 (sh_builtin_saveregs): Likewise.
1343 (sh_fix_range): Likewise.
1344 * config/sh/vxworks.h: Likewise.
1345 * config/sparc/sparc.c (sparc_option_override): Likewise.
1346 * config/spu/spu.c (spu_option_override): Likewise.
1347 (fix_range): Likewise.
1348 * config/visium/visium.c (visium_option_override): Likewise.
1349 (visium_handle_interrupt_attr): Likewise.
1350 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
1351 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
1352 (dbg_cnt_process_opt): Likewise.
1353 * dwarf2out.c (output_dwarf_version): Likewise.
1354 * except.c (expand_eh_return): Likewise.
1355 * gcc.c (defined): Likewise.
1356 (driver_handle_option): Likewise.
1357 (process_command): Likewise.
1358 (compare_files): Likewise.
1359 (driver::prepare_infiles): Likewise.
1360 (driver::do_spec_on_infiles): Likewise.
1361 (driver::maybe_run_linker): Likewise.
1362 * omp-offload.c (oacc_parse_default_dims): Likewise.
1363 * opts-global.c (handle_common_deferred_options): Likewise.
1364 * opts.c (parse_sanitizer_options): Likewise.
1365 (common_handle_option): Likewise.
1366 (enable_warning_as_error): Likewise.
1367 * passes.c (enable_disable_pass): Likewise.
1368 * plugin.c (parse_plugin_arg_opt): Likewise.
1369 (default_plugin_dir_name): Likewise.
1370 * targhooks.c (default_expand_builtin_saveregs): Likewise.
1371 (default_pch_valid_p): Likewise.
1372 * toplev.c (init_asm_output): Likewise.
1373 (process_options): Likewise.
1374 (toplev::run_self_tests): Likewise.
1375 * tree-cfg.c (verify_gimple_call): Likewise.
1376 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
1377 (tree_inlinable_function_p): Likewise.
1378 * var-tracking.c (vt_find_locations): Likewise.
1380 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
1382 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
1383 only on the else branch.
1385 2019-03-11 Martin Liska <mliska@suse.cz>
1387 * gcov.c (output_intermediate_json_line): Print function
1389 (output_json_intermediate_file): Add new argument.
1390 * doc/gcov.texi: Document the change.
1392 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
1394 PR rtl-optimization/89588
1395 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
1396 explicit unrolling factor more robust.
1398 2019-03-11 Richard Biener <rguenther@suse.de>
1400 PR tree-optimization/89649
1401 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
1402 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
1403 on the prolog and epilog loops.
1404 (vect_loop_versioning): Return copy of loop.
1405 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
1406 on the non-vectorized version of the loop.
1408 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
1411 * config/i386/sse.md (*vec_extractv2di_0_sse):
1412 Add (=r,x) alternative and corresponding splitter.
1414 2019-03-10 Martin Jambor <mjambor@suse.cz>
1416 PR tree-optimization/85762
1417 PR tree-optimization/87008
1418 PR tree-optimization/85459
1419 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
1420 it points to if there is a type changing MEM_REF. Adjust all callers.
1421 (build_accesses_from_assign): Disable total scalarization if
1422 contains_vce_or_bfcref_p returns true through the new parameter, for
1425 2019-03-09 Jakub Jelinek <jakub@redhat.com>
1428 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
1429 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
1432 * common.opt (fdiagnostics-show-labels,
1433 fdiagnostics-show-line-numbers, fdiagnostics-format=,
1434 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
1435 gas-locview-support, ginline-points, ginternal-reset-location-views):
1436 Terminate description text with a dot.
1437 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
1438 * config/mcore/mcore.opt (m210, m340): Likewise.
1439 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
1440 mnops=): Start description text with a capital letter.
1441 * config/arc/arc.opt (msize-level=): Likewise.
1442 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
1443 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
1445 * config/ft32/ft32.opt (msim): Likewise.
1446 (mft32b, mcompress): Likewise. Terminate description text with a dot.
1447 (mnodiv, mnopm): Terminate description text with a dot.
1448 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
1450 * config/i386/i386.opt (prefer_vector_width, instrument_return):
1452 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
1455 PR rtl-optimization/89634
1456 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
1457 are modified in BB_END (e->src) instruction.
1459 2019-03-08 David Malcolm <dmalcolm@redhat.com>
1462 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
1463 messages more amenable to translation, and improve wording.
1465 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
1467 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
1468 ud- and du-chains between phases.
1470 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
1473 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
1474 instead of POLY_INT_CST.
1476 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
1478 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
1481 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
1486 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
1487 (_mm_storeu_si64): Ditto.
1489 2019-03-08 Martin Liska <mliska@suse.cz>
1492 * config/i386/i386.c (ix86_option_override_internal): Disable
1493 jump tables when retpolines are used.
1495 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
1498 * ipa-split.c (execute_split_functions): Do not split
1499 'noinline' or 'section' function.
1501 2019-03-08 Jakub Jelinek <jakub@redhat.com>
1504 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
1505 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
1506 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
1509 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
1510 from diagnostics. Formatting fixes.
1513 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
1514 warn_odr diagnostics.
1517 * lra-constraints.c (process_alt_operands): Avoid one space before
1518 " at the end of line and another after " on another line in a string
1520 * attribs.c (handle_dll_attribute): Likewise.
1521 * config/avr/avr-devices.c (avr_texinfo): Likewise.
1523 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
1524 warning_at or inform messages in G_() if there is no ?:.
1526 PR tree-optimization/89550
1527 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
1528 returned true. Formatting fixes.
1529 (expand_builtin_strnlen): Formatting fixes.
1530 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
1531 if warning_at returned true.
1532 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
1534 2019-03-08 Richard Biener <rguenther@suse.de>
1537 * cfgloop.h (struct loop): Add owned_clique field.
1538 * cfgloopmanip.c (copy_loop_info): Copy it.
1539 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
1541 * tree-inline.c (copy_loops): Remap owned_clique.
1542 * lto-streamer-in.c (input_cfg): Stream owned_clique.
1543 * lto-streamer-out.c (output_cfg): Likewise.
1545 2019-03-08 Jakub Jelinek <jakub@redhat.com>
1548 * config/darwin.c: Include intl.h.
1549 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
1550 composing the message out of two separate parts.
1552 2019-03-07 Jakub Jelinek <jakub@redhat.com>
1555 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
1556 doesn't start with a capital letter and doesn't end with a dot.
1557 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
1558 with a capital letter.
1559 (ix86_mangle_function_version_assembler_name): Likewise.
1560 (ix86_generate_version_dispatcher_body): Likewise.
1561 (fold_builtin_cpu): Likewise.
1562 (get_builtin_code_for_version): Likewise. Remove extraneous space.
1563 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
1564 translators, wrap full type name in %qs.
1566 PR translation/79999
1567 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
1568 depend clause with source (or sink) modifier.
1569 * omp-expand.c (expand_omp_ordered_sink): Likewise.
1572 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
1573 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
1574 (avx512f_load<mode>_mask): New define_expand.
1575 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
1576 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
1577 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
1578 __builtin_ia32_movess_mask): New builtins.
1579 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
1580 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
1581 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
1582 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
1584 2019-03-07 Martin Jambor <mjambor@suse.cz>
1587 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
1588 for extern inline functions.
1590 2019-03-07 Martin Jambor <mjambor@suse.cz>
1593 * cgraph.h (cgraph_node): New inline method former_thunk_p.
1594 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
1595 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
1596 have multiple callees. At the end check if declarations match as
1597 opposed to cgraph_nodes.
1599 2019-03-07 Martin Liska <mliska@suse.cz>
1601 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
1602 which is equivalent to searching for this in clones chain.
1603 * symtab.c (symtab_node::verify_base): Similarly compare ASM
1604 names with a neighbour and special case first node in a chain.
1606 2019-01-25 Jason Merrill <jason@redhat.com>
1608 PR c++/80916 - spurious "static but not defined" warning.
1609 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
1610 for an internal symbol with DECL_EXTERNAL.
1612 2019-04-07 Richard Biener <rguenther@suse.de>
1615 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
1616 * tree-inline.c (copy_loops): Simplify.
1618 2019-03-07 Martin Liska <mliska@suse.cz>
1620 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
1622 2019-03-07 Richard Biener <rguenther@suse.de>
1624 PR tree-optimization/89595
1625 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
1626 stmt iterator as reference, take boolean output parameter to
1627 indicate whether the stmt was removed and thus the iterator
1629 (dom_opt_dom_walker::before_dom_children): Re-iterate over
1630 stmts created by folding.
1632 2019-03-07 Jakub Jelinek <jakub@redhat.com>
1635 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
1638 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
1640 PR rtl-optimization/88845
1641 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
1643 * lra.c (remove_scratches_1): New function.
1644 (remove_scratches): Use it.
1645 (lra_emit_move): Likewise.
1647 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
1649 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
1650 unaligned_access variable.
1651 * config/arc/arc.c (arc_override_options): Set unaligned access
1652 default on for HS CPUs.
1653 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
1655 2019-03-06 Martin Liska <mliska@suse.cz>
1657 PR gcov-profile/89577
1658 * doc/gcov.texi: Prefer to use --coverage.
1659 * doc/sourcebuild.texi: Likewise.
1661 2019-03-02 Jason Merrill <jason@redhat.com>
1663 PR c++/86485 - -Wmaybe-unused with empty class ?:
1664 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
1666 2019-03-05 Jakub Jelinek <jakub@redhat.com>
1669 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
1673 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
1674 exactly one argument.
1676 2019-03-05 Jakub Jelinek <jakub@redhat.com>
1677 Richard Sandiford <richard.sandiford@arm.com>
1679 PR tree-optimization/89570
1680 * match.pd (vec_cond into cond_op simplification): Don't use
1681 get_conditional_internal_fn, use as_internal_fn (cond_op).
1683 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
1686 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
1687 to decide when to split off a non-zero offset from a symbol.
1688 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
1689 in function symbols.
1691 2019-03-05 Richard Biener <rguenther@suse.de>
1693 PR tree-optimization/89594
1694 * tree-if-conv.c (pass_if_conversion::execute): Handle
1695 case where .LOOP_VECTORIZED_FUNCTION was removed.
1697 2019-03-05 Jakub Jelinek <jakub@redhat.com>
1700 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
1701 instead alloca it only when needed with the needed size.
1703 PR tree-optimization/89570
1704 * match.pd (vec_cond into cond_op simplification): Guard with
1705 vectorized_internal_fn_supported_p test and #if GIMPLE.
1707 PR tree-optimization/89566
1708 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
1709 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
1710 Punt if get_user_idx_format succeeds, but idx_format argument is
1711 not provided or doesn't have pointer type, or if idx_args is above
1712 number of provided arguments.
1714 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
1716 PR tree-optimization/89437
1717 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
1719 2019-03-04 Richard Biener <rguenther@suse.de>
1722 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
1725 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
1727 PR tree-optimization/89487
1728 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
1729 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
1730 (distribute_loop): Don't do runtime alias check if there is non-
1731 addressable data reference.
1732 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
1733 is a register variable.
1735 2019-03-02 Jakub Jelinek <jakub@redhat.com>
1738 * config/arm/arm.md (cmpsi2_addneg): Use
1739 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
1740 If operands[2] is 0 or INT_MIN, force use of subs.
1741 (*compare_scc splitter): Use gen_int_mode.
1742 (*negscc): Likewise.
1743 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
1745 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
1746 Monk Chiang <sh.chiang04@gmail.com>
1748 * common/config/riscv/riscv-common.c: Include sstream.
1749 (riscv_subset_list::to_string): New.
1750 (riscv_arch_str): Likewise.
1751 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
1753 * config/riscv/riscv-protos.h (riscv_arch_str): New.
1754 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
1755 (riscv_emit_attribute): New.
1756 (riscv_file_start): Emit attribute if needed.
1757 (riscv_option_override): Init riscv_emit_attribute_p.
1758 * config/riscv/riscv.opt (mriscv-attribute): New option.
1759 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
1761 * doc/install.texi: Document --with-riscv-attribute.
1762 * doc/invoke.texi: Document -mriscv-attribute.
1764 * common/config/riscv/riscv-common.c:
1765 Include config/riscv/riscv-protos.h.
1766 (INCLUDE_STRING): Defined.
1767 (RISCV_DONT_CARE_VERSION): Defined.
1768 (riscv_subset_t): Declare.
1769 (riscv_subset_t::riscv_subset_t): New.
1770 (riscv_subset_list): Declare.
1771 (riscv_subset_list::riscv_subset_list): New.
1772 (riscv_subset_list::~riscv_subset_list): Likewise.
1773 (riscv_subset_list::parsing_subset_version): Likewise.
1774 (riscv_subset_list::parse_std_ext): Likewise.
1775 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
1776 (riscv_subset_list::add): Likewise.
1777 (riscv_subset_list::lookup): Likewise.
1778 (riscv_subset_list::xlen): Likewise.
1779 (riscv_subset_list::parse): Likewise.
1780 (riscv_supported_std_ext): Likewise.
1781 (current_subset_list): Likewise.
1782 (riscv_parse_arch_string): Using riscv_subset_list::parse to
1785 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
1787 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
1788 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
1789 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
1791 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
1793 PR rtl-optimization/85899
1794 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
1795 fallthru edges leading to the exit block.
1797 2019-03-01 Tamar Christina <tamar.christina@arm.com>
1800 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
1801 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
1803 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
1805 PR tree-optimization/89535
1806 * tree-vect-stmts.c (vectorizable_call): Record the vector types
1807 for each operand. Calculate the fallback choice for mask operands
1808 and pass it to vect_get_vec_def_for_operand.
1810 2019-03-01 Richard Biener <rguenther@suse.de>
1813 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
1814 get virtual operands.
1815 (get_expr_operands): Handle CONST_DECL like other decls.
1817 2019-03-01 Jakub Jelinek <jakub@redhat.com>
1820 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
1821 on DECL_P and EXPR_P.
1823 2019-03-01 Richard Biener <rguenther@suse.de>
1826 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
1827 argument, defaulted to zero.
1828 * passes.c (execute_function_todo): Pass down SSA update flags
1829 to cleanup_tree_cfg.
1830 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
1831 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
1833 (cleanup_tree_cfg): Get and pass down SSA update flags.
1835 2019-03-01 Jakub Jelinek <jakub@redhat.com>
1838 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
1839 early_lto_debug argument.
1841 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
1843 PR tree-optimization/89536
1844 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
1845 only whether bit #0 of the value is 0 instead of the entire value.
1847 2019-02-28 Marek Polacek <polacek@redhat.com>
1849 PR c++/87068 - missing diagnostic with fallthrough statement.
1850 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
1851 at the end of a seq, save its location to walk_stmt_info.
1852 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
1855 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
1858 * tree.c (find_atomic_core_type): Move ahead in file.
1859 (check_base_type): Correctly compare alignments of atomic types.
1861 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
1864 * config/i386/i386.c (get_builtin_code_for_version): Identify
1865 Westmere from PCLMUL, instead of AES.
1867 2019-02-28 Jakub Jelinek <jakub@redhat.com>
1870 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
1871 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
1874 2019-02-28 Tamar Christina <tamar.christina@arm.com>
1877 * config/aarch64/aarch64-option-extensions.def: Document it.
1878 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
1881 2019-02-28 Jakub Jelinek <jakub@redhat.com>
1884 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
1885 builtins if they don't have a single scalar floating point argument.
1888 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
1890 PR rtl-optimization/89490
1891 * varasm.c (get_block_for_section): Bail out for mergeable sections.
1892 (default_use_anchors_for_symbol_p, output_object_block): Assert the
1893 block section is not mergeable.
1895 2019-02-27 Jakub Jelinek <jakub@redhat.com>
1898 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
1899 old define_insn to ...
1900 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
1901 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
1902 Rename old define_insn to ...
1903 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
1904 (thumb2_casesi_internal_pic): New define_expand. Rename old
1906 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
1907 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
1908 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
1910 2019-02-27 Richard Biener <rguenther@suse.de>
1913 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
1915 2019-02-27 Richard Biener <rguenther@suse.de>
1917 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
1920 2019-02-27 Richard Biener <rguenther@suse.de>
1923 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
1924 parameter, prefix section name with .gnu.debuglto_ if true.
1925 (dwarf2out_finish): Pass false to output_comdat_type_unit.
1926 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
1928 2019-02-27 Richard Biener <rguenther@suse.de>
1931 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
1932 rather than on use_debug_types, doing what output_die does.
1933 (value_format): Likewise.
1935 2019-02-27 Martin Jambor <mjambor@suse.cz>
1936 Martin Sebor <msebor@redhat.com>
1938 * doc/invoke.texi (Warning Options): Reword description of
1939 -Wno-absolute-value.
1941 2019-02-27 Jakub Jelinek <jakub@redhat.com>
1943 PR tree-optimization/89280
1944 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
1945 builtin_setjmp_setup_bb): New functions.
1946 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
1947 When visiting __builtin_setjmp_setup block, queue in special
1948 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
1949 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
1950 from visited after the loop if they don't have any visited successor
1953 2018-02-26 Steve Ellcey <sellcey@marvell.com>
1955 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
1957 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
1959 2019-02-26 Jakub Jelinek <jakub@redhat.com>
1962 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
1963 with types other than sizetype/ssizetype.
1965 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
1967 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
1968 (enum sparc_processor_type): ...this.
1969 (enum sparc_code_model_type): New enumeration type.
1970 (enum sparc_memory_model_type): Tweak comments.
1971 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
1973 (mcmodel): Use sparc_code_model enumeration and variable.
1974 (sparc_code_model): New enumeration.
1975 (mdebug): Add Undocumented marker.
1976 * config/sparc/sparc.h (enum cmodel): Delete.
1977 (sparc_cmodel): Likewise.
1978 (TARGET_CM_MEDLOW): Adjust to above renaming.
1979 (TARGET_CM_MEDMID): Likewise.
1980 (TARGET_CM_MEDANY): Likewise.
1981 (TARGET_CM_EMBMEDANY): Likewise.
1982 * config/sparc/sparc.c (sparc_cmodel): Delete.
1983 (sparc_option_override): Remove string/value mapping support for the
1984 code model. Move code and memory model support to after the handling
1985 of target flags. Do private machine setup last.
1986 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
1987 (sparc_legitimize_reload_address): Likewise.
1988 (sparc_output_mi_thunk): Likewise.
1989 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
1991 2019-02-26 Jakub Jelinek <jakub@redhat.com>
1993 PR tree-optimization/89500
1994 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
1995 (handle_builtin_strlen): Remove noncst_bound variable. Always
1996 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
1997 cst if the first cst bytes starting at x are known to be non-zero,
1998 even if the string is not zero terminated. Don't try to modify
1999 *si for strnlen. Update strlen_to_stridx only for strlen or if
2000 we can prove strnlen returns the same value as strlen would.
2002 2019-02-26 Martin Liska <mliska@suse.cz>
2004 * alloc-pool.h (struct pool_usage): Remove extra
2006 * bitmap.h (struct bitmap_usage): Likewise.
2007 * ggc-common.c (struct ggc_usage): Likewise.
2008 * mem-stats.h (struct mem_usage): Likewise.
2009 (mem_alloc_description::dump): Print dash lines
2010 here and repeat header at the end of a table report.
2011 It's then more readable.
2012 * tree-phinodes.c (phinodes_print_statistics): Make
2013 horizontal alignment.
2014 * tree-ssanames.c (ssanames_print_statistics): Likewise.
2015 * vec.c (struct vec_usage): Remove extra print_dash_line.
2016 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
2018 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
2020 * doc/extend.texi (__builtin_object_size):
2021 Use @pxref instead of @xref inside parenthesis.
2022 (__builtin_has_attribute): Add missing comma after @xref.
2023 (__builtin_object_size): Ditto.
2024 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
2025 * fortran/invoke.texi (-ffpe-trap): Use @var for every item
2028 2019-02-26 Jeff Law <law@redhat.com>
2030 PR rtl-optimization/87761
2031 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
2032 detect obviously dead insns and delete them.
2034 2019-02-26 Richard Biener <rguenther@suse.de>
2036 PR tree-optimization/89505
2037 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
2038 to handle restrict pointed-to vars with multiple subvars
2041 2019-02-26 Richard Biener <rguenther@suse.de>
2043 PR tree-optimization/89489
2044 * tree-parloops.c (create_loop_fn): Copy over last_clique.
2046 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
2048 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
2049 and move around comment.
2050 <BIT_AND_EXPR>: Likewise.
2051 <BIT_NOT_EXPR>: Add specific handling for boolean types.
2053 2019-02-26 Jakub Jelinek <jakub@redhat.com>
2056 * config/i386/i386.c (remove_partial_avx_dependency): Call
2057 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
2058 after changing possibly many instructions to use that pseudo. Fix up
2059 insertion of v4sf_const0 setter at the start of bb.
2061 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
2064 * doc/extend.texi (Variadic Pointer Args): New section.
2066 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
2067 Martin Sebor <msebor@gmail.com>
2069 * common.opt (Wattribute-alias): Likewise.
2070 * doc/invoke.texi (Option Summary): List general form of
2071 -Wattribute-alias=. List positive form of -Wmissing-attributes.
2072 (-Wmissing-attributes): Invert entry, rewrite and correct default.
2073 Add cross-references.
2074 (-Wattribute-alias): Rewrite and correct default. Mention
2075 considered attributes (same as for -Wmissing-attributes).
2077 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
2079 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
2080 (_mm_cvtpd_ps): Likewise.
2081 (_mm_cvttpd_epi32): Likewise.
2084 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
2085 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
2088 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
2090 2019-02-25 Tamar Christina <tamar.christina@arm.com>
2093 * common/config/aarch64/aarch64-common.c
2094 (struct aarch64_option_extension): Add is_synthetic.
2095 (all_extensions): Use it.
2096 (TARGET_OPTION_INIT_STRUCT): Define hook.
2097 (struct gcc_targetm_common): Moved to end.
2098 (all_extensions_by_on): New.
2099 (opt_ext_cmp, typedef opt_ext): New.
2100 (aarch64_option_init_struct): New.
2101 (aarch64_contains_opt): New.
2102 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
2103 * config/aarch64/aarch64-option-extensions.def
2104 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
2105 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
2106 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
2107 Set is_synthetic to false.
2108 (crypto): Set is_synthetic to true.
2109 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
2112 2019-02-25 Tamar Christina <tamar.christina@arm.com>
2114 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
2115 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
2116 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
2117 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
2118 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
2119 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
2120 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
2121 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
2123 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
2124 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
2125 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
2126 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
2127 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
2128 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
2129 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
2130 vfmlsl_laneq_high_f16): ... To this.
2131 * config/arm/neon.md: Update comments.
2133 2019-02-25 Tamar Christina <tamar.christina@arm.com>
2135 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
2136 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
2137 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
2138 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
2139 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
2140 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
2141 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
2142 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
2144 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
2145 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
2146 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
2147 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
2148 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
2149 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
2150 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
2151 vfmlslq_laneq_high_f16): ... To this.
2153 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
2155 PR rtl-optimization/86096
2156 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
2157 comparing mw_order values.
2159 2019-02-25 Jakub Jelinek <jakub@redhat.com>
2162 * config/arm/arm.md (*subsi3_carryin_const): Use
2163 arm_neg_immediate_operand predicate instead of
2164 arm_not_immediate_operand, "L" constraint instead of "K" and
2165 print it using %n2 instead of %B2.
2166 (*subsi3_carryin_const0): New define_insn.
2167 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
2168 instead of arm_not_operand and "I" constraint instead of "K" and
2169 print it using %n3 instead of %B2. Instead of using match_dup 2 add
2170 another match_operand and in the condition check that it is negation
2172 (*subsi3_carryin_compare_const0): New define_ins.
2173 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
2174 *subsi3_carryin_const.
2175 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
2176 split into *subsi3_carryin_compare_const0 if the highpart is zero.
2179 * config/arm.vfp.md (*negdf2_vfp): Use
2180 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
2181 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
2183 2019-02-24 Jakub Jelinek <jakub@redhat.com>
2185 PR rtl-optimization/89445
2186 * simplify-rtx.c (simplify_ternary_operation): Don't use
2187 simplify_merge_mask on operands that may trap.
2188 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
2189 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
2190 second operand is CONST_VECTOR, check if any element could be zero.
2191 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
2192 their operands can trap.
2194 2019-02-23 Martin Sebor <msebor@redhat.com>
2196 * gimple-ssa-sprintf.c (target_strtol): Rename...
2197 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
2198 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
2199 check for range error.
2201 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
2204 * opts-common.c (prune_options): Also prune joined switches
2205 with Negative and RejectNegative.
2206 * config/i386/i386.opt (march=): Add Negative(march=).
2207 (mtune=): Add Negative(mtune=).
2208 * doc/options.texi: Document Negative used together with Joined
2211 2019-02-22 Martin Sebor <msebor@redhat.com>
2213 * doc/extend.texi (Other Builtins): Add
2214 __builtin_is_constant_evaluated.
2216 2019-02-22 Richard Biener <rguenther@suse.de>
2218 PR tree-optimization/87609
2219 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
2221 2019-02-22 Jeff Law <law@redhat.com>
2223 PR rtl-optimization/87761
2224 * config/mips/mips.md: Add new combiner pattern to recognize
2225 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
2227 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
2230 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
2231 destination register in peepholes generating patterns for ADDS/SUBS.
2232 (add<mode>3_compare0,
2233 *addsi3_compare0_uxtw, add<mode>3_compareC,
2234 add<mode>3_compareV_imm, add<mode>3_compareV,
2235 *adds_<optab><ALLX:mode>_<GPI:mode>,
2236 *subs_<optab><ALLX:mode>_<GPI:mode>,
2237 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
2238 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
2239 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
2240 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
2241 sub<mode>3_compare1): Allow stack pointer for source register.
2242 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
2244 2019-02-22 Martin Sebor <msebor@redhat.com>
2246 PR tree-optimization/88993
2247 PR tree-optimization/88853
2248 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
2250 (sprintf_dom_walker::call_info::is_string_func): New helper.
2251 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
2252 for formatted string functions.
2253 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
2255 2019-02-22 Martin Sebor <msebor@redhat.com>
2258 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
2259 unreachable subexpressions.
2261 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
2262 Hongtao Liu <hongtao.liu@intel.com>
2263 Sunil K Pandey <sunil.k.pandey@intel.com>
2266 * config/i386/i386-passes.def: Add
2267 pass_remove_partial_avx_dependency.
2268 * config/i386/i386-protos.h
2269 (make_pass_remove_partial_avx_dependency): New.
2270 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
2272 (pass_data_remove_partial_avx_dependency): New.
2273 (pass_remove_partial_avx_dependency): Likewise.
2274 (make_pass_remove_partial_avx_dependency): Likewise.
2275 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
2276 (*extendsfdf2): Add avx_partial_xmm_update.
2277 (truncdfsf2): Likewise.
2278 (*float<SWI48:mode><MODEF:mode>2): Likewise.
2279 (SF/DF conversion splitters): Disabled for TARGET_AVX.
2281 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
2284 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
2287 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
2290 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
2291 (PTA_SKYLAKE): Add PTA_AES.
2292 (PTA_GOLDMONT): Likewise.
2294 2019-02-22 Sudakshina Das <sudi.das@arm.com>
2296 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
2297 instruction if enabled.
2298 (aarch64_override_options): Remove reference to return address key.
2300 2019-02-22 Richard Biener <rguenther@suse.de>
2302 PR tree-optimization/89440
2303 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
2304 not necessary assert.
2306 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
2309 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
2310 (oacc_replace_fn_attrib_attr): ... this new function.
2311 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
2312 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
2314 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2316 * config/arm/arm-cpus.in (ares): Rename to...
2317 (neoverse-n1): ... This. Add ares as alias.
2318 * config/arm/arm-tables.opt: Regenerate.
2319 * config/arm/arm-tune.md: Likewise.
2320 * doc/invoke.txt (ARM Options): Document neoverse-n1.
2322 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2324 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
2325 * config/aarch64/aarch64-tune.md: Regenerate.
2326 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
2328 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2330 * config/aarch64/aarch64.c (ares_tunings): Rename to...
2331 (neoversen1_tunings): ... This.
2332 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
2333 (neoverse-n1): New CPU.
2334 * config/aarch64/aarch64-tune.md: Regenerate.
2335 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
2337 2019-02-22 Richard Biener <rguenther@suse.de>
2340 * cfghooks.h (dependence_hash): New typedef.
2341 (struct copy_bb_data): New type.
2342 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
2343 (duplicate_block): Likewise.
2344 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
2345 (copy_bbs): Create and pass down copy_bb_data.
2346 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
2347 (rtl_duplicate_bb): Likewise.
2348 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
2349 remap dependence info.
2351 2019-02-22 Richard Biener <rguenther@suse.de>
2353 PR tree-optimization/87609
2354 * tree-core.h (tree_base): Document special clique values.
2355 * tree-inline.c (remap_dependence_clique): Do not use the
2356 special clique value of one.
2357 (maybe_set_dependence_info): Use clique one.
2358 (clear_dependence_clique): New callback.
2359 (compute_dependence_clique): Clear clique one from all refs
2360 before assigning it (again).
2362 2019-02-21 Martin Sebor <msebor@redhat.com>
2364 * doc/extend.texi (__clear_cache): Correct signature.
2366 2019-02-21 Ian Lance Taylor <iant@golang.org>
2369 * varasm.c (decode_addr_const): Call lookup_constant_def rather
2370 than output_constant_def.
2371 (add_constant_to_table): New static function.
2372 (output_constant_def): Call add_constant_to_table.
2373 (tree_output_constant_def): Likewise.
2375 2019-02-21 Jakub Jelinek <jakub@redhat.com>
2378 * builtins.c (fold_builtin_arith_overflow): If first two args are
2379 INTEGER_CSTs, set intres and ovfres to constants rather than calls
2382 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
2385 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
2386 error for -mindirect-branch/-mfunction-return with incompatible
2389 2019-02-21 Jakub Jelinek <jakub@redhat.com>
2392 * constraints.md (q): Remove.
2393 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
2396 2019-02-21 Martin Jambor <mjambor@suse.cz>
2399 * omp-general.c (omp_extract_for_data): Removed a duplicate call
2400 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
2401 (omp_adjust_for_condition): ...here. Added necessary parameters.
2402 * omp-general.h (omp_adjust_for_condition): Updated declaration.
2403 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
2404 proper values to new parameters of omp_adjust_for_condition.
2406 2019-02-20 Jakub Jelinek <jakub@redhat.com>
2409 * expr.c (expand_assignment): If result is a MEM, use change_address
2410 instead of simplify_gen_subreg.
2412 2019-02-20 Jakub Jelinek <jakub@redhat.com>
2413 David Malcolm <dmalcolm@redhat.com>
2416 * fold-const.c (decode_field_reference): Return NULL_TREE if
2417 lang_hooks.types.type_for_size returns NULL. Check it before
2418 overwriting *exp_. Use return NULL_TREE instead of return 0.
2420 2019-02-20 Jakub Jelinek <jakub@redhat.com>
2424 * toplev.c (do_compile): Double the emin/emax exponents to workaround
2427 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
2430 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
2431 TARGET_SSE in addition to TARGET_SSE_MATH.
2433 (ix86_excess_precision): Ditto.
2434 (ix86_float_exceptions_rounding_supported_p): Ditto.
2435 (use_rsqrt_p): Ditto.
2436 * config/i386/sse.md (rsqrt<mode>2): Ditto.
2438 2019-02-20 David Malcolm <dmalcolm@redhat.com>
2441 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
2442 linenum_arith_t when determining if two adjacent line spans are
2443 close enough to merge.
2444 (diagnostic_show_locus): Use linenum_arith_t when iterating over
2445 lines within each line_span.
2447 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
2450 * lra-constraints.c(uses_hard_regs_p): Fix handling of
2451 paradoxical SUBREGS.
2453 2019-02-20 Li Jia He <helijia@linux.ibm.com>
2456 * gcc/config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
2457 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
2458 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
2461 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
2463 * config/gcn/gcn.c (print_operand): Fix typo.
2465 2019-02-19 Richard Biener <rguenther@suse.de>
2468 * toplev.c (do_compile): Initialize mpfr's exponent range
2469 based on available float modes.
2471 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
2473 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
2474 as long as the epilogue isn't completed.
2476 2019-02-18 Martin Sebor <msebor@redhat.com>
2478 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
2479 __has_cpp_attribute, and __has_include.
2481 2019-02-18 Martin Sebor <msebor@redhat.com>
2483 * doc/invoke.texi (-Wreturn-type): Correct and expand.
2485 2019-02-18 Martin Sebor <msebor@redhat.com>
2488 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
2490 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
2492 2019-02-18 Richard Biener <rguenther@suse.de>
2494 PR tree-optimization/89296
2495 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
2496 of no-warning flag to cases that might emit the bogus warning.
2498 2019-02-18 Jakub Jelinek <jakub@redhat.com>
2501 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
2503 * config/arm/vfp.md (*movdi_vfp): Likewise.
2504 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
2505 "q" constraint for operands[0].
2508 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
2509 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
2510 pattern in a temporary buffer.
2511 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
2512 than 64-operands[2].
2515 * config/s390/s390.c (s390_indirect_branch_attrvalue,
2516 s390_indirect_branch_settings): Define unconditionally.
2517 (s390_set_current_function): Likewise, but guard the whole body except
2518 the s390_indirect_branch_settings call with
2519 #if S390_USE_TARGET_ATTRIBUTE.
2520 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
2522 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
2523 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
2524 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
2525 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
2526 HOST_WIDE_INT_1U instead of 1ULL.
2527 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
2528 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
2529 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
2530 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
2532 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
2535 2019-02-18 Martin Jambor <mjambor@suse.cz>
2537 PR tree-optimization/89209
2538 * tree-sra.c (create_access_replacement): New optional parameter
2539 reg_tree. Use it as a type if non-NULL and access type is not of
2541 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
2542 to create_access_replacement.
2543 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
2544 Check lacc is non-NULL before attempting to re-create it on the RHS.
2546 2019-02-18 Martin Liska <mliska@suse.cz>
2549 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
2551 (symbol_table::free_edge): Recycle m_summary_id.
2552 * cgraph.h (get_summary_id): New.
2553 (symbol_table::release_symbol): Set m_summary_id to -1
2555 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
2556 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
2557 function_summary to fast_function_summary.
2558 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
2559 * ipa-pure-const.c (class funct_state_summary_t):
2560 Switch from function_summary to fast_function_summary.
2561 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
2562 (class ipa_ref_opt_summary_t): Switch from function_summary
2563 to fast_function_summary.
2564 * symbol-summary.h (class function_summary_base): New class
2565 that is created from base of former function_summary.
2566 (function_summary_base::unregister_hooks): New.
2567 (class function_summary): Inherit from function_summary_base.
2568 (class call_summary_base): New class
2569 that is created from base of former call_summary.
2570 (class call_summary): Inherit from call_summary_base.
2571 (struct is_same): New.
2572 (class fast_function_summary): New summary class.
2573 (class fast_call_summary): New summary class.
2574 * vec.h (vec_safe_grow_cleared): New function.
2576 2019-02-18 Martin Liska <mliska@suse.cz>
2578 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
2579 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
2580 * doc/tm.texi: Document new target hook.
2581 * doc/tm.texi.in: Likewise.
2582 * target.def: Add new target macro.
2583 * gcc.c (find_fortran_preinclude_file): Do not search multilib
2586 2019-02-17 Alan Modra <amodra@gmail.com>
2589 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
2590 output reg on add insn.
2591 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
2593 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
2596 * config/i386/sse.md (ssedoublemode): Remove V4HI.
2597 (PMULHRSW): Likewise.
2598 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
2600 (ssse3_pmulhrswv4hi3): New expander.
2602 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
2604 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
2605 MMX. Add isa attribute.
2607 2019-02-16 Jakub Jelinek <jakub@redhat.com>
2609 PR rtl-optimization/66152
2610 * builtins.h (c_readstr): Declare.
2611 * builtins.c (c_readstr): Remove forward declaration. Add
2612 null_terminated_p argument, if false, read all bytes from the
2613 string instead of stopping after '\0'.
2614 * expr.c (string_cst_read_str): New function.
2615 (store_expr): Use string_cst_read_str instead of
2616 builtin_strncpy_read_str. Try to store by pieces the whole
2617 exp_len first, and only if that fails, split it up into
2618 store by pieces followed by clear_storage. Formatting fix.
2620 * config/i386/i386.md (*movqi_internal): Remove static from
2621 buf variable. Use output_asm_insn (buf, operands); return "";
2622 instead of return buf;.
2623 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
2624 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
2625 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
2627 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
2629 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
2630 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
2631 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
2632 (CC1_SPEC): Likewise.
2633 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
2635 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
2637 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
2638 the base address on 64-bit strict-alignment platforms.
2640 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
2642 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
2644 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
2646 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
2648 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
2650 PR rtl-optimization/88308
2651 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
2652 on copied instruction.
2654 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
2656 * final.c (insn_current_reference_address): Replace test on JUMP_P
2657 with test on jump_to_label_p.
2658 * config/visium/visium-passes.def: New file.
2659 * config/visium/t-visium (PASSES_EXTRA): Define.
2660 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
2661 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
2662 (TRAMPOLINE_ALIGNMENT): Define.
2663 * config/visium/visium.c (visium_option_override): Do not register
2664 the machine-specific reorg pass here.
2665 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
2667 (output_branch): Adjust threshold for long branch instruction.
2668 * config/visium/visium.md (cpu): Move around.
2669 (length): Adjust for the GR6.
2671 2019-02-15 Richard Biener <rguenther@suse.de>
2672 Jakub Jelinek <jakub@redhat.com>
2674 PR tree-optimization/89278
2675 * tree-loop-distribution.c: Include tree-eh.h.
2676 (generate_memset_builtin, generate_memcpy_builtin): Call
2677 rewrite_to_non_trapping_overflow on builtin->size before passing it
2678 to force_gimple_operand_gsi.
2680 2019-02-15 Jakub Jelinek <jakub@redhat.com>
2683 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
2685 * opth-gen.awk: Likewise.
2687 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
2689 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
2690 Enable MMX, SSE and SSE2 by default.
2691 * config/i386/i386.c (ix86_option_override_internal): Do not
2692 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
2694 2019-02-14 Jakub Jelinek <jakub@redhat.com>
2696 PR rtl-optimization/89354
2697 * combine.c (make_extraction): Punt if extraction_mode is narrower
2700 2019-02-14 Maya Rashish <coypu@sdf.org>
2702 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
2703 * config/netbsd-d.c: New file.
2704 * config/t-netbsd: Add netbsd-d.o
2706 2018-02-14 Steve Ellcey <sellcey@marvell.com>
2708 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
2709 affects_type_identity to true for aarch64_vector_pcs.
2710 (aarch64_comp_type_attributes): New function.
2711 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
2713 2019-02-14 Tamar Christina <tamar.christina@arm.com>
2716 * config/arm/iterators.md (ANY64): Add V4HF.
2718 2019-02-14 Martin Liska <mliska@suse.cz>
2720 PR rtl-optimization/89242
2721 * dce.c (delete_unmarked_insns): Call free_dominance_info we
2722 process a transformation.
2724 2019-02-14 Jakub Jelinek <jakub@redhat.com>
2726 PR tree-optimization/89314
2727 * fold-const.c (fold_binary_loc): Cast strlen argument to
2728 const char * before dereferencing it. Formatting fixes.
2731 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
2733 2019-02-13 Ian Lance Taylor <iant@golang.org>
2735 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
2736 and set current index for other optimizations.
2738 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
2740 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
2741 nonimmediate_operand as operand 2 predicate.
2742 (vec_set<VF2_512_256:mode>_0): Ditto.
2743 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
2744 (*vec_concatv2si): Remove alternative 2.
2745 (*vec_concatv4si_0): Use vm constraint for alternative 0.
2746 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
2747 (vec_concatv2di): Split alternatives 4,5,6 to ...
2748 (*vec_concatv2di_0) ... new pattern.
2750 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
2753 * config/arm/arm.c (ldm_stm_operation_p) Set
2754 addr_reg_in_reglist correctly for first register.
2755 (load_multiple_sequence): Remove dead base check.
2756 (gen_ldm_seq): Correctly set write_back for Thumb-1.
2758 2019-02-13 Tamar Christina <tamar.christina@arm.com>
2761 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
2762 Expose as @aarch64_pred_mov.
2763 * config/aarch64/aarch64.c (aarch64_classify_address):
2764 Use expand_insn which legitimizes operands.
2766 2019-02-13 Martin Liska <mliska@suse.cz>
2768 * builtins.h (expand_builtin_with_bounds): Remove declaration.
2769 * calls.c (struct arg_data): Remove special_slot, pointer_arg
2770 and pointer_offset fields.
2771 (initialize_argument_information): Remove usage of dead
2773 * cgraph.h (struct cgraph_thunk_info): Remove
2774 add_pointer_bounds_args.
2775 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
2777 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
2779 * config/i386/i386.c (ix86_function_arg_advance): Remove
2781 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
2782 (def_builtin): Remove usage of dead
2784 (ix86_add_new_builtins): Likewise.
2785 * ipa-fnsummary.c (compute_fn_summary): Likewise.
2786 * ipa-icf.c (sem_function::equals_wpa): Likewise.
2787 (sem_function::init): Likewise.
2788 (sem_variable::merge): Likewise.
2789 * ipa-visibility.c (function_and_variable_visibility): Likewise.
2790 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
2791 * lto-cgraph.c (lto_output_node): Likewise.
2792 (lto_output_varpool_node): Likewise.
2793 (input_node): Likewise.
2794 (input_varpool_node): Likewise.
2795 * lto-streamer-out.c (lto_output): Likewise.
2796 * tree-inline.c (expand_call_inline): Remove usage of
2798 * tree-inline.h (struct copy_body_data): Likewise.
2799 * varpool.c (varpool_node::dump): Likewise.
2801 2019-02-13 Jakub Jelinek <jakub@redhat.com>
2804 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
2805 into pt->vars_contains_escaped_heap instead of setting
2806 pt->vars_contains_escaped_heap to it.
2809 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
2810 INTVAL (size), compare it to GET_MODE_MASK instead of
2811 1 << GET_MODE_BITSIZE.
2814 * config/i386/predicates.md (x86_64_immediate_operand): Allow
2815 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
2818 2019-02-13 Martin Liska <mliska@suse.cz>
2821 * cfgrtl.c (remove_barriers_from_footer): New function.
2822 (try_redirect_by_replacing_jump): Use it.
2823 (cfg_layout_redirect_edge_and_branch): Likewise.
2825 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
2827 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
2828 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
2829 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
2830 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
2831 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
2832 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
2834 * config/rs6000/rs6000.c (builtin_function_type)
2835 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
2836 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
2837 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
2838 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
2839 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
2841 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
2843 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
2844 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
2846 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
2849 * config/i386/i386.md (*movoi_internal_avx): Revert revision
2850 268678 and revision 268657.
2851 (*movti_internal): Likewise.
2853 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
2856 * config/s390/s390.c (s390_decompose_address): Update comment.
2857 (s390_check_qrst_address): Reject invalid address forms after
2860 2019-02-12 Martin Liska <mliska@suse.cz>
2863 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
2864 we need default values of funct_state for a function that
2867 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
2869 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
2870 the object to pick the size of stores on strict-alignment platforms.
2872 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
2873 (*movdi_insn_sp32): Likewise.
2874 (*movdi_insn_sp64): Likewise.
2876 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
2879 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
2880 types that needs constructiong.
2881 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
2883 2019-02-12 Richard Biener <rguenther@suse.de>
2885 PR tree-optimization/89253
2886 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
2889 2019-02-11 David Malcolm <dmalcolm@redhat.com>
2892 * input.c (selftest::test_line_offset_overflow): New selftest.
2893 (selftest::input_c_tests): Call it.
2895 2019-02-11 Martin Sebor <msebor@redhat.com>
2897 PR tree-optimization/88771
2898 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
2899 when -Wstringop-overflow is set.
2900 (builtin_memref::builtin_memref): Adjust excessive upper bound
2901 only when lower bound is not excessive.
2902 (maybe_diag_overlap): Detect and diagnose excessive bounds via
2903 -Wstringop-ovefflow.
2904 (maybe_diag_offset_bounds): Rename...
2905 (maybe_diag_access_bounds): ...to this.
2906 (check_bounds_or_overlap): Adjust for name change above.
2908 2019-02-11 Martin Sebor <msebor@redhat.com>
2911 * builtins.c (max_object_size): Move from here...
2912 * builtins.h (max_object_size): ...and here...
2913 * tree.c (max_object_size): ...to here...
2914 * tree.h (max_object_size): ...and here.
2916 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
2918 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
2919 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
2920 for correct semantics.
2922 2019-02-11 Alan Modra <amodra@gmail.com>
2924 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
2925 -mlongcall and -mpltseq.
2926 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
2927 (RS/6000 and PowerPC Options <-mpltseq>): Document.
2928 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
2929 * config/rs6000/sysv4.opt (mpltseq): New option.
2930 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
2931 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
2932 support is lacking. Don't allow -mpltseq with -mbss-plt.
2933 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
2934 -mpltseq given for ELFv1.
2935 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
2936 Only use UNSPEC_PLTSEQ for inline PLT calls.
2937 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
2938 use UNSPEC_PLTSEQ for inline PLT calls.
2939 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
2940 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
2941 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
2942 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
2943 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
2944 (pltseq_mtctr_<mode>): Likewise.
2946 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2948 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
2950 * configure: Regenerate.
2952 2019-02-11 Jakub Jelinek <jakub@redhat.com>
2955 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
2958 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
2960 * function.c (assign_parm_setup_block): Use the stored
2961 size, not the passed size, when allocating stack-space,
2962 also for a parameter with alignment larger than
2963 MAX_SUPPORTED_STACK_ALIGNMENT.
2965 2019-02-11 Martin Liska <mliska@suse.cz>
2968 * ipa-cp.c (build_toporder_info): Remove usage of a param.
2969 * ipa-inline.c (inline_small_functions): Likewise.
2970 * ipa-pure-const.c (propagate_pure_const): Likewise.
2971 (propagate_nothrow): Likewise.
2972 * ipa-reference.c (propagate): Likewise.
2973 * ipa-utils.c (struct searchc_env): Remove unused field.
2974 (searchc): Always search across AVAIL_INTERPOSABLE.
2975 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
2976 the only called IPA pure const can properly not propagate
2977 across interposable boundary.
2978 * ipa-utils.h (ipa_reduced_postorder): Remove param.
2980 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
2982 * config/nds32/nds32.md (call_internal, call_value_internal,
2983 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
2985 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
2987 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
2990 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
2992 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
2995 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
2997 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
2999 2019-02-10 Jakub Jelinek <jakub@redhat.com>
3001 PR tree-optimization/89268
3002 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
3003 if preds is non-NULL.
3005 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
3008 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
3011 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
3013 * config/nds32/nds32.md (trap): New pattern.
3015 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
3017 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
3020 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
3022 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
3025 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
3027 * ipa-visibility.c (localize_node): Also do not localize
3028 LDPR_PREVAILING_DEF_IRONLY_EXP.
3030 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
3033 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
3034 instead of type_with_linkage.
3036 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
3039 * params.def (uninlined-function-insns, uninlined-function-time,
3040 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
3041 bound so we don't get overflows.
3043 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
3045 * config/rs6000/rs6000-string.c (expand_compare_loop,
3046 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
3049 2019-02-09 Jakub Jelinek <jakub@redhat.com>
3052 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
3053 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
3054 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
3056 2019-02-09 Alan Modra <amodra@gmail.com>
3059 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
3060 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
3063 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
3066 * lra-constraints.c (process_alt_operands): Don't increase reject
3067 for memory when offset memory is required.
3069 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
3071 * config/s390/vector.md: Implement vector copysign.
3073 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
3075 * expr.c (expand_constructor): Correct indentations.
3077 2019-02-08 Richard Biener <rguenther@suse.de>
3079 PR tree-optimization/89247
3080 * tree-if-conv.c: Include tree-cfgcleanup.h.
3081 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
3082 (tree_if_conversion): Pass through predicate vector.
3083 (pass_if_conversion::execute): Do CFG cleanup and SSA update
3084 inline, see if any if-converted loops we refrece in
3085 LOOP_VECTORIZED calls vanished and fixup.
3086 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
3088 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
3090 * config/s390/constraints.md (jdd): New constraint.
3092 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
3095 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
3096 upper 16 vector registers without TARGET_AVX512VL.
3097 (*movti_internal): Likewise.
3099 2019-02-08 Jakub Jelinek <jakub@redhat.com>
3101 PR rtl-optimization/89234
3102 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
3103 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
3104 (copy_reg_eh_region_note_backward): Likewise.
3106 2019-02-08 Richard Biener <rguenther@suse.de>
3109 * tree-data-ref.c (initialize_matrix_A): Fail if constant
3111 (analyze_subscript_affine_affine): Handle failure from
3112 initialize_matrix_A.
3114 2019-02-08 Jakub Jelinek <jakub@redhat.com>
3116 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
3119 2019-02-07 David Malcolm <dmalcolm@redhat.com>
3121 PR tree-optimization/86637
3122 PR tree-optimization/89235
3123 * tree-vect-loop.c (optimize_mask_stores): Add an
3124 auto_purge_vect_location sentinel to ensure that vect_location is
3127 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
3128 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
3129 to ensure that vect_location is purged on exit.
3130 (pass_slp_vectorize::execute): Likewise, replacing the manual
3132 * tree-vectorizer.h (class auto_purge_vect_location): New class.
3134 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3136 * config/aarch64/iterators.md (max_opp): New code_attr.
3137 (USMAX): New code iterator.
3138 * config/aarch64/predicates.md (aarch64_smin): New predicate.
3139 (aarch64_smax): Likewise.
3140 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
3141 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
3144 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
3147 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
3148 for TARGET_AVX512VL.
3149 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
3151 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
3153 * config/s390/s390-builtin-types.def: Add new types.
3154 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
3155 (s390_vec_xlw4): Make the memory operand into a const pointer.
3156 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
3158 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
3159 a new vector type with the alignment of the scalar memory operand.
3161 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
3162 Jakub Jelinek <jakub@redhat.com>
3165 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
3166 arm_count_ldrdstrd_insns): New declarations.
3167 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
3169 (valid_operands_ldrd_strd): New function.
3170 (arm_count_ldrdstrd_insns): New function.
3171 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
3172 sets instead of single DImode set and define new insns to match this.
3174 2019-02-07 Tamar Christina <tamar.christina@arm.com>
3176 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
3177 Make it a C initializer.
3179 2019-02-07 Tamar Christina <tamar.christina@arm.com>
3182 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
3184 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3186 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
3187 Use neon_dot<q> for type.
3188 (neon_<sup>dot_lane<vsi2qi>): Likewise.
3190 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3192 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
3193 Use neon_dot<q> for type.
3194 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
3195 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
3197 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
3199 PR rtl-optimization/89225
3200 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
3203 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
3205 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
3206 after restoring registers saved to allocate the frame on Windows.
3208 2019-02-06 Richard Biener <rguenther@suse.de>
3210 PR tree-optimization/89182
3211 * graphite.h (cached_scalar_evolution_in_region): Declare.
3212 * graphite.c (struct seir_cache_key): New.
3213 (struct sese_scev_hash): Likewise.
3214 (seir_cache): New global.
3215 (cached_scalar_evolution_in_region): New function.
3216 (graphite_transform_loops): Allocate and release seir_cache.
3217 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
3218 cached_scalar_evolution_in_region.
3219 * graphite-scop-detection.c (scop_detection::can_represent_loop):
3221 (scop_detection::graphite_can_represent_expr: Use
3222 cached_scalar_evolution_in_region.
3223 (scop_detection::stmt_simple_for_scop_p): Likewise.
3224 (find_params_in_bb): Likewise.
3225 (gather_bbs::before_dom_children): Likewise.
3226 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
3227 (add_loop_constraints): Likewise.
3229 2019-02-06 Jakub Jelinek <jakub@redhat.com>
3232 * fold-const-call.c (fold_const_vec_convert): Pass true as last
3233 operand to new_unary_operation only if both element types are integral
3234 and it isn't a widening conversion. Return NULL_TREE if
3235 new_unary_operation failed.
3237 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
3240 * config/s390/s390.md: Remove load and test FP splitter.
3242 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
3245 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
3246 expand_compare_loop, expand_block_compare_gpr,
3247 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
3248 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
3249 #include "profile-count.h" and "predict.h" for types and functions
3250 needed to work with REG_BR_PROB notes.
3252 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
3255 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
3256 for the long branch case.
3258 2019-02-05 Jakub Jelinek <jakub@redhat.com>
3261 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
3262 can throw, non-call exceptions are enabled and we can't delete
3263 dead exceptions or alter cfg. Set must_clean if
3264 delete_insn_and_edges returns true, don't set it blindly for calls.
3265 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
3267 PR rtl-optimization/89195
3268 * combine.c (make_extraction): For MEMs, don't extract bytes outside
3269 of the original MEM.
3271 2019-02-05 Martin Liska <mliska@suse.cz>
3273 PR gcov-profile/89000
3274 * gcov.c (function_summary): Remove argument.
3275 (file_summary): New function.
3276 (print_usage): Replace tabs with spaces.
3277 (generate_results): Use new function file_summary.
3279 2019-02-05 Jakub Jelinek <jakub@redhat.com>
3282 * optabs.c (prepare_cmp_insn): Pass x and y to
3283 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
3285 2019-02-05 Richard Biener <rguenther@suse.de>
3288 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
3289 (struct bitmap_element): Drop chain_prev so we properly recurse on
3290 the prev member, supporting tree views.
3291 (struct bitmap_head): GTY skip the obstack member.
3293 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
3296 * doc/extend.texi (Vector Extensions): Add an example of using vector
3297 types together with x86 intrinsics.
3299 2019-02-04 Alan Modra <amodra@gmail.com>
3301 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
3302 str[] size to 160, and comment.
3304 2019-02-04 Alan Modra <amodra@gmail.com>
3306 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
3307 (rs6000_pltseq_template): Guard output of TLS markers with
3309 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
3310 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
3311 to use inline PLT sequences.
3312 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
3313 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
3314 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
3316 2019-02-04 Martin Liska <mliska@suse.cz>
3319 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
3320 out when ipa_fn_summaries does not contain entry for callee.
3322 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
3324 * config/sparc/sparc.h: Remove superfluous blank lines.
3325 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
3326 (got_register_rtx): ...this.
3327 (sparc_got): Adjust to above renaming.
3328 (sparc_tls_got): Likewise.
3329 (sparc_delegitimize_address): Likewise.
3330 (sparc_output_mi_thunk): Likewise.
3331 (sparc_init_pic_reg): Likewise.
3332 (save_local_or_in_reg_p): Fix test on the GOT register.
3333 (USE_HIDDEN_LINKONCE): Move around.
3334 (get_pc_thunk_name): Likewise.
3335 (gen_load_pcrel_sym): Likewise.
3336 (load_got_register): Likewise.
3338 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
3340 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
3341 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
3343 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
3345 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
3348 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
3350 * config.gcc (with_nds32_lib, glibc):
3351 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
3352 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
3353 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
3355 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
3358 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
3359 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
3360 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
3361 (*rcpsf2_sse): Ditto.
3362 (*rsqrtsf2_sse): Ditto.
3363 (sse4_1_round<mode<2): Ditto.
3365 2019-02-03 Richard Biener <rguenther@suse.de>
3368 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
3371 2019-02-02 Jakub Jelinek <jakub@redhat.com>
3374 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
3375 Punt with warning on aggregate return or argument types. Ignore
3376 type/mode checking for uniform arguments.
3378 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
3380 * combine.c (try_combine): Do not print "Can't combine" messages unless
3381 printing failed combination attempts.
3383 2019-02-01 Martin Jambor <mjambor@suse.cz>
3386 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
3387 segment and global segment variables before making them static.
3389 2019-02-01 Martin Jambor <mjambor@suse.cz>
3391 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
3392 missed optimization dump with dump_enabled_p.
3394 2019-02-01 Richard Biener <rguenther@suse.de>
3397 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
3398 the instantiate cache.
3399 (instantiate_scev_binary): Elide second operand procesing
3400 if equal to the first.
3401 * tree-chrec.c (chrec_contains_symbols): Add visited set.
3402 (chrec_contains_undetermined): Likewise.
3403 (tree_contains_chrecs): Likewise.
3405 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
3407 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
3409 2019-02-01 Jakub Jelinek <jakub@redhat.com>
3411 PR tree-optimization/89143
3412 * wide-int-range.h (wide_int_range_absu): Declare.
3413 * wide-int-range.cc (wide_int_range_absu): New function.
3414 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
3416 PR tree-optimization/88107
3417 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
3418 instead of assertion that eh_region_outermost is non-NULL, if it
3419 is NULL, set *ALL to true and return NULL.
3420 (move_sese_region_to_fn): Adjust caller, if all is set, call
3421 duplicate_eh_regions with NULL region.
3423 2019-02-01 Richard Biener <rguenth@suse.de>
3425 PR rtl-optimization/88593
3426 * mode-switching.c (optimize_mode_switching): Free dominators before
3427 calling cleanup_cfg.
3429 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
3431 PR tree-optimization/88932
3432 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
3434 2019-01-31 Jakub Jelinek <jakub@redhat.com>
3437 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
3438 bogus clang warning.
3440 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
3443 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
3444 alternative to avoid partial SSE register stall for TARGET_AVX.
3445 (truncdfsf2): Ditto.
3446 (sse4_1_round<mode>2): Ditto.
3448 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
3450 PR tree-optimization/89008
3451 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
3452 process anything of the form X * 0.
3454 2019-01-31 Richard Biener <rguenther@suse.de>
3456 PR tree-optimization/89135
3457 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
3458 with abnormal preds.
3460 2019-01-31 Jakub Jelinek <jakub@redhat.com>
3463 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
3464 always_inline callees into no_sanitize_address callers.
3466 2019-01-31 Richard Biener <rguenther@suse.de>
3468 PR rtl-optimization/89115
3469 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
3471 2019-01-30 Martin Sebor <msebor@redhat.com>
3474 * doc/extend.texi (cast to a union): Correct and expand.
3476 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
3478 PR rtl-optimization/87246
3479 * lra-constraints.c (simplify_operand_subreg): Reload memory
3480 in subreg if the address became invalid.
3482 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
3485 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
3486 Disable for little-endian.
3488 2019-01-30 Richard Biener <rguenther@suse.de>
3490 PR rtl-optimization/89115
3491 * opts.c (default_options_optimization): Reduce
3492 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
3493 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
3496 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
3498 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
3499 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
3500 type of vector element when vec_extract is implemented by direct
3503 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
3505 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
3507 2019-01-30 Richard Biener <rguenther@suse.de>
3509 PR tree-optimization/89111
3510 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
3511 canonicalization to appropriately sized access types.
3513 2019-01-30 Jakub Jelinek <jakub@redhat.com>
3516 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
3517 for arguments to functions that are TU-local and shouldn't be
3518 referenced by assembly.
3520 2019-01-30 Ulrich Drepper <drepper@redhat.com>
3522 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
3525 2019-01-29 Martin Sebor <msebor@redhat.com>
3528 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
3530 2019-01-29 Jakub Jelinek <jakub@redhat.com>
3534 * omp-simd-clone.c (simd_clone_clauses_extract)
3535 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
3536 OMP_CLAUSE_ALIGNED_ALIGNMENT.
3538 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
3540 * config.gcc: Force .init_array for ARC.
3542 2019-01-29 Richard Biener <rguenther@suse.de>
3545 * dwarf2out.c (collect_skeleton_dies): New helper.
3546 (copy_decls_for_unworthy_types): Call it.
3547 (build_abbrev_table): Assert we do not try to replace
3548 DW_AT_signature refs with local refs.
3550 2019-01-28 Jakub Jelinek <jakub@redhat.com>
3553 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
3554 for lastprivate/linear IV, push gimplify context around gimplify_assign
3555 and, if it needed any temporaries, pop it into a gimple bind around the
3558 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
3560 * common.opt (-Wattribute-alias): Remove "no-" from name.
3561 Make -Wattribute-alias command line option and
3562 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
3564 2019-01-28 Jakub Jelinek <jakub@redhat.com>
3567 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
3568 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
3570 (bmi2): Add missing @opindex.
3571 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
3572 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
3573 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
3574 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
3575 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
3576 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
3577 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
3578 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
3579 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
3580 xsavec, xsaveopt and xsaves options.
3582 2019-01-28 Richard Biener <rguenther@suse.de>
3585 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
3588 2019-01-28 Richard Biener <rguenther@suse.de>
3590 PR tree-optimization/88739
3591 * tree-cfg.c (verify_types_in_gimple_reference): Verify
3592 BIT_FIELD_REFs only are applied to mode-precision operands
3593 when they are integral.
3594 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
3595 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
3596 BIT_FIELD_REFs of non-mode-precision integral operands.
3598 2019-01-27 Jakub Jelinek <jakub@redhat.com>
3601 * config/i386/sse.md
3602 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
3603 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
3604 first constants in pairs are multiples of 2. Formatting fixes.
3605 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
3606 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
3607 first constants in each quadruple are multiples of 4. Formatting fixes.
3609 2019-01-26 Martin Jambor <mjambor@suse.cz>
3612 * tree-inline.c: Include tree-cfgcleanup.h.
3613 (delete_unreachable_blocks_update_callgraph): Move...
3614 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
3615 ...here, make externally visible, make second argument bool, adjust
3617 * tree-cfgcleanup.c: Include cgraph.h.
3618 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
3620 * ipa-prop.c: Include tree-cfgcleanup.h.
3621 (ipcp_transform_function): Call
3622 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
3624 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
3626 PR rtl-optimization/88846
3627 * ira.c (process_set_for_memref_referenced_p): New.
3628 (memref_referenced_p): Add new param. Use
3629 process_set_for_memref_referenced_p. Add new switch cases.
3630 (memref_used_between_p): Pass new arg to memref_referenced_p.
3632 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
3635 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
3636 argument ABI_BREAK. Set to true if the calculated alignment has
3637 changed in gcc-9. Check bit-fields for their base type alignment.
3638 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
3639 (aarch64_function_arg_boundary): Likewise.
3640 (aarch64_gimplify_va_arg_expr): Likewise.
3642 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
3645 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
3646 instead of accessing TREE_INT_CST_ELT directly.
3648 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
3650 * doc/sourcebuild.texi (Environment attributes): Add fenv and
3651 fenv_exceptions description.
3653 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
3655 PR rtl-optimization/87763
3656 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
3657 Allow SUBREG when matching CC_NZmode compare.
3659 2019-01-25 Richard Biener <rguenther@suse.de>
3661 PR tree-optimization/89049
3662 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
3663 Look at the pattern stmt to determine if the stmt is vectorized.
3665 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
3667 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
3668 (pred_mov<mode>): Handle all-register forms using both a new
3669 alternative and a split.
3671 2019-01-25 Richard Biener <rguenther@suse.de>
3673 PR tree-optimization/86865
3674 * graphite-scop-detection.c (scop_detection::can_represent_loop):
3675 Reject non-do-while loops.
3677 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
3679 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
3680 * config/rs6000/constraints.md (Q constraint): Use REG_P.
3681 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
3682 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
3683 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
3684 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
3685 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
3686 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
3687 vlogical_operand, gpc_reg_operand, int_reg_operand,
3688 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
3689 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
3690 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
3691 (save_world_operation, restore_world_operation, lmw_operation,
3692 stmw_operation): Use MEM_P and REG_P.
3693 (tie_operand): Use MEM_P.
3694 (vrsave_operation, crsave_operation): Use REG_P.
3695 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
3696 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
3697 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
3698 (call_operand): Use HARD_REGISTER_P.
3699 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
3701 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
3702 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
3703 quad_aligned_load_p, replace_swapped_aligned_store,
3704 recombine_lvx_pattern, replace_swapped_aligned_load,
3705 recombine_stvx_pattern): Use MEM_P.
3706 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
3707 Use MEM_P and SYMBOL_REF_P.
3708 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
3709 (insn_is_swappable_p): Use REG_P and MEM_P.
3710 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
3711 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
3713 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
3715 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
3717 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
3718 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
3719 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
3720 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
3722 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
3723 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
3724 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
3725 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
3726 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
3727 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
3728 rs6000_split_logical_di): Use CONST_INT_P.
3729 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
3730 REG_P and SYMBOL_REF_P.
3731 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
3732 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
3733 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
3734 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
3735 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
3736 (small_data_operand, print_operand_address): Use CONST_INT_P and
3738 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
3739 (rs6000_init_hard_regno_mode_ok, direct_move_p):
3740 Use HARD_REGISTER_NUM_P.
3741 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
3742 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
3743 SUBREG_P and SYMBOL_REF_P.
3744 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
3745 and HARD_REGISTER_NUM_P.
3746 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
3748 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
3749 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
3751 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
3752 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
3753 find_addr_reg): Use REG_P.
3754 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
3755 (rs6000_emit_le_vsx_move): Use SUBREG_P.
3756 (offsettable_ok_by_alignment, constant_pool_expr_p,
3757 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
3758 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
3759 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
3760 rs6000_assemble_integer, create_TOC_reference,
3761 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
3762 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
3763 (rs6000_split_vec_extract_var): Use reg_or_subregno.
3764 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
3765 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
3766 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
3767 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
3768 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
3769 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
3770 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
3771 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
3772 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
3773 and cbranch<mode>4): Use CONST_INT_P.
3774 (multiple define_splits): Use REG_P and SUBREG_P.
3775 (define_expands call, call_value): Use MEM_P.
3776 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
3777 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
3778 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
3779 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
3780 and HARD_REGISTER_NUM_P.
3781 (multiple define_splits): Use HARD_REGISTER_NUM_P.
3783 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
3785 PR rtl-optimization/88948
3786 * rtl.h (prepare_copy_insn): New prototype.
3787 * gcse.c (prepare_copy_insn): New function, split out from
3788 process_insert_insn.
3789 (process_insert_insn): Use prepare_copy_insn.
3790 * store-motion.c (replace_store_insn): Use prepare_copy_insn
3791 instead of gen_move_insn.
3793 2019-01-24 Jakub Jelinek <jakub@redhat.com>
3796 * config/i386/i386.c (ix86_pic_register_p): Return true for
3799 PR tree-optimization/88964
3800 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
3801 punt if HONOR_SNANS (chrec).
3804 * tree-nested.c (convert_nonlocal_reference_stmt,
3805 convert_local_reference_stmt, convert_tramp_reference_stmt,
3806 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
3807 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
3810 PR tree-optimization/89027
3811 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
3812 for "omp simd array" variables.
3814 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
3817 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
3818 force the alignment of m_val.
3820 2019-01-24 Richard Biener <rguenther@suse.de>
3823 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
3824 When in "legacy" debug mode make sure to reset self-origins.
3826 2019-01-24 Martin Liska <mliska@suse.cz>
3828 PR gcov-profile/88994
3829 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
3830 result will be always smaller or equal to the original.
3831 * gcov.c (mangle_name): Fix else branch where we should
3832 also copy to PTR and shift the pointer.
3834 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
3836 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
3837 * vr-values.c (find_case_label_ranges): Fix a comment typo.
3839 2019-01-23 Bin Cheng <bin.cheng@arm.com>
3840 Steve Ellcey <sellcey@marvell.com>
3843 * recog.c (address_operand): Return false on wrong mode for address.
3844 (constrain_operands): Check for mode with 'p' constraint.
3846 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
3849 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
3850 Disparage MMX alternative.
3851 (sse2_cvtpd2pi): Ditto.
3852 (sse2_cvttpd2pi): Ditto.
3854 2019-01-23 David Malcolm <dmalcolm@redhat.com>
3857 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
3858 use-after-free of the result of
3859 aarch64_get_extension_string_for_isa_flags.
3861 2019-01-23 Jakub Jelinek <jakub@redhat.com>
3864 * doc/extend.texi: Document break and continue behavior in
3865 statement expressions.
3867 2019-01-23 Richard Biener <rguenther@suse.de>
3869 PR tree-optimization/89008
3870 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
3871 not leave another stray operand.
3873 2019-01-23 Jakub Jelinek <jakub@redhat.com>
3875 * BASE-VER: Bump to 9.0.1.
3877 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
3879 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
3880 thunk that returns by reference, use the type of the return object
3881 of the thunk instead of that of the alias to build the dereference.
3883 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
3885 * config/arc/atomic.md: Add operand to DMB instruction.
3887 2019-01-23 Jakub Jelinek <jakub@redhat.com>
3889 PR tree-optimization/88964
3890 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
3891 build_zero_cst instead of build_int_cst. Return false for loop
3892 invariants which honor signed zeros.
3894 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
3896 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
3898 2019-01-22 Jakub Jelinek <jakub@redhat.com>
3901 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
3902 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
3903 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
3906 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
3907 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
3910 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
3911 Disable for little endian.
3913 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
3916 * config/arm/arm.c (arm_needs_double_word_align): Check
3917 DECL_BIT_FIELD_TYPE.
3919 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
3920 H.J. Lu <hongjiu.lu@intel.com>
3923 * config/i386/i386-builtin.def: Add mask2 to all builtin
3924 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
3926 * config/i386/i386.c (BDESC): Add mask2 to the definition.
3927 (BDESC_FIRST): Likewise.
3928 (define_builtin): Add an argument for mask2. Updated to handle
3929 both ix86_isa_flags and ix86_isa_flags2.
3930 (define_builtin_const): Likewise.
3931 (define_builtin_pure): Likewise.
3932 (define_builtin2): Deleted.
3933 (define_builtin_const2): Likewise.
3934 (builtin_description): Add a member, mask2.
3935 (bdesc_*): Add mask2 to builtin initializations.
3936 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
3937 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
3939 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
3941 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
3944 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
3947 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
3950 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
3951 alignment is dominated by a bitfield with 64-bit aligned base type.
3952 (arm_function_arg): Emit a warning if the alignment has changed since
3953 earlier GCC releases.
3954 (arm_function_arg_boundary): Likewise.
3955 (arm_setup_incoming_varargs): Likewise.
3957 2019-01-22 Richard Biener <rguenther@suse.de>
3959 PR tree-optimization/88862
3960 * graphite-scop-detection.c
3961 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
3963 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
3965 * doc/extend.tex (AMD GCN Function Attributes): New section.
3966 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
3967 * doc/invoke.texi (AMD GCN Options): New section.
3968 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
3970 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
3972 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
3973 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
3975 2019-01-22 Jakub Jelinek <jakub@redhat.com>
3977 PR tree-optimization/88044
3978 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
3979 is false in the first iteration, but !every_iteration, return false
3980 instead of true with niter->niter zero.
3982 PR rtl-optimization/88904
3983 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
3984 any nonequal registers before processing BB_END (b).
3987 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
3989 (expand_binop_directly, expand_doubleword_clz,
3990 expand_doubleword_popcount, expand_ctz, expand_ffs,
3991 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
3993 PR rtl-optimization/49429
3995 PR rtl-optimization/86334
3997 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
3998 addressable from here...
3999 (emit_block_op_via_libcall): ... to here.
4001 2019-01-22 Richard Biener <rguenther@suse.de>
4003 * tree-vect-loop.c (vect_analyze_loop_operations): Use
4004 auto_vec for cost vector to fix memleak.
4005 (vectorize_fold_left_reduction): Properly gather SLP defs.
4006 (vectorizable_comparison): Do not swap operands to properly
4009 2019-01-22 Alan Modra <amodra@gmail.com>
4012 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
4013 stays a reg. Allow a const_int.
4014 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
4015 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
4016 (IS_NOMARK_TLSGETADDR): Define.
4017 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
4018 (rs6000_output_tlsargs): New function.
4019 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
4020 __tls_get_addr call takes an arg.
4021 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
4022 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
4024 (call_value_nonlocal_sysv): ..or here, delete split.
4025 (tls_gdld_nomark): Delete.
4026 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
4027 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
4028 (call_value_nonlocal_sysv): Likewise.
4029 (call_value_nonlocal_sysv_secure): Likewise.
4030 (call_value_nonlocal_aix): Likewise.
4031 (call_value_indirect_aix): Likewise.
4032 (call_value_indirect_elfv2): Likewise.
4033 (call_value_local32, call_value_local64): Disable for no-mark tls.
4034 (call_value_local_aix): Likewise.
4036 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
4039 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
4040 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
4042 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
4044 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
4045 string contents as hash_map keys.
4047 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
4050 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
4051 for rvalue context. Handle rvalues correctly. Use min_align_of_type
4052 instead of TYPE_ALIGN.
4053 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
4054 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
4055 pointer from TYPE_STUB_DECL.
4057 2019-01-21 Richard Biener <rguenther@suse.de>
4059 PR tree-optimization/88934
4060 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
4061 at the possibly non-constant operand.
4062 (vect_get_constant_vectors): Adjust.
4064 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
4067 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
4068 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
4069 instead of _X86INTRIN_H_INCLUDED.
4070 * onfig/i386/clwbintrin.h: Likewise.
4071 * config/i386/pkuintrin.h: Likewise.
4072 * config/i386/prfchwintrin.h: Likewise.
4073 * config/i386/rdseedintrin.h: Likewise.
4074 * config/i386/wbnoinvdintrin.h: Likewise.
4075 * config/i386/xsavecintrin.h: Likewise.
4076 * config/i386/xsavesintrin.h: Likewise.
4077 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
4078 * config/i386/xsaveintrin.h: Likewise.
4079 * config/i386/xsaveoptintrin.h: Likewise.
4080 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
4081 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
4082 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
4083 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
4084 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
4085 * config/i386/immintrin.h: Here.
4087 2019-01-20 Martin Jambor <mjambor@suse.cz>
4090 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
4091 with aa_walk_budget.
4092 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
4093 aa_walk_budget_p parameter.
4094 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
4095 walk. Updated all callers.
4096 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
4097 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
4099 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
4100 parameter info. Extract info from fbi. Pass fbi to recursive calls
4101 and to unmodified_parm.
4102 (phi_result_unknown_predicate): New parameter fbi, removed parameter
4103 info, updated call to will_be_nonconstant_expr_predicate.
4104 (param_change_prob): New parameter fbi, limit AA walking.
4105 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
4106 calls to various above functions.
4107 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
4108 parameter. Use it to limit AA walking.
4109 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
4111 (detect_type_change): New parameter fbi, pass it on to
4112 detect_type_change_from_memory_writes.
4113 (detect_type_change_ssa): Likewise.
4114 (aa_overwalked): Removed.
4115 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
4116 accordingly, adjust to the neew AA limiting scheme.
4117 (parm_ref_data_preserved_p): Likewise.
4118 (ipa_compute_jump_functions_for_edge): Adjust call to
4120 (ipa_analyze_call_uses): Likewise.
4121 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
4122 (ipa_analyze_node): Initialize aa_walk_budget.
4123 (ipcp_transform_function): Likewise.
4124 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
4125 to get_dynamic_type.
4127 2019-01-19 Jakub Jelinek <jakub@redhat.com>
4129 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
4130 outside of #if CHECKING_P code.
4132 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
4134 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
4135 New function, split out from...
4136 (loop_versioning::analyze_stride): ...here.
4137 (loop_versioning::find_per_loop_multiplication): Use gassign.
4138 (loop_versioning::analyze_term_using_scevs): Return a success code.
4139 (loop_versioning::analyze_arbitrary_term): New function.
4140 (loop_versioning::analyze_address_fragment): Use
4141 analyze_arbitrary_term if all else fails.
4143 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
4146 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
4149 2019-01-18 Richard Biener <rguenther@suse.de>
4151 PR tree-optimization/88903
4152 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
4153 scalar stmts a SLP shift amount is composed of when detecting
4156 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
4159 * config/arm/arm-cpus.in (mp): New feature.
4161 (fgroup ARMv7ve): Add mp and sec features.
4162 (arch armv7-a): Add options to allow mp and sec extensions.
4163 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
4164 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
4165 extenstions to the base architecture.
4166 (cpu cortex-a8): Add sec extension to the base architecture.
4167 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
4168 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
4169 variants down to the base v7-a varaint.
4170 * config/arm/t-multilib (v7_a_arch_variants): New variable.
4171 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
4172 of permitted extensions for -march=armv7-a and for
4173 -mcpu=generic-armv7-a.
4175 2019-01-18 Martin Liska <mliska@suse.cz>
4177 * params.def: Fix comment.
4178 * tree-profile.c (gimple_init_gcov_profiler): Bump function
4180 (gimple_gen_ic_func_profiler): Likewise.
4182 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4184 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
4185 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
4186 and put in error checks for stack protector guard options.
4187 (aarch64_stack_protect_guard): New.
4188 (TARGET_STACK_PROTECT_GUARD): Define.
4189 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
4190 (reg_stack_protect_address<mode>): New.
4191 (stack_protect_set): Adjust for SSP_GLOBAL.
4192 (stack_protect_test): Likewise.
4193 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
4194 (-mstack-protector-guard): Likewise.
4195 (-mstack-protector-guard-offset): Likewise.
4197 2019-01-18 Jakub Jelinek <jakub@redhat.com>
4199 PR tree-optimization/86214
4200 * tree-inline.h (struct copy_body_data): Add
4201 add_clobbers_to_eh_landing_pads member.
4202 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
4203 (copy_edges_for_bb): Call it if EH edge destination is <
4204 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
4205 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
4206 if flag_stack_reuse != SR_NONE and clear it afterwards.
4208 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
4211 * doc/install.texi (with-multilib-list): Document for aarch64.
4213 2019-01-18 Jakub Jelinek <jakub@redhat.com>
4216 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
4217 (("..."))) with ("...").
4219 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
4221 * doc/extend.texi (Built-in Functions for Memory Model Aware
4222 Atomic Operations): Document atomic fetch and nand.
4224 2019-01-18 Martin Liska <mliska@suse.cz>
4225 Richard Biener <rguenther@suse.de>
4228 * cgraph.h (create_version_clone_with_body): Add new argument
4230 * cgraphclones.c (cgraph_node::create_version_clone): Add
4231 DECL_ATTRIBUTES to a newly created decl. And call
4232 valid_attribute_p so that proper cl_target_optimization_node
4233 is set for the newly created declaration.
4234 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
4236 (expand_target_clones): Do not call valid_attribute_p, it must
4238 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
4241 2019-01-17 Jakub Jelinek <jakub@redhat.com>
4244 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
4245 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
4246 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
4248 2019-01-17 Martin Sebor <msebor@redhat.com>
4251 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
4252 Handle anti-ranges the same as no range at all.
4254 2018-01-17 Steve Ellcey <sellcey@cavium.com>
4256 * config/aarch64/aarch64.c (cgraph.h): New include.
4257 (intl.h): New include.
4258 (supported_simd_type): New function.
4259 (currently_supported_simd_type): Ditto.
4260 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
4261 (aarch64_simd_clone_adjust): Ditto.
4262 (aarch64_simd_clone_usable): Ditto.
4263 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
4264 (TARGET_SIMD_CLONE_ADJUST): Ditto.
4265 (TARGET_SIMD_CLONE_USABLE): Ditto.
4266 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
4267 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
4270 2019-01-17 Martin Sebor <msebor@redhat.com>
4272 PR tree-optimization/88800
4273 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
4274 NO_WARNING bit here. Avoid folding out-of-bounds calls.
4275 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
4276 redundant argument. Add new argument and issue diagnostics under
4277 its control. Detect out-of-bounds access even with warnings
4279 (check_bounds_or_overlap): Change return type. Add argument.
4280 (wrestrict_dom_walker::check_call): Adjust.
4281 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
4282 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
4283 check_bounds_or_overlap's return value.
4284 (handle_builtin_stxncpy): Same.
4285 (handle_builtin_strcat): Same.
4287 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
4288 Kwok Cheung Yeung <kcy@codesourcery.com>
4289 Julian Brown <julian@codesourcery.com>
4290 Tom de Vries <tom@codesourcery.com>
4292 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
4294 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
4296 * doc/sourcebuild.texi: Document dg-require-effective-target
4297 llvm_binutils and offload_gcn.
4299 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
4300 Kwok Cheung Yeung <kcy@codesourcery.com>
4301 Julian Brown <julian@codesourcery.com>
4302 Tom de Vries <tom@codesourcery.com>
4304 * doc/sourcebuild.texi: Document dg-required-effective-target
4307 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
4308 Kwok Cheung Yeung <kcy@codesourcery.com>
4309 Julian Brown <julian@codesourcery.com>
4310 Tom de Vries <tom@codesourcery.com>
4311 Jan Hubicka <hubicka@ucw.cz>
4312 Martin Jambor <mjambor@suse.cz>
4314 * config.gcc: Add amdgcn*-*-amdhsa configuration.
4315 * configure.ac: Check for dlopen.
4316 * configure: Regenerate.
4318 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
4319 Kwok Cheung Yeung <kcy@codesourcery.com>
4320 Julian Brown <julian@codesourcery.com>
4321 Tom de Vries <tom@codesourcery.com>
4322 Jan Hubicka <hubicka@ucw.cz>
4323 Martin Jambor <mjambor@suse.cz>
4325 * common/config/gcn/gcn-common.c: New file.
4326 * config/gcn/driver-gcn.c: New file.
4327 * config/gcn/gcn-builtins.def: New file.
4328 * config/gcn/gcn-hsa.h: New file.
4329 * config/gcn/gcn-modes.def: New file.
4330 * config/gcn/gcn-opts.h: New file.
4331 * config/gcn/gcn-passes.def: New file.
4332 * config/gcn/gcn-protos.h: New file.
4333 * config/gcn/gcn-run.c: New file.
4334 * config/gcn/gcn-tree.c: New file.
4335 * config/gcn/gcn.c: New file.
4336 * config/gcn/gcn.h: New file.
4337 * config/gcn/gcn.opt: New file.
4338 * config/gcn/t-gcn-hsa: New file.
4340 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
4341 Kwok Cheung Yeung <kcy@codesourcery.com>
4342 Julian Brown <julian@codesourcery.com>
4343 Tom de Vries <tom@codesourcery.com>
4344 Jan Hubicka <hubicka@ucw.cz>
4345 Martin Jambor <mjambor@suse.cz>
4347 * config/gcn/constraints.md: New file.
4348 * config/gcn/gcn-valu.md: New file.
4349 * config/gcn/gcn.md: New file.
4350 * config/gcn/predicates.md: New file.
4352 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
4354 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
4355 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
4356 (stmt_uses_0_or_null_in_undefined_way): Likewise.
4357 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
4359 2019-01-17 Tamar Christina <tamar.christina@arm.com>
4362 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
4363 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
4364 it and document registers.
4366 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4368 * config/aarch64/aarch64.c (ares_tunings): Define.
4369 * config/aarch64/aarch64-cores.def (ares): Use the above.
4371 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
4375 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
4377 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
4378 (_mm512_fixupimm_round_pd): Update parameters and builtin.
4379 (_mm512_maskz_fixupimm_round_pd): Ditto.
4380 (_mm512_fixupimm_round_ps): Ditto.
4381 (_mm512_maskz_fixupimm_round_ps): Ditto.
4382 (_mm_fixupimm_round_sd): Ditto.
4383 (_mm_maskz_fixupimm_round_sd): Ditto.
4384 (_mm_fixupimm_round_ss): Ditto.
4385 (_mm_maskz_fixupimm_round_ss): Ditto.
4386 (_mm512_fixupimm_pd): Ditto.
4387 (_mm512_maskz_fixupimm_pd): Ditto.
4388 (_mm512_fixupimm_ps): Ditto.
4389 (_mm512_maskz_fixupimm_ps): Ditto.
4390 (_mm_fixupimm_sd): Ditto.
4391 (_mm_maskz_fixupimm_sd): Ditto.
4392 (_mm_fixupimm_ss): Ditto.
4393 (_mm_maskz_fixupimm_ss): Ditto.
4394 (_mm512_mask_fixupimm_round_pd): Update builtin.
4395 (_mm512_mask_fixupimm_round_ps): Ditto.
4396 (_mm_mask_fixupimm_round_sd): Ditto.
4397 (_mm_mask_fixupimm_round_ss): Ditto.
4398 (_mm512_mask_fixupimm_pd): Ditto.
4399 (_mm512_mask_fixupimm_ps): Ditto.
4400 (_mm_mask_fixupimm_sd): Ditto.
4401 (_mm_mask_fixupimm_ss): Ditto.
4402 * config/i386/avx512vlintrin.h:
4403 (_mm256_fixupimm_pd): Update parameters and builtin.
4404 (_mm256_maskz_fixupimm_pd): Ditto.
4405 (_mm256_fixupimm_ps): Ditto.
4406 (_mm256_maskz_fixupimm_ps): Ditto.
4407 (_mm_fixupimm_pd): Ditto.
4408 (_mm_maskz_fixupimm_pd): Ditto.
4409 (_mm_fixupimm_ps): Ditto.
4410 (_mm_maskz_fixupimm_ps): Ditto.
4411 (_mm256_mask_fixupimm_pd): Update builtin.
4412 (_mm256_mask_fixupimm_ps): Ditto.
4413 (_mm_mask_fixupimm_pd): Ditto.
4414 (_mm_mask_fixupimm_ps): Ditto.
4415 * config/i386/i386-builtin-types.def: Add new types and remove useless ones.
4416 * config/i386/i386-builtin.def: Update builtin definitions.
4417 * config/i386/i386.c: Handle new builtin types and remove useless ones.
4418 * config/i386/sse.md: Update VFIXUPIMM* patterns.
4419 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
4420 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
4421 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
4422 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
4423 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
4424 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
4425 * config/i386/subst.md:
4426 (round_saeonly_sd_mask_operand4): Add new subst_attr.
4427 (round_saeonly_sd_mask_op4): Ditto.
4428 (round_saeonly_expand_operand5): Ditto.
4429 (round_saeonly_expand): Update.
4431 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
4435 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
4437 * config/i386/sse.md: Combine VFIXUPIMM* patterns
4438 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
4439 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
4440 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
4441 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
4442 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
4443 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
4445 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
4449 2018-12-15 Jakub Jelinek <jakub@redhat.com>
4452 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
4453 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
4454 instead of UNSPEC_FIXUPIMM.
4456 2019-01-17 Richard Biener <rguenther@suse.de>
4459 * dwarf2out.c (want_pubnames): Never generate pubnames sections
4460 and friends for the LTO part of debug info.
4462 2019-01-17 Jakub Jelinek <jakub@redhat.com>
4464 PR tree-optimization/86214
4465 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
4468 PR rtl-optimization/88870
4469 * dce.c (deletable_insn_p): Never delete const/pure calls that can
4470 throw if we can't alter the cfg or delete dead exceptions.
4471 (mark_insn): Don't call find_call_stack_args for such calls.
4473 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
4475 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
4476 prototypes for vec_st.
4477 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
4478 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
4479 mainly on signed/unsigned long long and double.
4481 2019-01-16 David Malcolm <dmalcolm@redhat.com>
4484 * combine.c (delete_noop_moves): Convert to "bool" return,
4485 returning true if any edges are eliminated.
4486 (combine_instructions): Also return true if delete_noop_moves
4489 2019-01-16 Tamar Christina <tamar.christina@arm.com>
4491 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
4492 correct max nunits for endian swap.
4493 (aarch64_expand_fcmla_builtin): Correct subreg code.
4494 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
4495 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
4498 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
4500 * config/alpha/alpha.c (alpha_gimplify_va_arg):
4501 Handle split indirect COMPLEX_TYPE arguments.
4503 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
4506 * config/aarch64/aarch64-modes.def: Add comment about how the carry
4507 bit is set by add and compare.
4508 (CC_ADC): New CC_MODE.
4509 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
4510 to cache the code and mode of X. Adjust the shape of a CC_Cmode
4511 comparison. Add detection for CC_ADCmode.
4512 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
4514 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
4515 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
4516 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
4517 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
4518 to eliminate the need for zero-extending the operands.
4519 (add<mode>3_compareC_imm): Delete. Merge into ...
4520 (add<mode>3_compareC): ... this. Restructure the comparison to
4521 eliminate the need for zero-extending the operands.
4522 (add<mode>3_carryin): Use LTU for the overflow detection.
4523 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
4524 Reexpress comparison for overflow.
4525 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
4526 (add<mode>3_carryinC): Likewise.
4527 (add<mode>3_carryinV): Use LTU for carry between partials.
4528 * config/aarch64/predicates.md (aarch64_carry_operation): Update
4529 handling of CC_Cmode and add CC_ADCmode.
4530 (aarch64_borrow_operation): Likewise.
4532 2019-01-16 Tamar Christina <tamar.christina@arm.com>
4534 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): Remove patternmode.
4535 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
4536 * config/arm/neon.md (neon_vcmla_lane<rot><mode>, neon_vcmla_laneq<rot><mode>,
4537 neon_vcmlaq_lane<rot><mode>): Remove endianness conversion.
4539 2019-01-16 Martin Liska <mliska@suse.cz>
4541 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
4543 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
4545 * gcc.c (add_sysrooted_hdrs_prefix): New function.
4546 (path_prefix_reset): Move up in the source file.
4547 (find_fortran_preinclude_file): Make complex search for the
4548 fortran header files.
4550 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
4552 * godump.c (go_output_typedef): When outputting a typedef, refer
4553 to the underlying type by its name and not its structure.
4555 2019-01-15 David Malcolm <dmalcolm@redhat.com>
4558 * tree.c (build_function_type): Assert that arg_types is not
4561 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
4564 * doc/extend.texi: Document that listing the stack pointer in the
4565 clobber list of an asm is a deprecated feature.
4566 * common.opt (Wdeprecated): Moved from c-family/c.opt.
4567 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
4568 warning instead of an error for clobbers of the stack pointer.
4569 Add a note explaining why.
4571 2019-01-15 Richard Biener <rguenther@suse.de>
4574 * dwarf2out.c (gen_member_die): Do not generate inheritance
4577 2019-01-15 Richard Biener <rguenther@suse.de>
4579 PR tree-optimization/88855
4580 * tree-if-conv.c (combine_blocks): Collect
4581 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
4583 2019-01-15 Tom de Vries <tdevries@suse.de>
4586 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
4587 lhs == NULL_TREE for gang-level reduction.
4589 2019-01-15 Richard Biener <rguenther@suse.de>
4590 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4593 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
4594 return true if SSA_NAME is already marked in visited bitmap.
4595 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
4597 2019-01-15 Jakub Jelinek <jakub@redhat.com>
4599 PR tree-optimization/88775
4600 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
4601 equal == 0 equality pointer comparisons some more if compared in
4602 integral types and either one points to an automatic var and the
4603 other to a global, or we can prove at least one points to the middle
4604 or both point to start or both point to end.
4606 2019-01-14 Andi Kleen <ak@linux.intel.com>
4608 * Makefile.in: Lower autofdo sampling rate by 10x.
4609 * Makefile.tpl: Dito.
4611 2019-01-14 Tom Honermann <tom@honermann.net>
4613 * defaults.h: Define CHAR8_TYPE.
4615 2019-01-14 Martin Sebor <msebor@redhat.com>
4618 * doc/extend.texi (Darwin Format Checks): Clarify.
4620 2019-01-14 Richard Biener <rguenther@suse.de>
4622 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
4623 whether we are in (simplify ...) or (match ...) context.
4625 2019-01-14 Jakub Jelinek <jakub@redhat.com>
4627 PR rtl-optimization/88796
4628 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
4629 * cfgexpand.c (stack_protect_prologue): Initialize
4630 crtl->stack_protect_guard_decl.
4631 * function.c (stack_protect_epilogue): Use it instead of calling
4632 targetm.stack_protect_guard again.
4633 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
4634 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
4635 crtl->stack_protect_guard_decl.
4636 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
4637 on the returned MEM_EXPR.
4639 2019-01-12 Tom de Vries <tdevries@suse.de>
4641 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
4642 vector length using -fopenacc-dim.
4644 2019-01-12 Tom de Vries <tdevries@suse.de>
4646 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
4647 lengths into account.
4649 2019-01-12 Svante Signell <svante.signell@gmail.com>
4651 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
4652 (TARGET_CAN_SPLIT_STACK): Define.
4653 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
4655 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
4657 * params.def (inline-unit-growth): Set to 40.
4659 2019-01-12 Jakub Jelinek <jakub@redhat.com>
4661 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
4663 2019-01-12 Tom de Vries <tdevries@suse.de>
4665 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
4666 region calling vector-partitionable routine, set default_vector_length
4669 2019-01-12 Tom de Vries <tdevries@suse.de>
4671 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
4672 variable default_vector_length.
4674 2019-01-12 Tom de Vries <tdevries@suse.de>
4677 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
4678 from oacc_default_dims, as oacc_validate_dims would do it, and apply
4681 2019-01-12 Tom de Vries <tdevries@suse.de>
4683 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
4684 (nvptx_goacc_validate_dims): Add used parameter.
4685 * doc/tm.texi: Regenerate.
4686 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
4687 argument to call to targetm.goacc.validate_dims.
4688 (default_goacc_validate_dims): Add used
4690 * target.def (validate_dims): Add used parameter in DEFHOOK.
4691 * targhooks.h (default_goacc_validate_dims): Add used parameter.
4693 2019-01-11 Jakub Jelinek <jakub@redhat.com>
4697 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
4699 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
4700 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
4701 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
4702 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
4704 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
4706 PR rtl-optimization/87305
4708 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
4709 for little endian pseudos used as paradoxical subreg.
4711 2019-01-11 Jakub Jelinek <jakub@redhat.com>
4713 PR tree-optimization/88693
4714 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
4715 for STRING_CSTs that don't contain any NUL characters in the first
4716 TREE_STRING_LENGTH bytes.
4718 2019-01-11 Alan Modra <amodra@gmail.com>
4722 * genattrtab.c (min_fn): Don't translate values.
4723 (min_attr_value): Return INT_MAX when the value can't be calculated.
4724 Return minimum among any values that can be calculated.
4725 (max_attr_value): Adjust.
4727 2019-01-11 Jakub Jelinek <jakub@redhat.com>
4729 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
4731 2019-01-11 Steve Ellcey <sellcey@marvell.com>
4733 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
4734 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
4735 (aarch64_return_call_with_max_clobbers): New function.
4736 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
4737 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
4739 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
4740 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
4741 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
4742 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
4743 * cselib.c (cselib_process_insn): Add argument to
4744 targetm.hard_regno_call_part_clobbered call.
4745 * ira-conflicts.c (ira_build_conflicts): Ditto.
4746 * ira-costs.c (ira_tune_allocno_costs): Ditto.
4747 * lra-constraints.c (inherit_reload_reg): Ditto.
4748 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
4749 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
4750 argument. Call targetm.return_call_with_max_clobbers.
4751 Add argument to targetm.hard_regno_call_part_clobbered call.
4752 (calls_have_same_clobbers_p): New function.
4753 (process_bb_lives): Add call_insn and last_call_insn variables.
4754 Pass call_insn to check_pseudos_live_through_calls.
4755 Modify if stmt to check targetm.return_call_with_max_clobbers.
4756 Update setting of flush variable.
4757 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
4759 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
4760 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
4761 targetm.hard_regno_call_part_clobbered call.
4762 * reginfo.c (choose_hard_reg_mode): Ditto.
4763 * regrename.c (check_new_reg_p): Ditto.
4764 * reload.c (find_equiv_reg): Ditto.
4765 * reload1.c (emit_reload_insns): Ditto.
4766 * sched-deps.c (deps_analyze_insn): Ditto.
4767 * sel-sched.c (init_regs_for_mode): Ditto.
4768 (mark_unavailable_hard_regs): Ditto.
4769 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
4770 * target.def (hard_regno_call_part_clobbered): Add insn argument.
4771 (return_call_with_max_clobbers): New target function.
4772 * doc/tm.texi: Regenerate.
4773 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
4774 * hooks.c (hook_bool_uint_mode_false): Change to
4775 hook_bool_insn_uint_mode_false.
4776 * hooks.h (hook_bool_uint_mode_false): Ditto.
4778 2019-01-11 Steve Ellcey <sellcey@marvell.com>
4780 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
4781 (aarch64_remove_extra_call_preserved_regs): New function.
4782 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
4783 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
4784 * doc/tm.texi: Regenerate.
4785 * final.c (get_call_reg_set_usage): Call new hook.
4786 * target.def (remove_extra_call_preserved_regs): New hook.
4787 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
4788 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
4790 2019-01-11 Jakub Jelinek <jakub@redhat.com>
4793 * passes.c (finish_optimization_passes): Call print_combine_total_stats
4794 inside of pass_combine_1 dump rather than pass_profile_1.
4796 2019-01-11 Tom de Vries <tdevries@suse.de>
4798 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
4799 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
4800 (PTX_NUM_PER_WORKER_BARRIERS): Define.
4801 (nvptx_apply_dim_limits): Prevent vector_length 64 and
4804 2019-01-11 Tom de Vries <tdevries@suse.de>
4806 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
4808 2019-01-11 Jan Beulich <jbeulich@suse.com>
4810 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
4811 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
4812 sse2_cvtsi2sd): Add {l}.
4813 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
4816 2019-01-10 Jakub Jelinek <jakub@redhat.com>
4819 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
4821 (*float<floatunssuffix>v2div2sf2): New define_insn.
4822 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
4823 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
4824 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
4825 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
4826 match_operands with "const0_operand" "C".
4828 2019-01-10 Tamar Christina <tamar.christina@arm.com>
4830 * config/aarch64/aarch64-builtins.c
4831 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
4832 (aarch64_init_simd_builtins): ...Here
4834 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
4836 PR rtl-optimization/87305
4838 (setup_live_pseudos_and_spill_after_risky_transforms): Check
4839 allocation for big endian pseudos used as paradoxical subregs and
4840 spill them if it is wrong.
4841 * lra-constraints.c (lra_constraints): Add a comment.
4843 2019-01-10 Richard Biener <rguenther@suse.de>
4845 PR tree-optimization/88792
4846 * tree-ssa-pre.c (get_representative_for): Do not return a
4849 2019-01-10 Jakub Jelinek <jakub@redhat.com>
4853 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
4854 (assign_parm_setup_block): Do the argument slot realignment here
4857 2019-01-10 Stefan Agner <stefan@agner.ch>
4860 * config/arm/arm.c (arm_option_override_internal): Force
4861 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
4863 2019-01-10 Jakub Jelinek <jakub@redhat.com>
4866 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
4869 2019-01-10 Tamar Christina <tamar.christina@arm.com>
4871 * config/arm/arm-builtins.c
4872 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
4873 (MAC_LANE_PAIR_QUALIFIERS): New.
4874 (arm_expand_builtin_args): Use it.
4875 (arm_expand_builtin_1): Likewise.
4876 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
4877 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
4878 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
4879 * config/arm/arm_neon.h:
4880 (vcadd_rot90_f16): New.
4881 (vcaddq_rot90_f16): New.
4882 (vcadd_rot270_f16): New.
4883 (vcaddq_rot270_f16): New.
4886 (vcmla_lane_f16): New.
4887 (vcmla_laneq_f16): New.
4888 (vcmlaq_lane_f16): New.
4889 (vcmlaq_laneq_f16): New.
4890 (vcmla_rot90_f16): New.
4891 (vcmlaq_rot90_f16): New.
4892 (vcmla_rot90_lane_f16): New.
4893 (vcmla_rot90_laneq_f16): New.
4894 (vcmlaq_rot90_lane_f16): New.
4895 (vcmlaq_rot90_laneq_f16): New.
4896 (vcmla_rot180_f16): New.
4897 (vcmlaq_rot180_f16): New.
4898 (vcmla_rot180_lane_f16): New.
4899 (vcmla_rot180_laneq_f16): New.
4900 (vcmlaq_rot180_lane_f16): New.
4901 (vcmlaq_rot180_laneq_f16): New.
4902 (vcmla_rot270_f16): New.
4903 (vcmlaq_rot270_f16): New.
4904 (vcmla_rot270_lane_f16): New.
4905 (vcmla_rot270_laneq_f16): New.
4906 (vcmlaq_rot270_lane_f16): New.
4907 (vcmlaq_rot270_laneq_f16): New.
4908 (vcadd_rot90_f32): New.
4909 (vcaddq_rot90_f32): New.
4910 (vcadd_rot270_f32): New.
4911 (vcaddq_rot270_f32): New.
4914 (vcmla_lane_f32): New.
4915 (vcmla_laneq_f32): New.
4916 (vcmlaq_lane_f32): New.
4917 (vcmlaq_laneq_f32): New.
4918 (vcmla_rot90_f32): New.
4919 (vcmlaq_rot90_f32): New.
4920 (vcmla_rot90_lane_f32): New.
4921 (vcmla_rot90_laneq_f32): New.
4922 (vcmlaq_rot90_lane_f32): New.
4923 (vcmlaq_rot90_laneq_f32): New.
4924 (vcmla_rot180_f32): New.
4925 (vcmlaq_rot180_f32): New.
4926 (vcmla_rot180_lane_f32): New.
4927 (vcmla_rot180_laneq_f32): New.
4928 (vcmlaq_rot180_lane_f32): New.
4929 (vcmlaq_rot180_laneq_f32): New.
4930 (vcmla_rot270_f32): New.
4931 (vcmlaq_rot270_f32): New.
4932 (vcmla_rot270_lane_f32): New.
4933 (vcmla_rot270_laneq_f32): New.
4934 (vcmlaq_rot270_lane_f32): New.
4935 (vcmlaq_rot270_laneq_f32): New.
4936 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
4937 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180, vcmla_lane270,
4938 vcmla_laneq0, vcmla_laneq90, vcmla_laneq180, vcmla_laneq270,
4939 vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180, vcmlaq_lane270): New.
4940 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
4941 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
4942 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
4943 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
4944 (arm_option_reconfigure_globals): Use them.
4945 * config/arm/iterators.md (VDF, VQ_HSF): New.
4946 (VCADD, VCMLA): New.
4947 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
4948 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>): New.
4949 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
4950 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
4952 2019-01-10 Tamar Christina <tamar.christina@arm.com>
4954 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers): Add qualifier_lane_pair_index.
4955 (emit-rtl.h): Include.
4956 (TYPES_QUADOP_LANE_PAIR): New.
4957 (aarch64_simd_expand_args): Use it.
4958 (aarch64_simd_expand_builtin): Likewise.
4959 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum): New.
4960 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
4961 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
4962 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
4963 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
4964 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
4965 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF, AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
4966 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF, AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
4967 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF, AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
4968 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
4969 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
4970 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add __ARM_FEATURE_COMPLEX.
4971 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0, fcmla90,
4972 fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180, fcmla_lane270,
4973 fcmla_laneq0, fcmla_laneq90, fcmla_laneq180, fcmla_laneq270,
4974 fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180, fcmlaq_lane270): New.
4975 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
4976 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,aarch64_fcadd<rot><mode>,
4977 aarch64_fcmla<rot><mode>): New.
4978 * config/aarch64/arm_neon.h:
4979 (vcadd_rot90_f16): New.
4980 (vcaddq_rot90_f16): New.
4981 (vcadd_rot270_f16): New.
4982 (vcaddq_rot270_f16): New.
4985 (vcmla_lane_f16): New.
4986 (vcmla_laneq_f16): New.
4987 (vcmlaq_lane_f16): New.
4988 (vcmlaq_rot90_lane_f16): New.
4989 (vcmla_rot90_laneq_f16): New.
4990 (vcmla_rot90_lane_f16): New.
4991 (vcmlaq_rot90_f16): New.
4992 (vcmla_rot90_f16): New.
4993 (vcmlaq_laneq_f16): New.
4994 (vcmla_rot180_laneq_f16): New.
4995 (vcmla_rot180_lane_f16): New.
4996 (vcmlaq_rot180_f16): New.
4997 (vcmla_rot180_f16): New.
4998 (vcmlaq_rot90_laneq_f16): New.
4999 (vcmlaq_rot270_laneq_f16): New.
5000 (vcmlaq_rot270_lane_f16): New.
5001 (vcmla_rot270_laneq_f16): New.
5002 (vcmlaq_rot270_f16): New.
5003 (vcmla_rot270_f16): New.
5004 (vcmlaq_rot180_laneq_f16): New.
5005 (vcmlaq_rot180_lane_f16): New.
5006 (vcmla_rot270_lane_f16): New.
5007 (vcadd_rot90_f32): New.
5008 (vcaddq_rot90_f32): New.
5009 (vcaddq_rot90_f64): New.
5010 (vcadd_rot270_f32): New.
5011 (vcaddq_rot270_f32): New.
5012 (vcaddq_rot270_f64): New.
5016 (vcmla_lane_f32): New.
5017 (vcmla_laneq_f32): New.
5018 (vcmlaq_lane_f32): New.
5019 (vcmlaq_laneq_f32): New.
5020 (vcmla_rot90_f32): New.
5021 (vcmlaq_rot90_f32): New.
5022 (vcmlaq_rot90_f64): New.
5023 (vcmla_rot90_lane_f32): New.
5024 (vcmla_rot90_laneq_f32): New.
5025 (vcmlaq_rot90_lane_f32): New.
5026 (vcmlaq_rot90_laneq_f32): New.
5027 (vcmla_rot180_f32): New.
5028 (vcmlaq_rot180_f32): New.
5029 (vcmlaq_rot180_f64): New.
5030 (vcmla_rot180_lane_f32): New.
5031 (vcmla_rot180_laneq_f32): New.
5032 (vcmlaq_rot180_lane_f32): New.
5033 (vcmlaq_rot180_laneq_f32): New.
5034 (vcmla_rot270_f32): New.
5035 (vcmlaq_rot270_f32): New.
5036 (vcmlaq_rot270_f64): New.
5037 (vcmla_rot270_lane_f32): New.
5038 (vcmla_rot270_laneq_f32): New.
5039 (vcmlaq_rot270_lane_f32): New.
5040 (vcmlaq_rot270_laneq_f32): New.
5041 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
5042 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
5043 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
5044 (FCADD, FCMLA): New.
5046 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
5048 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
5052 * config/pa/pa.c: Change "can not" to "cannot".
5053 * gimple-ssa-evrp-analyze.c: Likewise.
5054 * ipa-icf.c: Likewise.
5055 * ipa-polymorphic-call.c: Likewise.
5056 * ipa-pure-const.c: Likewise.
5057 * lra-constraints.c: Likewise.
5058 * lra-remat.c: Likewise.
5059 * reload1.c: Likewise.
5060 * reorg.c: Likewise.
5061 * tree-ssa-uninit.c: Likewise.
5063 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
5067 * Makefile.in: Mechanically replace "can not" with "cannot".
5068 * alias.c: Likewise.
5069 * builtins.c: Likewise.
5070 * calls.c: Likewise.
5071 * cgraph.c: Likewise.
5072 * cgraph.h: Likewise.
5073 * cgraphclones.c: Likewise.
5074 * cgraphunit.c: Likewise.
5075 * combine-stack-adj.c: Likewise.
5076 * combine.c: Likewise.
5077 * common/config/i386/i386-common.c: Likewise.
5078 * config/aarch64/aarch64.c: Likewise.
5079 * config/alpha/sync.md: Likewise.
5080 * config/arc/arc.c: Likewise.
5081 * config/arc/predicates.md: Likewise.
5082 * config/arm/arm-c.c: Likewise.
5083 * config/arm/arm.c: Likewise.
5084 * config/arm/arm.h: Likewise.
5085 * config/arm/arm.md: Likewise.
5086 * config/arm/cortex-r4f.md: Likewise.
5087 * config/csky/csky.c: Likewise.
5088 * config/csky/csky.h: Likewise.
5089 * config/darwin-f.c: Likewise.
5090 * config/epiphany/epiphany.md: Likewise.
5091 * config/i386/i386.c: Likewise.
5092 * config/i386/sol2.h: Likewise.
5093 * config/m68k/m68k.c: Likewise.
5094 * config/mcore/mcore.h: Likewise.
5095 * config/microblaze/microblaze.md: Likewise.
5096 * config/mips/20kc.md: Likewise.
5097 * config/mips/sb1.md: Likewise.
5098 * config/nds32/nds32.c: Likewise.
5099 * config/nds32/predicates.md: Likewise.
5100 * config/pa/pa.c: Likewise.
5101 * config/rs6000/e300c2c3.md: Likewise.
5102 * config/rs6000/rs6000.c: Likewise.
5103 * config/s390/s390.h: Likewise.
5104 * config/sh/sh.c: Likewise.
5105 * config/sh/sh.md: Likewise.
5106 * config/spu/vmx2spu.h: Likewise.
5107 * cprop.c: Likewise.
5108 * dbxout.c: Likewise.
5109 * df-scan.c: Likewise.
5110 * doc/cfg.texi: Likewise.
5111 * doc/extend.texi: Likewise.
5112 * doc/fragments.texi: Likewise.
5113 * doc/gty.texi: Likewise.
5114 * doc/invoke.texi: Likewise.
5115 * doc/lto.texi: Likewise.
5116 * doc/md.texi: Likewise.
5117 * doc/objc.texi: Likewise.
5118 * doc/rtl.texi: Likewise.
5119 * doc/tm.texi: Likewise.
5121 * emit-rtl.c: Likewise.
5122 * emit-rtl.h: Likewise.
5123 * except.c: Likewise.
5124 * expmed.c: Likewise.
5126 * fold-const.c: Likewise.
5127 * genautomata.c: Likewise.
5128 * gimple-fold.c: Likewise.
5129 * hard-reg-set.h: Likewise.
5130 * ifcvt.c: Likewise.
5131 * ipa-comdats.c: Likewise.
5132 * ipa-cp.c: Likewise.
5133 * ipa-devirt.c: Likewise.
5134 * ipa-fnsummary.c: Likewise.
5135 * ipa-icf.c: Likewise.
5136 * ipa-inline-transform.c: Likewise.
5137 * ipa-inline.c: Likewise.
5138 * ipa-polymorphic-call.c: Likewise.
5139 * ipa-profile.c: Likewise.
5140 * ipa-prop.c: Likewise.
5141 * ipa-pure-const.c: Likewise.
5142 * ipa-reference.c: Likewise.
5143 * ipa-split.c: Likewise.
5144 * ipa-visibility.c: Likewise.
5146 * ira-build.c: Likewise.
5147 * ira-color.c: Likewise.
5148 * ira-conflicts.c: Likewise.
5149 * ira-costs.c: Likewise.
5150 * ira-int.h: Likewise.
5151 * ira-lives.c: Likewise.
5154 * loop-invariant.c: Likewise.
5155 * loop-unroll.c: Likewise.
5156 * lower-subreg.c: Likewise.
5157 * lra-assigns.c: Likewise.
5158 * lra-constraints.c: Likewise.
5159 * lra-eliminations.c: Likewise.
5160 * lra-lives.c: Likewise.
5161 * lra-remat.c: Likewise.
5162 * lra-spills.c: Likewise.
5164 * lto-cgraph.c: Likewise.
5165 * lto-streamer-out.c: Likewise.
5166 * postreload-gcse.c: Likewise.
5167 * predict.c: Likewise.
5168 * profile-count.h: Likewise.
5169 * profile.c: Likewise.
5170 * recog.c: Likewise.
5172 * reload.c: Likewise.
5173 * reload1.c: Likewise.
5174 * reorg.c: Likewise.
5175 * resource.c: Likewise.
5176 * rtl.def: Likewise.
5178 * rtlanal.c: Likewise.
5179 * sched-deps.c: Likewise.
5180 * sched-ebb.c: Likewise.
5181 * sched-rgn.c: Likewise.
5182 * sel-sched-ir.c: Likewise.
5183 * sel-sched.c: Likewise.
5184 * shrink-wrap.c: Likewise.
5185 * simplify-rtx.c: Likewise.
5186 * symtab.c: Likewise.
5187 * target.def: Likewise.
5188 * toplev.c: Likewise.
5189 * tree-call-cdce.c: Likewise.
5190 * tree-cfg.c: Likewise.
5191 * tree-complex.c: Likewise.
5192 * tree-core.h: Likewise.
5193 * tree-eh.c: Likewise.
5194 * tree-inline.c: Likewise.
5195 * tree-loop-distribution.c: Likewise.
5196 * tree-nrv.c: Likewise.
5197 * tree-profile.c: Likewise.
5198 * tree-sra.c: Likewise.
5199 * tree-ssa-alias.c: Likewise.
5200 * tree-ssa-dce.c: Likewise.
5201 * tree-ssa-dom.c: Likewise.
5202 * tree-ssa-forwprop.c: Likewise.
5203 * tree-ssa-loop-im.c: Likewise.
5204 * tree-ssa-loop-ivcanon.c: Likewise.
5205 * tree-ssa-loop-ivopts.c: Likewise.
5206 * tree-ssa-loop-niter.c: Likewise.
5207 * tree-ssa-phionlycprop.c: Likewise.
5208 * tree-ssa-phiopt.c: Likewise.
5209 * tree-ssa-propagate.c: Likewise.
5210 * tree-ssa-threadedge.c: Likewise.
5211 * tree-ssa-threadupdate.c: Likewise.
5212 * tree-ssa-uninit.c: Likewise.
5213 * tree-ssanames.c: Likewise.
5214 * tree-streamer-out.c: Likewise.
5217 * vr-values.c: Likewise.
5219 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
5221 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
5222 (ix86_split_xorsign): Ditto.
5223 * config/i386/i386.c (ix86_expand_xorsign): New function.
5224 (ix86_split_xorsign): Ditto.
5225 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
5226 (xorsign<mode>3): New expander.
5227 (xorsign<mode>3_1): New insn_and_split pattern.
5228 * config/i386/sse.md (xorsign<mode>3): New expander.
5230 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
5232 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
5233 (*tablejump_sp64): Likewise.
5234 (*tablejump<P:mode>): ...this.
5235 (*call_address_sp32): Merge into...
5236 (*call_address_sp64): Likewise.
5237 (*call_address<P:mode>): ...this.
5238 (*call_symbolic_sp32): Merge into...
5239 (*call_symbolic_sp64): Likewise.
5240 (*call_symbolic<P:mode>): ...this.
5241 (call_value): Remove constraint and add predicate.
5242 (*call_value_address_sp32): Merge into...
5243 (*call_value_address_sp64): Likewise.
5244 (*call_value_address<P:mode>): ...this.
5245 (*call_value_symbolic_sp32): Merge into...
5246 (*call_value_symbolic_sp64): Likewise.
5247 (*call_value_symbolic<P:mode>): ...this.
5248 (*sibcall_symbolic_sp32): Merge into...
5249 (*sibcall_symbolic_sp64): Likewise.
5250 (*sibcall_symbolic<P:mode>): ...this.
5251 (sibcall_value): Remove constraint and add predicate.
5252 (*sibcall_value_symbolic_sp32): Merge into...
5253 (*sibcall_value_symbolic_sp64): Likewise.
5254 (*sibcall_value_symbolic<P:mode>): ...this.
5255 (window_save): Minor tweak.
5256 (*branch_sp32): Merge into...
5257 (*branch_sp64): Likewise.
5258 (*branch<P:mode>): ...this.
5260 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
5261 James Clarke <jrtc27@jrtc27.com>
5264 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
5265 consistently in TLS address generation and adjust code to the renaming
5266 of patterns. Mark calls to __tls_get_addr as const.
5267 * config/sparc/sparc.md (tgd_hi22): Turn into...
5268 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
5269 (tgd_lo10): Turn into...
5270 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
5271 (tgd_add32): Merge into...
5272 (tgd_add64): Likewise.
5273 (tgd_add<P:mode>): ...this and use Pmode throughout.
5274 (tldm_hi22): Turn into...
5275 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
5276 (tldm_lo10): Turn into...
5277 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
5278 (tldm_add32): Merge into...
5279 (tldm_add64): Likewise.
5280 (tldm_add<P:mode>): ...this and use Pmode throughout.
5281 (tldm_call32): Merge into...
5282 (tldm_call64): Likewise.
5283 (tldm_call<P:mode>): ...this and use Pmode throughout.
5284 (tldo_hix22): Turn into...
5285 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
5286 (tldo_lox10): Turn into...
5287 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
5288 (tldo_add32): Merge into...
5289 (tldo_add64): Likewise.
5290 (tldo_add<P:mode>): ...this and use Pmode throughout.
5291 (tie_hi22): Turn into...
5292 (tie_hi22<P:mode>): ...this and use Pmode throughout.
5293 (tie_lo10): Turn into...
5294 (tie_lo10<P:mode>): ...this and use Pmode throughout.
5295 (tie_ld64): Use DImode throughout.
5296 (tie_add32): Merge into...
5297 (tie_add64): Likewise.
5298 (tie_add<P:mode>): ...this and use Pmode throughout.
5299 (tle_hix22_sp32): Merge into...
5300 (tle_hix22_sp64): Likewise.
5301 (tle_hix22<P:mode>): ...this and use Pmode throughout.
5302 (tle_lox22_sp32): Merge into...
5303 (tle_lox22_sp64): Likewise.
5304 (tle_lox22<P:mode>): ...this and use Pmode throughout.
5305 (*tldo_ldub_sp32): Merge into...
5306 (*tldo_ldub_sp64): Likewise.
5307 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
5308 (*tldo_ldub1_sp32): Merge into...
5309 (*tldo_ldub1_sp64): Likewise.
5310 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
5311 (*tldo_ldub2_sp32): Merge into...
5312 (*tldo_ldub2_sp64): Likewise.
5313 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
5314 (*tldo_ldsb1_sp32): Merge into...
5315 (*tldo_ldsb1_sp64): Likewise.
5316 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
5317 (*tldo_ldsb2_sp32): Merge into...
5318 (*tldo_ldsb2_sp64): Likewise.
5319 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
5320 (*tldo_ldub3_sp64): Use DImode throughout.
5321 (*tldo_ldsb3_sp64): Likewise.
5322 (*tldo_lduh_sp32): Merge into...
5323 (*tldo_lduh_sp64): Likewise.
5324 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
5325 (*tldo_lduh1_sp32): Merge into...
5326 (*tldo_lduh1_sp64): Likewise.
5327 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
5328 (*tldo_ldsh1_sp32): Merge into...
5329 (*tldo_ldsh1_sp64): Likewise.
5330 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
5331 (*tldo_lduh2_sp64): Use DImode throughout.
5332 (*tldo_ldsh2_sp64): Likewise.
5333 (*tldo_lduw_sp32): Merge into...
5334 (*tldo_lduw_sp64): Likewise.
5335 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
5336 (*tldo_lduw1_sp64): Use DImode throughout.
5337 (*tldo_ldsw1_sp64): Likewise.
5338 (*tldo_ldx_sp64): Likewise.
5339 (*tldo_stb_sp32): Merge into...
5340 (*tldo_stb_sp64): Likewise.
5341 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
5342 (*tldo_sth_sp32): Merge into...
5343 (*tldo_sth_sp64): Likewise.
5344 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
5345 (*tldo_stw_sp32): Merge into...
5346 (*tldo_stw_sp64): Likewise.
5347 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
5348 (*tldo_stx_sp64): Use DImode throughout.
5350 2018-01-09 Sudakshina Das <sudi.das@arm.com>
5352 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
5353 check configure option to set BTI and Return Address Signing.
5354 * configure.ac: Add --enable-standard-branch-protection and
5355 --disable-standard-branch-protection.
5356 * configure: Regenerated.
5357 * doc/install.texi: Document the same.
5359 2018-01-09 Sudakshina Das <sudi.das@arm.com>
5360 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5362 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
5363 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
5364 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
5366 * config/aarch64/aarch64-bti-insert.c: New file.
5367 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
5369 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
5371 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
5372 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
5373 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
5374 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
5376 2018-01-09 Sudakshina Das <sudi.das@arm.com>
5378 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
5379 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
5380 Disable bti for -mbranch-protection=none.
5381 (aarch64_handle_standard_branch_protection): Enable bti for
5382 -mbranch-protection=standard.
5383 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
5384 -mbranch-protection.
5385 (aarch64_bti_enabled): Check if bti is enabled.
5386 * config/aarch64/aarch64.opt: Declare target variable.
5387 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
5389 2018-01-09 Sudakshina Das <sudi.das@arm.com>
5391 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
5392 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
5393 (aarch64_expand_epilogue): Likewise.
5394 (aarch64_output_mi_thunk): Likewise
5395 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
5396 TAILCALL_ADDR_REGS to x16 and x17.
5397 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
5399 2018-01-09 Sudakshina Das <sudi.das@arm.com>
5401 * config/aarch64/aarch64-option-extensions.def: Define
5402 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
5403 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
5404 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
5405 (AARCH64_FL_PREDRES): New.
5406 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
5407 AARCH64_FL_PREDRES by default.
5408 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
5410 2018-01-09 Sudakshina Das <sudi.das@arm.com>
5412 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
5414 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
5415 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
5416 * doc/invoke.texi: Document ARMv8.5-A.
5418 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
5420 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
5421 (xorsign<mode>3): Likewise.
5423 2019-01-09 Jelinek <jakub@redhat.com>
5426 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
5427 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
5429 PR rtl-optimization/88331
5430 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
5431 not currently_expanding_to_rtl.
5433 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
5435 * doc/invoke.texi (-Os): Remove trailing spaces.
5436 (-finline-functions): Remove reference to -O2.
5438 2019-01-08 Jakub Jelinek <jakub@redhat.com>
5440 PR rtl-optimization/79593
5441 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
5443 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
5444 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
5446 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
5449 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
5453 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
5454 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
5456 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
5459 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
5460 ix86_avx_u128_mode_entry.
5462 2019-01-08 Martin Liska <mliska@suse.cz>
5464 PR tree-optimization/88753
5465 * tree-switch-conversion.c (switch_conversion::build_one_array):
5466 Come up with local variable constructor. Convert first to
5467 type of constructor values.
5469 2019-01-08 Richard Biener <rguenther@suse.de>
5471 PR tree-optimization/86554
5472 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
5473 rpo_avail): Move earlier.
5474 (visit_nary_op): When value-numbering to expressions
5475 with different overflow behavior make sure there's an
5476 available expression on the path.
5478 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
5480 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
5481 aarch64_parse_branch_protection,
5482 struct aarch64_branch_protect_type,
5483 aarch64_handle_no_branch_protection,
5484 aarch64_handle_standard_branch_protection,
5485 aarch64_validate_mbranch_protection,
5486 aarch64_handle_pac_ret_protection,
5487 aarch64_handle_attr_branch_protection,
5488 accepted_branch_protection_string,
5489 aarch64_pac_ret_subtypes,
5490 aarch64_branch_protect_types,
5491 aarch64_handle_pac_ret_leaf): Define.
5492 (aarch64_override_options_after_change_1, aarch64_override_options):
5493 Add check for accepted_branch_protection_string.
5494 (aarch64_option_save): Save accepted_branch_protection_string.
5495 (aarch64_option_restore): Save accepted_branch_protection_string.
5496 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
5497 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
5498 msign-return-address.
5499 * doc/invoke.texi: Add mbranch-protection.
5501 2019-01-08 Alan Modra <amodra@gmail.com>
5504 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
5505 Delete "unknownp" parameter. Adjust callers. Handle
5506 CONST_INT, PLUS, MINUS, and MULT.
5507 (attr_value_aligned): Renamed from or_attr_value.
5508 (min_attr_value): Return INT_MIN for unhandled rtl case..
5509 (min_fn): ..and translate to INT_MAX here.
5510 (write_length_unit_log): Modify to cope without "unknown".
5511 (write_attr_value): Handle IF_THEN_ELSE.
5513 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
5515 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
5516 optimization for masked stores.
5518 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
5521 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
5522 output vector directly to duplicate_and_interleave instead of
5523 going through a temporary. Postpone insertion of ctor_seq to
5524 the end of the loop.
5526 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
5529 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
5530 unsigned_p. Handle signed and unsigned overflow correction as
5532 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
5534 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
5536 (add<mode>3_compareV_imm): Make this callable for expanding.
5537 (subv<GPI:mode>4): Use register_operand for operand 1. Use
5538 aarch64_plus_operand for operand 2.
5539 (subv<GPI:mode>_insn): New insn pattern.
5540 (subv<GPI:mode>_imm): Likewise.
5541 (negv<GPI:mode>3): New expand pattern.
5542 (negv<GPI:mode>_insn): New insn pattern.
5543 (negv<GPI:mode>_cmp_only): Likewise.
5544 (cmpv<GPI:mode>_insn): Likewise.
5545 (subvti4): Use register_operand for operand 1. Update call to
5546 aarch64_expand_subvti.
5547 (usubvti4): Likewise.
5548 (negvti3): New expand pattern.
5549 (negdi_carryout): New insn pattern.
5550 (negvdi_carryinV): New insn pattern.
5551 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
5552 version the named version.
5553 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
5555 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
5557 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
5559 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
5560 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
5561 (sub<mode>3_carryinCV): Delete.
5562 (sub<GPI:mode>3_carryinV): New expand pattern.
5563 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
5565 2019-01-07 Richard Biener <rguenther@suse.de>
5567 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
5568 of tree_operand_hash.
5570 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
5572 PR tree-optimization/88598
5573 * tree.h (single_nonzero_element): Declare.
5574 * tree.c (single_nonzero_element): New function.
5575 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
5576 if I is the only nonzero element of CST.
5578 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
5580 PR tree-optimization/88598
5581 * tree.h (initializer_each_zero_or_onep): Declare.
5582 * tree.c (initializer_each_zero_or_onep): New function.
5583 (signed_or_unsigned_type_for): Handle float types too.
5584 (unsigned_type_for, signed_type_for): Update comments accordingly.
5585 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
5586 x & { 0 or -1, 0 or -1, ... }.
5588 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
5590 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
5591 with x86_64-pc-linux-gnu.
5593 2019-01-07 Tom de Vries <tdevries@suse.de>
5596 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
5598 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
5601 2019-01-07 Jakub Jelinek <jakub@redhat.com>
5603 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
5604 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
5605 TARGET_AVX512F as condition.
5608 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
5609 const_not_ok_for_debug_p target hook.
5610 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
5611 on UNSPEC and subexpressions thereof if all subexpressions of the
5612 UNSPEC are CONSTANT_P.
5614 PR tree-optimization/88676
5615 * tree-ssa-phiopt.c (two_value_replacement): New function.
5616 (tree_ssa_phiopt_worker): Call it.
5619 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
5620 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
5623 * tree-vect-generic.c: Include insn-config.h and recog.h.
5624 (expand_vector_piecewise): Add defaulted ret_type argument,
5625 if non-NULL, use that in preference to type for the result type.
5626 (expand_vector_parallel): Formatting fix.
5627 (do_vec_conversion, do_vec_narrowing_conversion,
5628 expand_vector_conversion): New functions.
5629 (expand_vector_operations_1): Call expand_vector_conversion
5630 for VEC_CONVERT ifn calls.
5631 * internal-fn.def (VEC_CONVERT): New internal function.
5632 * internal-fn.c (expand_VEC_CONVERT): New function.
5633 * fold-const-call.c (fold_const_vec_convert): New function.
5634 (fold_const_call): Use it for CFN_VEC_CONVERT.
5635 * doc/extend.texi (__builtin_convertvector): Document.
5637 2019-01-07 Tom de Vries <tdevries@suse.de>
5639 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
5640 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
5641 vector_red_partition, vector_red_sym): New global variables.
5642 (nvptx_option_override): Initialize vector_red_sym.
5643 (nvptx_declare_function_name): Restore red_partition register.
5644 (nvptx_file_end): Emit code to declare the vector reduction variables.
5645 (nvptx_output_red_partition): New function.
5646 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
5647 large vector reductions.
5648 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
5649 (nvptx_init_builtins): Add VECTOR_ADDR.
5650 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
5651 Handle nvptx_expand_shared_addr.
5652 (nvptx_get_shared_red_addr): Add vector argument and handle large
5654 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
5656 (nvptx_goacc_reduction_init): Likewise.
5657 (nvptx_goacc_reduction_fini): Likewise.
5658 (nvptx_goacc_reduction_teardown): Likewise.
5659 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
5660 init,fini,teardown}.
5661 (nvptx_init_axis_predicate): Initialize vector_red_partition.
5662 (nvptx_set_current_function): Init vector_red_partition.
5663 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
5664 (nvptx_red_partition): New insn.
5665 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
5667 2019-01-07 Tom de Vries <tdevries@suse.de>
5670 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
5673 2019-01-07 Tom de Vries <tdevries@suse.de>
5675 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
5676 (nvptx_option_override): Init oacc_bcast_partition.
5677 (nvptx_init_oacc_workers): New function.
5678 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
5679 (nvptx_needs_shared_bcast): New function.
5680 (nvptx_find_par): Generalize to enable vectors to use shared-memory
5682 (nvptx_shared_propagate): Initialize vector bcast partition and
5683 synchronization state.
5684 (nvptx_single): Generalize to enable vectors to use shared-memory
5686 (nvptx_process_pars): Likewise.
5687 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
5688 * config/nvptx/nvptx.h (struct machine_function): Add
5689 bcast_partition and sync_bar members.
5691 2019-01-07 Tom de Vries <tdevries@suse.de>
5693 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
5694 (nvptx_apply_dim_limits): New function.
5695 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
5698 2019-01-07 Tom de Vries <tdevries@suse.de>
5700 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
5701 as late as possible.
5703 2019-01-07 Tom de Vries <tdevries@suse.de>
5705 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
5706 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
5707 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
5708 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
5709 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
5711 2019-01-07 Tom de Vries <tdevries@suse.de>
5713 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
5715 2019-01-07 Tom de Vries <tdevries@suse.de>
5717 * omp-offload.c (oacc_get_min_dim): New function.
5718 * omp-offload.h (oacc_get_min_dim): Declare.
5720 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
5723 * config/i386/i386.c (function_value_ms_64): Return small sturct in
5724 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
5726 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
5730 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
5732 * ipa-inline.c (edge_badness): Use inlined_time instead of
5733 inline_summaries->get.
5735 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
5737 * opts.c (enable_fdo_optimizations): Enable
5738 version-loops-for-strides, loop-interchange, unrol-and-jam
5739 and tree-loop-distribution.
5740 * invoke.texi: Document newly enabled options.
5742 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
5744 * doc/invoke.texi (max-inline-insns-small): New parameters.
5745 * ipa-inline.c (want_early_inline_function_p): simplify.
5746 (want_inline_small_function_p): Fix pasto from previous patch;
5747 use max-inline-insns-small bound.
5748 * params.def (max-inline-insns-small): New param.
5749 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
5750 variables correctly.
5752 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
5754 * doc/invoke.texi: Document max-inline-insns-size,
5755 uninlined-function-insns, uninlined-function-time,
5756 uninlined-thunk-insns and uninlined-thunk-time.
5757 * params.def: Add max-inline-insns-size,
5758 uninlined-function-insns, uninlined-function-time,
5759 uninlined-thunk-insns and uninlined-thunk-time.
5760 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
5762 * ipa-inline.c (can_inline_edge_by_limits_p,
5763 want_inline_small_function_p): Use new parameters.
5765 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
5767 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
5769 2019-01-05 Jakub Jelinek <jakub@redhat.com>
5773 * expr.c (expand_assignment): For calls returning VLA structures
5774 if to_rtx is not a MEM, force it into a stack temporary.
5777 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
5778 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
5779 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
5780 subexpressions of both operands.
5781 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
5782 subrtxes are CONSTANT_P.
5783 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
5786 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
5788 * params.def (hot-bb-count-ws-permille): Set to 990.
5790 2019-01-04 Martin Sebor <msebor@redhat.com>
5793 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
5796 2019-01-04 Martin Sebor <msebor@redhat.com>
5799 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
5801 2019-01-04 Jakub Jelinek <jakub@redhat.com>
5803 * gdbinit.in: Turn off pagination for the skip commands, restore
5804 it to previous state afterwards.
5806 2019-01-04 Jakub Jelinek <jakub@redhat.com>
5809 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
5810 of GET_MODE (opN) as modes of the libcall arguments.
5812 2019-01-04 Jan Beulich <jbeulich@suse.com>
5814 * config/i386/sse.md
5815 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
5816 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
5817 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
5818 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
5819 avx512f_vmcmp<mode>3<round_saeonly_name>,
5820 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
5821 avx512f_maskcmp<mode>3,
5822 <avx512>_cvt<ssemodesuffix>2mask<mode>,
5823 <avx512>_cvt<ssemodesuffix>2mask<mode>,
5824 *<avx512>_cvtmask2<ssemodesuffix><mode>,
5825 *<avx512>_cvtmask2<ssemodesuffix><mode>,
5826 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
5827 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
5828 <avx512>_gt<mode>3<mask_scalar_merge_name>,
5829 <avx512>_gt<mode>3<mask_scalar_merge_name>,
5830 <avx512>_testm<mode>3<mask_scalar_merge_name>,
5831 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
5832 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
5833 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
5834 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
5835 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
5836 avx512cd_maskb_vec_dup<mode>,
5837 avx512cd_maskw_vec_dup<mode>,
5838 avx512dq_fpclass<mode><mask_scalar_merge_name>,
5839 avx512dq_vmfpclass<mode>,
5840 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
5843 2019-01-03 Martin Sebor <msebor@redhat.com>
5845 PR tree-optimization/88659
5846 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
5848 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
5850 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
5851 unaligned vsx and avoid lxvd2x/stxvd2x.
5852 (gen_lvx_v4si_move): New function.
5854 2019-01-03 Tom de Vries <tdevries@suse.de>
5856 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
5857 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
5859 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
5861 2019-01-03 Tom de Vries <tdevries@suse.de>
5863 * config/nvptx/nvptx.c (struct offload_attrs): New.
5864 (populate_offload_attrs): New function. Factor mask extraction out of
5865 nvptx_reorg. Add extraction of dimensions.
5866 (nvptx_reorg): Use populate_offload_attrs.
5868 2019-01-03 Tom de Vries <tdevries@suse.de>
5870 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
5871 cases for oacc_min_dims_p and routine_p. Add asserts for
5872 oacc_default_dims_p and offload_region_p.
5874 2019-01-03 Tom de Vries <tdevries@suse.de>
5876 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
5878 (nvptx_goacc_validate_dims): ... here.
5880 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
5882 PR tree-optimization/85574
5883 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
5885 (struct ssa_equip_hash_traits): Declare.
5886 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
5888 2019-01-03 Jakub Jelinek <jakub@redhat.com>
5891 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
5892 change it to qualified_type.
5894 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
5896 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
5897 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
5899 2019-01-02 Martin Sebor <msebor@redhat.com>
5900 Jeff Law <law@redhat.com>
5902 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
5903 (get_range_strlen_tree): Update appropriately.
5905 * gimple-fold.h (get_range_strlen): Drop unused last argument.
5907 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
5908 rather than set_range_info.
5909 * tree-ssa-strlen.c (set_strlen_range): Extracted from
5910 maybe_set_strlen_range. Handle potentially boundary crossing
5911 cases more conservatively.
5912 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
5913 Call set_strlen_range.
5914 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
5917 * gimple-fold.c (get_range_strlen): Update prototype to no longer
5918 need the flexp argument.
5919 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
5920 from calls to get_range_strlen. Update comments. Just update
5921 VAL for an unterminated const char array and let the reset of the
5922 code handle it normally. No longer try to set *flexp. Adjust
5924 (get_range_strlen): Update for the new get_range_strlen API.
5925 (get_maxval_strlen): Similarly.
5926 (gimple_fold_builtin_strlen): Handle update meaning of return value
5927 from get_range_strlen.
5928 * gimple-ssa-sprintf.c (get_string_length): Update for the new
5929 get_range_strlen API.
5931 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
5934 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
5935 false at WPA time when body was removed.
5937 2019-01-02 Martin Liska <mliska@suse.cz>
5939 PR tree-optimization/88650
5940 * predict.c (set_even_probabilities): Calculate probability
5941 remainer only when really used.
5943 2019-01-02 Richard Biener <rguenther@suse.de>
5946 * tree-data-ref.c (analyze_subscript_affine_affine): Use
5947 widest_ints when mangling max_stmt_execution results.
5949 2019-01-02 Richard Biener <rguenther@suse.de>
5951 PR tree-optimization/88621
5952 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
5953 bitfields when canoncalizing.
5955 2019-01-02 Richard Biener <rguenther@suse.de>
5958 * config/i386/x86-tune-costs.h (intel_cost): Adjust
5959 cost of cheap SSE instruction.
5961 2019-01-02 Richard Biener <rguenther@suse.de>
5964 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
5965 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
5967 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
5968 set after UIDs before splitting them.
5970 2019-01-01 Martin Sebor <msebor@redhat.com>
5971 Jeff Law <law@redhat.com>
5973 * gimple-fold.c (get_range_strlen_tree): Record if the computed
5974 length is optimistic. If it is, then arrange to compute the
5975 conservative length as well.
5977 * gimple-fold.h (get_range_strlen): Update prototype.
5978 * builtins.c (check_access): Update call to get_range_strlen to use
5979 c_strlen_data pointer. Change various variable accesses to instead
5980 pull data from the c_strlen_data structure.
5981 (check_strncat_sizes, expand_builtin_strncat): Likewise.
5982 * calls.c (maybe_warn_nonstring_arg): Likewise.
5983 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
5984 minimum length if maximum lengh is unknown.
5985 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
5986 that used c_strlen, it's no longer needed. Restructure slightly.
5987 (format_string): Set unlikely range appropriately.
5988 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
5990 (get_range_strlen): Accept c_strlen_data pointer for external
5991 call sites as well. Pass through to call to internal get_range_strlen.
5992 Adjust minlen, maxlen and maxbound as needed.
5993 (get_maxval_strlen): Update comments.
5994 (gimple_fold_builtin_strlen): Update call to get_range_strlen
5995 to use c_strlen_data pointer. Change variable accesses to instead
5996 use c_strlen_data data members.
5998 * gimple-fold.c (get_range_strlen): Update prototype.
5999 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
6000 local variables. Use pdata to return information to caller.
6001 Update calls to get_range_strlen. Update pdata->maxbound.
6002 (get_range_strlen -- static version): Similarly.
6003 (get_range_strlen -- extern version): Update for internal
6004 get_range_strlen API change. Convert to external data format.
6005 (get_maxval_strlen): Similarly.
6007 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
6009 * coverage.c (get_coverage_counts): Use current_function_decl.
6010 * profile.c (read_thunk_profile): New function.
6011 (branch_prob): Add THUNK parameter.
6012 * tree-profile.c (tree_profiling): Handle thunks.
6013 * value-prof.c (init_node_map): Handle thunks.
6014 * value-prof.h (branch_prob): Upate prototype.
6015 (read_thunk_profile): Declare.
6017 2019-01-01 Jakub Jelinek <jakub@redhat.com>
6019 Update copyright years.
6021 * gcc.c (process_command): Update copyright notice dates.
6022 * gcov-dump.c (print_version): Ditto.
6023 * gcov.c (print_version): Ditto.
6024 * gcov-tool.c (print_version): Ditto.
6025 * gengtype.c (create_file): Ditto.
6026 * doc/cpp.texi: Bump @copying's copyright year.
6027 * doc/cppinternals.texi: Ditto.
6028 * doc/gcc.texi: Ditto.
6029 * doc/gccint.texi: Ditto.
6030 * doc/gcov.texi: Ditto.
6031 * doc/install.texi: Ditto.
6032 * doc/invoke.texi: Ditto.
6034 Copyright (C) 2019 Free Software Foundation, Inc.
6036 Copying and distribution of this file, with or without modification,
6037 are permitted in any medium without royalty provided the copyright
6038 notice and this notice are preserved.