1 2019-04-08 Jakub Jelinek <jakub@redhat.com>
3 PR rtl-optimization/89865
4 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
6 PR rtl-optimization/89865
8 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
9 numbers not to clash with the additional operands[4].
10 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
11 with extra register copy in the middle.
13 2019-04-08 Martin Liska <mliska@suse.cz>
16 * doc/gcov.texi: Document data_file.
17 * gcov.c (generate_results): Add data_info into JSON output.
19 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
21 PR tree-optimization/89725
22 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
23 loop's chrec as invariant symbol.
24 * tree-chrec.h (chrec_contains_symbols): New parameter.
25 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
26 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
27 function of loops not in DDR's loop_nest.
28 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
30 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
33 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
36 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
39 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
40 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
42 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
44 * sched-deps.c (sched_macro_fuse_insns): Check return value of
45 targetm.fixed_condition_code_regs.
47 2019-04-05 Richard Biener <rguenther@suse.de>
51 * tree-cfgcleanup.c (remove_forwarder_block): Always move
52 debug bind stmts but reset them if they are not valid at the
55 2019-04-05 Martin Liska <mliska@suse.cz>
58 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
59 order to wrap keywords or arguments.
60 * collect2.c (main): Likewise.
61 (scan_prog_file): Likewise.
62 (scan_libraries): Likewise.
63 * common/config/riscv/riscv-common.c
64 (riscv_subset_list::parsing_subset_version): Likewise.
65 (riscv_subset_list::parse_std_ext): Likewise.
66 * config/aarch64/aarch64.c (aarch64_override_options_internal):
68 * config/arm/arm.c (arm_option_override): Likewise.
69 * config/cris/cris.c (cris_print_operand): Likewise.
70 * config/darwin-c.c (darwin_pragma_options): Likewise.
71 (darwin_pragma_unused): Likewise.
72 (darwin_pragma_ms_struct): Likewise.
73 * config/ft32/ft32.c (ft32_print_operand): Likewise.
74 * config/i386/i386.c (print_reg): Likewise.
75 (ix86_print_operand): Likewise.
76 * config/i386/xm-djgpp.h: Likewise.
77 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
78 * config/m32c/m32c.c (m32c_option_override): Likewise.
79 * config/msp430/msp430.c (msp430_option_override): Likewise.
80 * config/nds32/nds32.c (nds32_option_override): Likewise.
81 * config/nvptx/mkoffload.c (main): Likewise.
82 * config/rx/rx.c (rx_print_operand): Likewise.
83 (valid_psw_flag): Likewise.
84 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
85 (vms_pragma_nomember_alignment): Likewise.
86 (vms_pragma_extern_model): Likewise.
87 * lto-wrapper.c (compile_offload_image): Likewise.
88 * omp-offload.c (oacc_parse_default_dims): Likewise.
89 * symtab.c (symtab_node::verify_base): Likewise.
90 * tlink.c (recompile_files): Likewise.
91 (start_tweaking): Likewise.
92 * tree-profile.c (parse_profile_filter): Likewise.
94 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
96 PR tree-optimization/89956
97 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
98 multiple negates of the same value.
100 2019-04-04 Martin Sebor <msebor@redhat.com>
104 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
105 have the same precision since the function crashes otherwise.
106 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
107 has non-zero arguments.
109 2019-04-04 Martin Sebor <msebor@redhat.com>
112 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
113 out if the number of arguments is less than expected.
115 2019-04-04 Jeff Law <law@redhat.com>
117 PR rtl-optimization/89399
118 * ree.c (combine_set_extension): Use single_set rather than
119 digging into PATTERN for items on the candidate list.
120 (combine_reaching_defs): Likewise.
122 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
124 PR rtl-optimization/46590
125 * loop-invariant.c (find_defs): Move df_remove_problem and
126 df_process_deferred_rescans to move_invariants.
127 Move df_live_add_problem and df_live_set_all_dirty calls
129 (move_invariants): Likewise.
130 (move_loop_invariants): Likewise, making the df_live calls
131 conditional on -O. Remove the problem again if we added it
134 2019-04-03 qing zhao <qing.zhao@oracle.com>
136 PR tree-optimization/89730
137 * ipa-inline.c (can_inline_edge_p): Delete the checking for
138 -flive-patching=inline-only-static.
139 (can_inline_edge_by_limits_p): Add the checking for
140 -flive-patching=inline-only-static and grant always_inline
141 even when -flive-patching=inline-only-static is specified.
143 2019-04-03 Jeff Law <law@redhat.com>
145 PR rtl-optimization/81025
146 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
148 2019-04-03 Richard Biener <rguenther@suse.de>
150 PR tree-optimization/84101
151 * tree-vect-stmts.c: Include explow.h for hard_function_value,
152 regs.h for hard_regno_nregs.
153 (cfun_returns): New helper.
154 (vect_model_store_cost): When vectorizing a store to a decl
155 we return and the function ABI returns in a multi-reg location
156 account for the possible spilling that will happen.
158 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
160 * config/s390/s390.c (s390_legitimate_address_p): Reject long
161 displacement addresses for vector mode operands.
163 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
165 * config/arc/arc.c (GMASK_LEN): Define.
166 (arc_restore_callee_saves): Restore first blink when
169 2019-04-03 Sudakshina Das <sudi.das@arm.com>
171 * doc/extend.texi: Add deprecated comment on sign-return-address
172 function attribute and add mbranch-protection.
173 * doc/invoke.texi: Add bti to the options for mbranch-protection.
175 2019-04-03 Richard Biener <rguenther@suse.de>
178 * lto-wrapper.c (run_gcc): Avoid implicit rules making
179 the all target phony.
181 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
185 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
186 Return false for variable DImode shifts.
187 (dimode_scalar_chain::compute_convert_gain): Do not handle
188 register count operand in variable DImode shifts.
189 (dimode_scalar_chain::make_vector_copies): Remove support to copy
190 count argument of a variable shift instruction to a vector register.
191 (dimode_scalar_chain::convert_reg): Remove support to convert
192 count argument of a variable shift instruction.
194 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
196 PR rtl-optimization/84206
197 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
198 iterating over loop headers.
200 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
202 PR rtl-optimization/85876
203 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
204 beyond the original fence.
206 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
208 * config.gcc: Mark spu* targets as deprecated/obsolete.
210 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
212 * config/s390/s390-builtin-types.def: New builtin function type
213 definitions. Remove unused types.
214 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
215 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
216 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
218 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
219 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
220 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
221 (vec_double, vec_signed, vec_unsigned): Define to use the new
223 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
226 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
228 * config/s390/s390-builtin-types.def: New builtin function type
230 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
231 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
232 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
233 (s390_vstrszh, s390_vstrszf): New low-level builtins.
234 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
235 constant definitions.
236 * config/s390/vecintrin.h (vec_search_string_cc)
237 (vec_search_string_until_zero_cc): New builtin name definitions.
238 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
240 ("vec_vstrs<mode>"): New insn definition.
242 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
244 * config/s390/s390-builtin-types.def: Add new builtin function
246 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
247 New overloaded builtins.
248 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
250 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
251 (UNSPEC_VEC_SLDBYTE): ... this.
252 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
253 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
255 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
256 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
257 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
259 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
261 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
263 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
264 * config/s390/vector.md (V_HW_HSD): ... here.
266 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
268 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
269 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
270 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
271 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
272 New insn definitions.
274 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
276 * config/s390/s390-builtin-types.def: Add new builtin function type.
277 * config/s390/s390-builtins.def: Add overloaded builtin
278 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
279 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
280 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
281 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
282 ("eltswap<mode>"): New expander.
283 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
286 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
288 * config/s390/s390-builtin-types.def: Add new builtin function types.
289 * config/s390/s390-builtins.def: Add overloaded builtin
290 s390_vec_revb. Add low-level builtins for vlbr and vstbr
292 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
293 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
294 ("bswap<mode>"): New expander.
295 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
297 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
299 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
300 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
301 vector builtin version number in __VEC__.
303 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
305 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
307 (SFSI): New mode attribute.
308 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
309 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
311 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
312 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
313 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
314 ("floatsi<mode>2"): Add wcefb instruction.
316 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
318 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
319 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
321 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
322 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
323 support 32 bit fp-int conversions. Rename to ...
324 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
325 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
326 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
327 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
330 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
332 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
333 if-then-else constructs if we can use the select instruction.
334 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
336 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
338 * config/s390/s390.md ("*popcountdi_arch13_cc")
339 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
341 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
342 Append _z196 to make it ...
343 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
344 ("popcounthi2_z196"): ... this.
345 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
346 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
348 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
350 * config/s390/s390.c (s390_canonicalize_comparison): Convert
351 certain compares for arch13 in order to make use of the condition
352 code result produced by the new instructions.
353 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
354 nxrk, and nxgrk instruction patterns.
355 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
356 (inv_no): Add new code iterator together with some attributes.
357 ("*andc_split_<mode>"): Disable splitter for arch13.
358 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
359 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
360 ("*<ANDOR:bitops_name>c<GPR:mode>")
361 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
362 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
363 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
364 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
366 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
368 * common/config/s390/s390-common.c (processor_flags_table): New
370 * config.gcc: Support arch13 with the --with-arch= configure flag.
371 * config/s390/driver-native.c (s390_host_detect_local_cpu):
372 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
373 * config/s390/s390.c (s390_get_sched_attrmask)
374 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
375 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
376 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
377 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
378 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
380 * config/s390/s390.opt: Support arch13 as processor type in
381 command line options.
383 2019-04-02 Martin Liska <mliska@suse.cz>
386 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
387 Fix param description of graphite-max-arrays-per-scop.
389 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
391 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
392 (ASAN_CC1_SPEC): Use it in 64-bit mode.
393 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
395 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
397 PR rtl-optimization/85412
398 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
399 sel_sched_region_1, not after.
401 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
403 PR rtl-optimization/86928
404 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
405 compute_live if necessary.
406 (sel_redirect_edge_and_branch): Likewise.
408 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
410 PR rtl-optimization/89865
411 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
412 register if it is a part of small class.
414 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
416 PR rtl-optimization/87273
417 * sel-sched-ir.c (merge_fences): Remove assert.
419 2019-04-01 Richard Biener <rguenther@suse.de>
421 PR tree-optimization/46590
422 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
423 (dom_walker::m_reachability): Add in place of...
424 (dom_walker::m_skip_unreachable_blocks): ...this.
425 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
426 Move complex initialization ...
427 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
428 lazily and initialize edge flags on each invocation.
429 (dom_walker::bb_reachable): Use m_reachability.
431 2019-04-01 Martin Liska <mliska@suse.cz>
434 * opt-suggestions.c (option_proposer::build_option_suggestions):
435 Add variant without any argument in order to provide better
438 2019-04-01 Richard Biener <rguenther@suse.de>
441 * gimple.c: Include langhooks.h.
442 (gimple_get_alias_set): Treat enumeral types as the underlying
445 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
446 Eric Botcazou <ebotcazou@adacore.com>
448 PR rtl-optimization/89862
449 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
450 that operates on the full registers for WORD_REGISTER_OPERATIONS
453 2019-03-29 Jim Wilson <jimw@sifive.com>
455 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
456 Clear MASK_RVC and then set if C subset supported.
458 2019-03-29 Jakub Jelinek <jakub@redhat.com>
461 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
462 non-addressable complit into its initializer if it is volatile.
464 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
466 * opts-common.c (integral_argument): Set errno properly in one case.
468 2019-03-29 Martin Liska <mliska@suse.cz>
470 * doc/invoke.texi: Remove -Wchkp from documentation.
472 2019-03-29 Martin Liska <mliska@suse.cz>
474 * dbgcnt.c (print_limit_reach): New function.
477 2019-03-29 Martin Liska <mliska@suse.cz>
479 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
480 (dbg_cnt_process_opt): Parse first tokens aas
481 dbg_cnt_process_single_pair is also using strtok.
483 2019-03-29 Jakub Jelinek <jakub@redhat.com>
485 PR rtl-optimization/87485
486 * function.c (expand_function_end): Move stack_protect_epilogue
487 before loading of return value into hard register(s).
489 2019-03-28 Jakub Jelinek <jakub@redhat.com>
492 * tree-inline.h (struct copy_body_data): Add
493 dont_remap_vla_if_no_change flag.
494 * tree-inline.c (remap_type_3, remap_type_2): New functions.
495 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
496 and remap_type_2 returns false.
497 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
498 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
499 only from where it is copied to nested contexts.
501 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
504 * config/i386/i386.md (RMW operation with LEA peephole):
505 Use LEAMODE mode attribute instead of SWI mode iterator for
508 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
511 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
512 Also process XEXP (src, 0) of a shift insn.
514 2019-03-28 David Malcolm <dmalcolm@redhat.com>
517 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
518 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
520 2019-03-28 Jakub Jelinek <jakub@redhat.com>
522 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
524 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
525 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
526 immediately after first one with df_analyze in between, but rather
527 process all bbs, queueing ones that need second pass in a worklist,
528 df_analyze, process queued debug insn changes and if second pass is
529 needed, process bbs from worklist, df_analyze, process queued debug
532 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
533 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
534 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
536 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
539 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
542 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
545 * config/i386/i386.c (ix86_function_value_1): Call the newly added
546 function for 32-bit MS_ABI.
547 (function_value_ms_32): New function.
549 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
551 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
552 (movdi): Call gen_movdi_symbol_save_scc.
553 (gen_movdi_symbol_save_scc): New insn and split.
555 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
557 PR rtl-optimization/89313
558 * function.c (matching_constraint_num): New static function.
559 (match_asm_constraints_1): Use it. Fixup white space and comment.
560 Don't replace inputs with non-matching constraints which conflict
561 with early clobber outputs.
563 2019-03-27 Jeff Law <law@redhat.com>
566 PR rtl-optimization/87761
567 PR rtl-optimization/89826
568 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
570 (pass_cprop_hardreg::execute): Call df_analyze after adding the
571 note problem to get REG_DEAD/REG_UNUSED notes updated.
573 2019-03-27 Richard Biener <rguenther@suse.de>
575 PR tree-optimization/89463
576 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
577 queue edges to remove.
578 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
579 dead stmts. Delay edge removal until PHIs are removed to
580 make debug-stmt creation not confused by seemingly degenerate
583 2019-03-27 Alan Modra <amodra@gmail.com>
585 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
587 * config/rs6000/darwin.h: Likewise.
588 * config/rs6000/rs6000.c: Likewise.
590 2019-03-27 Alan Modra <amodra@gmail.com>
592 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
593 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
595 2019-03-26 Andrew Waterman <andrew@sifive.com>
596 Jim Wilson <jimw@sifive.com>
598 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
599 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
600 (generic_idivdi, generic_fmul_single, generic_fmul_double)
601 (generic_fdiv, generic_fsqrt): Add check for generic tune.
602 (generic_alu): Add auipc to type list.
603 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
604 (riscv_microarchitecture): Declare.
605 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
606 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
608 (riscv_microarchitecture): New.
609 (sifive_7_tune_info): New.
610 (riscv_cpu_info_table): Add microarchitecture value for rocket and
611 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
613 (riscv_store_data_bypass_p): New.
614 (riscv_option_override): Set riscv_microarchitecture from
615 cpu->microarchitecture.
616 * config/riscv/riscv.md: Include sifive-7.md.
619 (auipc<mode>): Change type to auipc.
620 (restore_stack_nonlocal): New.
621 * config/riscv/sifive-7.md: New.
622 * doc/invoke.texi (RISC-V Options): Update mtune docs.
624 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
627 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
628 Also process XEXP (src, 0) of a shift insn.
630 2019-03-26 Richard Biener <rguenther@suse.de>
632 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
633 (copy_debug_stmt): Likewise.
634 (expand_call_inline): Likewise.
635 (copy_bb): Avoid redundant lookup & set of gimple_block.
636 * gimple-low.c (lower_gimple_return): Likewise.
637 (lower_builtin_setjmp): Likewise.
639 2019-03-26 Jakub Jelinek <jakub@redhat.com>
641 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
642 is constant 0, turn into static const data member initialized to false.
643 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
644 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
646 2019-03-26 Jason Merrill <jason@redhat.com>
647 Jakub Jelinek <jakub@redhat.com>
649 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
651 (mem_alloc_description::release_object_overhead): Fix comment typos.
652 * hash-table.h (hash_table::~hash_table): Call
653 release_instance_overhead only if m_entries is non-NULL, otherwise
654 call unregister_descriptor.
656 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
658 PR tree-optimization/81740
659 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
660 In case of outer loop vectorization, check for backward dependence
661 at the inner loop if outer loop dependence is reversed.
663 2019-03-26 Alan Modra <amodra@gmail.com>
665 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
666 rs6000_vector_mem init. Correct wI and wJ comment.
668 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
670 PR rtl-optimization/88347
671 PR rtl-optimization/88423
672 * sched-deps.c (sched_analyze_insn): Take into account that for
673 tablejumps the barrier appears after a label and a jump_table_data.
675 2019-03-25 Martin Sebor <msebor@redhat.com>
678 * c-common.c (check_user_alignment): Rename local. Correct maximum
679 alignment in diagnostic. Avoid assuming argument fits in SHWI,
680 convert it to UHWI when it fits.
682 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
685 * dwarf2out.c (premark_used_variables): New function.
686 (prune_unused_types_walk): Do not mark not premarked external
688 (prune_unused_types): Call premark_used_variables.
690 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
692 PR rtl-optimization/89676
693 * lra-constraints.c (curr_insn_transform): Do match reload for
694 early clobbers when the match was successful only for different
697 2019-03-25 Martin Sebor <msebor@redhat.com>
699 * doc/extend.texi (Common Type Attributes): Document vector_size.
700 (Common Variable Attributes): Mention size constraint. Correct
702 (Vector Extensions): Use @dfn when defining bas type. Clarify
703 base type and size constraints.
705 2019-03-25 Richard Biener <rguenther@suse.de>
707 PR tree-optimization/89789
708 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
709 changes from non-undefined back to undefined.
711 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
713 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
714 heap string and a gc string, but since this variable is unknown to
715 ggc the gc string might get reused and corrupted. Fixed by always
718 2019-03-25 Richard Biener <rguenther@suse.de>
720 PR tree-optimization/89779
721 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
722 to remove IV defs, delay actual removal.
723 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
724 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
725 very end, properly also reset loop control IV information.
727 2019-03-25 Richard Biener <rguenther@suse.de>
729 PR tree-optimization/89802
730 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
731 move EH data to folded stmt.
733 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
735 * config/s390/s390-builtin-types.def: Remove few unused types and
736 fix sort order for others.
738 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
740 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
741 expected and found types with -mdebug during builtin matching.
743 2019-03-25 Richard Biener <rguenther@suse.de>
746 * fold-const.c (operand_equal_p): Revert last change with
749 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
751 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
752 notes for the result of the __tls_get_addr calls.
753 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
755 2019-03-24 Jeff Law <law@redhat.com>
757 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
759 PR rtl-optimization/87761
760 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
761 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
763 (pass_cprop_hardreg::execute): Add df note problem and defer insn
764 rescans. Reprocess blocks as needed, calling df_analyze before
765 reprocessing. Always call df_analyze before fixing up debug bind
768 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
770 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
773 2019-03-22 Andrew Pinski <apinski@marvell.com>
775 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
778 2019-03-26 Jeff Law <law@redhat.com>
780 PR rtl-optimization/87761
781 * config/mips/mips-protos.h (mips_split_move): Add new argument.
782 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
783 (mips_split_move): Accept new INSN argument. Try to forward SRC
784 into the next instruction.
785 (mips_split_move_insn): Pass INSN through to mips_split_move.
787 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
789 PR rtl-optimization/89676
790 * lra-constraints.c (curr_insn_transform): Do match reload for
791 early clobbers even if the match was successful.
793 2019-03-22 Jakub Jelinek <jakub@redhat.com>
796 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
798 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
800 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
802 2019-03-22 Jakub Jelinek <jakub@redhat.com>
804 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
805 <avx512>_fmsub_<mode>_mask3<round_name>,
806 <avx512>_fnmadd_<mode>_mask3<round_name>,
807 <avx512>_fnmsub_<mode>_mask3<round_name>,
808 avx512f_vmfmadd_<mode>_mask3<round_name>,
809 avx512f_vmfmsub_<mode>_mask3<round_name>,
810 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
811 instead of register_operand and %v instead of v for match_operand 1.
812 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
813 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
814 <round_nimm_predicate> instead of register_operand and %v instead of v
817 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
818 <avx512>_fmadd_<mode>_mask3<round_name>,
819 <avx512>_fmsub_<mode>_mask<round_name>,
820 <avx512>_fmsub_<mode>_mask3<round_name>,
821 <avx512>_fnmadd_<mode>_mask<round_name>,
822 <avx512>_fnmadd_<mode>_mask3<round_name>,
823 <avx512>_fnmsub_<mode>_mask<round_name>,
824 <avx512>_fnmsub_<mode>_mask3<round_name>,
825 <avx512>_fmaddsub_<mode>_mask<round_name>,
826 <avx512>_fmaddsub_<mode>_mask3<round_name>,
827 <avx512>_fmsubadd_<mode>_mask<round_name>,
828 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
829 <round_nimm_predicate> instead of nonimmediate_operand.
830 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
831 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
832 Use register_operand instead of <round_nimm_predicate> for the
833 operand that needs to match output.
834 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
835 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
836 Likewise. Formatting fixes.
839 * config/i386/i386.c (enum ix86_builtins): Remove
840 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
841 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
842 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
843 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
844 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
845 __builtin_ia32_vfmsubss3_mask3): New builtins.
846 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
847 avx512f_vmfmadd_<mode>_mask3<round_name>,
848 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
849 *avx512f_vmfmsub_<mode>_mask<round_name>,
850 avx512f_vmfmsub_<mode>_mask3<round_name>,
851 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
852 *avx512f_vmfnmadd_<mode>_mask<round_name>,
853 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
854 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
855 *avx512f_vmfnmsub_<mode>_mask<round_name>,
856 avx512f_vmfnmsub_<mode>_mask3<round_name>,
857 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
858 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
859 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
860 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
861 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
862 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
863 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
864 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
865 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
866 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
867 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
868 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
869 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
870 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
871 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
872 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
873 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
874 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
875 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
876 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
877 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
878 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
880 2019-03-21 Martin Sebor <msebor@redhat.com>
882 PR tree-optimization/89350
883 * builtins.c (compute_objsize): Also ignore offsets whose upper
885 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
886 (builtin_memref::builtin_memref): Initialize new member.
887 Allow EXPR to be null.
888 (builtin_memref::extend_offset_range): Replace local with a member.
889 Avoid assuming pointer offsets are unsigned.
890 (builtin_memref::set_base_and_offset): Determine base object
891 before computing offset range.
892 (builtin_access::builtin_access): Handle memset.
893 (builtin_access::generic_overlap): Replace local with a member.
894 (builtin_access::strcat_overlap): Same.
895 (builtin_access::overlap): Same.
896 (maybe_diag_overlap): Same.
897 (maybe_diag_access_bounds): Same.
898 (wrestrict_dom_walker::check_call): Handle memset.
899 (check_bounds_or_overlap): Same.
901 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
902 Jakub Jelinek <jakub@redhat.com>
905 * tree.c (fld_type_variant, fld_incomplete_type_of,
906 fld_process_array_type): Call fld->pset.add and don't call
907 add_tree_to_fld_list if it returns true.
908 (free_lang_data_in_type): Similarly with self-recursive call. Purge
909 non-marked types from TYPE_NEXT_VARIANT list.
910 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
912 2019-03-21 Jakub Jelinek <jakub@redhat.com>
914 * hash-table.h (hash_table): Add Lazy template parameter defaulted
915 to false, if true, don't alloc_entries during construction, but defer
916 it to the first method that needs m_entries allocated.
917 (hash_table::hash_table, hash_table::~hash_table,
918 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
919 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
920 hash_table::clear_slot, hash_table::traverse_noresize,
921 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
922 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
924 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
925 NO_INSERT instead of find_with_hash.
926 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
927 hash_set::m_table): Add Lazy to template params of hash_table.
928 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
929 * attribs.c (test_attribute_exclusions): Likewise.
930 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
931 hash_set. Add tests for hash_set with Lazy = true.
933 2019-03-21 Richard Biener <rguenther@suse.de>
935 PR tree-optimization/89779
936 * tree.c (tree_nop_conversion): Consolidate and fix defensive
937 checks with respect to released SSA names now having error_mark_node
939 * fold-const.c (operand_equal_p): Likewise.
941 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
944 * config/s390/s390.c (global_not_special_regno_p): Move to make it
946 (s390_optimize_register_info): Use global_not_special_regno_p to
947 check for global regs.
949 2019-03-20 Jakub Jelinek <jakub@redhat.com>
952 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
953 update this_alternative nor this_alternative_set.
955 2019-03-19 Jim Wilson <jimw@sifive.com>
958 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
959 align, size, offset. Use them to handle a BLKmode reference. Update
961 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
963 2019-03-19 Jakub Jelinek <jakub@redhat.com>
965 PR rtl-optimization/89768
966 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
968 (unroll_loop_runtime_iterations): Likewise.
970 2019-03-19 Martin Sebor <msebor@redhat.com>
972 PR tree-optimization/89644
973 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
974 rather than endptr as an indicator of nul-termination.
976 PR tree-optimization/89644
977 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
978 arrays in determining sequence sizes in strncpy and stpncpy.
980 2019-03-19 Martin Liska <mliska@suse.cz>
983 * predict.c (combine_predictions_for_bb): Empty likely_edges and
984 unlikely_edges if there's an edge that belongs to both these sets.
986 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
989 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
990 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
991 go via a stack temporary.
993 2019-03-19 Jakub Jelinek <jakub@redhat.com>
996 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
997 instead of gen_rtx_SUBREG.
998 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
1000 2019-03-19 Richard Biener <rguenther@suse.de>
1003 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
1005 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
1009 * tree.c (free_lang_data_in_decl): Do not free context of C++
1012 2019-03-19 Jakub Jelinek <jakub@redhat.com>
1015 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
1016 subs for the first alternative except when operands[3] is 1.
1019 * gimplify.c (gimplify_asm_expr): For output argument with
1020 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
1023 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
1025 PR rtl-optimization/89753
1026 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
1027 explicit unrolling factor even more robust.
1029 2019-03-19 Jakub Jelinek <jakub@redhat.com>
1032 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
1033 compensation use x2 += 1 instead of x2 -= -1 and when honoring
1034 signed zeros, do another copysign after the compensation.
1036 2019-03-18 Martin Sebor <msebor@redhat.com>
1038 PR tree-optimization/89720
1039 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
1040 more conservatively, the same as anti-range.
1042 2019-03-18 Richard Biener <rguenther@suse.de>
1045 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
1046 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
1047 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
1048 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
1050 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
1052 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
1053 Extend queue to 1024 entries.
1054 Add "consumed" field.
1055 (gomp_print_output): Remove print_index parameter.
1056 Add final parameter.
1057 Change limit to unsigned.
1058 Use consumed field to implement circular buffer.
1059 Detect interrupted print in final pass.
1060 Flush output at the end.
1061 (run): Update gomp_print_output usage.
1062 (main): Initialize kernargs->output_data.consumed.
1064 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
1066 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
1067 calculation of the minimum number of scalar iterations for
1068 fully-predicated loops.
1070 2019-03-18 Martin Jambor <mjambor@suse.cz>
1072 PR tree-optimization/89546
1073 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
1074 any propagation to its children took place.
1076 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
1079 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
1080 parameter, and make use of it.
1081 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
1083 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
1085 * config/arc/arc.opt (mcode-density-frame): Get the inital value
1086 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
1087 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
1088 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
1089 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
1090 match what the ops is doing.
1091 (push_multi_fp_blink): Likewise.
1092 * config/arc/arc.c (arc_override_options): Enable enter/leave when
1093 compiling for size and elf target.
1094 (arc_save_callee_enter): Adjust note to match what enter/leave
1097 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
1099 * config/arc/arc.md (tst_movb): Fix constraint.
1101 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
1103 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
1105 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
1107 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
1108 * config/arc/arc.c (arc_conditional_register_usage): Remove all
1109 reg_alloc_order references.
1110 (size_alloc_order): Define.
1111 (arc_adjust_reg_alloc_order): New function.
1112 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
1114 (ADJUST_REG_ALLOC_ORDER): Define.
1115 (HONOR_REG_ALLOC_ORDER): Likewise.
1117 2019-03-18 Richard Biener <rguenther@suse.de>
1120 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
1121 loads and stores a bit more.
1123 2019-03-18 Richard Biener <rguenther@suse.de>
1126 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
1127 load pessimization to stores as well.
1129 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
1132 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
1133 successor, use NULL as its av set.
1135 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
1137 PR rtl-optimization/89721
1138 * lra-constraints (invariant_p): Return false if side_effects_p holds.
1140 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
1143 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1144 When handling vec_extract, use modular arithmetic to allow
1145 constant selectors greater than vector length.
1146 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
1147 V1TImode vectors to have constant selector values greater than 0.
1148 Use modular arithmetic to compute vector index.
1149 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
1150 index for in-memory vectors. Correct code generation for
1151 in-register vectors.
1152 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
1155 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
1159 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
1162 2019-03-15 Jakub Jelinek <jakub@redhat.com>
1165 * tree.c (inchash::add_expr): Strip any location wrappers.
1166 * fold-const.c (operand_equal_p): Move stripping of location wrapper
1167 after hash verification.
1170 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
1171 SIGN_EXTEND and ZERO_EXTEND.
1173 2019-03-14 Jason Merrill <jason@redhat.com>
1174 Jakub Jelinek <jakub@redhat.com>
1176 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
1177 than if is_empty (*slot).
1178 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
1179 existing elt and for elt removal.
1180 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
1181 of already removed elt.
1183 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
1186 * config/i386/i386.c (remove_partial_avx_dependency): Handle
1189 2019-03-14 Martin Liska <mliska@suse.cz>
1192 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
1194 2019-03-14 Richard Biener <rguenther@suse.de>
1197 * config/i386/i386.c (make_resolver_func): Properly set
1198 DECL_CONTEXT on the RESULT_DECL.
1199 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
1201 2019-03-14 Richard Biener <rguenther@suse.de>
1203 * gimple-pretty-print.c: Include cfgloop.h.
1204 (dump_gimple_phi): Adjust.
1205 (dump_gimple_bb_header): Dump loop header for GIMPLE.
1206 (pp_cfg_jump): Adjust.
1207 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
1208 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
1209 (lower_phi_internal_fn): Remove.
1210 (verify_gimple_call): Remove IFN_PHI special-casing.
1211 (dump_function_to_file): Dump IL state.
1212 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
1213 done to deal with PHI nodes being present in non-SSA state.
1215 2019-03-14 Jakub Jelinek <jakub@redhat.com>
1218 * multiple_target.c (create_dispatcher_calls): Change
1219 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
1220 In the node->iterate_referring loop, push *ref rather than ref, call
1221 ref->remove_reference () and always pass 0 to iterate_referring.
1223 PR rtl-optimization/89679
1224 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
1225 would contain a paradoxical SUBREG.
1227 2019-03-14 Richard Biener <rguenther@suse.de>
1229 PR tree-optimization/89710
1230 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
1233 2019-03-14 Martin Liska <mliska@suse.cz>
1235 * coverage.c (coverage_begin_function): Stream also
1237 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
1238 documentation about function declaration location.
1239 * gcov-dump.c (tag_function): Print whole range
1240 of function declaration.
1241 * gcov.c (struct function_info): Add end_column field.
1242 (function_info::function_info): Initialize it.
1243 (output_json_intermediate_file): Output {start,end}_column
1245 (read_graph_file): Read end_column.
1247 2019-03-14 Richard Biener <rguenther@suse.de>
1250 * fold-const.c (operand_equal_p): For INDIRECT_REF check
1251 that the access types are similar.
1253 2019-03-14 Jakub Jelinek <jakub@redhat.com>
1255 PR tree-optimization/89703
1256 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
1257 aren't compatible also with builtin_decl_explicit. Check pure
1258 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
1259 and BUILT_IN_STPNCPY{,_CHK}.
1261 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
1264 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
1265 addr32 prefix to VSIB address for X32.
1266 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
1268 (*avx512pf_gatherpf<mode>df_mask): Likewise.
1269 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
1270 (*avx512pf_scatterpf<mode>df_mask): Likewise.
1271 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
1272 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
1273 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
1274 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
1275 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
1276 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
1277 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
1278 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
1279 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
1280 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
1281 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
1282 (*avx512f_scatterdi<mode>): Likewise.
1284 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
1287 * lra-constraints.c (inherit_in_ebb): Update
1288 potential_reload_hard_regs along with live_hard_regs.
1290 2019-03-13 Jakub Jelinek <jakub@redhat.com>
1293 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
1295 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
1297 2019-03-13 Martin Sebor <msebor@redhat.com>
1299 PR tree-optimization/89662
1300 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
1303 2019-03-13 Richard Biener <rguenther@suse.de>
1306 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
1307 throw FP expressions at tree-affine.
1309 2019-03-14 Richard Biener <rguenther@suse.de>
1311 * tree-pretty-print.c (dump_generic_node): For -gimple properly
1312 dump negative integer constants using _Literal (type) -num.
1314 2019-03-13 Jakub Jelinek <jakub@redhat.com>
1316 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
1317 nonlocal_value member.
1320 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
1321 (ipa_simd_modify_function_body): Handle PHIs.
1323 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
1325 * config/s390/s390.c (s390_option_override_internal): Use more
1326 aggressive inlining parameters.
1328 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
1330 * config/s390/3906.md: New file.
1331 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
1332 (LONGRUNNING_THRESHOLD): Remove.
1333 (MAX_SCHED_MIX_SCORE): Decrease.
1334 (MAX_SCHED_MIX_DISTANCE): Decrease.
1335 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
1336 (struct s390_sched_state): New struct to hold scheduling state.
1337 (S390_SCHED_STATE_NORMAL): Remove.
1338 (S390_SCHED_STATE_CRACKED): Remove.
1339 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
1340 (s390_get_sched_attrmask): Use new attribute.
1341 (s390_get_unit_mask): Use new units.
1342 (s390_is_fpd): New function.
1343 (s390_is_fxd): New function.
1344 (s390_is_longrunning): New function.
1345 (s390_sched_score): Use new functions.
1346 (s390_sched_reorder): Likewise.
1347 (s390_sched_variable_issue): Rework and use new functions.
1348 (s390_sched_init): Use new functions.
1349 * config/s390/s390.h (s390_tune_attr): Add z14.
1350 * config/s390/s390.md: Add z14.
1352 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
1354 * config/s390/2964.md: Update pipeline description.
1355 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
1356 (LONGRUNNING_THRESHOLD): Remove.
1357 (LATENCY_FACTOR): Remove.
1358 (s390_get_unit_mask): Add unit.
1359 (s390_sched_score): Use fxd/fpd.
1360 (s390_sched_variable_issue): Use fxd/fpd.
1362 2019-03-12 Martin Liska <mliska@suse.cz>
1364 * config/i386/i386.c: Reword an error message.
1366 2019-03-12 Martin Jambor <mjambor@suse.cz>
1368 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
1369 terminate with newline.
1371 2019-03-12 Jakub Jelinek <jakub@redhat.com>
1374 * config/s390/s390.md (tabort): Use %wd instead of
1375 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
1376 letters and periods.
1377 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
1378 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
1382 * builtins.c (expand_builtin_int_roundingfn,
1383 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
1384 gcc_unreachable if validate_arglist fails.
1386 2019-03-12 Richard Biener <rguenther@suse.de>
1388 PR tree-optimization/89664
1389 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
1390 free the occurance tree after the early out.
1392 2019-03-11 Jakub Jelinek <jakub@redhat.com>
1396 * vr-values.c (vr_values::update_value_range): If
1397 old_vr->varying_p (), don't update it, make new_vr also VARYING
1400 2019-03-11 Martin Liska <mliska@suse.cz>
1402 * config/aarch64/aarch64.c (aarch64_override_options_internal):
1403 Fix double string quoting.
1405 2019-03-11 Martin Liska <mliska@suse.cz>
1407 * collect-utils.c (collect_wait): Wrap apostrophes
1408 in gcc internal format with %'.
1409 * collect2.c (main): Likewise.
1410 (scan_prog_file): Likewise.
1411 (scan_libraries): Likewise.
1412 * config/i386/i386.c (ix86_expand_call): Likewise.
1413 (ix86_handle_interrupt_attribute): Likewise.
1414 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
1415 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
1416 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
1417 * lto-wrapper.c (find_crtoffloadtable): Likewise.
1418 * symtab.c (symtab_node::verify_base): Likewise.
1419 * tree-cfg.c (verify_gimple_label): Likewise.
1420 * tree.c (verify_type_variant): Likewise.
1422 2019-03-11 Martin Liska <mliska@suse.cz>
1424 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
1425 in a string format message and fix GNU coding style.
1426 (expand_builtin_set_thread_pointer): Likewise.
1427 * common/config/aarch64/aarch64-common.c
1428 (aarch64_rewrite_selected_cpu): Likewise.
1429 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
1430 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
1431 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
1432 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
1433 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
1434 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
1435 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
1436 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
1437 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
1438 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
1440 * common/config/riscv/riscv-common.c
1441 (riscv_subset_list::parsing_subset_version): Likewise.
1442 (riscv_subset_list::parse_std_ext): Likewise.
1443 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
1444 (riscv_subset_list::parse): Likewise.
1445 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
1446 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
1447 (aarch64_override_options_internal): Likewise.
1448 (aarch64_validate_mcpu): Likewise.
1449 (aarch64_validate_march): Likewise.
1450 (aarch64_validate_mtune): Likewise.
1451 (aarch64_override_options): Likewise.
1452 * config/alpha/alpha.c (alpha_option_override): Likewise.
1453 * config/arc/arc.c (arc_init): Likewise.
1454 (parse_mrgf_banked_regs_option): Likewise.
1455 (arc_override_options): Likewise.
1456 (arc_expand_builtin_aligned): Likewise.
1457 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
1458 (arm_expand_builtin): Likewise.
1459 * config/arm/arm.c (arm_option_check_internal): Likewise.
1460 (arm_configure_build_target): Likewise.
1461 (arm_option_override): Likewise.
1462 (arm_options_perform_arch_sanity_checks): Likewise.
1463 (arm_handle_cmse_nonsecure_entry): Likewise.
1464 (arm_handle_cmse_nonsecure_call): Likewise.
1465 (arm_tls_referenced_p): Likewise.
1466 (thumb1_expand_prologue): Likewise.
1467 * config/avr/avr.c (avr_option_override): Likewise.
1468 * config/bfin/bfin.c (bfin_option_override): Likewise.
1469 * config/c6x/c6x.c (c6x_option_override): Likewise.
1470 * config/cr16/cr16.c (cr16_override_options): Likewise.
1471 * config/cris/cris.c (cris_option_override): Likewise.
1472 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
1473 * config/darwin-c.c (macosx_version_as_macro): Likewise.
1474 * config/darwin.c (darwin_override_options): Likewise.
1475 * config/frv/frv.c (frv_expand_builtin): Likewise.
1476 * config/h8300/h8300.c (h8300_option_override): Likewise.
1477 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
1478 (ix86_option_override_internal): Likewise.
1479 (warn_once_call_ms2sysv_xlogues): Likewise.
1480 (ix86_expand_prologue): Likewise.
1481 (split_stack_prologue_scratch_regno): Likewise.
1482 (ix86_warn_parameter_passing_abi): Likewise.
1483 * config/ia64/ia64.c (fix_range): Likewise.
1484 * config/m68k/m68k.c (m68k_option_override): Likewise.
1485 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
1486 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
1487 (mips_set_compression_mode): Likewise.
1488 * config/mmix/mmix.c (mmix_option_override): Likewise.
1489 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
1490 * config/msp430/msp430.c (msp430_option_override): Likewise.
1491 * config/nds32/nds32.c (nds32_option_override): Likewise.
1492 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
1493 (nios2_option_override): Likewise.
1494 (nios2_expand_custom_builtin): Likewise.
1495 * config/nvptx/mkoffload.c (main): Likewise.
1496 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
1497 * config/pa/pa.c (fix_range): Likewise.
1498 (pa_option_override): Likewise.
1499 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
1500 (riscv_option_override): Likewise.
1501 * config/rl78/rl78.c (rl78_option_override): Likewise.
1502 * config/rs6000/aix61.h: Likewise.
1503 * config/rs6000/aix71.h: Likewise.
1504 * config/rs6000/aix72.h: Likewise.
1505 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
1506 * config/rs6000/freebsd64.h: Likewise.
1507 * config/rs6000/linux64.h: Likewise.
1508 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
1509 (rs6000_expand_zeroop_builtin): Likewise.
1510 (rs6000_expand_mtfsb_builtin): Likewise.
1511 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
1512 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
1513 (rs6000_invalid_builtin): Likewise.
1514 (rs6000_expand_split_stack_prologue): Likewise.
1515 * config/rs6000/rtems.h: Likewise.
1516 * config/rx/rx.c (valid_psw_flag): Likewise.
1517 (rx_expand_builtin): Likewise.
1518 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
1519 * config/s390/s390.c (s390_expand_builtin): Likewise.
1520 (s390_function_profiler): Likewise.
1521 (s390_option_override_internal): Likewise.
1522 (s390_option_override): Likewise.
1523 * config/sh/sh.c (sh_option_override): Likewise.
1524 (sh_builtin_saveregs): Likewise.
1525 (sh_fix_range): Likewise.
1526 * config/sh/vxworks.h: Likewise.
1527 * config/sparc/sparc.c (sparc_option_override): Likewise.
1528 * config/spu/spu.c (spu_option_override): Likewise.
1529 (fix_range): Likewise.
1530 * config/visium/visium.c (visium_option_override): Likewise.
1531 (visium_handle_interrupt_attr): Likewise.
1532 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
1533 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
1534 (dbg_cnt_process_opt): Likewise.
1535 * dwarf2out.c (output_dwarf_version): Likewise.
1536 * except.c (expand_eh_return): Likewise.
1537 * gcc.c (defined): Likewise.
1538 (driver_handle_option): Likewise.
1539 (process_command): Likewise.
1540 (compare_files): Likewise.
1541 (driver::prepare_infiles): Likewise.
1542 (driver::do_spec_on_infiles): Likewise.
1543 (driver::maybe_run_linker): Likewise.
1544 * omp-offload.c (oacc_parse_default_dims): Likewise.
1545 * opts-global.c (handle_common_deferred_options): Likewise.
1546 * opts.c (parse_sanitizer_options): Likewise.
1547 (common_handle_option): Likewise.
1548 (enable_warning_as_error): Likewise.
1549 * passes.c (enable_disable_pass): Likewise.
1550 * plugin.c (parse_plugin_arg_opt): Likewise.
1551 (default_plugin_dir_name): Likewise.
1552 * targhooks.c (default_expand_builtin_saveregs): Likewise.
1553 (default_pch_valid_p): Likewise.
1554 * toplev.c (init_asm_output): Likewise.
1555 (process_options): Likewise.
1556 (toplev::run_self_tests): Likewise.
1557 * tree-cfg.c (verify_gimple_call): Likewise.
1558 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
1559 (tree_inlinable_function_p): Likewise.
1560 * var-tracking.c (vt_find_locations): Likewise.
1562 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
1564 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
1565 only on the else branch.
1567 2019-03-11 Martin Liska <mliska@suse.cz>
1569 * gcov.c (output_intermediate_json_line): Print function
1571 (output_json_intermediate_file): Add new argument.
1572 * doc/gcov.texi: Document the change.
1574 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
1576 PR rtl-optimization/89588
1577 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
1578 explicit unrolling factor more robust.
1580 2019-03-11 Richard Biener <rguenther@suse.de>
1582 PR tree-optimization/89649
1583 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
1584 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
1585 on the prolog and epilog loops.
1586 (vect_loop_versioning): Return copy of loop.
1587 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
1588 on the non-vectorized version of the loop.
1590 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
1593 * config/i386/sse.md (*vec_extractv2di_0_sse):
1594 Add (=r,x) alternative and corresponding splitter.
1596 2019-03-10 Martin Jambor <mjambor@suse.cz>
1598 PR tree-optimization/85762
1599 PR tree-optimization/87008
1600 PR tree-optimization/85459
1601 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
1602 it points to if there is a type changing MEM_REF. Adjust all callers.
1603 (build_accesses_from_assign): Disable total scalarization if
1604 contains_vce_or_bfcref_p returns true through the new parameter, for
1607 2019-03-09 Jakub Jelinek <jakub@redhat.com>
1610 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
1611 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
1614 * common.opt (fdiagnostics-show-labels,
1615 fdiagnostics-show-line-numbers, fdiagnostics-format=,
1616 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
1617 gas-locview-support, ginline-points, ginternal-reset-location-views):
1618 Terminate description text with a dot.
1619 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
1620 * config/mcore/mcore.opt (m210, m340): Likewise.
1621 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
1622 mnops=): Start description text with a capital letter.
1623 * config/arc/arc.opt (msize-level=): Likewise.
1624 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
1625 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
1627 * config/ft32/ft32.opt (msim): Likewise.
1628 (mft32b, mcompress): Likewise. Terminate description text with a dot.
1629 (mnodiv, mnopm): Terminate description text with a dot.
1630 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
1632 * config/i386/i386.opt (prefer_vector_width, instrument_return):
1634 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
1637 PR rtl-optimization/89634
1638 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
1639 are modified in BB_END (e->src) instruction.
1641 2019-03-08 David Malcolm <dmalcolm@redhat.com>
1644 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
1645 messages more amenable to translation, and improve wording.
1647 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
1649 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
1650 ud- and du-chains between phases.
1652 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
1655 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
1656 instead of POLY_INT_CST.
1658 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
1660 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
1663 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
1668 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
1669 (_mm_storeu_si64): Ditto.
1671 2019-03-08 Martin Liska <mliska@suse.cz>
1674 * config/i386/i386.c (ix86_option_override_internal): Disable
1675 jump tables when retpolines are used.
1677 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
1680 * ipa-split.c (execute_split_functions): Do not split
1681 'noinline' or 'section' function.
1683 2019-03-08 Jakub Jelinek <jakub@redhat.com>
1686 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
1687 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
1688 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
1691 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
1692 from diagnostics. Formatting fixes.
1695 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
1696 warn_odr diagnostics.
1699 * lra-constraints.c (process_alt_operands): Avoid one space before
1700 " at the end of line and another after " on another line in a string
1702 * attribs.c (handle_dll_attribute): Likewise.
1703 * config/avr/avr-devices.c (avr_texinfo): Likewise.
1705 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
1706 warning_at or inform messages in G_() if there is no ?:.
1708 PR tree-optimization/89550
1709 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
1710 returned true. Formatting fixes.
1711 (expand_builtin_strnlen): Formatting fixes.
1712 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
1713 if warning_at returned true.
1714 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
1716 2019-03-08 Richard Biener <rguenther@suse.de>
1719 * cfgloop.h (struct loop): Add owned_clique field.
1720 * cfgloopmanip.c (copy_loop_info): Copy it.
1721 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
1723 * tree-inline.c (copy_loops): Remap owned_clique.
1724 * lto-streamer-in.c (input_cfg): Stream owned_clique.
1725 * lto-streamer-out.c (output_cfg): Likewise.
1727 2019-03-08 Jakub Jelinek <jakub@redhat.com>
1730 * config/darwin.c: Include intl.h.
1731 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
1732 composing the message out of two separate parts.
1734 2019-03-07 Jakub Jelinek <jakub@redhat.com>
1737 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
1738 doesn't start with a capital letter and doesn't end with a dot.
1739 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
1740 with a capital letter.
1741 (ix86_mangle_function_version_assembler_name): Likewise.
1742 (ix86_generate_version_dispatcher_body): Likewise.
1743 (fold_builtin_cpu): Likewise.
1744 (get_builtin_code_for_version): Likewise. Remove extraneous space.
1745 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
1746 translators, wrap full type name in %qs.
1748 PR translation/79999
1749 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
1750 depend clause with source (or sink) modifier.
1751 * omp-expand.c (expand_omp_ordered_sink): Likewise.
1754 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
1755 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
1756 (avx512f_load<mode>_mask): New define_expand.
1757 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
1758 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
1759 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
1760 __builtin_ia32_movess_mask): New builtins.
1761 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
1762 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
1763 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
1764 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
1766 2019-03-07 Martin Jambor <mjambor@suse.cz>
1769 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
1770 for extern inline functions.
1772 2019-03-07 Martin Jambor <mjambor@suse.cz>
1775 * cgraph.h (cgraph_node): New inline method former_thunk_p.
1776 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
1777 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
1778 have multiple callees. At the end check if declarations match as
1779 opposed to cgraph_nodes.
1781 2019-03-07 Martin Liska <mliska@suse.cz>
1783 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
1784 which is equivalent to searching for this in clones chain.
1785 * symtab.c (symtab_node::verify_base): Similarly compare ASM
1786 names with a neighbour and special case first node in a chain.
1788 2019-01-25 Jason Merrill <jason@redhat.com>
1790 PR c++/80916 - spurious "static but not defined" warning.
1791 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
1792 for an internal symbol with DECL_EXTERNAL.
1794 2019-04-07 Richard Biener <rguenther@suse.de>
1797 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
1798 * tree-inline.c (copy_loops): Simplify.
1800 2019-03-07 Martin Liska <mliska@suse.cz>
1802 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
1804 2019-03-07 Richard Biener <rguenther@suse.de>
1806 PR tree-optimization/89595
1807 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
1808 stmt iterator as reference, take boolean output parameter to
1809 indicate whether the stmt was removed and thus the iterator
1811 (dom_opt_dom_walker::before_dom_children): Re-iterate over
1812 stmts created by folding.
1814 2019-03-07 Jakub Jelinek <jakub@redhat.com>
1817 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
1820 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
1822 PR rtl-optimization/88845
1823 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
1825 * lra.c (remove_scratches_1): New function.
1826 (remove_scratches): Use it.
1827 (lra_emit_move): Likewise.
1829 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
1831 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
1832 unaligned_access variable.
1833 * config/arc/arc.c (arc_override_options): Set unaligned access
1834 default on for HS CPUs.
1835 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
1837 2019-03-06 Martin Liska <mliska@suse.cz>
1839 PR gcov-profile/89577
1840 * doc/gcov.texi: Prefer to use --coverage.
1841 * doc/sourcebuild.texi: Likewise.
1843 2019-03-02 Jason Merrill <jason@redhat.com>
1845 PR c++/86485 - -Wmaybe-unused with empty class ?:
1846 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
1848 2019-03-05 Jakub Jelinek <jakub@redhat.com>
1851 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
1855 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
1856 exactly one argument.
1858 2019-03-05 Jakub Jelinek <jakub@redhat.com>
1859 Richard Sandiford <richard.sandiford@arm.com>
1861 PR tree-optimization/89570
1862 * match.pd (vec_cond into cond_op simplification): Don't use
1863 get_conditional_internal_fn, use as_internal_fn (cond_op).
1865 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
1868 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
1869 to decide when to split off a non-zero offset from a symbol.
1870 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
1871 in function symbols.
1873 2019-03-05 Richard Biener <rguenther@suse.de>
1875 PR tree-optimization/89594
1876 * tree-if-conv.c (pass_if_conversion::execute): Handle
1877 case where .LOOP_VECTORIZED_FUNCTION was removed.
1879 2019-03-05 Jakub Jelinek <jakub@redhat.com>
1882 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
1883 instead alloca it only when needed with the needed size.
1885 PR tree-optimization/89570
1886 * match.pd (vec_cond into cond_op simplification): Guard with
1887 vectorized_internal_fn_supported_p test and #if GIMPLE.
1889 PR tree-optimization/89566
1890 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
1891 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
1892 Punt if get_user_idx_format succeeds, but idx_format argument is
1893 not provided or doesn't have pointer type, or if idx_args is above
1894 number of provided arguments.
1896 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
1898 PR tree-optimization/89437
1899 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
1901 2019-03-04 Richard Biener <rguenther@suse.de>
1904 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
1907 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
1909 PR tree-optimization/89487
1910 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
1911 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
1912 (distribute_loop): Don't do runtime alias check if there is non-
1913 addressable data reference.
1914 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
1915 is a register variable.
1917 2019-03-02 Jakub Jelinek <jakub@redhat.com>
1920 * config/arm/arm.md (cmpsi2_addneg): Use
1921 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
1922 If operands[2] is 0 or INT_MIN, force use of subs.
1923 (*compare_scc splitter): Use gen_int_mode.
1924 (*negscc): Likewise.
1925 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
1927 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
1928 Monk Chiang <sh.chiang04@gmail.com>
1930 * common/config/riscv/riscv-common.c: Include sstream.
1931 (riscv_subset_list::to_string): New.
1932 (riscv_arch_str): Likewise.
1933 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
1935 * config/riscv/riscv-protos.h (riscv_arch_str): New.
1936 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
1937 (riscv_emit_attribute): New.
1938 (riscv_file_start): Emit attribute if needed.
1939 (riscv_option_override): Init riscv_emit_attribute_p.
1940 * config/riscv/riscv.opt (mriscv-attribute): New option.
1941 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
1943 * doc/install.texi: Document --with-riscv-attribute.
1944 * doc/invoke.texi: Document -mriscv-attribute.
1946 * common/config/riscv/riscv-common.c:
1947 Include config/riscv/riscv-protos.h.
1948 (INCLUDE_STRING): Defined.
1949 (RISCV_DONT_CARE_VERSION): Defined.
1950 (riscv_subset_t): Declare.
1951 (riscv_subset_t::riscv_subset_t): New.
1952 (riscv_subset_list): Declare.
1953 (riscv_subset_list::riscv_subset_list): New.
1954 (riscv_subset_list::~riscv_subset_list): Likewise.
1955 (riscv_subset_list::parsing_subset_version): Likewise.
1956 (riscv_subset_list::parse_std_ext): Likewise.
1957 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
1958 (riscv_subset_list::add): Likewise.
1959 (riscv_subset_list::lookup): Likewise.
1960 (riscv_subset_list::xlen): Likewise.
1961 (riscv_subset_list::parse): Likewise.
1962 (riscv_supported_std_ext): Likewise.
1963 (current_subset_list): Likewise.
1964 (riscv_parse_arch_string): Using riscv_subset_list::parse to
1967 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
1969 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
1970 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
1971 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
1973 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
1975 PR rtl-optimization/85899
1976 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
1977 fallthru edges leading to the exit block.
1979 2019-03-01 Tamar Christina <tamar.christina@arm.com>
1982 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
1983 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
1985 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
1987 PR tree-optimization/89535
1988 * tree-vect-stmts.c (vectorizable_call): Record the vector types
1989 for each operand. Calculate the fallback choice for mask operands
1990 and pass it to vect_get_vec_def_for_operand.
1992 2019-03-01 Richard Biener <rguenther@suse.de>
1995 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
1996 get virtual operands.
1997 (get_expr_operands): Handle CONST_DECL like other decls.
1999 2019-03-01 Jakub Jelinek <jakub@redhat.com>
2002 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
2003 on DECL_P and EXPR_P.
2005 2019-03-01 Richard Biener <rguenther@suse.de>
2008 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
2009 argument, defaulted to zero.
2010 * passes.c (execute_function_todo): Pass down SSA update flags
2011 to cleanup_tree_cfg.
2012 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
2013 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
2015 (cleanup_tree_cfg): Get and pass down SSA update flags.
2017 2019-03-01 Jakub Jelinek <jakub@redhat.com>
2020 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
2021 early_lto_debug argument.
2023 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
2025 PR tree-optimization/89536
2026 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
2027 only whether bit #0 of the value is 0 instead of the entire value.
2029 2019-02-28 Marek Polacek <polacek@redhat.com>
2031 PR c++/87068 - missing diagnostic with fallthrough statement.
2032 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
2033 at the end of a seq, save its location to walk_stmt_info.
2034 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
2037 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
2040 * tree.c (find_atomic_core_type): Move ahead in file.
2041 (check_base_type): Correctly compare alignments of atomic types.
2043 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
2046 * config/i386/i386.c (get_builtin_code_for_version): Identify
2047 Westmere from PCLMUL, instead of AES.
2049 2019-02-28 Jakub Jelinek <jakub@redhat.com>
2052 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
2053 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
2056 2019-02-28 Tamar Christina <tamar.christina@arm.com>
2059 * config/aarch64/aarch64-option-extensions.def: Document it.
2060 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
2063 2019-02-28 Jakub Jelinek <jakub@redhat.com>
2066 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
2067 builtins if they don't have a single scalar floating point argument.
2070 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
2072 PR rtl-optimization/89490
2073 * varasm.c (get_block_for_section): Bail out for mergeable sections.
2074 (default_use_anchors_for_symbol_p, output_object_block): Assert the
2075 block section is not mergeable.
2077 2019-02-27 Jakub Jelinek <jakub@redhat.com>
2080 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
2081 old define_insn to ...
2082 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
2083 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
2084 Rename old define_insn to ...
2085 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
2086 (thumb2_casesi_internal_pic): New define_expand. Rename old
2088 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
2089 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
2090 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
2092 2019-02-27 Richard Biener <rguenther@suse.de>
2095 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
2097 2019-02-27 Richard Biener <rguenther@suse.de>
2099 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
2102 2019-02-27 Richard Biener <rguenther@suse.de>
2105 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
2106 parameter, prefix section name with .gnu.debuglto_ if true.
2107 (dwarf2out_finish): Pass false to output_comdat_type_unit.
2108 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
2110 2019-02-27 Richard Biener <rguenther@suse.de>
2113 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
2114 rather than on use_debug_types, doing what output_die does.
2115 (value_format): Likewise.
2117 2019-02-27 Martin Jambor <mjambor@suse.cz>
2118 Martin Sebor <msebor@redhat.com>
2120 * doc/invoke.texi (Warning Options): Reword description of
2121 -Wno-absolute-value.
2123 2019-02-27 Jakub Jelinek <jakub@redhat.com>
2125 PR tree-optimization/89280
2126 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
2127 builtin_setjmp_setup_bb): New functions.
2128 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
2129 When visiting __builtin_setjmp_setup block, queue in special
2130 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
2131 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
2132 from visited after the loop if they don't have any visited successor
2135 2018-02-26 Steve Ellcey <sellcey@marvell.com>
2137 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
2139 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
2141 2019-02-26 Jakub Jelinek <jakub@redhat.com>
2144 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
2145 with types other than sizetype/ssizetype.
2147 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
2149 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
2150 (enum sparc_processor_type): ...this.
2151 (enum sparc_code_model_type): New enumeration type.
2152 (enum sparc_memory_model_type): Tweak comments.
2153 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
2155 (mcmodel): Use sparc_code_model enumeration and variable.
2156 (sparc_code_model): New enumeration.
2157 (mdebug): Add Undocumented marker.
2158 * config/sparc/sparc.h (enum cmodel): Delete.
2159 (sparc_cmodel): Likewise.
2160 (TARGET_CM_MEDLOW): Adjust to above renaming.
2161 (TARGET_CM_MEDMID): Likewise.
2162 (TARGET_CM_MEDANY): Likewise.
2163 (TARGET_CM_EMBMEDANY): Likewise.
2164 * config/sparc/sparc.c (sparc_cmodel): Delete.
2165 (sparc_option_override): Remove string/value mapping support for the
2166 code model. Move code and memory model support to after the handling
2167 of target flags. Do private machine setup last.
2168 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
2169 (sparc_legitimize_reload_address): Likewise.
2170 (sparc_output_mi_thunk): Likewise.
2171 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
2173 2019-02-26 Jakub Jelinek <jakub@redhat.com>
2175 PR tree-optimization/89500
2176 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
2177 (handle_builtin_strlen): Remove noncst_bound variable. Always
2178 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
2179 cst if the first cst bytes starting at x are known to be non-zero,
2180 even if the string is not zero terminated. Don't try to modify
2181 *si for strnlen. Update strlen_to_stridx only for strlen or if
2182 we can prove strnlen returns the same value as strlen would.
2184 2019-02-26 Martin Liska <mliska@suse.cz>
2186 * alloc-pool.h (struct pool_usage): Remove extra
2188 * bitmap.h (struct bitmap_usage): Likewise.
2189 * ggc-common.c (struct ggc_usage): Likewise.
2190 * mem-stats.h (struct mem_usage): Likewise.
2191 (mem_alloc_description::dump): Print dash lines
2192 here and repeat header at the end of a table report.
2193 It's then more readable.
2194 * tree-phinodes.c (phinodes_print_statistics): Make
2195 horizontal alignment.
2196 * tree-ssanames.c (ssanames_print_statistics): Likewise.
2197 * vec.c (struct vec_usage): Remove extra print_dash_line.
2198 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
2200 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
2202 * doc/extend.texi (__builtin_object_size):
2203 Use @pxref instead of @xref inside parenthesis.
2204 (__builtin_has_attribute): Add missing comma after @xref.
2205 (__builtin_object_size): Ditto.
2206 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
2207 * fortran/invoke.texi (-ffpe-trap): Use @var for every item
2210 2019-02-26 Jeff Law <law@redhat.com>
2212 PR rtl-optimization/87761
2213 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
2214 detect obviously dead insns and delete them.
2216 2019-02-26 Richard Biener <rguenther@suse.de>
2218 PR tree-optimization/89505
2219 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
2220 to handle restrict pointed-to vars with multiple subvars
2223 2019-02-26 Richard Biener <rguenther@suse.de>
2225 PR tree-optimization/89489
2226 * tree-parloops.c (create_loop_fn): Copy over last_clique.
2228 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
2230 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
2231 and move around comment.
2232 <BIT_AND_EXPR>: Likewise.
2233 <BIT_NOT_EXPR>: Add specific handling for boolean types.
2235 2019-02-26 Jakub Jelinek <jakub@redhat.com>
2238 * config/i386/i386.c (remove_partial_avx_dependency): Call
2239 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
2240 after changing possibly many instructions to use that pseudo. Fix up
2241 insertion of v4sf_const0 setter at the start of bb.
2243 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
2246 * doc/extend.texi (Variadic Pointer Args): New section.
2248 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
2249 Martin Sebor <msebor@gmail.com>
2251 * common.opt (Wattribute-alias): Likewise.
2252 * doc/invoke.texi (Option Summary): List general form of
2253 -Wattribute-alias=. List positive form of -Wmissing-attributes.
2254 (-Wmissing-attributes): Invert entry, rewrite and correct default.
2255 Add cross-references.
2256 (-Wattribute-alias): Rewrite and correct default. Mention
2257 considered attributes (same as for -Wmissing-attributes).
2259 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
2261 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
2262 (_mm_cvtpd_ps): Likewise.
2263 (_mm_cvttpd_epi32): Likewise.
2266 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
2267 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
2270 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
2272 2019-02-25 Tamar Christina <tamar.christina@arm.com>
2275 * common/config/aarch64/aarch64-common.c
2276 (struct aarch64_option_extension): Add is_synthetic.
2277 (all_extensions): Use it.
2278 (TARGET_OPTION_INIT_STRUCT): Define hook.
2279 (struct gcc_targetm_common): Moved to end.
2280 (all_extensions_by_on): New.
2281 (opt_ext_cmp, typedef opt_ext): New.
2282 (aarch64_option_init_struct): New.
2283 (aarch64_contains_opt): New.
2284 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
2285 * config/aarch64/aarch64-option-extensions.def
2286 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
2287 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
2288 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
2289 Set is_synthetic to false.
2290 (crypto): Set is_synthetic to true.
2291 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
2294 2019-02-25 Tamar Christina <tamar.christina@arm.com>
2296 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
2297 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
2298 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
2299 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
2300 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
2301 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
2302 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
2303 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
2305 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
2306 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
2307 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
2308 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
2309 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
2310 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
2311 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
2312 vfmlsl_laneq_high_f16): ... To this.
2313 * config/arm/neon.md: Update comments.
2315 2019-02-25 Tamar Christina <tamar.christina@arm.com>
2317 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
2318 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
2319 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
2320 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
2321 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
2322 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
2323 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
2324 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
2326 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
2327 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
2328 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
2329 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
2330 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
2331 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
2332 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
2333 vfmlslq_laneq_high_f16): ... To this.
2335 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
2337 PR rtl-optimization/86096
2338 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
2339 comparing mw_order values.
2341 2019-02-25 Jakub Jelinek <jakub@redhat.com>
2344 * config/arm/arm.md (*subsi3_carryin_const): Use
2345 arm_neg_immediate_operand predicate instead of
2346 arm_not_immediate_operand, "L" constraint instead of "K" and
2347 print it using %n2 instead of %B2.
2348 (*subsi3_carryin_const0): New define_insn.
2349 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
2350 instead of arm_not_operand and "I" constraint instead of "K" and
2351 print it using %n3 instead of %B2. Instead of using match_dup 2 add
2352 another match_operand and in the condition check that it is negation
2354 (*subsi3_carryin_compare_const0): New define_ins.
2355 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
2356 *subsi3_carryin_const.
2357 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
2358 split into *subsi3_carryin_compare_const0 if the highpart is zero.
2361 * config/arm.vfp.md (*negdf2_vfp): Use
2362 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
2363 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
2365 2019-02-24 Jakub Jelinek <jakub@redhat.com>
2367 PR rtl-optimization/89445
2368 * simplify-rtx.c (simplify_ternary_operation): Don't use
2369 simplify_merge_mask on operands that may trap.
2370 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
2371 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
2372 second operand is CONST_VECTOR, check if any element could be zero.
2373 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
2374 their operands can trap.
2376 2019-02-23 Martin Sebor <msebor@redhat.com>
2378 * gimple-ssa-sprintf.c (target_strtol): Rename...
2379 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
2380 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
2381 check for range error.
2383 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
2386 * opts-common.c (prune_options): Also prune joined switches
2387 with Negative and RejectNegative.
2388 * config/i386/i386.opt (march=): Add Negative(march=).
2389 (mtune=): Add Negative(mtune=).
2390 * doc/options.texi: Document Negative used together with Joined
2393 2019-02-22 Martin Sebor <msebor@redhat.com>
2395 * doc/extend.texi (Other Builtins): Add
2396 __builtin_is_constant_evaluated.
2398 2019-02-22 Richard Biener <rguenther@suse.de>
2400 PR tree-optimization/87609
2401 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
2403 2019-02-22 Jeff Law <law@redhat.com>
2405 PR rtl-optimization/87761
2406 * config/mips/mips.md: Add new combiner pattern to recognize
2407 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
2409 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
2412 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
2413 destination register in peepholes generating patterns for ADDS/SUBS.
2414 (add<mode>3_compare0,
2415 *addsi3_compare0_uxtw, add<mode>3_compareC,
2416 add<mode>3_compareV_imm, add<mode>3_compareV,
2417 *adds_<optab><ALLX:mode>_<GPI:mode>,
2418 *subs_<optab><ALLX:mode>_<GPI:mode>,
2419 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
2420 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
2421 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
2422 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
2423 sub<mode>3_compare1): Allow stack pointer for source register.
2424 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
2426 2019-02-22 Martin Sebor <msebor@redhat.com>
2428 PR tree-optimization/88993
2429 PR tree-optimization/88853
2430 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
2432 (sprintf_dom_walker::call_info::is_string_func): New helper.
2433 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
2434 for formatted string functions.
2435 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
2437 2019-02-22 Martin Sebor <msebor@redhat.com>
2440 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
2441 unreachable subexpressions.
2443 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
2444 Hongtao Liu <hongtao.liu@intel.com>
2445 Sunil K Pandey <sunil.k.pandey@intel.com>
2448 * config/i386/i386-passes.def: Add
2449 pass_remove_partial_avx_dependency.
2450 * config/i386/i386-protos.h
2451 (make_pass_remove_partial_avx_dependency): New.
2452 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
2454 (pass_data_remove_partial_avx_dependency): New.
2455 (pass_remove_partial_avx_dependency): Likewise.
2456 (make_pass_remove_partial_avx_dependency): Likewise.
2457 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
2458 (*extendsfdf2): Add avx_partial_xmm_update.
2459 (truncdfsf2): Likewise.
2460 (*float<SWI48:mode><MODEF:mode>2): Likewise.
2461 (SF/DF conversion splitters): Disabled for TARGET_AVX.
2463 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
2466 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
2469 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
2472 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
2473 (PTA_SKYLAKE): Add PTA_AES.
2474 (PTA_GOLDMONT): Likewise.
2476 2019-02-22 Sudakshina Das <sudi.das@arm.com>
2478 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
2479 instruction if enabled.
2480 (aarch64_override_options): Remove reference to return address key.
2482 2019-02-22 Richard Biener <rguenther@suse.de>
2484 PR tree-optimization/89440
2485 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
2486 not necessary assert.
2488 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
2491 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
2492 (oacc_replace_fn_attrib_attr): ... this new function.
2493 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
2494 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
2496 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2498 * config/arm/arm-cpus.in (ares): Rename to...
2499 (neoverse-n1): ... This. Add ares as alias.
2500 * config/arm/arm-tables.opt: Regenerate.
2501 * config/arm/arm-tune.md: Likewise.
2502 * doc/invoke.txt (ARM Options): Document neoverse-n1.
2504 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2506 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
2507 * config/aarch64/aarch64-tune.md: Regenerate.
2508 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
2510 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2512 * config/aarch64/aarch64.c (ares_tunings): Rename to...
2513 (neoversen1_tunings): ... This.
2514 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
2515 (neoverse-n1): New CPU.
2516 * config/aarch64/aarch64-tune.md: Regenerate.
2517 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
2519 2019-02-22 Richard Biener <rguenther@suse.de>
2522 * cfghooks.h (dependence_hash): New typedef.
2523 (struct copy_bb_data): New type.
2524 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
2525 (duplicate_block): Likewise.
2526 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
2527 (copy_bbs): Create and pass down copy_bb_data.
2528 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
2529 (rtl_duplicate_bb): Likewise.
2530 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
2531 remap dependence info.
2533 2019-02-22 Richard Biener <rguenther@suse.de>
2535 PR tree-optimization/87609
2536 * tree-core.h (tree_base): Document special clique values.
2537 * tree-inline.c (remap_dependence_clique): Do not use the
2538 special clique value of one.
2539 (maybe_set_dependence_info): Use clique one.
2540 (clear_dependence_clique): New callback.
2541 (compute_dependence_clique): Clear clique one from all refs
2542 before assigning it (again).
2544 2019-02-21 Martin Sebor <msebor@redhat.com>
2546 * doc/extend.texi (__clear_cache): Correct signature.
2548 2019-02-21 Ian Lance Taylor <iant@golang.org>
2551 * varasm.c (decode_addr_const): Call lookup_constant_def rather
2552 than output_constant_def.
2553 (add_constant_to_table): New static function.
2554 (output_constant_def): Call add_constant_to_table.
2555 (tree_output_constant_def): Likewise.
2557 2019-02-21 Jakub Jelinek <jakub@redhat.com>
2560 * builtins.c (fold_builtin_arith_overflow): If first two args are
2561 INTEGER_CSTs, set intres and ovfres to constants rather than calls
2564 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
2567 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
2568 error for -mindirect-branch/-mfunction-return with incompatible
2571 2019-02-21 Jakub Jelinek <jakub@redhat.com>
2574 * constraints.md (q): Remove.
2575 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
2578 2019-02-21 Martin Jambor <mjambor@suse.cz>
2581 * omp-general.c (omp_extract_for_data): Removed a duplicate call
2582 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
2583 (omp_adjust_for_condition): ...here. Added necessary parameters.
2584 * omp-general.h (omp_adjust_for_condition): Updated declaration.
2585 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
2586 proper values to new parameters of omp_adjust_for_condition.
2588 2019-02-20 Jakub Jelinek <jakub@redhat.com>
2591 * expr.c (expand_assignment): If result is a MEM, use change_address
2592 instead of simplify_gen_subreg.
2594 2019-02-20 Jakub Jelinek <jakub@redhat.com>
2595 David Malcolm <dmalcolm@redhat.com>
2598 * fold-const.c (decode_field_reference): Return NULL_TREE if
2599 lang_hooks.types.type_for_size returns NULL. Check it before
2600 overwriting *exp_. Use return NULL_TREE instead of return 0.
2602 2019-02-20 Jakub Jelinek <jakub@redhat.com>
2606 * toplev.c (do_compile): Double the emin/emax exponents to workaround
2609 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
2612 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
2613 TARGET_SSE in addition to TARGET_SSE_MATH.
2615 (ix86_excess_precision): Ditto.
2616 (ix86_float_exceptions_rounding_supported_p): Ditto.
2617 (use_rsqrt_p): Ditto.
2618 * config/i386/sse.md (rsqrt<mode>2): Ditto.
2620 2019-02-20 David Malcolm <dmalcolm@redhat.com>
2623 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
2624 linenum_arith_t when determining if two adjacent line spans are
2625 close enough to merge.
2626 (diagnostic_show_locus): Use linenum_arith_t when iterating over
2627 lines within each line_span.
2629 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
2632 * lra-constraints.c(uses_hard_regs_p): Fix handling of
2633 paradoxical SUBREGS.
2635 2019-02-20 Li Jia He <helijia@linux.ibm.com>
2638 * gcc/config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
2639 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
2640 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
2643 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
2645 * config/gcn/gcn.c (print_operand): Fix typo.
2647 2019-02-19 Richard Biener <rguenther@suse.de>
2650 * toplev.c (do_compile): Initialize mpfr's exponent range
2651 based on available float modes.
2653 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
2655 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
2656 as long as the epilogue isn't completed.
2658 2019-02-18 Martin Sebor <msebor@redhat.com>
2660 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
2661 __has_cpp_attribute, and __has_include.
2663 2019-02-18 Martin Sebor <msebor@redhat.com>
2665 * doc/invoke.texi (-Wreturn-type): Correct and expand.
2667 2019-02-18 Martin Sebor <msebor@redhat.com>
2670 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
2672 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
2674 2019-02-18 Richard Biener <rguenther@suse.de>
2676 PR tree-optimization/89296
2677 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
2678 of no-warning flag to cases that might emit the bogus warning.
2680 2019-02-18 Jakub Jelinek <jakub@redhat.com>
2683 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
2685 * config/arm/vfp.md (*movdi_vfp): Likewise.
2686 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
2687 "q" constraint for operands[0].
2690 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
2691 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
2692 pattern in a temporary buffer.
2693 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
2694 than 64-operands[2].
2697 * config/s390/s390.c (s390_indirect_branch_attrvalue,
2698 s390_indirect_branch_settings): Define unconditionally.
2699 (s390_set_current_function): Likewise, but guard the whole body except
2700 the s390_indirect_branch_settings call with
2701 #if S390_USE_TARGET_ATTRIBUTE.
2702 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
2704 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
2705 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
2706 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
2707 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
2708 HOST_WIDE_INT_1U instead of 1ULL.
2709 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
2710 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
2711 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
2712 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
2714 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
2717 2019-02-18 Martin Jambor <mjambor@suse.cz>
2719 PR tree-optimization/89209
2720 * tree-sra.c (create_access_replacement): New optional parameter
2721 reg_tree. Use it as a type if non-NULL and access type is not of
2723 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
2724 to create_access_replacement.
2725 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
2726 Check lacc is non-NULL before attempting to re-create it on the RHS.
2728 2019-02-18 Martin Liska <mliska@suse.cz>
2731 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
2733 (symbol_table::free_edge): Recycle m_summary_id.
2734 * cgraph.h (get_summary_id): New.
2735 (symbol_table::release_symbol): Set m_summary_id to -1
2737 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
2738 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
2739 function_summary to fast_function_summary.
2740 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
2741 * ipa-pure-const.c (class funct_state_summary_t):
2742 Switch from function_summary to fast_function_summary.
2743 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
2744 (class ipa_ref_opt_summary_t): Switch from function_summary
2745 to fast_function_summary.
2746 * symbol-summary.h (class function_summary_base): New class
2747 that is created from base of former function_summary.
2748 (function_summary_base::unregister_hooks): New.
2749 (class function_summary): Inherit from function_summary_base.
2750 (class call_summary_base): New class
2751 that is created from base of former call_summary.
2752 (class call_summary): Inherit from call_summary_base.
2753 (struct is_same): New.
2754 (class fast_function_summary): New summary class.
2755 (class fast_call_summary): New summary class.
2756 * vec.h (vec_safe_grow_cleared): New function.
2758 2019-02-18 Martin Liska <mliska@suse.cz>
2760 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
2761 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
2762 * doc/tm.texi: Document new target hook.
2763 * doc/tm.texi.in: Likewise.
2764 * target.def: Add new target macro.
2765 * gcc.c (find_fortran_preinclude_file): Do not search multilib
2768 2019-02-17 Alan Modra <amodra@gmail.com>
2771 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
2772 output reg on add insn.
2773 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
2775 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
2778 * config/i386/sse.md (ssedoublemode): Remove V4HI.
2779 (PMULHRSW): Likewise.
2780 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
2782 (ssse3_pmulhrswv4hi3): New expander.
2784 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
2786 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
2787 MMX. Add isa attribute.
2789 2019-02-16 Jakub Jelinek <jakub@redhat.com>
2791 PR rtl-optimization/66152
2792 * builtins.h (c_readstr): Declare.
2793 * builtins.c (c_readstr): Remove forward declaration. Add
2794 null_terminated_p argument, if false, read all bytes from the
2795 string instead of stopping after '\0'.
2796 * expr.c (string_cst_read_str): New function.
2797 (store_expr): Use string_cst_read_str instead of
2798 builtin_strncpy_read_str. Try to store by pieces the whole
2799 exp_len first, and only if that fails, split it up into
2800 store by pieces followed by clear_storage. Formatting fix.
2802 * config/i386/i386.md (*movqi_internal): Remove static from
2803 buf variable. Use output_asm_insn (buf, operands); return "";
2804 instead of return buf;.
2805 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
2806 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
2807 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
2809 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
2811 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
2812 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
2813 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
2814 (CC1_SPEC): Likewise.
2815 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
2817 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
2819 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
2820 the base address on 64-bit strict-alignment platforms.
2822 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
2824 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
2826 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
2828 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
2830 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
2832 PR rtl-optimization/88308
2833 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
2834 on copied instruction.
2836 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
2838 * final.c (insn_current_reference_address): Replace test on JUMP_P
2839 with test on jump_to_label_p.
2840 * config/visium/visium-passes.def: New file.
2841 * config/visium/t-visium (PASSES_EXTRA): Define.
2842 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
2843 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
2844 (TRAMPOLINE_ALIGNMENT): Define.
2845 * config/visium/visium.c (visium_option_override): Do not register
2846 the machine-specific reorg pass here.
2847 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
2849 (output_branch): Adjust threshold for long branch instruction.
2850 * config/visium/visium.md (cpu): Move around.
2851 (length): Adjust for the GR6.
2853 2019-02-15 Richard Biener <rguenther@suse.de>
2854 Jakub Jelinek <jakub@redhat.com>
2856 PR tree-optimization/89278
2857 * tree-loop-distribution.c: Include tree-eh.h.
2858 (generate_memset_builtin, generate_memcpy_builtin): Call
2859 rewrite_to_non_trapping_overflow on builtin->size before passing it
2860 to force_gimple_operand_gsi.
2862 2019-02-15 Jakub Jelinek <jakub@redhat.com>
2865 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
2867 * opth-gen.awk: Likewise.
2869 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
2871 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
2872 Enable MMX, SSE and SSE2 by default.
2873 * config/i386/i386.c (ix86_option_override_internal): Do not
2874 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
2876 2019-02-14 Jakub Jelinek <jakub@redhat.com>
2878 PR rtl-optimization/89354
2879 * combine.c (make_extraction): Punt if extraction_mode is narrower
2882 2019-02-14 Maya Rashish <coypu@sdf.org>
2884 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
2885 * config/netbsd-d.c: New file.
2886 * config/t-netbsd: Add netbsd-d.o
2888 2018-02-14 Steve Ellcey <sellcey@marvell.com>
2890 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
2891 affects_type_identity to true for aarch64_vector_pcs.
2892 (aarch64_comp_type_attributes): New function.
2893 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
2895 2019-02-14 Tamar Christina <tamar.christina@arm.com>
2898 * config/arm/iterators.md (ANY64): Add V4HF.
2900 2019-02-14 Martin Liska <mliska@suse.cz>
2902 PR rtl-optimization/89242
2903 * dce.c (delete_unmarked_insns): Call free_dominance_info we
2904 process a transformation.
2906 2019-02-14 Jakub Jelinek <jakub@redhat.com>
2908 PR tree-optimization/89314
2909 * fold-const.c (fold_binary_loc): Cast strlen argument to
2910 const char * before dereferencing it. Formatting fixes.
2913 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
2915 2019-02-13 Ian Lance Taylor <iant@golang.org>
2917 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
2918 and set current index for other optimizations.
2920 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
2922 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
2923 nonimmediate_operand as operand 2 predicate.
2924 (vec_set<VF2_512_256:mode>_0): Ditto.
2925 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
2926 (*vec_concatv2si): Remove alternative 2.
2927 (*vec_concatv4si_0): Use vm constraint for alternative 0.
2928 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
2929 (vec_concatv2di): Split alternatives 4,5,6 to ...
2930 (*vec_concatv2di_0) ... new pattern.
2932 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
2935 * config/arm/arm.c (ldm_stm_operation_p) Set
2936 addr_reg_in_reglist correctly for first register.
2937 (load_multiple_sequence): Remove dead base check.
2938 (gen_ldm_seq): Correctly set write_back for Thumb-1.
2940 2019-02-13 Tamar Christina <tamar.christina@arm.com>
2943 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
2944 Expose as @aarch64_pred_mov.
2945 * config/aarch64/aarch64.c (aarch64_classify_address):
2946 Use expand_insn which legitimizes operands.
2948 2019-02-13 Martin Liska <mliska@suse.cz>
2950 * builtins.h (expand_builtin_with_bounds): Remove declaration.
2951 * calls.c (struct arg_data): Remove special_slot, pointer_arg
2952 and pointer_offset fields.
2953 (initialize_argument_information): Remove usage of dead
2955 * cgraph.h (struct cgraph_thunk_info): Remove
2956 add_pointer_bounds_args.
2957 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
2959 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
2961 * config/i386/i386.c (ix86_function_arg_advance): Remove
2963 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
2964 (def_builtin): Remove usage of dead
2966 (ix86_add_new_builtins): Likewise.
2967 * ipa-fnsummary.c (compute_fn_summary): Likewise.
2968 * ipa-icf.c (sem_function::equals_wpa): Likewise.
2969 (sem_function::init): Likewise.
2970 (sem_variable::merge): Likewise.
2971 * ipa-visibility.c (function_and_variable_visibility): Likewise.
2972 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
2973 * lto-cgraph.c (lto_output_node): Likewise.
2974 (lto_output_varpool_node): Likewise.
2975 (input_node): Likewise.
2976 (input_varpool_node): Likewise.
2977 * lto-streamer-out.c (lto_output): Likewise.
2978 * tree-inline.c (expand_call_inline): Remove usage of
2980 * tree-inline.h (struct copy_body_data): Likewise.
2981 * varpool.c (varpool_node::dump): Likewise.
2983 2019-02-13 Jakub Jelinek <jakub@redhat.com>
2986 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
2987 into pt->vars_contains_escaped_heap instead of setting
2988 pt->vars_contains_escaped_heap to it.
2991 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
2992 INTVAL (size), compare it to GET_MODE_MASK instead of
2993 1 << GET_MODE_BITSIZE.
2996 * config/i386/predicates.md (x86_64_immediate_operand): Allow
2997 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
3000 2019-02-13 Martin Liska <mliska@suse.cz>
3003 * cfgrtl.c (remove_barriers_from_footer): New function.
3004 (try_redirect_by_replacing_jump): Use it.
3005 (cfg_layout_redirect_edge_and_branch): Likewise.
3007 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
3009 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
3010 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
3011 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
3012 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
3013 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
3014 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
3016 * config/rs6000/rs6000.c (builtin_function_type)
3017 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
3018 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
3019 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
3020 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
3021 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
3023 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
3025 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
3026 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
3028 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
3031 * config/i386/i386.md (*movoi_internal_avx): Revert revision
3032 268678 and revision 268657.
3033 (*movti_internal): Likewise.
3035 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
3038 * config/s390/s390.c (s390_decompose_address): Update comment.
3039 (s390_check_qrst_address): Reject invalid address forms after
3042 2019-02-12 Martin Liska <mliska@suse.cz>
3045 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
3046 we need default values of funct_state for a function that
3049 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
3051 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
3052 the object to pick the size of stores on strict-alignment platforms.
3054 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
3055 (*movdi_insn_sp32): Likewise.
3056 (*movdi_insn_sp64): Likewise.
3058 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
3061 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
3062 types that needs constructiong.
3063 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
3065 2019-02-12 Richard Biener <rguenther@suse.de>
3067 PR tree-optimization/89253
3068 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
3071 2019-02-11 David Malcolm <dmalcolm@redhat.com>
3074 * input.c (selftest::test_line_offset_overflow): New selftest.
3075 (selftest::input_c_tests): Call it.
3077 2019-02-11 Martin Sebor <msebor@redhat.com>
3079 PR tree-optimization/88771
3080 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
3081 when -Wstringop-overflow is set.
3082 (builtin_memref::builtin_memref): Adjust excessive upper bound
3083 only when lower bound is not excessive.
3084 (maybe_diag_overlap): Detect and diagnose excessive bounds via
3085 -Wstringop-ovefflow.
3086 (maybe_diag_offset_bounds): Rename...
3087 (maybe_diag_access_bounds): ...to this.
3088 (check_bounds_or_overlap): Adjust for name change above.
3090 2019-02-11 Martin Sebor <msebor@redhat.com>
3093 * builtins.c (max_object_size): Move from here...
3094 * builtins.h (max_object_size): ...and here...
3095 * tree.c (max_object_size): ...to here...
3096 * tree.h (max_object_size): ...and here.
3098 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
3100 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
3101 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
3102 for correct semantics.
3104 2019-02-11 Alan Modra <amodra@gmail.com>
3106 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
3107 -mlongcall and -mpltseq.
3108 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
3109 (RS/6000 and PowerPC Options <-mpltseq>): Document.
3110 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
3111 * config/rs6000/sysv4.opt (mpltseq): New option.
3112 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
3113 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
3114 support is lacking. Don't allow -mpltseq with -mbss-plt.
3115 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
3116 -mpltseq given for ELFv1.
3117 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
3118 Only use UNSPEC_PLTSEQ for inline PLT calls.
3119 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
3120 use UNSPEC_PLTSEQ for inline PLT calls.
3121 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
3122 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
3123 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
3124 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
3125 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
3126 (pltseq_mtctr_<mode>): Likewise.
3128 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3130 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
3132 * configure: Regenerate.
3134 2019-02-11 Jakub Jelinek <jakub@redhat.com>
3137 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
3140 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
3142 * function.c (assign_parm_setup_block): Use the stored
3143 size, not the passed size, when allocating stack-space,
3144 also for a parameter with alignment larger than
3145 MAX_SUPPORTED_STACK_ALIGNMENT.
3147 2019-02-11 Martin Liska <mliska@suse.cz>
3150 * ipa-cp.c (build_toporder_info): Remove usage of a param.
3151 * ipa-inline.c (inline_small_functions): Likewise.
3152 * ipa-pure-const.c (propagate_pure_const): Likewise.
3153 (propagate_nothrow): Likewise.
3154 * ipa-reference.c (propagate): Likewise.
3155 * ipa-utils.c (struct searchc_env): Remove unused field.
3156 (searchc): Always search across AVAIL_INTERPOSABLE.
3157 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
3158 the only called IPA pure const can properly not propagate
3159 across interposable boundary.
3160 * ipa-utils.h (ipa_reduced_postorder): Remove param.
3162 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
3164 * config/nds32/nds32.md (call_internal, call_value_internal,
3165 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
3167 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
3169 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
3172 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
3174 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
3177 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
3179 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
3181 2019-02-10 Jakub Jelinek <jakub@redhat.com>
3183 PR tree-optimization/89268
3184 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
3185 if preds is non-NULL.
3187 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
3190 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
3193 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
3195 * config/nds32/nds32.md (trap): New pattern.
3197 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
3199 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
3202 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
3204 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
3207 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
3209 * ipa-visibility.c (localize_node): Also do not localize
3210 LDPR_PREVAILING_DEF_IRONLY_EXP.
3212 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
3215 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
3216 instead of type_with_linkage.
3218 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
3221 * params.def (uninlined-function-insns, uninlined-function-time,
3222 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
3223 bound so we don't get overflows.
3225 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
3227 * config/rs6000/rs6000-string.c (expand_compare_loop,
3228 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
3231 2019-02-09 Jakub Jelinek <jakub@redhat.com>
3234 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
3235 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
3236 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
3238 2019-02-09 Alan Modra <amodra@gmail.com>
3241 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
3242 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
3245 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
3248 * lra-constraints.c (process_alt_operands): Don't increase reject
3249 for memory when offset memory is required.
3251 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
3253 * config/s390/vector.md: Implement vector copysign.
3255 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
3257 * expr.c (expand_constructor): Correct indentations.
3259 2019-02-08 Richard Biener <rguenther@suse.de>
3261 PR tree-optimization/89247
3262 * tree-if-conv.c: Include tree-cfgcleanup.h.
3263 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
3264 (tree_if_conversion): Pass through predicate vector.
3265 (pass_if_conversion::execute): Do CFG cleanup and SSA update
3266 inline, see if any if-converted loops we refrece in
3267 LOOP_VECTORIZED calls vanished and fixup.
3268 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
3270 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
3272 * config/s390/constraints.md (jdd): New constraint.
3274 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
3277 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
3278 upper 16 vector registers without TARGET_AVX512VL.
3279 (*movti_internal): Likewise.
3281 2019-02-08 Jakub Jelinek <jakub@redhat.com>
3283 PR rtl-optimization/89234
3284 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
3285 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
3286 (copy_reg_eh_region_note_backward): Likewise.
3288 2019-02-08 Richard Biener <rguenther@suse.de>
3291 * tree-data-ref.c (initialize_matrix_A): Fail if constant
3293 (analyze_subscript_affine_affine): Handle failure from
3294 initialize_matrix_A.
3296 2019-02-08 Jakub Jelinek <jakub@redhat.com>
3298 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
3301 2019-02-07 David Malcolm <dmalcolm@redhat.com>
3303 PR tree-optimization/86637
3304 PR tree-optimization/89235
3305 * tree-vect-loop.c (optimize_mask_stores): Add an
3306 auto_purge_vect_location sentinel to ensure that vect_location is
3309 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
3310 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
3311 to ensure that vect_location is purged on exit.
3312 (pass_slp_vectorize::execute): Likewise, replacing the manual
3314 * tree-vectorizer.h (class auto_purge_vect_location): New class.
3316 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3318 * config/aarch64/iterators.md (max_opp): New code_attr.
3319 (USMAX): New code iterator.
3320 * config/aarch64/predicates.md (aarch64_smin): New predicate.
3321 (aarch64_smax): Likewise.
3322 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
3323 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
3326 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
3329 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
3330 for TARGET_AVX512VL.
3331 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
3333 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
3335 * config/s390/s390-builtin-types.def: Add new types.
3336 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
3337 (s390_vec_xlw4): Make the memory operand into a const pointer.
3338 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
3340 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
3341 a new vector type with the alignment of the scalar memory operand.
3343 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
3344 Jakub Jelinek <jakub@redhat.com>
3347 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
3348 arm_count_ldrdstrd_insns): New declarations.
3349 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
3351 (valid_operands_ldrd_strd): New function.
3352 (arm_count_ldrdstrd_insns): New function.
3353 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
3354 sets instead of single DImode set and define new insns to match this.
3356 2019-02-07 Tamar Christina <tamar.christina@arm.com>
3358 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
3359 Make it a C initializer.
3361 2019-02-07 Tamar Christina <tamar.christina@arm.com>
3364 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
3366 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3368 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
3369 Use neon_dot<q> for type.
3370 (neon_<sup>dot_lane<vsi2qi>): Likewise.
3372 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3374 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
3375 Use neon_dot<q> for type.
3376 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
3377 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
3379 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
3381 PR rtl-optimization/89225
3382 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
3385 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
3387 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
3388 after restoring registers saved to allocate the frame on Windows.
3390 2019-02-06 Richard Biener <rguenther@suse.de>
3392 PR tree-optimization/89182
3393 * graphite.h (cached_scalar_evolution_in_region): Declare.
3394 * graphite.c (struct seir_cache_key): New.
3395 (struct sese_scev_hash): Likewise.
3396 (seir_cache): New global.
3397 (cached_scalar_evolution_in_region): New function.
3398 (graphite_transform_loops): Allocate and release seir_cache.
3399 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
3400 cached_scalar_evolution_in_region.
3401 * graphite-scop-detection.c (scop_detection::can_represent_loop):
3403 (scop_detection::graphite_can_represent_expr: Use
3404 cached_scalar_evolution_in_region.
3405 (scop_detection::stmt_simple_for_scop_p): Likewise.
3406 (find_params_in_bb): Likewise.
3407 (gather_bbs::before_dom_children): Likewise.
3408 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
3409 (add_loop_constraints): Likewise.
3411 2019-02-06 Jakub Jelinek <jakub@redhat.com>
3414 * fold-const-call.c (fold_const_vec_convert): Pass true as last
3415 operand to new_unary_operation only if both element types are integral
3416 and it isn't a widening conversion. Return NULL_TREE if
3417 new_unary_operation failed.
3419 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
3422 * config/s390/s390.md: Remove load and test FP splitter.
3424 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
3427 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
3428 expand_compare_loop, expand_block_compare_gpr,
3429 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
3430 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
3431 #include "profile-count.h" and "predict.h" for types and functions
3432 needed to work with REG_BR_PROB notes.
3434 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
3437 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
3438 for the long branch case.
3440 2019-02-05 Jakub Jelinek <jakub@redhat.com>
3443 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
3444 can throw, non-call exceptions are enabled and we can't delete
3445 dead exceptions or alter cfg. Set must_clean if
3446 delete_insn_and_edges returns true, don't set it blindly for calls.
3447 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
3449 PR rtl-optimization/89195
3450 * combine.c (make_extraction): For MEMs, don't extract bytes outside
3451 of the original MEM.
3453 2019-02-05 Martin Liska <mliska@suse.cz>
3455 PR gcov-profile/89000
3456 * gcov.c (function_summary): Remove argument.
3457 (file_summary): New function.
3458 (print_usage): Replace tabs with spaces.
3459 (generate_results): Use new function file_summary.
3461 2019-02-05 Jakub Jelinek <jakub@redhat.com>
3464 * optabs.c (prepare_cmp_insn): Pass x and y to
3465 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
3467 2019-02-05 Richard Biener <rguenther@suse.de>
3470 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
3471 (struct bitmap_element): Drop chain_prev so we properly recurse on
3472 the prev member, supporting tree views.
3473 (struct bitmap_head): GTY skip the obstack member.
3475 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
3478 * doc/extend.texi (Vector Extensions): Add an example of using vector
3479 types together with x86 intrinsics.
3481 2019-02-04 Alan Modra <amodra@gmail.com>
3483 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
3484 str[] size to 160, and comment.
3486 2019-02-04 Alan Modra <amodra@gmail.com>
3488 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
3489 (rs6000_pltseq_template): Guard output of TLS markers with
3491 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
3492 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
3493 to use inline PLT sequences.
3494 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
3495 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
3496 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
3498 2019-02-04 Martin Liska <mliska@suse.cz>
3501 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
3502 out when ipa_fn_summaries does not contain entry for callee.
3504 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
3506 * config/sparc/sparc.h: Remove superfluous blank lines.
3507 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
3508 (got_register_rtx): ...this.
3509 (sparc_got): Adjust to above renaming.
3510 (sparc_tls_got): Likewise.
3511 (sparc_delegitimize_address): Likewise.
3512 (sparc_output_mi_thunk): Likewise.
3513 (sparc_init_pic_reg): Likewise.
3514 (save_local_or_in_reg_p): Fix test on the GOT register.
3515 (USE_HIDDEN_LINKONCE): Move around.
3516 (get_pc_thunk_name): Likewise.
3517 (gen_load_pcrel_sym): Likewise.
3518 (load_got_register): Likewise.
3520 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
3522 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
3523 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
3525 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
3527 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
3530 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
3532 * config.gcc (with_nds32_lib, glibc):
3533 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
3534 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
3535 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
3537 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
3540 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
3541 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
3542 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
3543 (*rcpsf2_sse): Ditto.
3544 (*rsqrtsf2_sse): Ditto.
3545 (sse4_1_round<mode<2): Ditto.
3547 2019-02-03 Richard Biener <rguenther@suse.de>
3550 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
3553 2019-02-02 Jakub Jelinek <jakub@redhat.com>
3556 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
3557 Punt with warning on aggregate return or argument types. Ignore
3558 type/mode checking for uniform arguments.
3560 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
3562 * combine.c (try_combine): Do not print "Can't combine" messages unless
3563 printing failed combination attempts.
3565 2019-02-01 Martin Jambor <mjambor@suse.cz>
3568 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
3569 segment and global segment variables before making them static.
3571 2019-02-01 Martin Jambor <mjambor@suse.cz>
3573 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
3574 missed optimization dump with dump_enabled_p.
3576 2019-02-01 Richard Biener <rguenther@suse.de>
3579 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
3580 the instantiate cache.
3581 (instantiate_scev_binary): Elide second operand procesing
3582 if equal to the first.
3583 * tree-chrec.c (chrec_contains_symbols): Add visited set.
3584 (chrec_contains_undetermined): Likewise.
3585 (tree_contains_chrecs): Likewise.
3587 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
3589 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
3591 2019-02-01 Jakub Jelinek <jakub@redhat.com>
3593 PR tree-optimization/89143
3594 * wide-int-range.h (wide_int_range_absu): Declare.
3595 * wide-int-range.cc (wide_int_range_absu): New function.
3596 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
3598 PR tree-optimization/88107
3599 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
3600 instead of assertion that eh_region_outermost is non-NULL, if it
3601 is NULL, set *ALL to true and return NULL.
3602 (move_sese_region_to_fn): Adjust caller, if all is set, call
3603 duplicate_eh_regions with NULL region.
3605 2019-02-01 Richard Biener <rguenth@suse.de>
3607 PR rtl-optimization/88593
3608 * mode-switching.c (optimize_mode_switching): Free dominators before
3609 calling cleanup_cfg.
3611 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
3613 PR tree-optimization/88932
3614 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
3616 2019-01-31 Jakub Jelinek <jakub@redhat.com>
3619 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
3620 bogus clang warning.
3622 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
3625 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
3626 alternative to avoid partial SSE register stall for TARGET_AVX.
3627 (truncdfsf2): Ditto.
3628 (sse4_1_round<mode>2): Ditto.
3630 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
3632 PR tree-optimization/89008
3633 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
3634 process anything of the form X * 0.
3636 2019-01-31 Richard Biener <rguenther@suse.de>
3638 PR tree-optimization/89135
3639 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
3640 with abnormal preds.
3642 2019-01-31 Jakub Jelinek <jakub@redhat.com>
3645 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
3646 always_inline callees into no_sanitize_address callers.
3648 2019-01-31 Richard Biener <rguenther@suse.de>
3650 PR rtl-optimization/89115
3651 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
3653 2019-01-30 Martin Sebor <msebor@redhat.com>
3656 * doc/extend.texi (cast to a union): Correct and expand.
3658 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
3660 PR rtl-optimization/87246
3661 * lra-constraints.c (simplify_operand_subreg): Reload memory
3662 in subreg if the address became invalid.
3664 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
3667 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
3668 Disable for little-endian.
3670 2019-01-30 Richard Biener <rguenther@suse.de>
3672 PR rtl-optimization/89115
3673 * opts.c (default_options_optimization): Reduce
3674 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
3675 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
3678 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
3680 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
3681 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
3682 type of vector element when vec_extract is implemented by direct
3685 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
3687 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
3689 2019-01-30 Richard Biener <rguenther@suse.de>
3691 PR tree-optimization/89111
3692 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
3693 canonicalization to appropriately sized access types.
3695 2019-01-30 Jakub Jelinek <jakub@redhat.com>
3698 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
3699 for arguments to functions that are TU-local and shouldn't be
3700 referenced by assembly.
3702 2019-01-30 Ulrich Drepper <drepper@redhat.com>
3704 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
3707 2019-01-29 Martin Sebor <msebor@redhat.com>
3710 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
3712 2019-01-29 Jakub Jelinek <jakub@redhat.com>
3716 * omp-simd-clone.c (simd_clone_clauses_extract)
3717 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
3718 OMP_CLAUSE_ALIGNED_ALIGNMENT.
3720 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
3722 * config.gcc: Force .init_array for ARC.
3724 2019-01-29 Richard Biener <rguenther@suse.de>
3727 * dwarf2out.c (collect_skeleton_dies): New helper.
3728 (copy_decls_for_unworthy_types): Call it.
3729 (build_abbrev_table): Assert we do not try to replace
3730 DW_AT_signature refs with local refs.
3732 2019-01-28 Jakub Jelinek <jakub@redhat.com>
3735 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
3736 for lastprivate/linear IV, push gimplify context around gimplify_assign
3737 and, if it needed any temporaries, pop it into a gimple bind around the
3740 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
3742 * common.opt (-Wattribute-alias): Remove "no-" from name.
3743 Make -Wattribute-alias command line option and
3744 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
3746 2019-01-28 Jakub Jelinek <jakub@redhat.com>
3749 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
3750 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
3752 (bmi2): Add missing @opindex.
3753 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
3754 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
3755 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
3756 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
3757 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
3758 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
3759 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
3760 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
3761 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
3762 xsavec, xsaveopt and xsaves options.
3764 2019-01-28 Richard Biener <rguenther@suse.de>
3767 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
3770 2019-01-28 Richard Biener <rguenther@suse.de>
3772 PR tree-optimization/88739
3773 * tree-cfg.c (verify_types_in_gimple_reference): Verify
3774 BIT_FIELD_REFs only are applied to mode-precision operands
3775 when they are integral.
3776 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
3777 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
3778 BIT_FIELD_REFs of non-mode-precision integral operands.
3780 2019-01-27 Jakub Jelinek <jakub@redhat.com>
3783 * config/i386/sse.md
3784 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
3785 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
3786 first constants in pairs are multiples of 2. Formatting fixes.
3787 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
3788 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
3789 first constants in each quadruple are multiples of 4. Formatting fixes.
3791 2019-01-26 Martin Jambor <mjambor@suse.cz>
3794 * tree-inline.c: Include tree-cfgcleanup.h.
3795 (delete_unreachable_blocks_update_callgraph): Move...
3796 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
3797 ...here, make externally visible, make second argument bool, adjust
3799 * tree-cfgcleanup.c: Include cgraph.h.
3800 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
3802 * ipa-prop.c: Include tree-cfgcleanup.h.
3803 (ipcp_transform_function): Call
3804 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
3806 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
3808 PR rtl-optimization/88846
3809 * ira.c (process_set_for_memref_referenced_p): New.
3810 (memref_referenced_p): Add new param. Use
3811 process_set_for_memref_referenced_p. Add new switch cases.
3812 (memref_used_between_p): Pass new arg to memref_referenced_p.
3814 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
3817 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
3818 argument ABI_BREAK. Set to true if the calculated alignment has
3819 changed in gcc-9. Check bit-fields for their base type alignment.
3820 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
3821 (aarch64_function_arg_boundary): Likewise.
3822 (aarch64_gimplify_va_arg_expr): Likewise.
3824 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
3827 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
3828 instead of accessing TREE_INT_CST_ELT directly.
3830 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
3832 * doc/sourcebuild.texi (Environment attributes): Add fenv and
3833 fenv_exceptions description.
3835 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
3837 PR rtl-optimization/87763
3838 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
3839 Allow SUBREG when matching CC_NZmode compare.
3841 2019-01-25 Richard Biener <rguenther@suse.de>
3843 PR tree-optimization/89049
3844 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
3845 Look at the pattern stmt to determine if the stmt is vectorized.
3847 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
3849 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
3850 (pred_mov<mode>): Handle all-register forms using both a new
3851 alternative and a split.
3853 2019-01-25 Richard Biener <rguenther@suse.de>
3855 PR tree-optimization/86865
3856 * graphite-scop-detection.c (scop_detection::can_represent_loop):
3857 Reject non-do-while loops.
3859 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
3861 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
3862 * config/rs6000/constraints.md (Q constraint): Use REG_P.
3863 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
3864 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
3865 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
3866 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
3867 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
3868 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
3869 vlogical_operand, gpc_reg_operand, int_reg_operand,
3870 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
3871 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
3872 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
3873 (save_world_operation, restore_world_operation, lmw_operation,
3874 stmw_operation): Use MEM_P and REG_P.
3875 (tie_operand): Use MEM_P.
3876 (vrsave_operation, crsave_operation): Use REG_P.
3877 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
3878 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
3879 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
3880 (call_operand): Use HARD_REGISTER_P.
3881 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
3883 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
3884 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
3885 quad_aligned_load_p, replace_swapped_aligned_store,
3886 recombine_lvx_pattern, replace_swapped_aligned_load,
3887 recombine_stvx_pattern): Use MEM_P.
3888 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
3889 Use MEM_P and SYMBOL_REF_P.
3890 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
3891 (insn_is_swappable_p): Use REG_P and MEM_P.
3892 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
3893 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
3895 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
3897 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
3899 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
3900 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
3901 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
3902 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
3904 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
3905 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
3906 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
3907 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
3908 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
3909 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
3910 rs6000_split_logical_di): Use CONST_INT_P.
3911 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
3912 REG_P and SYMBOL_REF_P.
3913 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
3914 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
3915 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
3916 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
3917 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
3918 (small_data_operand, print_operand_address): Use CONST_INT_P and
3920 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
3921 (rs6000_init_hard_regno_mode_ok, direct_move_p):
3922 Use HARD_REGISTER_NUM_P.
3923 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
3924 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
3925 SUBREG_P and SYMBOL_REF_P.
3926 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
3927 and HARD_REGISTER_NUM_P.
3928 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
3930 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
3931 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
3933 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
3934 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
3935 find_addr_reg): Use REG_P.
3936 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
3937 (rs6000_emit_le_vsx_move): Use SUBREG_P.
3938 (offsettable_ok_by_alignment, constant_pool_expr_p,
3939 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
3940 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
3941 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
3942 rs6000_assemble_integer, create_TOC_reference,
3943 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
3944 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
3945 (rs6000_split_vec_extract_var): Use reg_or_subregno.
3946 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
3947 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
3948 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
3949 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
3950 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
3951 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
3952 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
3953 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
3954 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
3955 and cbranch<mode>4): Use CONST_INT_P.
3956 (multiple define_splits): Use REG_P and SUBREG_P.
3957 (define_expands call, call_value): Use MEM_P.
3958 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
3959 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
3960 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
3961 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
3962 and HARD_REGISTER_NUM_P.
3963 (multiple define_splits): Use HARD_REGISTER_NUM_P.
3965 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
3967 PR rtl-optimization/88948
3968 * rtl.h (prepare_copy_insn): New prototype.
3969 * gcse.c (prepare_copy_insn): New function, split out from
3970 process_insert_insn.
3971 (process_insert_insn): Use prepare_copy_insn.
3972 * store-motion.c (replace_store_insn): Use prepare_copy_insn
3973 instead of gen_move_insn.
3975 2019-01-24 Jakub Jelinek <jakub@redhat.com>
3978 * config/i386/i386.c (ix86_pic_register_p): Return true for
3981 PR tree-optimization/88964
3982 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
3983 punt if HONOR_SNANS (chrec).
3986 * tree-nested.c (convert_nonlocal_reference_stmt,
3987 convert_local_reference_stmt, convert_tramp_reference_stmt,
3988 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
3989 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
3992 PR tree-optimization/89027
3993 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
3994 for "omp simd array" variables.
3996 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
3999 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
4000 force the alignment of m_val.
4002 2019-01-24 Richard Biener <rguenther@suse.de>
4005 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
4006 When in "legacy" debug mode make sure to reset self-origins.
4008 2019-01-24 Martin Liska <mliska@suse.cz>
4010 PR gcov-profile/88994
4011 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
4012 result will be always smaller or equal to the original.
4013 * gcov.c (mangle_name): Fix else branch where we should
4014 also copy to PTR and shift the pointer.
4016 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
4018 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
4019 * vr-values.c (find_case_label_ranges): Fix a comment typo.
4021 2019-01-23 Bin Cheng <bin.cheng@arm.com>
4022 Steve Ellcey <sellcey@marvell.com>
4025 * recog.c (address_operand): Return false on wrong mode for address.
4026 (constrain_operands): Check for mode with 'p' constraint.
4028 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
4031 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
4032 Disparage MMX alternative.
4033 (sse2_cvtpd2pi): Ditto.
4034 (sse2_cvttpd2pi): Ditto.
4036 2019-01-23 David Malcolm <dmalcolm@redhat.com>
4039 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
4040 use-after-free of the result of
4041 aarch64_get_extension_string_for_isa_flags.
4043 2019-01-23 Jakub Jelinek <jakub@redhat.com>
4046 * doc/extend.texi: Document break and continue behavior in
4047 statement expressions.
4049 2019-01-23 Richard Biener <rguenther@suse.de>
4051 PR tree-optimization/89008
4052 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
4053 not leave another stray operand.
4055 2019-01-23 Jakub Jelinek <jakub@redhat.com>
4057 * BASE-VER: Bump to 9.0.1.
4059 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
4061 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
4062 thunk that returns by reference, use the type of the return object
4063 of the thunk instead of that of the alias to build the dereference.
4065 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
4067 * config/arc/atomic.md: Add operand to DMB instruction.
4069 2019-01-23 Jakub Jelinek <jakub@redhat.com>
4071 PR tree-optimization/88964
4072 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
4073 build_zero_cst instead of build_int_cst. Return false for loop
4074 invariants which honor signed zeros.
4076 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
4078 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
4080 2019-01-22 Jakub Jelinek <jakub@redhat.com>
4083 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
4084 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
4085 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
4088 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
4089 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
4092 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
4093 Disable for little endian.
4095 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
4098 * config/arm/arm.c (arm_needs_double_word_align): Check
4099 DECL_BIT_FIELD_TYPE.
4101 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
4102 H.J. Lu <hongjiu.lu@intel.com>
4105 * config/i386/i386-builtin.def: Add mask2 to all builtin
4106 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
4108 * config/i386/i386.c (BDESC): Add mask2 to the definition.
4109 (BDESC_FIRST): Likewise.
4110 (define_builtin): Add an argument for mask2. Updated to handle
4111 both ix86_isa_flags and ix86_isa_flags2.
4112 (define_builtin_const): Likewise.
4113 (define_builtin_pure): Likewise.
4114 (define_builtin2): Deleted.
4115 (define_builtin_const2): Likewise.
4116 (builtin_description): Add a member, mask2.
4117 (bdesc_*): Add mask2 to builtin initializations.
4118 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
4119 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
4121 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
4123 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
4126 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
4129 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
4132 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
4133 alignment is dominated by a bitfield with 64-bit aligned base type.
4134 (arm_function_arg): Emit a warning if the alignment has changed since
4135 earlier GCC releases.
4136 (arm_function_arg_boundary): Likewise.
4137 (arm_setup_incoming_varargs): Likewise.
4139 2019-01-22 Richard Biener <rguenther@suse.de>
4141 PR tree-optimization/88862
4142 * graphite-scop-detection.c
4143 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
4145 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
4147 * doc/extend.tex (AMD GCN Function Attributes): New section.
4148 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
4149 * doc/invoke.texi (AMD GCN Options): New section.
4150 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
4152 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
4154 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
4155 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
4157 2019-01-22 Jakub Jelinek <jakub@redhat.com>
4159 PR tree-optimization/88044
4160 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
4161 is false in the first iteration, but !every_iteration, return false
4162 instead of true with niter->niter zero.
4164 PR rtl-optimization/88904
4165 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
4166 any nonequal registers before processing BB_END (b).
4169 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
4171 (expand_binop_directly, expand_doubleword_clz,
4172 expand_doubleword_popcount, expand_ctz, expand_ffs,
4173 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
4175 PR rtl-optimization/49429
4177 PR rtl-optimization/86334
4179 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
4180 addressable from here...
4181 (emit_block_op_via_libcall): ... to here.
4183 2019-01-22 Richard Biener <rguenther@suse.de>
4185 * tree-vect-loop.c (vect_analyze_loop_operations): Use
4186 auto_vec for cost vector to fix memleak.
4187 (vectorize_fold_left_reduction): Properly gather SLP defs.
4188 (vectorizable_comparison): Do not swap operands to properly
4191 2019-01-22 Alan Modra <amodra@gmail.com>
4194 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
4195 stays a reg. Allow a const_int.
4196 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
4197 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
4198 (IS_NOMARK_TLSGETADDR): Define.
4199 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
4200 (rs6000_output_tlsargs): New function.
4201 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
4202 __tls_get_addr call takes an arg.
4203 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
4204 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
4206 (call_value_nonlocal_sysv): ..or here, delete split.
4207 (tls_gdld_nomark): Delete.
4208 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
4209 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
4210 (call_value_nonlocal_sysv): Likewise.
4211 (call_value_nonlocal_sysv_secure): Likewise.
4212 (call_value_nonlocal_aix): Likewise.
4213 (call_value_indirect_aix): Likewise.
4214 (call_value_indirect_elfv2): Likewise.
4215 (call_value_local32, call_value_local64): Disable for no-mark tls.
4216 (call_value_local_aix): Likewise.
4218 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
4221 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
4222 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
4224 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
4226 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
4227 string contents as hash_map keys.
4229 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
4232 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
4233 for rvalue context. Handle rvalues correctly. Use min_align_of_type
4234 instead of TYPE_ALIGN.
4235 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
4236 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
4237 pointer from TYPE_STUB_DECL.
4239 2019-01-21 Richard Biener <rguenther@suse.de>
4241 PR tree-optimization/88934
4242 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
4243 at the possibly non-constant operand.
4244 (vect_get_constant_vectors): Adjust.
4246 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
4249 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
4250 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
4251 instead of _X86INTRIN_H_INCLUDED.
4252 * onfig/i386/clwbintrin.h: Likewise.
4253 * config/i386/pkuintrin.h: Likewise.
4254 * config/i386/prfchwintrin.h: Likewise.
4255 * config/i386/rdseedintrin.h: Likewise.
4256 * config/i386/wbnoinvdintrin.h: Likewise.
4257 * config/i386/xsavecintrin.h: Likewise.
4258 * config/i386/xsavesintrin.h: Likewise.
4259 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
4260 * config/i386/xsaveintrin.h: Likewise.
4261 * config/i386/xsaveoptintrin.h: Likewise.
4262 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
4263 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
4264 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
4265 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
4266 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
4267 * config/i386/immintrin.h: Here.
4269 2019-01-20 Martin Jambor <mjambor@suse.cz>
4272 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
4273 with aa_walk_budget.
4274 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
4275 aa_walk_budget_p parameter.
4276 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
4277 walk. Updated all callers.
4278 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
4279 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
4281 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
4282 parameter info. Extract info from fbi. Pass fbi to recursive calls
4283 and to unmodified_parm.
4284 (phi_result_unknown_predicate): New parameter fbi, removed parameter
4285 info, updated call to will_be_nonconstant_expr_predicate.
4286 (param_change_prob): New parameter fbi, limit AA walking.
4287 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
4288 calls to various above functions.
4289 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
4290 parameter. Use it to limit AA walking.
4291 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
4293 (detect_type_change): New parameter fbi, pass it on to
4294 detect_type_change_from_memory_writes.
4295 (detect_type_change_ssa): Likewise.
4296 (aa_overwalked): Removed.
4297 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
4298 accordingly, adjust to the neew AA limiting scheme.
4299 (parm_ref_data_preserved_p): Likewise.
4300 (ipa_compute_jump_functions_for_edge): Adjust call to
4302 (ipa_analyze_call_uses): Likewise.
4303 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
4304 (ipa_analyze_node): Initialize aa_walk_budget.
4305 (ipcp_transform_function): Likewise.
4306 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
4307 to get_dynamic_type.
4309 2019-01-19 Jakub Jelinek <jakub@redhat.com>
4311 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
4312 outside of #if CHECKING_P code.
4314 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
4316 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
4317 New function, split out from...
4318 (loop_versioning::analyze_stride): ...here.
4319 (loop_versioning::find_per_loop_multiplication): Use gassign.
4320 (loop_versioning::analyze_term_using_scevs): Return a success code.
4321 (loop_versioning::analyze_arbitrary_term): New function.
4322 (loop_versioning::analyze_address_fragment): Use
4323 analyze_arbitrary_term if all else fails.
4325 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
4328 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
4331 2019-01-18 Richard Biener <rguenther@suse.de>
4333 PR tree-optimization/88903
4334 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
4335 scalar stmts a SLP shift amount is composed of when detecting
4338 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
4341 * config/arm/arm-cpus.in (mp): New feature.
4343 (fgroup ARMv7ve): Add mp and sec features.
4344 (arch armv7-a): Add options to allow mp and sec extensions.
4345 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
4346 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
4347 extenstions to the base architecture.
4348 (cpu cortex-a8): Add sec extension to the base architecture.
4349 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
4350 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
4351 variants down to the base v7-a varaint.
4352 * config/arm/t-multilib (v7_a_arch_variants): New variable.
4353 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
4354 of permitted extensions for -march=armv7-a and for
4355 -mcpu=generic-armv7-a.
4357 2019-01-18 Martin Liska <mliska@suse.cz>
4359 * params.def: Fix comment.
4360 * tree-profile.c (gimple_init_gcov_profiler): Bump function
4362 (gimple_gen_ic_func_profiler): Likewise.
4364 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4366 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
4367 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
4368 and put in error checks for stack protector guard options.
4369 (aarch64_stack_protect_guard): New.
4370 (TARGET_STACK_PROTECT_GUARD): Define.
4371 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
4372 (reg_stack_protect_address<mode>): New.
4373 (stack_protect_set): Adjust for SSP_GLOBAL.
4374 (stack_protect_test): Likewise.
4375 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
4376 (-mstack-protector-guard): Likewise.
4377 (-mstack-protector-guard-offset): Likewise.
4379 2019-01-18 Jakub Jelinek <jakub@redhat.com>
4381 PR tree-optimization/86214
4382 * tree-inline.h (struct copy_body_data): Add
4383 add_clobbers_to_eh_landing_pads member.
4384 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
4385 (copy_edges_for_bb): Call it if EH edge destination is <
4386 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
4387 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
4388 if flag_stack_reuse != SR_NONE and clear it afterwards.
4390 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
4393 * doc/install.texi (with-multilib-list): Document for aarch64.
4395 2019-01-18 Jakub Jelinek <jakub@redhat.com>
4398 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
4399 (("..."))) with ("...").
4401 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
4403 * doc/extend.texi (Built-in Functions for Memory Model Aware
4404 Atomic Operations): Document atomic fetch and nand.
4406 2019-01-18 Martin Liska <mliska@suse.cz>
4407 Richard Biener <rguenther@suse.de>
4410 * cgraph.h (create_version_clone_with_body): Add new argument
4412 * cgraphclones.c (cgraph_node::create_version_clone): Add
4413 DECL_ATTRIBUTES to a newly created decl. And call
4414 valid_attribute_p so that proper cl_target_optimization_node
4415 is set for the newly created declaration.
4416 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
4418 (expand_target_clones): Do not call valid_attribute_p, it must
4420 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
4423 2019-01-17 Jakub Jelinek <jakub@redhat.com>
4426 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
4427 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
4428 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
4430 2019-01-17 Martin Sebor <msebor@redhat.com>
4433 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
4434 Handle anti-ranges the same as no range at all.
4436 2018-01-17 Steve Ellcey <sellcey@cavium.com>
4438 * config/aarch64/aarch64.c (cgraph.h): New include.
4439 (intl.h): New include.
4440 (supported_simd_type): New function.
4441 (currently_supported_simd_type): Ditto.
4442 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
4443 (aarch64_simd_clone_adjust): Ditto.
4444 (aarch64_simd_clone_usable): Ditto.
4445 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
4446 (TARGET_SIMD_CLONE_ADJUST): Ditto.
4447 (TARGET_SIMD_CLONE_USABLE): Ditto.
4448 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
4449 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
4452 2019-01-17 Martin Sebor <msebor@redhat.com>
4454 PR tree-optimization/88800
4455 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
4456 NO_WARNING bit here. Avoid folding out-of-bounds calls.
4457 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
4458 redundant argument. Add new argument and issue diagnostics under
4459 its control. Detect out-of-bounds access even with warnings
4461 (check_bounds_or_overlap): Change return type. Add argument.
4462 (wrestrict_dom_walker::check_call): Adjust.
4463 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
4464 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
4465 check_bounds_or_overlap's return value.
4466 (handle_builtin_stxncpy): Same.
4467 (handle_builtin_strcat): Same.
4469 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
4470 Kwok Cheung Yeung <kcy@codesourcery.com>
4471 Julian Brown <julian@codesourcery.com>
4472 Tom de Vries <tom@codesourcery.com>
4474 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
4476 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
4478 * doc/sourcebuild.texi: Document dg-require-effective-target
4479 llvm_binutils and offload_gcn.
4481 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
4482 Kwok Cheung Yeung <kcy@codesourcery.com>
4483 Julian Brown <julian@codesourcery.com>
4484 Tom de Vries <tom@codesourcery.com>
4486 * doc/sourcebuild.texi: Document dg-required-effective-target
4489 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
4490 Kwok Cheung Yeung <kcy@codesourcery.com>
4491 Julian Brown <julian@codesourcery.com>
4492 Tom de Vries <tom@codesourcery.com>
4493 Jan Hubicka <hubicka@ucw.cz>
4494 Martin Jambor <mjambor@suse.cz>
4496 * config.gcc: Add amdgcn*-*-amdhsa configuration.
4497 * configure.ac: Check for dlopen.
4498 * configure: Regenerate.
4500 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
4501 Kwok Cheung Yeung <kcy@codesourcery.com>
4502 Julian Brown <julian@codesourcery.com>
4503 Tom de Vries <tom@codesourcery.com>
4504 Jan Hubicka <hubicka@ucw.cz>
4505 Martin Jambor <mjambor@suse.cz>
4507 * common/config/gcn/gcn-common.c: New file.
4508 * config/gcn/driver-gcn.c: New file.
4509 * config/gcn/gcn-builtins.def: New file.
4510 * config/gcn/gcn-hsa.h: New file.
4511 * config/gcn/gcn-modes.def: New file.
4512 * config/gcn/gcn-opts.h: New file.
4513 * config/gcn/gcn-passes.def: New file.
4514 * config/gcn/gcn-protos.h: New file.
4515 * config/gcn/gcn-run.c: New file.
4516 * config/gcn/gcn-tree.c: New file.
4517 * config/gcn/gcn.c: New file.
4518 * config/gcn/gcn.h: New file.
4519 * config/gcn/gcn.opt: New file.
4520 * config/gcn/t-gcn-hsa: New file.
4522 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
4523 Kwok Cheung Yeung <kcy@codesourcery.com>
4524 Julian Brown <julian@codesourcery.com>
4525 Tom de Vries <tom@codesourcery.com>
4526 Jan Hubicka <hubicka@ucw.cz>
4527 Martin Jambor <mjambor@suse.cz>
4529 * config/gcn/constraints.md: New file.
4530 * config/gcn/gcn-valu.md: New file.
4531 * config/gcn/gcn.md: New file.
4532 * config/gcn/predicates.md: New file.
4534 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
4536 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
4537 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
4538 (stmt_uses_0_or_null_in_undefined_way): Likewise.
4539 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
4541 2019-01-17 Tamar Christina <tamar.christina@arm.com>
4544 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
4545 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
4546 it and document registers.
4548 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4550 * config/aarch64/aarch64.c (ares_tunings): Define.
4551 * config/aarch64/aarch64-cores.def (ares): Use the above.
4553 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
4557 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
4559 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
4560 (_mm512_fixupimm_round_pd): Update parameters and builtin.
4561 (_mm512_maskz_fixupimm_round_pd): Ditto.
4562 (_mm512_fixupimm_round_ps): Ditto.
4563 (_mm512_maskz_fixupimm_round_ps): Ditto.
4564 (_mm_fixupimm_round_sd): Ditto.
4565 (_mm_maskz_fixupimm_round_sd): Ditto.
4566 (_mm_fixupimm_round_ss): Ditto.
4567 (_mm_maskz_fixupimm_round_ss): Ditto.
4568 (_mm512_fixupimm_pd): Ditto.
4569 (_mm512_maskz_fixupimm_pd): Ditto.
4570 (_mm512_fixupimm_ps): Ditto.
4571 (_mm512_maskz_fixupimm_ps): Ditto.
4572 (_mm_fixupimm_sd): Ditto.
4573 (_mm_maskz_fixupimm_sd): Ditto.
4574 (_mm_fixupimm_ss): Ditto.
4575 (_mm_maskz_fixupimm_ss): Ditto.
4576 (_mm512_mask_fixupimm_round_pd): Update builtin.
4577 (_mm512_mask_fixupimm_round_ps): Ditto.
4578 (_mm_mask_fixupimm_round_sd): Ditto.
4579 (_mm_mask_fixupimm_round_ss): Ditto.
4580 (_mm512_mask_fixupimm_pd): Ditto.
4581 (_mm512_mask_fixupimm_ps): Ditto.
4582 (_mm_mask_fixupimm_sd): Ditto.
4583 (_mm_mask_fixupimm_ss): Ditto.
4584 * config/i386/avx512vlintrin.h:
4585 (_mm256_fixupimm_pd): Update parameters and builtin.
4586 (_mm256_maskz_fixupimm_pd): Ditto.
4587 (_mm256_fixupimm_ps): Ditto.
4588 (_mm256_maskz_fixupimm_ps): Ditto.
4589 (_mm_fixupimm_pd): Ditto.
4590 (_mm_maskz_fixupimm_pd): Ditto.
4591 (_mm_fixupimm_ps): Ditto.
4592 (_mm_maskz_fixupimm_ps): Ditto.
4593 (_mm256_mask_fixupimm_pd): Update builtin.
4594 (_mm256_mask_fixupimm_ps): Ditto.
4595 (_mm_mask_fixupimm_pd): Ditto.
4596 (_mm_mask_fixupimm_ps): Ditto.
4597 * config/i386/i386-builtin-types.def: Add new types and remove useless ones.
4598 * config/i386/i386-builtin.def: Update builtin definitions.
4599 * config/i386/i386.c: Handle new builtin types and remove useless ones.
4600 * config/i386/sse.md: Update VFIXUPIMM* patterns.
4601 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
4602 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
4603 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
4604 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
4605 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
4606 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
4607 * config/i386/subst.md:
4608 (round_saeonly_sd_mask_operand4): Add new subst_attr.
4609 (round_saeonly_sd_mask_op4): Ditto.
4610 (round_saeonly_expand_operand5): Ditto.
4611 (round_saeonly_expand): Update.
4613 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
4617 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
4619 * config/i386/sse.md: Combine VFIXUPIMM* patterns
4620 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
4621 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
4622 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
4623 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
4624 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
4625 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
4627 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
4631 2018-12-15 Jakub Jelinek <jakub@redhat.com>
4634 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
4635 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
4636 instead of UNSPEC_FIXUPIMM.
4638 2019-01-17 Richard Biener <rguenther@suse.de>
4641 * dwarf2out.c (want_pubnames): Never generate pubnames sections
4642 and friends for the LTO part of debug info.
4644 2019-01-17 Jakub Jelinek <jakub@redhat.com>
4646 PR tree-optimization/86214
4647 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
4650 PR rtl-optimization/88870
4651 * dce.c (deletable_insn_p): Never delete const/pure calls that can
4652 throw if we can't alter the cfg or delete dead exceptions.
4653 (mark_insn): Don't call find_call_stack_args for such calls.
4655 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
4657 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
4658 prototypes for vec_st.
4659 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
4660 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
4661 mainly on signed/unsigned long long and double.
4663 2019-01-16 David Malcolm <dmalcolm@redhat.com>
4666 * combine.c (delete_noop_moves): Convert to "bool" return,
4667 returning true if any edges are eliminated.
4668 (combine_instructions): Also return true if delete_noop_moves
4671 2019-01-16 Tamar Christina <tamar.christina@arm.com>
4673 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
4674 correct max nunits for endian swap.
4675 (aarch64_expand_fcmla_builtin): Correct subreg code.
4676 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
4677 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
4680 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
4682 * config/alpha/alpha.c (alpha_gimplify_va_arg):
4683 Handle split indirect COMPLEX_TYPE arguments.
4685 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
4688 * config/aarch64/aarch64-modes.def: Add comment about how the carry
4689 bit is set by add and compare.
4690 (CC_ADC): New CC_MODE.
4691 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
4692 to cache the code and mode of X. Adjust the shape of a CC_Cmode
4693 comparison. Add detection for CC_ADCmode.
4694 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
4696 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
4697 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
4698 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
4699 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
4700 to eliminate the need for zero-extending the operands.
4701 (add<mode>3_compareC_imm): Delete. Merge into ...
4702 (add<mode>3_compareC): ... this. Restructure the comparison to
4703 eliminate the need for zero-extending the operands.
4704 (add<mode>3_carryin): Use LTU for the overflow detection.
4705 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
4706 Reexpress comparison for overflow.
4707 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
4708 (add<mode>3_carryinC): Likewise.
4709 (add<mode>3_carryinV): Use LTU for carry between partials.
4710 * config/aarch64/predicates.md (aarch64_carry_operation): Update
4711 handling of CC_Cmode and add CC_ADCmode.
4712 (aarch64_borrow_operation): Likewise.
4714 2019-01-16 Tamar Christina <tamar.christina@arm.com>
4716 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): Remove patternmode.
4717 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
4718 * config/arm/neon.md (neon_vcmla_lane<rot><mode>, neon_vcmla_laneq<rot><mode>,
4719 neon_vcmlaq_lane<rot><mode>): Remove endianness conversion.
4721 2019-01-16 Martin Liska <mliska@suse.cz>
4723 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
4725 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
4727 * gcc.c (add_sysrooted_hdrs_prefix): New function.
4728 (path_prefix_reset): Move up in the source file.
4729 (find_fortran_preinclude_file): Make complex search for the
4730 fortran header files.
4732 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
4734 * godump.c (go_output_typedef): When outputting a typedef, refer
4735 to the underlying type by its name and not its structure.
4737 2019-01-15 David Malcolm <dmalcolm@redhat.com>
4740 * tree.c (build_function_type): Assert that arg_types is not
4743 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
4746 * doc/extend.texi: Document that listing the stack pointer in the
4747 clobber list of an asm is a deprecated feature.
4748 * common.opt (Wdeprecated): Moved from c-family/c.opt.
4749 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
4750 warning instead of an error for clobbers of the stack pointer.
4751 Add a note explaining why.
4753 2019-01-15 Richard Biener <rguenther@suse.de>
4756 * dwarf2out.c (gen_member_die): Do not generate inheritance
4759 2019-01-15 Richard Biener <rguenther@suse.de>
4761 PR tree-optimization/88855
4762 * tree-if-conv.c (combine_blocks): Collect
4763 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
4765 2019-01-15 Tom de Vries <tdevries@suse.de>
4768 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
4769 lhs == NULL_TREE for gang-level reduction.
4771 2019-01-15 Richard Biener <rguenther@suse.de>
4772 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4775 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
4776 return true if SSA_NAME is already marked in visited bitmap.
4777 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
4779 2019-01-15 Jakub Jelinek <jakub@redhat.com>
4781 PR tree-optimization/88775
4782 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
4783 equal == 0 equality pointer comparisons some more if compared in
4784 integral types and either one points to an automatic var and the
4785 other to a global, or we can prove at least one points to the middle
4786 or both point to start or both point to end.
4788 2019-01-14 Andi Kleen <ak@linux.intel.com>
4790 * Makefile.in: Lower autofdo sampling rate by 10x.
4791 * Makefile.tpl: Dito.
4793 2019-01-14 Tom Honermann <tom@honermann.net>
4795 * defaults.h: Define CHAR8_TYPE.
4797 2019-01-14 Martin Sebor <msebor@redhat.com>
4800 * doc/extend.texi (Darwin Format Checks): Clarify.
4802 2019-01-14 Richard Biener <rguenther@suse.de>
4804 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
4805 whether we are in (simplify ...) or (match ...) context.
4807 2019-01-14 Jakub Jelinek <jakub@redhat.com>
4809 PR rtl-optimization/88796
4810 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
4811 * cfgexpand.c (stack_protect_prologue): Initialize
4812 crtl->stack_protect_guard_decl.
4813 * function.c (stack_protect_epilogue): Use it instead of calling
4814 targetm.stack_protect_guard again.
4815 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
4816 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
4817 crtl->stack_protect_guard_decl.
4818 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
4819 on the returned MEM_EXPR.
4821 2019-01-12 Tom de Vries <tdevries@suse.de>
4823 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
4824 vector length using -fopenacc-dim.
4826 2019-01-12 Tom de Vries <tdevries@suse.de>
4828 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
4829 lengths into account.
4831 2019-01-12 Svante Signell <svante.signell@gmail.com>
4833 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
4834 (TARGET_CAN_SPLIT_STACK): Define.
4835 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
4837 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
4839 * params.def (inline-unit-growth): Set to 40.
4841 2019-01-12 Jakub Jelinek <jakub@redhat.com>
4843 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
4845 2019-01-12 Tom de Vries <tdevries@suse.de>
4847 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
4848 region calling vector-partitionable routine, set default_vector_length
4851 2019-01-12 Tom de Vries <tdevries@suse.de>
4853 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
4854 variable default_vector_length.
4856 2019-01-12 Tom de Vries <tdevries@suse.de>
4859 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
4860 from oacc_default_dims, as oacc_validate_dims would do it, and apply
4863 2019-01-12 Tom de Vries <tdevries@suse.de>
4865 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
4866 (nvptx_goacc_validate_dims): Add used parameter.
4867 * doc/tm.texi: Regenerate.
4868 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
4869 argument to call to targetm.goacc.validate_dims.
4870 (default_goacc_validate_dims): Add used
4872 * target.def (validate_dims): Add used parameter in DEFHOOK.
4873 * targhooks.h (default_goacc_validate_dims): Add used parameter.
4875 2019-01-11 Jakub Jelinek <jakub@redhat.com>
4879 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
4881 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
4882 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
4883 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
4884 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
4886 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
4888 PR rtl-optimization/87305
4890 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
4891 for little endian pseudos used as paradoxical subreg.
4893 2019-01-11 Jakub Jelinek <jakub@redhat.com>
4895 PR tree-optimization/88693
4896 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
4897 for STRING_CSTs that don't contain any NUL characters in the first
4898 TREE_STRING_LENGTH bytes.
4900 2019-01-11 Alan Modra <amodra@gmail.com>
4904 * genattrtab.c (min_fn): Don't translate values.
4905 (min_attr_value): Return INT_MAX when the value can't be calculated.
4906 Return minimum among any values that can be calculated.
4907 (max_attr_value): Adjust.
4909 2019-01-11 Jakub Jelinek <jakub@redhat.com>
4911 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
4913 2019-01-11 Steve Ellcey <sellcey@marvell.com>
4915 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
4916 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
4917 (aarch64_return_call_with_max_clobbers): New function.
4918 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
4919 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
4921 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
4922 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
4923 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
4924 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
4925 * cselib.c (cselib_process_insn): Add argument to
4926 targetm.hard_regno_call_part_clobbered call.
4927 * ira-conflicts.c (ira_build_conflicts): Ditto.
4928 * ira-costs.c (ira_tune_allocno_costs): Ditto.
4929 * lra-constraints.c (inherit_reload_reg): Ditto.
4930 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
4931 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
4932 argument. Call targetm.return_call_with_max_clobbers.
4933 Add argument to targetm.hard_regno_call_part_clobbered call.
4934 (calls_have_same_clobbers_p): New function.
4935 (process_bb_lives): Add call_insn and last_call_insn variables.
4936 Pass call_insn to check_pseudos_live_through_calls.
4937 Modify if stmt to check targetm.return_call_with_max_clobbers.
4938 Update setting of flush variable.
4939 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
4941 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
4942 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
4943 targetm.hard_regno_call_part_clobbered call.
4944 * reginfo.c (choose_hard_reg_mode): Ditto.
4945 * regrename.c (check_new_reg_p): Ditto.
4946 * reload.c (find_equiv_reg): Ditto.
4947 * reload1.c (emit_reload_insns): Ditto.
4948 * sched-deps.c (deps_analyze_insn): Ditto.
4949 * sel-sched.c (init_regs_for_mode): Ditto.
4950 (mark_unavailable_hard_regs): Ditto.
4951 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
4952 * target.def (hard_regno_call_part_clobbered): Add insn argument.
4953 (return_call_with_max_clobbers): New target function.
4954 * doc/tm.texi: Regenerate.
4955 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
4956 * hooks.c (hook_bool_uint_mode_false): Change to
4957 hook_bool_insn_uint_mode_false.
4958 * hooks.h (hook_bool_uint_mode_false): Ditto.
4960 2019-01-11 Steve Ellcey <sellcey@marvell.com>
4962 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
4963 (aarch64_remove_extra_call_preserved_regs): New function.
4964 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
4965 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
4966 * doc/tm.texi: Regenerate.
4967 * final.c (get_call_reg_set_usage): Call new hook.
4968 * target.def (remove_extra_call_preserved_regs): New hook.
4969 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
4970 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
4972 2019-01-11 Jakub Jelinek <jakub@redhat.com>
4975 * passes.c (finish_optimization_passes): Call print_combine_total_stats
4976 inside of pass_combine_1 dump rather than pass_profile_1.
4978 2019-01-11 Tom de Vries <tdevries@suse.de>
4980 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
4981 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
4982 (PTX_NUM_PER_WORKER_BARRIERS): Define.
4983 (nvptx_apply_dim_limits): Prevent vector_length 64 and
4986 2019-01-11 Tom de Vries <tdevries@suse.de>
4988 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
4990 2019-01-11 Jan Beulich <jbeulich@suse.com>
4992 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
4993 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
4994 sse2_cvtsi2sd): Add {l}.
4995 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
4998 2019-01-10 Jakub Jelinek <jakub@redhat.com>
5001 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
5003 (*float<floatunssuffix>v2div2sf2): New define_insn.
5004 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
5005 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
5006 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
5007 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
5008 match_operands with "const0_operand" "C".
5010 2019-01-10 Tamar Christina <tamar.christina@arm.com>
5012 * config/aarch64/aarch64-builtins.c
5013 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
5014 (aarch64_init_simd_builtins): ...Here
5016 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
5018 PR rtl-optimization/87305
5020 (setup_live_pseudos_and_spill_after_risky_transforms): Check
5021 allocation for big endian pseudos used as paradoxical subregs and
5022 spill them if it is wrong.
5023 * lra-constraints.c (lra_constraints): Add a comment.
5025 2019-01-10 Richard Biener <rguenther@suse.de>
5027 PR tree-optimization/88792
5028 * tree-ssa-pre.c (get_representative_for): Do not return a
5031 2019-01-10 Jakub Jelinek <jakub@redhat.com>
5035 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
5036 (assign_parm_setup_block): Do the argument slot realignment here
5039 2019-01-10 Stefan Agner <stefan@agner.ch>
5042 * config/arm/arm.c (arm_option_override_internal): Force
5043 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
5045 2019-01-10 Jakub Jelinek <jakub@redhat.com>
5048 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
5051 2019-01-10 Tamar Christina <tamar.christina@arm.com>
5053 * config/arm/arm-builtins.c
5054 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
5055 (MAC_LANE_PAIR_QUALIFIERS): New.
5056 (arm_expand_builtin_args): Use it.
5057 (arm_expand_builtin_1): Likewise.
5058 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
5059 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
5060 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
5061 * config/arm/arm_neon.h:
5062 (vcadd_rot90_f16): New.
5063 (vcaddq_rot90_f16): New.
5064 (vcadd_rot270_f16): New.
5065 (vcaddq_rot270_f16): New.
5068 (vcmla_lane_f16): New.
5069 (vcmla_laneq_f16): New.
5070 (vcmlaq_lane_f16): New.
5071 (vcmlaq_laneq_f16): New.
5072 (vcmla_rot90_f16): New.
5073 (vcmlaq_rot90_f16): New.
5074 (vcmla_rot90_lane_f16): New.
5075 (vcmla_rot90_laneq_f16): New.
5076 (vcmlaq_rot90_lane_f16): New.
5077 (vcmlaq_rot90_laneq_f16): New.
5078 (vcmla_rot180_f16): New.
5079 (vcmlaq_rot180_f16): New.
5080 (vcmla_rot180_lane_f16): New.
5081 (vcmla_rot180_laneq_f16): New.
5082 (vcmlaq_rot180_lane_f16): New.
5083 (vcmlaq_rot180_laneq_f16): New.
5084 (vcmla_rot270_f16): New.
5085 (vcmlaq_rot270_f16): New.
5086 (vcmla_rot270_lane_f16): New.
5087 (vcmla_rot270_laneq_f16): New.
5088 (vcmlaq_rot270_lane_f16): New.
5089 (vcmlaq_rot270_laneq_f16): New.
5090 (vcadd_rot90_f32): New.
5091 (vcaddq_rot90_f32): New.
5092 (vcadd_rot270_f32): New.
5093 (vcaddq_rot270_f32): New.
5096 (vcmla_lane_f32): New.
5097 (vcmla_laneq_f32): New.
5098 (vcmlaq_lane_f32): New.
5099 (vcmlaq_laneq_f32): New.
5100 (vcmla_rot90_f32): New.
5101 (vcmlaq_rot90_f32): New.
5102 (vcmla_rot90_lane_f32): New.
5103 (vcmla_rot90_laneq_f32): New.
5104 (vcmlaq_rot90_lane_f32): New.
5105 (vcmlaq_rot90_laneq_f32): New.
5106 (vcmla_rot180_f32): New.
5107 (vcmlaq_rot180_f32): New.
5108 (vcmla_rot180_lane_f32): New.
5109 (vcmla_rot180_laneq_f32): New.
5110 (vcmlaq_rot180_lane_f32): New.
5111 (vcmlaq_rot180_laneq_f32): New.
5112 (vcmla_rot270_f32): New.
5113 (vcmlaq_rot270_f32): New.
5114 (vcmla_rot270_lane_f32): New.
5115 (vcmla_rot270_laneq_f32): New.
5116 (vcmlaq_rot270_lane_f32): New.
5117 (vcmlaq_rot270_laneq_f32): New.
5118 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
5119 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
5120 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
5121 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
5122 vcmlaq_lane270): New.
5123 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
5124 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
5125 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
5126 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
5127 (arm_option_reconfigure_globals): Use them.
5128 * config/arm/iterators.md (VDF, VQ_HSF): New.
5129 (VCADD, VCMLA): New.
5130 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
5131 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
5133 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
5134 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
5136 2019-01-10 Tamar Christina <tamar.christina@arm.com>
5138 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
5139 Add qualifier_lane_pair_index.
5140 (emit-rtl.h): Include.
5141 (TYPES_QUADOP_LANE_PAIR): New.
5142 (aarch64_simd_expand_args): Use it.
5143 (aarch64_simd_expand_builtin): Likewise.
5144 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
5146 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
5147 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
5148 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
5149 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
5150 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
5151 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
5152 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
5153 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
5154 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
5155 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
5156 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
5157 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
5158 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
5159 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
5160 Add __ARM_FEATURE_COMPLEX.
5161 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
5162 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
5163 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
5164 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
5165 fcmlaq_lane270): New.
5166 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
5167 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
5168 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
5169 * config/aarch64/arm_neon.h:
5170 (vcadd_rot90_f16): New.
5171 (vcaddq_rot90_f16): New.
5172 (vcadd_rot270_f16): New.
5173 (vcaddq_rot270_f16): New.
5176 (vcmla_lane_f16): New.
5177 (vcmla_laneq_f16): New.
5178 (vcmlaq_lane_f16): New.
5179 (vcmlaq_rot90_lane_f16): New.
5180 (vcmla_rot90_laneq_f16): New.
5181 (vcmla_rot90_lane_f16): New.
5182 (vcmlaq_rot90_f16): New.
5183 (vcmla_rot90_f16): New.
5184 (vcmlaq_laneq_f16): New.
5185 (vcmla_rot180_laneq_f16): New.
5186 (vcmla_rot180_lane_f16): New.
5187 (vcmlaq_rot180_f16): New.
5188 (vcmla_rot180_f16): New.
5189 (vcmlaq_rot90_laneq_f16): New.
5190 (vcmlaq_rot270_laneq_f16): New.
5191 (vcmlaq_rot270_lane_f16): New.
5192 (vcmla_rot270_laneq_f16): New.
5193 (vcmlaq_rot270_f16): New.
5194 (vcmla_rot270_f16): New.
5195 (vcmlaq_rot180_laneq_f16): New.
5196 (vcmlaq_rot180_lane_f16): New.
5197 (vcmla_rot270_lane_f16): New.
5198 (vcadd_rot90_f32): New.
5199 (vcaddq_rot90_f32): New.
5200 (vcaddq_rot90_f64): New.
5201 (vcadd_rot270_f32): New.
5202 (vcaddq_rot270_f32): New.
5203 (vcaddq_rot270_f64): New.
5207 (vcmla_lane_f32): New.
5208 (vcmla_laneq_f32): New.
5209 (vcmlaq_lane_f32): New.
5210 (vcmlaq_laneq_f32): New.
5211 (vcmla_rot90_f32): New.
5212 (vcmlaq_rot90_f32): New.
5213 (vcmlaq_rot90_f64): New.
5214 (vcmla_rot90_lane_f32): New.
5215 (vcmla_rot90_laneq_f32): New.
5216 (vcmlaq_rot90_lane_f32): New.
5217 (vcmlaq_rot90_laneq_f32): New.
5218 (vcmla_rot180_f32): New.
5219 (vcmlaq_rot180_f32): New.
5220 (vcmlaq_rot180_f64): New.
5221 (vcmla_rot180_lane_f32): New.
5222 (vcmla_rot180_laneq_f32): New.
5223 (vcmlaq_rot180_lane_f32): New.
5224 (vcmlaq_rot180_laneq_f32): New.
5225 (vcmla_rot270_f32): New.
5226 (vcmlaq_rot270_f32): New.
5227 (vcmlaq_rot270_f64): New.
5228 (vcmla_rot270_lane_f32): New.
5229 (vcmla_rot270_laneq_f32): New.
5230 (vcmlaq_rot270_lane_f32): New.
5231 (vcmlaq_rot270_laneq_f32): New.
5232 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
5233 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
5234 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
5235 (FCADD, FCMLA): New.
5237 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
5239 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
5243 * config/pa/pa.c: Change "can not" to "cannot".
5244 * gimple-ssa-evrp-analyze.c: Likewise.
5245 * ipa-icf.c: Likewise.
5246 * ipa-polymorphic-call.c: Likewise.
5247 * ipa-pure-const.c: Likewise.
5248 * lra-constraints.c: Likewise.
5249 * lra-remat.c: Likewise.
5250 * reload1.c: Likewise.
5251 * reorg.c: Likewise.
5252 * tree-ssa-uninit.c: Likewise.
5254 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
5258 * Makefile.in: Mechanically replace "can not" with "cannot".
5259 * alias.c: Likewise.
5260 * builtins.c: Likewise.
5261 * calls.c: Likewise.
5262 * cgraph.c: Likewise.
5263 * cgraph.h: Likewise.
5264 * cgraphclones.c: Likewise.
5265 * cgraphunit.c: Likewise.
5266 * combine-stack-adj.c: Likewise.
5267 * combine.c: Likewise.
5268 * common/config/i386/i386-common.c: Likewise.
5269 * config/aarch64/aarch64.c: Likewise.
5270 * config/alpha/sync.md: Likewise.
5271 * config/arc/arc.c: Likewise.
5272 * config/arc/predicates.md: Likewise.
5273 * config/arm/arm-c.c: Likewise.
5274 * config/arm/arm.c: Likewise.
5275 * config/arm/arm.h: Likewise.
5276 * config/arm/arm.md: Likewise.
5277 * config/arm/cortex-r4f.md: Likewise.
5278 * config/csky/csky.c: Likewise.
5279 * config/csky/csky.h: Likewise.
5280 * config/darwin-f.c: Likewise.
5281 * config/epiphany/epiphany.md: Likewise.
5282 * config/i386/i386.c: Likewise.
5283 * config/i386/sol2.h: Likewise.
5284 * config/m68k/m68k.c: Likewise.
5285 * config/mcore/mcore.h: Likewise.
5286 * config/microblaze/microblaze.md: Likewise.
5287 * config/mips/20kc.md: Likewise.
5288 * config/mips/sb1.md: Likewise.
5289 * config/nds32/nds32.c: Likewise.
5290 * config/nds32/predicates.md: Likewise.
5291 * config/pa/pa.c: Likewise.
5292 * config/rs6000/e300c2c3.md: Likewise.
5293 * config/rs6000/rs6000.c: Likewise.
5294 * config/s390/s390.h: Likewise.
5295 * config/sh/sh.c: Likewise.
5296 * config/sh/sh.md: Likewise.
5297 * config/spu/vmx2spu.h: Likewise.
5298 * cprop.c: Likewise.
5299 * dbxout.c: Likewise.
5300 * df-scan.c: Likewise.
5301 * doc/cfg.texi: Likewise.
5302 * doc/extend.texi: Likewise.
5303 * doc/fragments.texi: Likewise.
5304 * doc/gty.texi: Likewise.
5305 * doc/invoke.texi: Likewise.
5306 * doc/lto.texi: Likewise.
5307 * doc/md.texi: Likewise.
5308 * doc/objc.texi: Likewise.
5309 * doc/rtl.texi: Likewise.
5310 * doc/tm.texi: Likewise.
5312 * emit-rtl.c: Likewise.
5313 * emit-rtl.h: Likewise.
5314 * except.c: Likewise.
5315 * expmed.c: Likewise.
5317 * fold-const.c: Likewise.
5318 * genautomata.c: Likewise.
5319 * gimple-fold.c: Likewise.
5320 * hard-reg-set.h: Likewise.
5321 * ifcvt.c: Likewise.
5322 * ipa-comdats.c: Likewise.
5323 * ipa-cp.c: Likewise.
5324 * ipa-devirt.c: Likewise.
5325 * ipa-fnsummary.c: Likewise.
5326 * ipa-icf.c: Likewise.
5327 * ipa-inline-transform.c: Likewise.
5328 * ipa-inline.c: Likewise.
5329 * ipa-polymorphic-call.c: Likewise.
5330 * ipa-profile.c: Likewise.
5331 * ipa-prop.c: Likewise.
5332 * ipa-pure-const.c: Likewise.
5333 * ipa-reference.c: Likewise.
5334 * ipa-split.c: Likewise.
5335 * ipa-visibility.c: Likewise.
5337 * ira-build.c: Likewise.
5338 * ira-color.c: Likewise.
5339 * ira-conflicts.c: Likewise.
5340 * ira-costs.c: Likewise.
5341 * ira-int.h: Likewise.
5342 * ira-lives.c: Likewise.
5345 * loop-invariant.c: Likewise.
5346 * loop-unroll.c: Likewise.
5347 * lower-subreg.c: Likewise.
5348 * lra-assigns.c: Likewise.
5349 * lra-constraints.c: Likewise.
5350 * lra-eliminations.c: Likewise.
5351 * lra-lives.c: Likewise.
5352 * lra-remat.c: Likewise.
5353 * lra-spills.c: Likewise.
5355 * lto-cgraph.c: Likewise.
5356 * lto-streamer-out.c: Likewise.
5357 * postreload-gcse.c: Likewise.
5358 * predict.c: Likewise.
5359 * profile-count.h: Likewise.
5360 * profile.c: Likewise.
5361 * recog.c: Likewise.
5363 * reload.c: Likewise.
5364 * reload1.c: Likewise.
5365 * reorg.c: Likewise.
5366 * resource.c: Likewise.
5367 * rtl.def: Likewise.
5369 * rtlanal.c: Likewise.
5370 * sched-deps.c: Likewise.
5371 * sched-ebb.c: Likewise.
5372 * sched-rgn.c: Likewise.
5373 * sel-sched-ir.c: Likewise.
5374 * sel-sched.c: Likewise.
5375 * shrink-wrap.c: Likewise.
5376 * simplify-rtx.c: Likewise.
5377 * symtab.c: Likewise.
5378 * target.def: Likewise.
5379 * toplev.c: Likewise.
5380 * tree-call-cdce.c: Likewise.
5381 * tree-cfg.c: Likewise.
5382 * tree-complex.c: Likewise.
5383 * tree-core.h: Likewise.
5384 * tree-eh.c: Likewise.
5385 * tree-inline.c: Likewise.
5386 * tree-loop-distribution.c: Likewise.
5387 * tree-nrv.c: Likewise.
5388 * tree-profile.c: Likewise.
5389 * tree-sra.c: Likewise.
5390 * tree-ssa-alias.c: Likewise.
5391 * tree-ssa-dce.c: Likewise.
5392 * tree-ssa-dom.c: Likewise.
5393 * tree-ssa-forwprop.c: Likewise.
5394 * tree-ssa-loop-im.c: Likewise.
5395 * tree-ssa-loop-ivcanon.c: Likewise.
5396 * tree-ssa-loop-ivopts.c: Likewise.
5397 * tree-ssa-loop-niter.c: Likewise.
5398 * tree-ssa-phionlycprop.c: Likewise.
5399 * tree-ssa-phiopt.c: Likewise.
5400 * tree-ssa-propagate.c: Likewise.
5401 * tree-ssa-threadedge.c: Likewise.
5402 * tree-ssa-threadupdate.c: Likewise.
5403 * tree-ssa-uninit.c: Likewise.
5404 * tree-ssanames.c: Likewise.
5405 * tree-streamer-out.c: Likewise.
5408 * vr-values.c: Likewise.
5410 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
5412 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
5413 (ix86_split_xorsign): Ditto.
5414 * config/i386/i386.c (ix86_expand_xorsign): New function.
5415 (ix86_split_xorsign): Ditto.
5416 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
5417 (xorsign<mode>3): New expander.
5418 (xorsign<mode>3_1): New insn_and_split pattern.
5419 * config/i386/sse.md (xorsign<mode>3): New expander.
5421 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
5423 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
5424 (*tablejump_sp64): Likewise.
5425 (*tablejump<P:mode>): ...this.
5426 (*call_address_sp32): Merge into...
5427 (*call_address_sp64): Likewise.
5428 (*call_address<P:mode>): ...this.
5429 (*call_symbolic_sp32): Merge into...
5430 (*call_symbolic_sp64): Likewise.
5431 (*call_symbolic<P:mode>): ...this.
5432 (call_value): Remove constraint and add predicate.
5433 (*call_value_address_sp32): Merge into...
5434 (*call_value_address_sp64): Likewise.
5435 (*call_value_address<P:mode>): ...this.
5436 (*call_value_symbolic_sp32): Merge into...
5437 (*call_value_symbolic_sp64): Likewise.
5438 (*call_value_symbolic<P:mode>): ...this.
5439 (*sibcall_symbolic_sp32): Merge into...
5440 (*sibcall_symbolic_sp64): Likewise.
5441 (*sibcall_symbolic<P:mode>): ...this.
5442 (sibcall_value): Remove constraint and add predicate.
5443 (*sibcall_value_symbolic_sp32): Merge into...
5444 (*sibcall_value_symbolic_sp64): Likewise.
5445 (*sibcall_value_symbolic<P:mode>): ...this.
5446 (window_save): Minor tweak.
5447 (*branch_sp32): Merge into...
5448 (*branch_sp64): Likewise.
5449 (*branch<P:mode>): ...this.
5451 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
5452 James Clarke <jrtc27@jrtc27.com>
5455 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
5456 consistently in TLS address generation and adjust code to the renaming
5457 of patterns. Mark calls to __tls_get_addr as const.
5458 * config/sparc/sparc.md (tgd_hi22): Turn into...
5459 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
5460 (tgd_lo10): Turn into...
5461 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
5462 (tgd_add32): Merge into...
5463 (tgd_add64): Likewise.
5464 (tgd_add<P:mode>): ...this and use Pmode throughout.
5465 (tldm_hi22): Turn into...
5466 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
5467 (tldm_lo10): Turn into...
5468 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
5469 (tldm_add32): Merge into...
5470 (tldm_add64): Likewise.
5471 (tldm_add<P:mode>): ...this and use Pmode throughout.
5472 (tldm_call32): Merge into...
5473 (tldm_call64): Likewise.
5474 (tldm_call<P:mode>): ...this and use Pmode throughout.
5475 (tldo_hix22): Turn into...
5476 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
5477 (tldo_lox10): Turn into...
5478 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
5479 (tldo_add32): Merge into...
5480 (tldo_add64): Likewise.
5481 (tldo_add<P:mode>): ...this and use Pmode throughout.
5482 (tie_hi22): Turn into...
5483 (tie_hi22<P:mode>): ...this and use Pmode throughout.
5484 (tie_lo10): Turn into...
5485 (tie_lo10<P:mode>): ...this and use Pmode throughout.
5486 (tie_ld64): Use DImode throughout.
5487 (tie_add32): Merge into...
5488 (tie_add64): Likewise.
5489 (tie_add<P:mode>): ...this and use Pmode throughout.
5490 (tle_hix22_sp32): Merge into...
5491 (tle_hix22_sp64): Likewise.
5492 (tle_hix22<P:mode>): ...this and use Pmode throughout.
5493 (tle_lox22_sp32): Merge into...
5494 (tle_lox22_sp64): Likewise.
5495 (tle_lox22<P:mode>): ...this and use Pmode throughout.
5496 (*tldo_ldub_sp32): Merge into...
5497 (*tldo_ldub_sp64): Likewise.
5498 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
5499 (*tldo_ldub1_sp32): Merge into...
5500 (*tldo_ldub1_sp64): Likewise.
5501 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
5502 (*tldo_ldub2_sp32): Merge into...
5503 (*tldo_ldub2_sp64): Likewise.
5504 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
5505 (*tldo_ldsb1_sp32): Merge into...
5506 (*tldo_ldsb1_sp64): Likewise.
5507 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
5508 (*tldo_ldsb2_sp32): Merge into...
5509 (*tldo_ldsb2_sp64): Likewise.
5510 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
5511 (*tldo_ldub3_sp64): Use DImode throughout.
5512 (*tldo_ldsb3_sp64): Likewise.
5513 (*tldo_lduh_sp32): Merge into...
5514 (*tldo_lduh_sp64): Likewise.
5515 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
5516 (*tldo_lduh1_sp32): Merge into...
5517 (*tldo_lduh1_sp64): Likewise.
5518 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
5519 (*tldo_ldsh1_sp32): Merge into...
5520 (*tldo_ldsh1_sp64): Likewise.
5521 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
5522 (*tldo_lduh2_sp64): Use DImode throughout.
5523 (*tldo_ldsh2_sp64): Likewise.
5524 (*tldo_lduw_sp32): Merge into...
5525 (*tldo_lduw_sp64): Likewise.
5526 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
5527 (*tldo_lduw1_sp64): Use DImode throughout.
5528 (*tldo_ldsw1_sp64): Likewise.
5529 (*tldo_ldx_sp64): Likewise.
5530 (*tldo_stb_sp32): Merge into...
5531 (*tldo_stb_sp64): Likewise.
5532 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
5533 (*tldo_sth_sp32): Merge into...
5534 (*tldo_sth_sp64): Likewise.
5535 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
5536 (*tldo_stw_sp32): Merge into...
5537 (*tldo_stw_sp64): Likewise.
5538 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
5539 (*tldo_stx_sp64): Use DImode throughout.
5541 2018-01-09 Sudakshina Das <sudi.das@arm.com>
5543 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
5544 check configure option to set BTI and Return Address Signing.
5545 * configure.ac: Add --enable-standard-branch-protection and
5546 --disable-standard-branch-protection.
5547 * configure: Regenerated.
5548 * doc/install.texi: Document the same.
5550 2018-01-09 Sudakshina Das <sudi.das@arm.com>
5551 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5553 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
5554 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
5555 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
5557 * config/aarch64/aarch64-bti-insert.c: New file.
5558 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
5560 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
5562 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
5563 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
5564 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
5565 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
5567 2018-01-09 Sudakshina Das <sudi.das@arm.com>
5569 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
5570 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
5571 Disable bti for -mbranch-protection=none.
5572 (aarch64_handle_standard_branch_protection): Enable bti for
5573 -mbranch-protection=standard.
5574 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
5575 -mbranch-protection.
5576 (aarch64_bti_enabled): Check if bti is enabled.
5577 * config/aarch64/aarch64.opt: Declare target variable.
5578 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
5580 2018-01-09 Sudakshina Das <sudi.das@arm.com>
5582 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
5583 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
5584 (aarch64_expand_epilogue): Likewise.
5585 (aarch64_output_mi_thunk): Likewise
5586 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
5587 TAILCALL_ADDR_REGS to x16 and x17.
5588 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
5590 2018-01-09 Sudakshina Das <sudi.das@arm.com>
5592 * config/aarch64/aarch64-option-extensions.def: Define
5593 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
5594 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
5595 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
5596 (AARCH64_FL_PREDRES): New.
5597 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
5598 AARCH64_FL_PREDRES by default.
5599 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
5601 2018-01-09 Sudakshina Das <sudi.das@arm.com>
5603 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
5605 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
5606 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
5607 * doc/invoke.texi: Document ARMv8.5-A.
5609 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
5611 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
5612 (xorsign<mode>3): Likewise.
5614 2019-01-09 Jelinek <jakub@redhat.com>
5617 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
5618 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
5620 PR rtl-optimization/88331
5621 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
5622 not currently_expanding_to_rtl.
5624 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
5626 * doc/invoke.texi (-Os): Remove trailing spaces.
5627 (-finline-functions): Remove reference to -O2.
5629 2019-01-08 Jakub Jelinek <jakub@redhat.com>
5631 PR rtl-optimization/79593
5632 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
5634 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
5635 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
5637 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
5640 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
5644 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
5645 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
5647 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
5650 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
5651 ix86_avx_u128_mode_entry.
5653 2019-01-08 Martin Liska <mliska@suse.cz>
5655 PR tree-optimization/88753
5656 * tree-switch-conversion.c (switch_conversion::build_one_array):
5657 Come up with local variable constructor. Convert first to
5658 type of constructor values.
5660 2019-01-08 Richard Biener <rguenther@suse.de>
5662 PR tree-optimization/86554
5663 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
5664 rpo_avail): Move earlier.
5665 (visit_nary_op): When value-numbering to expressions
5666 with different overflow behavior make sure there's an
5667 available expression on the path.
5669 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
5671 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
5672 aarch64_parse_branch_protection,
5673 struct aarch64_branch_protect_type,
5674 aarch64_handle_no_branch_protection,
5675 aarch64_handle_standard_branch_protection,
5676 aarch64_validate_mbranch_protection,
5677 aarch64_handle_pac_ret_protection,
5678 aarch64_handle_attr_branch_protection,
5679 accepted_branch_protection_string,
5680 aarch64_pac_ret_subtypes,
5681 aarch64_branch_protect_types,
5682 aarch64_handle_pac_ret_leaf): Define.
5683 (aarch64_override_options_after_change_1, aarch64_override_options):
5684 Add check for accepted_branch_protection_string.
5685 (aarch64_option_save): Save accepted_branch_protection_string.
5686 (aarch64_option_restore): Save accepted_branch_protection_string.
5687 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
5688 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
5689 msign-return-address.
5690 * doc/invoke.texi: Add mbranch-protection.
5692 2019-01-08 Alan Modra <amodra@gmail.com>
5695 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
5696 Delete "unknownp" parameter. Adjust callers. Handle
5697 CONST_INT, PLUS, MINUS, and MULT.
5698 (attr_value_aligned): Renamed from or_attr_value.
5699 (min_attr_value): Return INT_MIN for unhandled rtl case..
5700 (min_fn): ..and translate to INT_MAX here.
5701 (write_length_unit_log): Modify to cope without "unknown".
5702 (write_attr_value): Handle IF_THEN_ELSE.
5704 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
5706 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
5707 optimization for masked stores.
5709 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
5712 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
5713 output vector directly to duplicate_and_interleave instead of
5714 going through a temporary. Postpone insertion of ctor_seq to
5715 the end of the loop.
5717 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
5720 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
5721 unsigned_p. Handle signed and unsigned overflow correction as
5723 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
5725 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
5727 (add<mode>3_compareV_imm): Make this callable for expanding.
5728 (subv<GPI:mode>4): Use register_operand for operand 1. Use
5729 aarch64_plus_operand for operand 2.
5730 (subv<GPI:mode>_insn): New insn pattern.
5731 (subv<GPI:mode>_imm): Likewise.
5732 (negv<GPI:mode>3): New expand pattern.
5733 (negv<GPI:mode>_insn): New insn pattern.
5734 (negv<GPI:mode>_cmp_only): Likewise.
5735 (cmpv<GPI:mode>_insn): Likewise.
5736 (subvti4): Use register_operand for operand 1. Update call to
5737 aarch64_expand_subvti.
5738 (usubvti4): Likewise.
5739 (negvti3): New expand pattern.
5740 (negdi_carryout): New insn pattern.
5741 (negvdi_carryinV): New insn pattern.
5742 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
5743 version the named version.
5744 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
5746 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
5748 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
5750 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
5751 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
5752 (sub<mode>3_carryinCV): Delete.
5753 (sub<GPI:mode>3_carryinV): New expand pattern.
5754 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
5756 2019-01-07 Richard Biener <rguenther@suse.de>
5758 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
5759 of tree_operand_hash.
5761 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
5763 PR tree-optimization/88598
5764 * tree.h (single_nonzero_element): Declare.
5765 * tree.c (single_nonzero_element): New function.
5766 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
5767 if I is the only nonzero element of CST.
5769 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
5771 PR tree-optimization/88598
5772 * tree.h (initializer_each_zero_or_onep): Declare.
5773 * tree.c (initializer_each_zero_or_onep): New function.
5774 (signed_or_unsigned_type_for): Handle float types too.
5775 (unsigned_type_for, signed_type_for): Update comments accordingly.
5776 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
5777 x & { 0 or -1, 0 or -1, ... }.
5779 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
5781 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
5782 with x86_64-pc-linux-gnu.
5784 2019-01-07 Tom de Vries <tdevries@suse.de>
5787 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
5789 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
5792 2019-01-07 Jakub Jelinek <jakub@redhat.com>
5794 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
5795 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
5796 TARGET_AVX512F as condition.
5799 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
5800 const_not_ok_for_debug_p target hook.
5801 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
5802 on UNSPEC and subexpressions thereof if all subexpressions of the
5803 UNSPEC are CONSTANT_P.
5805 PR tree-optimization/88676
5806 * tree-ssa-phiopt.c (two_value_replacement): New function.
5807 (tree_ssa_phiopt_worker): Call it.
5810 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
5811 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
5814 * tree-vect-generic.c: Include insn-config.h and recog.h.
5815 (expand_vector_piecewise): Add defaulted ret_type argument,
5816 if non-NULL, use that in preference to type for the result type.
5817 (expand_vector_parallel): Formatting fix.
5818 (do_vec_conversion, do_vec_narrowing_conversion,
5819 expand_vector_conversion): New functions.
5820 (expand_vector_operations_1): Call expand_vector_conversion
5821 for VEC_CONVERT ifn calls.
5822 * internal-fn.def (VEC_CONVERT): New internal function.
5823 * internal-fn.c (expand_VEC_CONVERT): New function.
5824 * fold-const-call.c (fold_const_vec_convert): New function.
5825 (fold_const_call): Use it for CFN_VEC_CONVERT.
5826 * doc/extend.texi (__builtin_convertvector): Document.
5828 2019-01-07 Tom de Vries <tdevries@suse.de>
5830 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
5831 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
5832 vector_red_partition, vector_red_sym): New global variables.
5833 (nvptx_option_override): Initialize vector_red_sym.
5834 (nvptx_declare_function_name): Restore red_partition register.
5835 (nvptx_file_end): Emit code to declare the vector reduction variables.
5836 (nvptx_output_red_partition): New function.
5837 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
5838 large vector reductions.
5839 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
5840 (nvptx_init_builtins): Add VECTOR_ADDR.
5841 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
5842 Handle nvptx_expand_shared_addr.
5843 (nvptx_get_shared_red_addr): Add vector argument and handle large
5845 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
5847 (nvptx_goacc_reduction_init): Likewise.
5848 (nvptx_goacc_reduction_fini): Likewise.
5849 (nvptx_goacc_reduction_teardown): Likewise.
5850 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
5851 init,fini,teardown}.
5852 (nvptx_init_axis_predicate): Initialize vector_red_partition.
5853 (nvptx_set_current_function): Init vector_red_partition.
5854 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
5855 (nvptx_red_partition): New insn.
5856 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
5858 2019-01-07 Tom de Vries <tdevries@suse.de>
5861 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
5864 2019-01-07 Tom de Vries <tdevries@suse.de>
5866 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
5867 (nvptx_option_override): Init oacc_bcast_partition.
5868 (nvptx_init_oacc_workers): New function.
5869 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
5870 (nvptx_needs_shared_bcast): New function.
5871 (nvptx_find_par): Generalize to enable vectors to use shared-memory
5873 (nvptx_shared_propagate): Initialize vector bcast partition and
5874 synchronization state.
5875 (nvptx_single): Generalize to enable vectors to use shared-memory
5877 (nvptx_process_pars): Likewise.
5878 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
5879 * config/nvptx/nvptx.h (struct machine_function): Add
5880 bcast_partition and sync_bar members.
5882 2019-01-07 Tom de Vries <tdevries@suse.de>
5884 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
5885 (nvptx_apply_dim_limits): New function.
5886 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
5889 2019-01-07 Tom de Vries <tdevries@suse.de>
5891 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
5892 as late as possible.
5894 2019-01-07 Tom de Vries <tdevries@suse.de>
5896 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
5897 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
5898 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
5899 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
5900 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
5902 2019-01-07 Tom de Vries <tdevries@suse.de>
5904 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
5906 2019-01-07 Tom de Vries <tdevries@suse.de>
5908 * omp-offload.c (oacc_get_min_dim): New function.
5909 * omp-offload.h (oacc_get_min_dim): Declare.
5911 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
5914 * config/i386/i386.c (function_value_ms_64): Return small sturct in
5915 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
5917 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
5921 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
5923 * ipa-inline.c (edge_badness): Use inlined_time instead of
5924 inline_summaries->get.
5926 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
5928 * opts.c (enable_fdo_optimizations): Enable
5929 version-loops-for-strides, loop-interchange, unrol-and-jam
5930 and tree-loop-distribution.
5931 * invoke.texi: Document newly enabled options.
5933 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
5935 * doc/invoke.texi (max-inline-insns-small): New parameters.
5936 * ipa-inline.c (want_early_inline_function_p): simplify.
5937 (want_inline_small_function_p): Fix pasto from previous patch;
5938 use max-inline-insns-small bound.
5939 * params.def (max-inline-insns-small): New param.
5940 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
5941 variables correctly.
5943 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
5945 * doc/invoke.texi: Document max-inline-insns-size,
5946 uninlined-function-insns, uninlined-function-time,
5947 uninlined-thunk-insns and uninlined-thunk-time.
5948 * params.def: Add max-inline-insns-size,
5949 uninlined-function-insns, uninlined-function-time,
5950 uninlined-thunk-insns and uninlined-thunk-time.
5951 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
5953 * ipa-inline.c (can_inline_edge_by_limits_p,
5954 want_inline_small_function_p): Use new parameters.
5956 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
5958 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
5960 2019-01-05 Jakub Jelinek <jakub@redhat.com>
5964 * expr.c (expand_assignment): For calls returning VLA structures
5965 if to_rtx is not a MEM, force it into a stack temporary.
5968 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
5969 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
5970 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
5971 subexpressions of both operands.
5972 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
5973 subrtxes are CONSTANT_P.
5974 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
5977 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
5979 * params.def (hot-bb-count-ws-permille): Set to 990.
5981 2019-01-04 Martin Sebor <msebor@redhat.com>
5984 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
5987 2019-01-04 Martin Sebor <msebor@redhat.com>
5990 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
5992 2019-01-04 Jakub Jelinek <jakub@redhat.com>
5994 * gdbinit.in: Turn off pagination for the skip commands, restore
5995 it to previous state afterwards.
5997 2019-01-04 Jakub Jelinek <jakub@redhat.com>
6000 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
6001 of GET_MODE (opN) as modes of the libcall arguments.
6003 2019-01-04 Jan Beulich <jbeulich@suse.com>
6005 * config/i386/sse.md
6006 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
6007 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
6008 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
6009 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
6010 avx512f_vmcmp<mode>3<round_saeonly_name>,
6011 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
6012 avx512f_maskcmp<mode>3,
6013 <avx512>_cvt<ssemodesuffix>2mask<mode>,
6014 <avx512>_cvt<ssemodesuffix>2mask<mode>,
6015 *<avx512>_cvtmask2<ssemodesuffix><mode>,
6016 *<avx512>_cvtmask2<ssemodesuffix><mode>,
6017 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
6018 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
6019 <avx512>_gt<mode>3<mask_scalar_merge_name>,
6020 <avx512>_gt<mode>3<mask_scalar_merge_name>,
6021 <avx512>_testm<mode>3<mask_scalar_merge_name>,
6022 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
6023 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
6024 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
6025 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
6026 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
6027 avx512cd_maskb_vec_dup<mode>,
6028 avx512cd_maskw_vec_dup<mode>,
6029 avx512dq_fpclass<mode><mask_scalar_merge_name>,
6030 avx512dq_vmfpclass<mode>,
6031 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
6034 2019-01-03 Martin Sebor <msebor@redhat.com>
6036 PR tree-optimization/88659
6037 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
6039 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
6041 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
6042 unaligned vsx and avoid lxvd2x/stxvd2x.
6043 (gen_lvx_v4si_move): New function.
6045 2019-01-03 Tom de Vries <tdevries@suse.de>
6047 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
6048 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
6050 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
6052 2019-01-03 Tom de Vries <tdevries@suse.de>
6054 * config/nvptx/nvptx.c (struct offload_attrs): New.
6055 (populate_offload_attrs): New function. Factor mask extraction out of
6056 nvptx_reorg. Add extraction of dimensions.
6057 (nvptx_reorg): Use populate_offload_attrs.
6059 2019-01-03 Tom de Vries <tdevries@suse.de>
6061 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
6062 cases for oacc_min_dims_p and routine_p. Add asserts for
6063 oacc_default_dims_p and offload_region_p.
6065 2019-01-03 Tom de Vries <tdevries@suse.de>
6067 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
6069 (nvptx_goacc_validate_dims): ... here.
6071 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
6073 PR tree-optimization/85574
6074 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
6076 (struct ssa_equip_hash_traits): Declare.
6077 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
6079 2019-01-03 Jakub Jelinek <jakub@redhat.com>
6082 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
6083 change it to qualified_type.
6085 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
6087 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
6088 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
6090 2019-01-02 Martin Sebor <msebor@redhat.com>
6091 Jeff Law <law@redhat.com>
6093 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
6094 (get_range_strlen_tree): Update appropriately.
6096 * gimple-fold.h (get_range_strlen): Drop unused last argument.
6098 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
6099 rather than set_range_info.
6100 * tree-ssa-strlen.c (set_strlen_range): Extracted from
6101 maybe_set_strlen_range. Handle potentially boundary crossing
6102 cases more conservatively.
6103 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
6104 Call set_strlen_range.
6105 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
6108 * gimple-fold.c (get_range_strlen): Update prototype to no longer
6109 need the flexp argument.
6110 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
6111 from calls to get_range_strlen. Update comments. Just update
6112 VAL for an unterminated const char array and let the reset of the
6113 code handle it normally. No longer try to set *flexp. Adjust
6115 (get_range_strlen): Update for the new get_range_strlen API.
6116 (get_maxval_strlen): Similarly.
6117 (gimple_fold_builtin_strlen): Handle update meaning of return value
6118 from get_range_strlen.
6119 * gimple-ssa-sprintf.c (get_string_length): Update for the new
6120 get_range_strlen API.
6122 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
6125 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
6126 false at WPA time when body was removed.
6128 2019-01-02 Martin Liska <mliska@suse.cz>
6130 PR tree-optimization/88650
6131 * predict.c (set_even_probabilities): Calculate probability
6132 remainer only when really used.
6134 2019-01-02 Richard Biener <rguenther@suse.de>
6137 * tree-data-ref.c (analyze_subscript_affine_affine): Use
6138 widest_ints when mangling max_stmt_execution results.
6140 2019-01-02 Richard Biener <rguenther@suse.de>
6142 PR tree-optimization/88621
6143 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
6144 bitfields when canoncalizing.
6146 2019-01-02 Richard Biener <rguenther@suse.de>
6149 * config/i386/x86-tune-costs.h (intel_cost): Adjust
6150 cost of cheap SSE instruction.
6152 2019-01-02 Richard Biener <rguenther@suse.de>
6155 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
6156 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
6158 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
6159 set after UIDs before splitting them.
6161 2019-01-01 Martin Sebor <msebor@redhat.com>
6162 Jeff Law <law@redhat.com>
6164 * gimple-fold.c (get_range_strlen_tree): Record if the computed
6165 length is optimistic. If it is, then arrange to compute the
6166 conservative length as well.
6168 * gimple-fold.h (get_range_strlen): Update prototype.
6169 * builtins.c (check_access): Update call to get_range_strlen to use
6170 c_strlen_data pointer. Change various variable accesses to instead
6171 pull data from the c_strlen_data structure.
6172 (check_strncat_sizes, expand_builtin_strncat): Likewise.
6173 * calls.c (maybe_warn_nonstring_arg): Likewise.
6174 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
6175 minimum length if maximum lengh is unknown.
6176 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
6177 that used c_strlen, it's no longer needed. Restructure slightly.
6178 (format_string): Set unlikely range appropriately.
6179 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
6181 (get_range_strlen): Accept c_strlen_data pointer for external
6182 call sites as well. Pass through to call to internal get_range_strlen.
6183 Adjust minlen, maxlen and maxbound as needed.
6184 (get_maxval_strlen): Update comments.
6185 (gimple_fold_builtin_strlen): Update call to get_range_strlen
6186 to use c_strlen_data pointer. Change variable accesses to instead
6187 use c_strlen_data data members.
6189 * gimple-fold.c (get_range_strlen): Update prototype.
6190 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
6191 local variables. Use pdata to return information to caller.
6192 Update calls to get_range_strlen. Update pdata->maxbound.
6193 (get_range_strlen -- static version): Similarly.
6194 (get_range_strlen -- extern version): Update for internal
6195 get_range_strlen API change. Convert to external data format.
6196 (get_maxval_strlen): Similarly.
6198 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
6200 * coverage.c (get_coverage_counts): Use current_function_decl.
6201 * profile.c (read_thunk_profile): New function.
6202 (branch_prob): Add THUNK parameter.
6203 * tree-profile.c (tree_profiling): Handle thunks.
6204 * value-prof.c (init_node_map): Handle thunks.
6205 * value-prof.h (branch_prob): Upate prototype.
6206 (read_thunk_profile): Declare.
6208 2019-01-01 Jakub Jelinek <jakub@redhat.com>
6210 Update copyright years.
6212 * gcc.c (process_command): Update copyright notice dates.
6213 * gcov-dump.c (print_version): Ditto.
6214 * gcov.c (print_version): Ditto.
6215 * gcov-tool.c (print_version): Ditto.
6216 * gengtype.c (create_file): Ditto.
6217 * doc/cpp.texi: Bump @copying's copyright year.
6218 * doc/cppinternals.texi: Ditto.
6219 * doc/gcc.texi: Ditto.
6220 * doc/gccint.texi: Ditto.
6221 * doc/gcov.texi: Ditto.
6222 * doc/install.texi: Ditto.
6223 * doc/invoke.texi: Ditto.
6225 Copyright (C) 2019 Free Software Foundation, Inc.
6227 Copying and distribution of this file, with or without modification,
6228 are permitted in any medium without royalty provided the copyright
6229 notice and this notice are preserved.