1 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
3 * sched-deps.c (sched_macro_fuse_insns): Check return value of
4 targetm.fixed_condition_code_regs.
6 2019-04-05 Richard Biener <rguenther@suse.de>
10 * tree-cfgcleanup.c (remove_forwarder_block): Always move
11 debug bind stmts but reset them if they are not valid at the
14 2019-04-05 Martin Liska <mliska@suse.cz>
17 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
18 order to wrap keywords or arguments.
19 * collect2.c (main): Likewise.
20 (scan_prog_file): Likewise.
21 (scan_libraries): Likewise.
22 * common/config/riscv/riscv-common.c (riscv_subset_list::parsing_subset_version): Likewise.
23 (riscv_subset_list::parse_std_ext): Likewise.
24 * config/aarch64/aarch64.c (aarch64_override_options_internal): Likewise.
25 * config/arm/arm.c (arm_option_override): Likewise.
26 * config/cris/cris.c (cris_print_operand): Likewise.
27 * config/darwin-c.c (darwin_pragma_options): Likewise.
28 (darwin_pragma_unused): Likewise.
29 (darwin_pragma_ms_struct): Likewise.
30 * config/ft32/ft32.c (ft32_print_operand): Likewise.
31 * config/i386/i386.c (print_reg): Likewise.
32 (ix86_print_operand): Likewise.
33 * config/i386/xm-djgpp.h: Likewise.
34 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
35 * config/m32c/m32c.c (m32c_option_override): Likewise.
36 * config/msp430/msp430.c (msp430_option_override): Likewise.
37 * config/nds32/nds32.c (nds32_option_override): Likewise.
38 * config/nvptx/mkoffload.c (main): Likewise.
39 * config/rx/rx.c (rx_print_operand): Likewise.
40 (valid_psw_flag): Likewise.
41 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
42 (vms_pragma_nomember_alignment): Likewise.
43 (vms_pragma_extern_model): Likewise.
44 * lto-wrapper.c (compile_offload_image): Likewise.
45 * omp-offload.c (oacc_parse_default_dims): Likewise.
46 * symtab.c (symtab_node::verify_base): Likewise.
47 * tlink.c (recompile_files): Likewise.
48 (start_tweaking): Likewise.
49 * tree-profile.c (parse_profile_filter): Likewise.
51 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
53 PR tree-optimization/89956
54 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
55 multiple negates of the same value.
57 2019-04-04 Martin Sebor <msebor@redhat.com>
61 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
62 have the same precision since the function crashes otherwise.
63 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
64 has non-zero arguments.
66 2019-04-04 Martin Sebor <msebor@redhat.com>
69 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
70 out if the number of arguments is less than expected.
72 2019-04-04 Jeff Law <law@redhat.com>
74 PR rtl-optimization/89399
75 * ree.c (combine_set_extension): Use single_set rather than
76 digging into PATTERN for items on the candidate list.
77 (combine_reaching_defs): Likewise.
79 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
81 PR rtl-optimization/46590
82 * loop-invariant.c (find_defs): Move df_remove_problem and
83 df_process_deferred_rescans to move_invariants.
84 Move df_live_add_problem and df_live_set_all_dirty calls
86 (move_invariants): Likewise.
87 (move_loop_invariants): Likewise, making the df_live calls
88 conditional on -O. Remove the problem again if we added it
91 2019-04-03 qing zhao <qing.zhao@oracle.com>
93 PR tree-optimization/89730
94 * ipa-inline.c (can_inline_edge_p): Delete the checking for
95 -flive-patching=inline-only-static.
96 (can_inline_edge_by_limits_p): Add the checking for
97 -flive-patching=inline-only-static and grant always_inline
98 even when -flive-patching=inline-only-static is specified.
100 2019-04-03 Jeff Law <law@redhat.com>
102 PR rtl-optimization/81025
103 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
105 2019-04-03 Richard Biener <rguenther@suse.de>
107 PR tree-optimization/84101
108 * tree-vect-stmts.c: Include explow.h for hard_function_value,
109 regs.h for hard_regno_nregs.
110 (cfun_returns): New helper.
111 (vect_model_store_cost): When vectorizing a store to a decl
112 we return and the function ABI returns in a multi-reg location
113 account for the possible spilling that will happen.
115 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
117 * config/s390/s390.c (s390_legitimate_address_p): Reject long
118 displacement addresses for vector mode operands.
120 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
122 * config/arc/arc.c (GMASK_LEN): Define.
123 (arc_restore_callee_saves): Restore first blink when
126 2019-04-03 Sudakshina Das <sudi.das@arm.com>
128 * doc/extend.texi: Add deprecated comment on sign-return-address
129 function attribute and add mbranch-protection.
130 * doc/invoke.texi: Add bti to the options for mbranch-protection.
132 2019-04-03 Richard Biener <rguenther@suse.de>
135 * lto-wrapper.c (run_gcc): Avoid implicit rules making
136 the all target phony.
138 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
142 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
143 Return false for variable DImode shifts.
144 (dimode_scalar_chain::compute_convert_gain): Do not handle
145 register count operand in variable DImode shifts.
146 (dimode_scalar_chain::make_vector_copies): Remove support to copy
147 count argument of a variable shift instruction to a vector register.
148 (dimode_scalar_chain::convert_reg): Remove support to convert
149 count argument of a variable shift instruction.
151 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
153 PR rtl-optimization/84206
154 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
155 iterating over loop headers.
157 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
159 PR rtl-optimization/85876
160 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
161 beyond the original fence.
163 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
165 * config.gcc: Mark spu* targets as deprecated/obsolete.
167 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
169 * config/s390/s390-builtin-types.def: New builtin function type
170 definitions. Remove unused types.
171 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
172 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
173 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
175 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
176 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
177 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
178 (vec_double, vec_signed, vec_unsigned): Define to use the new
180 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
183 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
185 * config/s390/s390-builtin-types.def: New builtin function type
187 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
188 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
189 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
190 (s390_vstrszh, s390_vstrszf): New low-level builtins.
191 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
192 constant definitions.
193 * config/s390/vecintrin.h (vec_search_string_cc)
194 (vec_search_string_until_zero_cc): New builtin name definitions.
195 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
197 ("vec_vstrs<mode>"): New insn definition.
199 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
201 * config/s390/s390-builtin-types.def: Add new builtin function
203 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
204 New overloaded builtins.
205 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
207 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
208 (UNSPEC_VEC_SLDBYTE): ... this.
209 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
210 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
212 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
213 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
214 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
216 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
218 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
220 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
221 * config/s390/vector.md (V_HW_HSD): ... here.
223 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
225 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
226 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
227 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
228 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
229 New insn definitions.
231 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
233 * config/s390/s390-builtin-types.def: Add new builtin function type.
234 * config/s390/s390-builtins.def: Add overloaded builtin
235 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
236 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
237 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
238 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
239 ("eltswap<mode>"): New expander.
240 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
243 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
245 * config/s390/s390-builtin-types.def: Add new builtin function types.
246 * config/s390/s390-builtins.def: Add overloaded builtin
247 s390_vec_revb. Add low-level builtins for vlbr and vstbr
249 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
250 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
251 ("bswap<mode>"): New expander.
252 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
254 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
256 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
257 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
258 vector builtin version number in __VEC__.
260 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
262 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
264 (SFSI): New mode attribute.
265 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
266 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
268 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
269 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
270 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
271 ("floatsi<mode>2"): Add wcefb instruction.
273 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
275 * config/s390/s390.md ("xde"): Extend mode attribute to vector
277 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
279 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
280 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
281 support 32 bit fp-int conversions. Rename to ...
282 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
283 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
284 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
285 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
288 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
290 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
291 if-then-else constructs if we can use the select instruction.
292 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
294 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
296 * config/s390/s390.md ("*popcountdi_arch13_cc")
297 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
299 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
300 Append _z196 to make it ...
301 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
302 ("popcounthi2_z196"): ... this.
303 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
304 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
306 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
308 * config/s390/s390.c (s390_canonicalize_comparison): Convert
309 certain compares for arch13 in order to make use of the condition
310 code result produced by the new instructions.
311 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
312 nxrk, and nxgrk instruction patterns.
313 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
314 (inv_no): Add new code iterator together with some attributes.
315 ("*andc_split_<mode>"): Disable splitter for arch13.
316 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
317 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
318 ("*<ANDOR:bitops_name>c<GPR:mode>")
319 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
320 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
321 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
322 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
324 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
326 * common/config/s390/s390-common.c (processor_flags_table): New
328 * config.gcc: Support arch13 with the --with-arch= configure flag.
329 * config/s390/driver-native.c (s390_host_detect_local_cpu):
330 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
331 * config/s390/s390.c (s390_get_sched_attrmask)
332 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
333 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
334 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
335 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
336 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
338 * config/s390/s390.opt: Support arch13 as processor type in
339 command line options.
341 2019-04-02 Martin Liska <mliska@suse.cz>
344 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
345 Fix param description of graphite-max-arrays-per-scop.
347 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
349 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
350 (ASAN_CC1_SPEC): Use it in 64-bit mode.
351 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
353 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
355 PR rtl-optimization/85412
356 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
357 sel_sched_region_1, not after.
359 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
361 PR rtl-optimization/86928
362 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
363 compute_live if necessary.
364 (sel_redirect_edge_and_branch): Likewise.
366 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
368 PR rtl-optimization/89865
369 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
370 register if it is a part of small class.
372 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
374 PR rtl-optimization/87273
375 * sel-sched-ir.c (merge_fences): Remove assert.
377 2019-04-01 Richard Biener <rguenther@suse.de>
379 PR tree-optimization/46590
380 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
381 (dom_walker::m_reachability): Add in place of...
382 (dom_walker::m_skip_unreachable_blocks): ...this.
383 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
384 Move complex initialization ...
385 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
386 lazily and initialize edge flags on each invocation.
387 (dom_walker::bb_reachable): Use m_reachability.
389 2019-04-01 Martin Liska <mliska@suse.cz>
392 * opt-suggestions.c (option_proposer::build_option_suggestions):
393 Add variant without any argument in order to provide better
396 2019-04-01 Richard Biener <rguenther@suse.de>
399 * gimple.c: Include langhooks.h.
400 (gimple_get_alias_set): Treat enumeral types as the underlying
403 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
404 Eric Botcazou <ebotcazou@adacore.com>
406 PR rtl-optimization/89862
407 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
408 that operates on the full registers for WORD_REGISTER_OPERATIONS
411 2019-03-29 Jim Wilson <jimw@sifive.com>
413 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
414 Clear MASK_RVC and then set if C subset supported.
416 2019-03-29 Jakub Jelinek <jakub@redhat.com>
419 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
420 non-addressable complit into its initializer if it is volatile.
422 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
424 * opts-common.c (integral_argument): Set errno properly in one case.
426 2019-03-29 Martin Liska <mliska@suse.cz>
428 * doc/invoke.texi: Remove -Wchkp from documentation.
430 2019-03-29 Martin Liska <mliska@suse.cz>
432 * dbgcnt.c (print_limit_reach): New function.
435 2019-03-29 Martin Liska <mliska@suse.cz>
437 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
438 (dbg_cnt_process_opt): Parse first tokens aas
439 dbg_cnt_process_single_pair is also using strtok.
441 2019-03-29 Jakub Jelinek <jakub@redhat.com>
443 PR rtl-optimization/87485
444 * function.c (expand_function_end): Move stack_protect_epilogue
445 before loading of return value into hard register(s).
447 2019-03-28 Jakub Jelinek <jakub@redhat.com>
450 * tree-inline.h (struct copy_body_data): Add
451 dont_remap_vla_if_no_change flag.
452 * tree-inline.c (remap_type_3, remap_type_2): New functions.
453 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
454 and remap_type_2 returns false.
455 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
456 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
457 only from where it is copied to nested contexts.
459 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
462 * config/i386/i386.md (RMW operation with LEA peephole):
463 Use LEAMODE mode attribute instead of SWI mode iterator for
466 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
469 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
470 Also process XEXP (src, 0) of a shift insn.
472 2019-03-28 David Malcolm <dmalcolm@redhat.com>
475 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
476 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
478 2019-03-28 Jakub Jelinek <jakub@redhat.com>
480 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
482 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
483 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
484 immediately after first one with df_analyze in between, but rather
485 process all bbs, queueing ones that need second pass in a worklist,
486 df_analyze, process queued debug insn changes and if second pass is
487 needed, process bbs from worklist, df_analyze, process queued debug
490 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
491 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
492 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
494 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
497 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
500 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
503 * config/i386/i386.c (ix86_function_value_1): Call the newly added
504 function for 32-bit MS_ABI.
505 (function_value_ms_32): New function.
507 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
509 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
510 (movdi): Call gen_movdi_symbol_save_scc.
511 (gen_movdi_symbol_save_scc): New insn and split.
513 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
515 PR rtl-optimization/89313
516 * function.c (matching_constraint_num): New static function.
517 (match_asm_constraints_1): Use it. Fixup white space and comment.
518 Don't replace inputs with non-matching constraints which conflict
519 with early clobber outputs.
521 2019-03-27 Jeff Law <law@redhat.com>
524 PR rtl-optimization/87761
525 PR rtl-optimization/89826
526 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
528 (pass_cprop_hardreg::execute): Call df_analyze after adding the
529 note problem to get REG_DEAD/REG_UNUSED notes updated.
531 2019-03-27 Richard Biener <rguenther@suse.de>
533 PR tree-optimization/89463
534 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
535 queue edges to remove.
536 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
537 dead stmts. Delay edge removal until PHIs are removed to
538 make debug-stmt creation not confused by seemingly degenerate
541 2019-03-27 Alan Modra <amodra@gmail.com>
543 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
545 * config/rs6000/darwin.h: Likewise.
546 * config/rs6000/rs6000.c: Likewise.
548 2019-03-27 Alan Modra <amodra@gmail.com>
550 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
551 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
553 2019-03-26 Andrew Waterman <andrew@sifive.com>
554 Jim Wilson <jimw@sifive.com>
556 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
557 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
558 (generic_idivdi, generic_fmul_single, generic_fmul_double)
559 (generic_fdiv, generic_fsqrt): Add check for generic tune.
560 (generic_alu): Add auipc to type list.
561 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
562 (riscv_microarchitecture): Declare.
563 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
564 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
566 (riscv_microarchitecture): New.
567 (sifive_7_tune_info): New.
568 (riscv_cpu_info_table): Add microarchitecture value for rocket and
569 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
571 (riscv_store_data_bypass_p): New.
572 (riscv_option_override): Set riscv_microarchitecture from
573 cpu->microarchitecture.
574 * config/riscv/riscv.md: Include sifive-7.md.
577 (auipc<mode>): Change type to auipc.
578 (restore_stack_nonlocal): New.
579 * config/riscv/sifive-7.md: New.
580 * doc/invoke.texi (RISC-V Options): Update mtune docs.
582 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
585 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
586 Also process XEXP (src, 0) of a shift insn.
588 2019-03-26 Richard Biener <rguenther@suse.de>
590 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
591 (copy_debug_stmt): Likewise.
592 (expand_call_inline): Likewise.
593 (copy_bb): Avoid redundant lookup & set of gimple_block.
594 * gimple-low.c (lower_gimple_return): Likewise.
595 (lower_builtin_setjmp): Likewise.
597 2019-03-26 Jakub Jelinek <jakub@redhat.com>
599 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
600 is constant 0, turn into static const data member initialized to false.
601 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
602 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
604 2019-03-26 Jason Merrill <jason@redhat.com>
605 Jakub Jelinek <jakub@redhat.com>
607 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
609 (mem_alloc_description::release_object_overhead): Fix comment typos.
610 * hash-table.h (hash_table::~hash_table): Call
611 release_instance_overhead only if m_entries is non-NULL, otherwise
612 call unregister_descriptor.
614 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
616 PR tree-optimization/81740
617 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
618 In case of outer loop vectorization, check for backward dependence
619 at the inner loop if outer loop dependence is reversed.
621 2019-03-26 Alan Modra <amodra@gmail.com>
623 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
624 rs6000_vector_mem init. Correct wI and wJ comment.
626 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
628 PR rtl-optimization/88347
629 PR rtl-optimization/88423
630 * sched-deps.c (sched_analyze_insn): Take into account that for
631 tablejumps the barrier appears after a label and a jump_table_data.
633 2019-03-25 Martin Sebor <msebor@redhat.com>
636 * c-common.c (check_user_alignment): Rename local. Correct maximum
637 alignment in diagnostic. Avoid assuming argument fits in SHWI,
638 convert it to UHWI when it fits.
640 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
643 * dwarf2out.c (premark_used_variables): New function.
644 (prune_unused_types_walk): Do not mark not premarked external
646 (prune_unused_types): Call premark_used_variables.
648 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
650 PR rtl-optimization/89676
651 * lra-constraints.c (curr_insn_transform): Do match reload for
652 early clobbers when the match was successful only for different
655 2019-03-25 Martin Sebor <msebor@redhat.com>
657 * doc/extend.texi (Common Type Attributes): Document vector_size.
658 (Common Variable Attributes): Mention size constraint. Correct
660 (Vector Extensions): Use @dfn when defining bas type. Clarify
661 base type and size constraints.
663 2019-03-25 Richard Biener <rguenther@suse.de>
665 PR tree-optimization/89789
666 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
667 changes from non-undefined back to undefined.
669 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
671 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
672 heap string and a gc string, but since this variable is unknown to
673 ggc the gc string might get reused and corrupted. Fixed by always
676 2019-03-25 Richard Biener <rguenther@suse.de>
678 PR tree-optimization/89779
679 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
680 to remove IV defs, delay actual removal.
681 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
682 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
683 very end, properly also reset loop control IV information.
685 2019-03-25 Richard Biener <rguenther@suse.de>
687 PR tree-optimization/89802
688 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
689 move EH data to folded stmt.
691 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
693 * config/s390/s390-builtin-types.def: Remove few unused types and
694 fix sort order for others.
696 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
698 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
699 expected and found types with -mdebug during builtin matching.
701 2019-03-25 Richard Biener <rguenther@suse.de>
704 * fold-const.c (operand_equal_p): Revert last change with
707 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
709 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
710 notes for the result of the __tls_get_addr calls.
711 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
713 2019-03-24 Jeff Law <law@redhat.com>
715 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
717 PR rtl-optimization/87761
718 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
719 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
721 (pass_cprop_hardreg::execute): Add df note problem and defer insn
722 rescans. Reprocess blocks as needed, calling df_analyze before
723 reprocessing. Always call df_analyze before fixing up debug bind
726 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
728 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
731 2019-03-22 Andrew Pinski <apinski@marvell.com>
733 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
736 2019-03-26 Jeff Law <law@redhat.com>
738 PR rtl-optimization/87761
739 * config/mips/mips-protos.h (mips_split_move): Add new argument.
740 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
741 (mips_split_move): Accept new INSN argument. Try to forward SRC
742 into the next instruction.
743 (mips_split_move_insn): Pass INSN through to mips_split_move.
745 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
747 PR rtl-optimization/89676
748 * lra-constraints.c (curr_insn_transform): Do match reload for
749 early clobbers even if the match was successful.
751 2019-03-22 Jakub Jelinek <jakub@redhat.com>
754 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
756 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
758 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
760 2019-03-22 Jakub Jelinek <jakub@redhat.com>
762 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
763 <avx512>_fmsub_<mode>_mask3<round_name>,
764 <avx512>_fnmadd_<mode>_mask3<round_name>,
765 <avx512>_fnmsub_<mode>_mask3<round_name>,
766 avx512f_vmfmadd_<mode>_mask3<round_name>,
767 avx512f_vmfmsub_<mode>_mask3<round_name>,
768 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
769 instead of register_operand and %v instead of v for match_operand 1.
770 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
771 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
772 <round_nimm_predicate> instead of register_operand and %v instead of v
775 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
776 <avx512>_fmadd_<mode>_mask3<round_name>,
777 <avx512>_fmsub_<mode>_mask<round_name>,
778 <avx512>_fmsub_<mode>_mask3<round_name>,
779 <avx512>_fnmadd_<mode>_mask<round_name>,
780 <avx512>_fnmadd_<mode>_mask3<round_name>,
781 <avx512>_fnmsub_<mode>_mask<round_name>,
782 <avx512>_fnmsub_<mode>_mask3<round_name>,
783 <avx512>_fmaddsub_<mode>_mask<round_name>,
784 <avx512>_fmaddsub_<mode>_mask3<round_name>,
785 <avx512>_fmsubadd_<mode>_mask<round_name>,
786 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
787 <round_nimm_predicate> instead of nonimmediate_operand.
788 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
789 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
790 Use register_operand instead of <round_nimm_predicate> for the
791 operand that needs to match output.
792 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
793 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
794 Likewise. Formatting fixes.
797 * config/i386/i386.c (enum ix86_builtins): Remove
798 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
799 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
800 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
801 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
802 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
803 __builtin_ia32_vfmsubss3_mask3): New builtins.
804 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
805 avx512f_vmfmadd_<mode>_mask3<round_name>,
806 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
807 *avx512f_vmfmsub_<mode>_mask<round_name>,
808 avx512f_vmfmsub_<mode>_mask3<round_name>,
809 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
810 *avx512f_vmfnmadd_<mode>_mask<round_name>,
811 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
812 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
813 *avx512f_vmfnmsub_<mode>_mask<round_name>,
814 avx512f_vmfnmsub_<mode>_mask3<round_name>,
815 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
816 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
817 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
818 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
819 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
820 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
821 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
822 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
823 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
824 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
825 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
826 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
827 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
828 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
829 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
830 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
831 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
832 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
833 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
834 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
835 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
836 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
838 2019-03-21 Martin Sebor <msebor@redhat.com>
840 PR tree-optimization/89350
841 * builtins.c (compute_objsize): Also ignore offsets whose upper
843 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
844 (builtin_memref::builtin_memref): Initialize new member.
845 Allow EXPR to be null.
846 (builtin_memref::extend_offset_range): Replace local with a member.
847 Avoid assuming pointer offsets are unsigned.
848 (builtin_memref::set_base_and_offset): Determine base object
849 before computing offset range.
850 (builtin_access::builtin_access): Handle memset.
851 (builtin_access::generic_overlap): Replace local with a member.
852 (builtin_access::strcat_overlap): Same.
853 (builtin_access::overlap): Same.
854 (maybe_diag_overlap): Same.
855 (maybe_diag_access_bounds): Same.
856 (wrestrict_dom_walker::check_call): Handle memset.
857 (check_bounds_or_overlap): Same.
859 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
860 Jakub Jelinek <jakub@redhat.com>
863 * tree.c (fld_type_variant, fld_incomplete_type_of,
864 fld_process_array_type): Call fld->pset.add and don't call
865 add_tree_to_fld_list if it returns true.
866 (free_lang_data_in_type): Similarly with self-recursive call. Purge
867 non-marked types from TYPE_NEXT_VARIANT list.
868 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
870 2019-03-21 Jakub Jelinek <jakub@redhat.com>
872 * hash-table.h (hash_table): Add Lazy template parameter defaulted
873 to false, if true, don't alloc_entries during construction, but defer
874 it to the first method that needs m_entries allocated.
875 (hash_table::hash_table, hash_table::~hash_table,
876 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
877 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
878 hash_table::clear_slot, hash_table::traverse_noresize,
879 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
880 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
882 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
883 NO_INSERT instead of find_with_hash.
884 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
885 hash_set::m_table): Add Lazy to template params of hash_table.
886 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
887 * attribs.c (test_attribute_exclusions): Likewise.
888 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
889 hash_set. Add tests for hash_set with Lazy = true.
891 2019-03-21 Richard Biener <rguenther@suse.de>
893 PR tree-optimization/89779
894 * tree.c (tree_nop_conversion): Consolidate and fix defensive
895 checks with respect to released SSA names now having error_mark_node
897 * fold-const.c (operand_equal_p): Likewise.
899 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
902 * config/s390/s390.c (global_not_special_regno_p): Move to make it
904 (s390_optimize_register_info): Use global_not_special_regno_p to
905 check for global regs.
907 2019-03-20 Jakub Jelinek <jakub@redhat.com>
910 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
911 update this_alternative nor this_alternative_set.
913 2019-03-19 Jim Wilson <jimw@sifive.com>
916 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
917 align, size, offset. Use them to handle a BLKmode reference. Update
919 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
921 2019-03-19 Jakub Jelinek <jakub@redhat.com>
923 PR rtl-optimization/89768
924 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
926 (unroll_loop_runtime_iterations): Likewise.
928 2019-03-19 Martin Sebor <msebor@redhat.com>
930 PR tree-optimization/89644
931 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
932 rather than endptr as an indicator of nul-termination.
934 PR tree-optimization/89644
935 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
936 arrays in determining sequence sizes in strncpy and stpncpy.
938 2019-03-19 Martin Liska <mliska@suse.cz>
941 * predict.c (combine_predictions_for_bb): Empty likely_edges and
942 unlikely_edges if there's an edge that belongs to both these sets.
944 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
947 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
948 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
949 go via a stack temporary.
951 2019-03-19 Jakub Jelinek <jakub@redhat.com>
954 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
955 instead of gen_rtx_SUBREG.
956 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
958 2019-03-19 Richard Biener <rguenther@suse.de>
961 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
963 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
967 * tree.c (free_lang_data_in_decl): Do not free context of C++
970 2019-03-19 Jakub Jelinek <jakub@redhat.com>
973 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
974 subs for the first alternative except when operands[3] is 1.
977 * gimplify.c (gimplify_asm_expr): For output argument with
978 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
981 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
983 PR rtl-optimization/89753
984 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
985 explicit unrolling factor even more robust.
987 2019-03-19 Jakub Jelinek <jakub@redhat.com>
990 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
991 compensation use x2 += 1 instead of x2 -= -1 and when honoring
992 signed zeros, do another copysign after the compensation.
994 2019-03-18 Martin Sebor <msebor@redhat.com>
996 PR tree-optimization/89720
997 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
998 more conservatively, the same as anti-range.
1000 2019-03-18 Richard Biener <rguenther@suse.de>
1003 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
1004 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
1005 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
1006 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
1008 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
1010 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
1011 Extend queue to 1024 entries.
1012 Add "consumed" field.
1013 (gomp_print_output): Remove print_index parameter.
1014 Add final parameter.
1015 Change limit to unsigned.
1016 Use consumed field to implement circular buffer.
1017 Detect interrupted print in final pass.
1018 Flush output at the end.
1019 (run): Update gomp_print_output usage.
1020 (main): Initialize kernargs->output_data.consumed.
1022 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
1024 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
1025 calculation of the minimum number of scalar iterations for
1026 fully-predicated loops.
1028 2019-03-18 Martin Jambor <mjambor@suse.cz>
1030 PR tree-optimization/89546
1031 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
1032 any propagation to its children took place.
1034 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
1037 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
1038 parameter, and make use of it.
1039 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
1041 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
1043 * config/arc/arc.opt (mcode-density-frame): Get the inital value
1044 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
1045 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
1046 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
1047 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
1048 match what the ops is doing.
1049 (push_multi_fp_blink): Likewise.
1050 * config/arc/arc.c (arc_override_options): Enable enter/leave when
1051 compiling for size and elf target.
1052 (arc_save_callee_enter): Adjust note to match what enter/leave
1055 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
1057 * config/arc/arc.md (tst_movb): Fix constraint.
1059 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
1061 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
1063 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
1065 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
1066 * config/arc/arc.c (arc_conditional_register_usage): Remove all
1067 reg_alloc_order references.
1068 (size_alloc_order): Define.
1069 (arc_adjust_reg_alloc_order): New function.
1070 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
1072 (ADJUST_REG_ALLOC_ORDER): Define.
1073 (HONOR_REG_ALLOC_ORDER): Likewise.
1075 2019-03-18 Richard Biener <rguenther@suse.de>
1078 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
1079 loads and stores a bit more.
1081 2019-03-18 Richard Biener <rguenther@suse.de>
1084 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
1085 load pessimization to stores as well.
1087 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
1090 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
1091 successor, use NULL as its av set.
1093 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
1095 PR rtl-optimization/89721
1096 * lra-constraints (invariant_p): Return false if side_effects_p holds.
1098 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
1101 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1102 When handling vec_extract, use modular arithmetic to allow
1103 constant selectors greater than vector length.
1104 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
1105 V1TImode vectors to have constant selector values greater than 0.
1106 Use modular arithmetic to compute vector index.
1107 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
1108 index for in-memory vectors. Correct code generation for
1109 in-register vectors.
1110 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
1113 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
1117 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
1120 2019-03-15 Jakub Jelinek <jakub@redhat.com>
1123 * tree.c (inchash::add_expr): Strip any location wrappers.
1124 * fold-const.c (operand_equal_p): Move stripping of location wrapper
1125 after hash verification.
1128 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
1129 SIGN_EXTEND and ZERO_EXTEND.
1131 2019-03-14 Jason Merrill <jason@redhat.com>
1132 Jakub Jelinek <jakub@redhat.com>
1134 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
1135 than if is_empty (*slot).
1136 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
1137 existing elt and for elt removal.
1138 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
1139 of already removed elt.
1141 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
1144 * config/i386/i386.c (remove_partial_avx_dependency): Handle
1147 2019-03-14 Martin Liska <mliska@suse.cz>
1150 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
1152 2019-03-14 Richard Biener <rguenther@suse.de>
1155 * config/i386/i386.c (make_resolver_func): Properly set
1156 DECL_CONTEXT on the RESULT_DECL.
1157 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
1159 2019-03-14 Richard Biener <rguenther@suse.de>
1161 * gimple-pretty-print.c: Include cfgloop.h.
1162 (dump_gimple_phi): Adjust.
1163 (dump_gimple_bb_header): Dump loop header for GIMPLE.
1164 (pp_cfg_jump): Adjust.
1165 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
1166 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
1167 (lower_phi_internal_fn): Remove.
1168 (verify_gimple_call): Remove IFN_PHI special-casing.
1169 (dump_function_to_file): Dump IL state.
1170 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
1171 done to deal with PHI nodes being present in non-SSA state.
1173 2019-03-14 Jakub Jelinek <jakub@redhat.com>
1176 * multiple_target.c (create_dispatcher_calls): Change
1177 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
1178 In the node->iterate_referring loop, push *ref rather than ref, call
1179 ref->remove_reference () and always pass 0 to iterate_referring.
1181 PR rtl-optimization/89679
1182 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
1183 would contain a paradoxical SUBREG.
1185 2019-03-14 Richard Biener <rguenther@suse.de>
1187 PR tree-optimization/89710
1188 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
1191 2019-03-14 Martin Liska <mliska@suse.cz>
1193 * coverage.c (coverage_begin_function): Stream also
1195 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
1196 documentation about function declaration location.
1197 * gcov-dump.c (tag_function): Print whole range
1198 of function declaration.
1199 * gcov.c (struct function_info): Add end_column field.
1200 (function_info::function_info): Initialize it.
1201 (output_json_intermediate_file): Output {start,end}_column
1203 (read_graph_file): Read end_column.
1205 2019-03-14 Richard Biener <rguenther@suse.de>
1208 * fold-const.c (operand_equal_p): For INDIRECT_REF check
1209 that the access types are similar.
1211 2019-03-14 Jakub Jelinek <jakub@redhat.com>
1213 PR tree-optimization/89703
1214 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
1215 aren't compatible also with builtin_decl_explicit. Check pure
1216 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
1217 and BUILT_IN_STPNCPY{,_CHK}.
1219 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
1222 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
1223 addr32 prefix to VSIB address for X32.
1224 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
1226 (*avx512pf_gatherpf<mode>df_mask): Likewise.
1227 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
1228 (*avx512pf_scatterpf<mode>df_mask): Likewise.
1229 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
1230 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
1231 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
1232 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
1233 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
1234 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
1235 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
1236 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
1237 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
1238 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
1239 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
1240 (*avx512f_scatterdi<mode>): Likewise.
1242 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
1245 * lra-constraints.c (inherit_in_ebb): Update
1246 potential_reload_hard_regs along with live_hard_regs.
1248 2019-03-13 Jakub Jelinek <jakub@redhat.com>
1251 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
1253 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
1255 2019-03-13 Martin Sebor <msebor@redhat.com>
1257 PR tree-optimization/89662
1258 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
1261 2019-03-13 Richard Biener <rguenther@suse.de>
1264 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
1265 throw FP expressions at tree-affine.
1267 2019-03-14 Richard Biener <rguenther@suse.de>
1269 * tree-pretty-print.c (dump_generic_node): For -gimple properly
1270 dump negative integer constants using _Literal (type) -num.
1272 2019-03-13 Jakub Jelinek <jakub@redhat.com>
1274 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
1275 nonlocal_value member.
1278 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
1279 (ipa_simd_modify_function_body): Handle PHIs.
1281 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
1283 * config/s390/s390.c (s390_option_override_internal): Use more
1284 aggressive inlining parameters.
1286 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
1288 * config/s390/3906.md: New file.
1289 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
1290 (LONGRUNNING_THRESHOLD): Remove.
1291 (MAX_SCHED_MIX_SCORE): Decrease.
1292 (MAX_SCHED_MIX_DISTANCE): Decrease.
1293 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
1294 (struct s390_sched_state): New struct to hold scheduling state.
1295 (S390_SCHED_STATE_NORMAL): Remove.
1296 (S390_SCHED_STATE_CRACKED): Remove.
1297 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
1298 (s390_get_sched_attrmask): Use new attribute.
1299 (s390_get_unit_mask): Use new units.
1300 (s390_is_fpd): New function.
1301 (s390_is_fxd): New function.
1302 (s390_is_longrunning): New function.
1303 (s390_sched_score): Use new functions.
1304 (s390_sched_reorder): Likewise.
1305 (s390_sched_variable_issue): Rework and use new functions.
1306 (s390_sched_init): Use new functions.
1307 * config/s390/s390.h (s390_tune_attr): Add z14.
1308 * config/s390/s390.md: Add z14.
1310 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
1312 * config/s390/2964.md: Update pipeline description.
1313 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
1314 (LONGRUNNING_THRESHOLD): Remove.
1315 (LATENCY_FACTOR): Remove.
1316 (s390_get_unit_mask): Add unit.
1317 (s390_sched_score): Use fxd/fpd.
1318 (s390_sched_variable_issue): Use fxd/fpd.
1320 2019-03-12 Martin Liska <mliska@suse.cz>
1322 * config/i386/i386.c: Reword an error message.
1324 2019-03-12 Martin Jambor <mjambor@suse.cz>
1326 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
1327 terminate with newline.
1329 2019-03-12 Jakub Jelinek <jakub@redhat.com>
1332 * config/s390/s390.md (tabort): Use %wd instead of
1333 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
1334 letters and periods.
1335 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
1336 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
1340 * builtins.c (expand_builtin_int_roundingfn,
1341 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
1342 gcc_unreachable if validate_arglist fails.
1344 2019-03-12 Richard Biener <rguenther@suse.de>
1346 PR tree-optimization/89664
1347 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
1348 free the occurance tree after the early out.
1350 2019-03-11 Jakub Jelinek <jakub@redhat.com>
1354 * vr-values.c (vr_values::update_value_range): If
1355 old_vr->varying_p (), don't update it, make new_vr also VARYING
1358 2019-03-11 Martin Liska <mliska@suse.cz>
1360 * config/aarch64/aarch64.c (aarch64_override_options_internal):
1361 Fix double string quoting.
1363 2019-03-11 Martin Liska <mliska@suse.cz>
1365 * collect-utils.c (collect_wait): Wrap apostrophes
1366 in gcc internal format with %'.
1367 * collect2.c (main): Likewise.
1368 (scan_prog_file): Likewise.
1369 (scan_libraries): Likewise.
1370 * config/i386/i386.c (ix86_expand_call): Likewise.
1371 (ix86_handle_interrupt_attribute): Likewise.
1372 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
1373 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
1374 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
1375 * lto-wrapper.c (find_crtoffloadtable): Likewise.
1376 * symtab.c (symtab_node::verify_base): Likewise.
1377 * tree-cfg.c (verify_gimple_label): Likewise.
1378 * tree.c (verify_type_variant): Likewise.
1380 2019-03-11 Martin Liska <mliska@suse.cz>
1382 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
1383 in a string format message and fix GNU coding style.
1384 (expand_builtin_set_thread_pointer): Likewise.
1385 * common/config/aarch64/aarch64-common.c (aarch64_rewrite_selected_cpu): Likewise.
1386 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
1387 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
1388 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
1389 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
1390 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
1391 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
1392 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
1393 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
1394 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
1395 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option): Likewise.
1396 * common/config/riscv/riscv-common.c (riscv_subset_list::parsing_subset_version): Likewise.
1397 (riscv_subset_list::parse_std_ext): Likewise.
1398 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
1399 (riscv_subset_list::parse): Likewise.
1400 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
1401 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
1402 (aarch64_override_options_internal): Likewise.
1403 (aarch64_validate_mcpu): Likewise.
1404 (aarch64_validate_march): Likewise.
1405 (aarch64_validate_mtune): Likewise.
1406 (aarch64_override_options): Likewise.
1407 * config/alpha/alpha.c (alpha_option_override): Likewise.
1408 * config/arc/arc.c (arc_init): Likewise.
1409 (parse_mrgf_banked_regs_option): Likewise.
1410 (arc_override_options): Likewise.
1411 (arc_expand_builtin_aligned): Likewise.
1412 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
1413 (arm_expand_builtin): Likewise.
1414 * config/arm/arm.c (arm_option_check_internal): Likewise.
1415 (arm_configure_build_target): Likewise.
1416 (arm_option_override): Likewise.
1417 (arm_options_perform_arch_sanity_checks): Likewise.
1418 (arm_handle_cmse_nonsecure_entry): Likewise.
1419 (arm_handle_cmse_nonsecure_call): Likewise.
1420 (arm_tls_referenced_p): Likewise.
1421 (thumb1_expand_prologue): Likewise.
1422 * config/avr/avr.c (avr_option_override): Likewise.
1423 * config/bfin/bfin.c (bfin_option_override): Likewise.
1424 * config/c6x/c6x.c (c6x_option_override): Likewise.
1425 * config/cr16/cr16.c (cr16_override_options): Likewise.
1426 * config/cris/cris.c (cris_option_override): Likewise.
1427 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
1428 * config/darwin-c.c (macosx_version_as_macro): Likewise.
1429 * config/darwin.c (darwin_override_options): Likewise.
1430 * config/frv/frv.c (frv_expand_builtin): Likewise.
1431 * config/h8300/h8300.c (h8300_option_override): Likewise.
1432 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
1433 (ix86_option_override_internal): Likewise.
1434 (warn_once_call_ms2sysv_xlogues): Likewise.
1435 (ix86_expand_prologue): Likewise.
1436 (split_stack_prologue_scratch_regno): Likewise.
1437 (ix86_warn_parameter_passing_abi): Likewise.
1438 * config/ia64/ia64.c (fix_range): Likewise.
1439 * config/m68k/m68k.c (m68k_option_override): Likewise.
1440 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
1441 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
1442 (mips_set_compression_mode): Likewise.
1443 * config/mmix/mmix.c (mmix_option_override): Likewise.
1444 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
1445 * config/msp430/msp430.c (msp430_option_override): Likewise.
1446 * config/nds32/nds32.c (nds32_option_override): Likewise.
1447 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
1448 (nios2_option_override): Likewise.
1449 (nios2_expand_custom_builtin): Likewise.
1450 * config/nvptx/mkoffload.c (main): Likewise.
1451 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
1452 * config/pa/pa.c (fix_range): Likewise.
1453 (pa_option_override): Likewise.
1454 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
1455 (riscv_option_override): Likewise.
1456 * config/rl78/rl78.c (rl78_option_override): Likewise.
1457 * config/rs6000/aix61.h: Likewise.
1458 * config/rs6000/aix71.h: Likewise.
1459 * config/rs6000/aix72.h: Likewise.
1460 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
1461 * config/rs6000/freebsd64.h: Likewise.
1462 * config/rs6000/linux64.h: Likewise.
1463 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
1464 (rs6000_expand_zeroop_builtin): Likewise.
1465 (rs6000_expand_mtfsb_builtin): Likewise.
1466 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
1467 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
1468 (rs6000_invalid_builtin): Likewise.
1469 (rs6000_expand_split_stack_prologue): Likewise.
1470 * config/rs6000/rtems.h: Likewise.
1471 * config/rx/rx.c (valid_psw_flag): Likewise.
1472 (rx_expand_builtin): Likewise.
1473 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
1474 * config/s390/s390.c (s390_expand_builtin): Likewise.
1475 (s390_function_profiler): Likewise.
1476 (s390_option_override_internal): Likewise.
1477 (s390_option_override): Likewise.
1478 * config/sh/sh.c (sh_option_override): Likewise.
1479 (sh_builtin_saveregs): Likewise.
1480 (sh_fix_range): Likewise.
1481 * config/sh/vxworks.h: Likewise.
1482 * config/sparc/sparc.c (sparc_option_override): Likewise.
1483 * config/spu/spu.c (spu_option_override): Likewise.
1484 (fix_range): Likewise.
1485 * config/visium/visium.c (visium_option_override): Likewise.
1486 (visium_handle_interrupt_attr): Likewise.
1487 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
1488 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
1489 (dbg_cnt_process_opt): Likewise.
1490 * dwarf2out.c (output_dwarf_version): Likewise.
1491 * except.c (expand_eh_return): Likewise.
1492 * gcc.c (defined): Likewise.
1493 (driver_handle_option): Likewise.
1494 (process_command): Likewise.
1495 (compare_files): Likewise.
1496 (driver::prepare_infiles): Likewise.
1497 (driver::do_spec_on_infiles): Likewise.
1498 (driver::maybe_run_linker): Likewise.
1499 * omp-offload.c (oacc_parse_default_dims): Likewise.
1500 * opts-global.c (handle_common_deferred_options): Likewise.
1501 * opts.c (parse_sanitizer_options): Likewise.
1502 (common_handle_option): Likewise.
1503 (enable_warning_as_error): Likewise.
1504 * passes.c (enable_disable_pass): Likewise.
1505 * plugin.c (parse_plugin_arg_opt): Likewise.
1506 (default_plugin_dir_name): Likewise.
1507 * targhooks.c (default_expand_builtin_saveregs): Likewise.
1508 (default_pch_valid_p): Likewise.
1509 * toplev.c (init_asm_output): Likewise.
1510 (process_options): Likewise.
1511 (toplev::run_self_tests): Likewise.
1512 * tree-cfg.c (verify_gimple_call): Likewise.
1513 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
1514 (tree_inlinable_function_p): Likewise.
1515 * var-tracking.c (vt_find_locations): Likewise.
1517 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
1519 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
1520 only on the else branch.
1522 2019-03-11 Martin Liska <mliska@suse.cz>
1524 * gcov.c (output_intermediate_json_line): Print function
1526 (output_json_intermediate_file): Add new argument.
1527 * doc/gcov.texi: Document the change.
1529 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
1531 PR rtl-optimization/89588
1532 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
1533 explicit unrolling factor more robust.
1535 2019-03-11 Richard Biener <rguenther@suse.de>
1537 PR tree-optimization/89649
1538 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
1539 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
1540 on the prolog and epilog loops.
1541 (vect_loop_versioning): Return copy of loop.
1542 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
1543 on the non-vectorized version of the loop.
1545 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
1548 * config/i386/sse.md (*vec_extractv2di_0_sse):
1549 Add (=r,x) alternative and corresponding splitter.
1551 2019-03-10 Martin Jambor <mjambor@suse.cz>
1553 PR tree-optimization/85762
1554 PR tree-optimization/87008
1555 PR tree-optimization/85459
1556 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
1557 it points to if there is a type changing MEM_REF. Adjust all callers.
1558 (build_accesses_from_assign): Disable total scalarization if
1559 contains_vce_or_bfcref_p returns true through the new parameter, for
1562 2019-03-09 Jakub Jelinek <jakub@redhat.com>
1565 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
1566 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
1569 * common.opt (fdiagnostics-show-labels,
1570 fdiagnostics-show-line-numbers, fdiagnostics-format=,
1571 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
1572 gas-locview-support, ginline-points, ginternal-reset-location-views):
1573 Terminate description text with a dot.
1574 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
1575 * config/mcore/mcore.opt (m210, m340): Likewise.
1576 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
1577 mnops=): Start description text with a capital letter.
1578 * config/arc/arc.opt (msize-level=): Likewise.
1579 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
1580 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
1582 * config/ft32/ft32.opt (msim): Likewise.
1583 (mft32b, mcompress): Likewise. Terminate description text with a dot.
1584 (mnodiv, mnopm): Terminate description text with a dot.
1585 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
1587 * config/i386/i386.opt (prefer_vector_width, instrument_return):
1589 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
1592 PR rtl-optimization/89634
1593 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
1594 are modified in BB_END (e->src) instruction.
1596 2019-03-08 David Malcolm <dmalcolm@redhat.com>
1599 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
1600 messages more amenable to translation, and improve wording.
1602 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
1604 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
1605 ud- and du-chains between phases.
1607 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
1610 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
1611 instead of POLY_INT_CST.
1613 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
1615 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
1618 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
1623 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
1624 (_mm_storeu_si64): Ditto.
1626 2019-03-08 Martin Liska <mliska@suse.cz>
1629 * config/i386/i386.c (ix86_option_override_internal): Disable
1630 jump tables when retpolines are used.
1632 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
1635 * ipa-split.c (execute_split_functions): Do not split
1636 'noinline' or 'section' function.
1638 2019-03-08 Jakub Jelinek <jakub@redhat.com>
1641 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
1642 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
1643 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
1646 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
1647 from diagnostics. Formatting fixes.
1650 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
1651 warn_odr diagnostics.
1654 * lra-constraints.c (process_alt_operands): Avoid one space before
1655 " at the end of line and another after " on another line in a string
1657 * attribs.c (handle_dll_attribute): Likewise.
1658 * config/avr/avr-devices.c (avr_texinfo): Likewise.
1660 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
1661 warning_at or inform messages in G_() if there is no ?:.
1663 PR tree-optimization/89550
1664 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
1665 returned true. Formatting fixes.
1666 (expand_builtin_strnlen): Formatting fixes.
1667 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
1668 if warning_at returned true.
1669 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
1671 2019-03-08 Richard Biener <rguenther@suse.de>
1674 * cfgloop.h (struct loop): Add owned_clique field.
1675 * cfgloopmanip.c (copy_loop_info): Copy it.
1676 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
1678 * tree-inline.c (copy_loops): Remap owned_clique.
1679 * lto-streamer-in.c (input_cfg): Stream owned_clique.
1680 * lto-streamer-out.c (output_cfg): Likewise.
1682 2019-03-08 Jakub Jelinek <jakub@redhat.com>
1685 * config/darwin.c: Include intl.h.
1686 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
1687 composing the message out of two separate parts.
1689 2019-03-07 Jakub Jelinek <jakub@redhat.com>
1692 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
1693 doesn't start with a capital letter and doesn't end with a dot.
1694 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
1695 with a capital letter.
1696 (ix86_mangle_function_version_assembler_name): Likewise.
1697 (ix86_generate_version_dispatcher_body): Likewise.
1698 (fold_builtin_cpu): Likewise.
1699 (get_builtin_code_for_version): Likewise. Remove extraneous space.
1700 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
1701 translators, wrap full type name in %qs.
1703 PR translation/79999
1704 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
1705 depend clause with source (or sink) modifier.
1706 * omp-expand.c (expand_omp_ordered_sink): Likewise.
1709 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
1710 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
1711 (avx512f_load<mode>_mask): New define_expand.
1712 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
1713 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
1714 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
1715 __builtin_ia32_movess_mask): New builtins.
1716 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
1717 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
1718 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
1719 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
1721 2019-03-07 Martin Jambor <mjambor@suse.cz>
1724 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
1725 for extern inline functions.
1727 2019-03-07 Martin Jambor <mjambor@suse.cz>
1730 * cgraph.h (cgraph_node): New inline method former_thunk_p.
1731 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
1732 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
1733 have multiple callees. At the end check if declarations match as
1734 opposed to cgraph_nodes.
1736 2019-03-07 Martin Liska <mliska@suse.cz>
1738 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
1739 which is equivalent to searching for this in clones chain.
1740 * symtab.c (symtab_node::verify_base): Similarly compare ASM
1741 names with a neighbour and special case first node in a chain.
1743 2019-01-25 Jason Merrill <jason@redhat.com>
1745 PR c++/80916 - spurious "static but not defined" warning.
1746 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
1747 for an internal symbol with DECL_EXTERNAL.
1749 2019-04-07 Richard Biener <rguenther@suse.de>
1752 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
1753 * tree-inline.c (copy_loops): Simplify.
1755 2019-03-07 Martin Liska <mliska@suse.cz>
1757 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
1759 2019-03-07 Richard Biener <rguenther@suse.de>
1761 PR tree-optimization/89595
1762 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
1763 stmt iterator as reference, take boolean output parameter to
1764 indicate whether the stmt was removed and thus the iterator
1766 (dom_opt_dom_walker::before_dom_children): Re-iterate over
1767 stmts created by folding.
1769 2019-03-07 Jakub Jelinek <jakub@redhat.com>
1772 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
1775 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
1777 PR rtl-optimization/88845
1778 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
1780 * lra.c (remove_scratches_1): New function.
1781 (remove_scratches): Use it.
1782 (lra_emit_move): Likewise.
1784 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
1786 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
1787 unaligned_access variable.
1788 * config/arc/arc.c (arc_override_options): Set unaligned access
1789 default on for HS CPUs.
1790 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
1792 2019-03-06 Martin Liska <mliska@suse.cz>
1794 PR gcov-profile/89577
1795 * doc/gcov.texi: Prefer to use --coverage.
1796 * doc/sourcebuild.texi: Likewise.
1798 2019-03-02 Jason Merrill <jason@redhat.com>
1800 PR c++/86485 - -Wmaybe-unused with empty class ?:
1801 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
1803 2019-03-05 Jakub Jelinek <jakub@redhat.com>
1806 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
1810 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
1811 exactly one argument.
1813 2019-03-05 Jakub Jelinek <jakub@redhat.com>
1814 Richard Sandiford <richard.sandiford@arm.com>
1816 PR tree-optimization/89570
1817 * match.pd (vec_cond into cond_op simplification): Don't use
1818 get_conditional_internal_fn, use as_internal_fn (cond_op).
1820 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
1823 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
1824 to decide when to split off a non-zero offset from a symbol.
1825 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
1826 in function symbols.
1828 2019-03-05 Richard Biener <rguenther@suse.de>
1830 PR tree-optimization/89594
1831 * tree-if-conv.c (pass_if_conversion::execute): Handle
1832 case where .LOOP_VECTORIZED_FUNCTION was removed.
1834 2019-03-05 Jakub Jelinek <jakub@redhat.com>
1837 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
1838 instead alloca it only when needed with the needed size.
1840 PR tree-optimization/89570
1841 * match.pd (vec_cond into cond_op simplification): Guard with
1842 vectorized_internal_fn_supported_p test and #if GIMPLE.
1844 PR tree-optimization/89566
1845 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
1846 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
1847 Punt if get_user_idx_format succeeds, but idx_format argument is
1848 not provided or doesn't have pointer type, or if idx_args is above
1849 number of provided arguments.
1851 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
1853 PR tree-optimization/89437
1854 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
1856 2019-03-04 Richard Biener <rguenther@suse.de>
1859 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
1862 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
1864 PR tree-optimization/89487
1865 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
1866 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
1867 (distribute_loop): Don't do runtime alias check if there is non-
1868 addressable data reference.
1869 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
1870 is a register variable.
1872 2019-03-02 Jakub Jelinek <jakub@redhat.com>
1875 * config/arm/arm.md (cmpsi2_addneg): Use
1876 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
1877 If operands[2] is 0 or INT_MIN, force use of subs.
1878 (*compare_scc splitter): Use gen_int_mode.
1879 (*negscc): Likewise.
1880 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
1882 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
1883 Monk Chiang <sh.chiang04@gmail.com>
1885 * common/config/riscv/riscv-common.c: Include sstream.
1886 (riscv_subset_list::to_string): New.
1887 (riscv_arch_str): Likewise.
1888 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
1890 * config/riscv/riscv-protos.h (riscv_arch_str): New.
1891 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
1892 (riscv_emit_attribute): New.
1893 (riscv_file_start): Emit attribute if needed.
1894 (riscv_option_override): Init riscv_emit_attribute_p.
1895 * config/riscv/riscv.opt (mriscv-attribute): New option.
1896 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
1898 * doc/install.texi: Document --with-riscv-attribute.
1899 * doc/invoke.texi: Document -mriscv-attribute.
1901 * common/config/riscv/riscv-common.c:
1902 Include config/riscv/riscv-protos.h.
1903 (INCLUDE_STRING): Defined.
1904 (RISCV_DONT_CARE_VERSION): Defined.
1905 (riscv_subset_t): Declare.
1906 (riscv_subset_t::riscv_subset_t): New.
1907 (riscv_subset_list): Declare.
1908 (riscv_subset_list::riscv_subset_list): New.
1909 (riscv_subset_list::~riscv_subset_list): Likewise.
1910 (riscv_subset_list::parsing_subset_version): Likewise.
1911 (riscv_subset_list::parse_std_ext): Likewise.
1912 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
1913 (riscv_subset_list::add): Likewise.
1914 (riscv_subset_list::lookup): Likewise.
1915 (riscv_subset_list::xlen): Likewise.
1916 (riscv_subset_list::parse): Likewise.
1917 (riscv_supported_std_ext): Likewise.
1918 (current_subset_list): Likewise.
1919 (riscv_parse_arch_string): Using riscv_subset_list::parse to
1922 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
1924 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
1925 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
1926 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
1928 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
1930 PR rtl-optimization/85899
1931 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
1932 fallthru edges leading to the exit block.
1934 2019-03-01 Tamar Christina <tamar.christina@arm.com>
1937 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
1938 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
1940 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
1942 PR tree-optimization/89535
1943 * tree-vect-stmts.c (vectorizable_call): Record the vector types
1944 for each operand. Calculate the fallback choice for mask operands
1945 and pass it to vect_get_vec_def_for_operand.
1947 2019-03-01 Richard Biener <rguenther@suse.de>
1950 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
1951 get virtual operands.
1952 (get_expr_operands): Handle CONST_DECL like other decls.
1954 2019-03-01 Jakub Jelinek <jakub@redhat.com>
1957 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
1958 on DECL_P and EXPR_P.
1960 2019-03-01 Richard Biener <rguenther@suse.de>
1963 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
1964 argument, defaulted to zero.
1965 * passes.c (execute_function_todo): Pass down SSA update flags
1966 to cleanup_tree_cfg.
1967 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
1968 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
1970 (cleanup_tree_cfg): Get and pass down SSA update flags.
1972 2019-03-01 Jakub Jelinek <jakub@redhat.com>
1975 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
1976 early_lto_debug argument.
1978 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
1980 PR tree-optimization/89536
1981 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
1982 only whether bit #0 of the value is 0 instead of the entire value.
1984 2019-02-28 Marek Polacek <polacek@redhat.com>
1986 PR c++/87068 - missing diagnostic with fallthrough statement.
1987 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
1988 at the end of a seq, save its location to walk_stmt_info.
1989 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
1992 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
1995 * tree.c (find_atomic_core_type): Move ahead in file.
1996 (check_base_type): Correctly compare alignments of atomic types.
1998 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
2001 * config/i386/i386.c (get_builtin_code_for_version): Identify
2002 Westmere from PCLMUL, instead of AES.
2004 2019-02-28 Jakub Jelinek <jakub@redhat.com>
2007 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
2008 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
2011 2019-02-28 Tamar Christina <tamar.christina@arm.com>
2014 * config/aarch64/aarch64-option-extensions.def: Document it.
2015 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
2018 2019-02-28 Jakub Jelinek <jakub@redhat.com>
2021 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
2022 builtins if they don't have a single scalar floating point argument.
2025 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
2027 PR rtl-optimization/89490
2028 * varasm.c (get_block_for_section): Bail out for mergeable sections.
2029 (default_use_anchors_for_symbol_p, output_object_block): Assert the
2030 block section is not mergeable.
2032 2019-02-27 Jakub Jelinek <jakub@redhat.com>
2035 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
2036 old define_insn to ...
2037 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
2038 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
2039 Rename old define_insn to ...
2040 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
2041 (thumb2_casesi_internal_pic): New define_expand. Rename old
2043 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
2044 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
2045 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
2047 2019-02-27 Richard Biener <rguenther@suse.de>
2050 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
2052 2019-02-27 Richard Biener <rguenther@suse.de>
2054 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
2057 2019-02-27 Richard Biener <rguenther@suse.de>
2060 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
2061 parameter, prefix section name with .gnu.debuglto_ if true.
2062 (dwarf2out_finish): Pass false to output_comdat_type_unit.
2063 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
2065 2019-02-27 Richard Biener <rguenther@suse.de>
2068 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
2069 rather than on use_debug_types, doing what output_die does.
2070 (value_format): Likewise.
2072 2019-02-27 Martin Jambor <mjambor@suse.cz>
2073 Martin Sebor <msebor@redhat.com>
2075 * doc/invoke.texi (Warning Options): Reword description of
2076 -Wno-absolute-value.
2078 2019-02-27 Jakub Jelinek <jakub@redhat.com>
2080 PR tree-optimization/89280
2081 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
2082 builtin_setjmp_setup_bb): New functions.
2083 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
2084 When visiting __builtin_setjmp_setup block, queue in special
2085 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
2086 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
2087 from visited after the loop if they don't have any visited successor
2090 2018-02-26 Steve Ellcey <sellcey@marvell.com>
2092 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
2094 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
2096 2019-02-26 Jakub Jelinek <jakub@redhat.com>
2099 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
2100 with types other than sizetype/ssizetype.
2102 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
2104 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
2105 (enum sparc_processor_type): ...this.
2106 (enum sparc_code_model_type): New enumeration type.
2107 (enum sparc_memory_model_type): Tweak comments.
2108 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
2110 (mcmodel): Use sparc_code_model enumeration and variable.
2111 (sparc_code_model): New enumeration.
2112 (mdebug): Add Undocumented marker.
2113 * config/sparc/sparc.h (enum cmodel): Delete.
2114 (sparc_cmodel): Likewise.
2115 (TARGET_CM_MEDLOW): Adjust to above renaming.
2116 (TARGET_CM_MEDMID): Likewise.
2117 (TARGET_CM_MEDANY): Likewise.
2118 (TARGET_CM_EMBMEDANY): Likewise.
2119 * config/sparc/sparc.c (sparc_cmodel): Delete.
2120 (sparc_option_override): Remove string/value mapping support for the
2121 code model. Move code and memory model support to after the handling
2122 of target flags. Do private machine setup last.
2123 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
2124 (sparc_legitimize_reload_address): Likewise.
2125 (sparc_output_mi_thunk): Likewise.
2126 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
2128 2019-02-26 Jakub Jelinek <jakub@redhat.com>
2130 PR tree-optimization/89500
2131 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
2132 (handle_builtin_strlen): Remove noncst_bound variable. Always
2133 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
2134 cst if the first cst bytes starting at x are known to be non-zero,
2135 even if the string is not zero terminated. Don't try to modify
2136 *si for strnlen. Update strlen_to_stridx only for strlen or if
2137 we can prove strnlen returns the same value as strlen would.
2139 2019-02-26 Martin Liska <mliska@suse.cz>
2141 * alloc-pool.h (struct pool_usage): Remove extra
2143 * bitmap.h (struct bitmap_usage): Likewise.
2144 * ggc-common.c (struct ggc_usage): Likewise.
2145 * mem-stats.h (struct mem_usage): Likewise.
2146 (mem_alloc_description::dump): Print dash lines
2147 here and repeat header at the end of a table report.
2148 It's then more readable.
2149 * tree-phinodes.c (phinodes_print_statistics): Make
2150 horizontal alignment.
2151 * tree-ssanames.c (ssanames_print_statistics): Likewise.
2152 * vec.c (struct vec_usage): Remove extra print_dash_line.
2153 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
2155 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
2157 * doc/extend.texi (__builtin_object_size):
2158 Use @pxref instead of @xref inside parenthesis.
2159 (__builtin_has_attribute): Add missing comma after @xref.
2160 (__builtin_object_size): Ditto.
2161 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
2162 * fortran/invoke.texi (-ffpe-trap): Use @var for every item
2165 2019-02-26 Jeff Law <law@redhat.com>
2167 PR rtl-optimization/87761
2168 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
2169 detect obviously dead insns and delete them.
2171 2019-02-26 Richard Biener <rguenther@suse.de>
2173 PR tree-optimization/89505
2174 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
2175 to handle restrict pointed-to vars with multiple subvars
2178 2019-02-26 Richard Biener <rguenther@suse.de>
2180 PR tree-optimization/89489
2181 * tree-parloops.c (create_loop_fn): Copy over last_clique.
2183 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
2185 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
2186 and move around comment.
2187 <BIT_AND_EXPR>: Likewise.
2188 <BIT_NOT_EXPR>: Add specific handling for boolean types.
2190 2019-02-26 Jakub Jelinek <jakub@redhat.com>
2193 * config/i386/i386.c (remove_partial_avx_dependency): Call
2194 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
2195 after changing possibly many instructions to use that pseudo. Fix up
2196 insertion of v4sf_const0 setter at the start of bb.
2198 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
2201 * doc/extend.texi (Variadic Pointer Args): New section.
2203 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
2204 Martin Sebor <msebor@gmail.com>
2206 * common.opt (Wattribute-alias): Likewise.
2207 * doc/invoke.texi (Option Summary): List general form of
2208 -Wattribute-alias=. List positive form of -Wmissing-attributes.
2209 (-Wmissing-attributes): Invert entry, rewrite and correct default.
2210 Add cross-references.
2211 (-Wattribute-alias): Rewrite and correct default. Mention
2212 considered attributes (same as for -Wmissing-attributes).
2214 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
2216 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
2217 (_mm_cvtpd_ps): Likewise.
2218 (_mm_cvttpd_epi32): Likewise.
2221 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
2222 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
2225 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
2227 2019-02-25 Tamar Christina <tamar.christina@arm.com>
2230 * common/config/aarch64/aarch64-common.c
2231 (struct aarch64_option_extension): Add is_synthetic.
2232 (all_extensions): Use it.
2233 (TARGET_OPTION_INIT_STRUCT): Define hook.
2234 (struct gcc_targetm_common): Moved to end.
2235 (all_extensions_by_on): New.
2236 (opt_ext_cmp, typedef opt_ext): New.
2237 (aarch64_option_init_struct): New.
2238 (aarch64_contains_opt): New.
2239 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
2240 * config/aarch64/aarch64-option-extensions.def
2241 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
2242 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
2243 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
2244 Set is_synthetic to false.
2245 (crypto): Set is_synthetic to true.
2246 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
2249 2019-02-25 Tamar Christina <tamar.christina@arm.com>
2251 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
2252 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
2253 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
2254 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
2255 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
2256 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
2257 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
2258 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
2260 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
2261 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
2262 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
2263 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
2264 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
2265 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
2266 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
2267 vfmlsl_laneq_high_f16): ... To this.
2268 * config/arm/neon.md: Update comments.
2270 2019-02-25 Tamar Christina <tamar.christina@arm.com>
2272 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
2273 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
2274 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
2275 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
2276 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
2277 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
2278 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
2279 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
2281 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
2282 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
2283 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
2284 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
2285 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
2286 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
2287 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
2288 vfmlslq_laneq_high_f16): ... To this.
2290 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
2292 PR rtl-optimization/86096
2293 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
2294 comparing mw_order values.
2296 2019-02-25 Jakub Jelinek <jakub@redhat.com>
2299 * config/arm/arm.md (*subsi3_carryin_const): Use
2300 arm_neg_immediate_operand predicate instead of
2301 arm_not_immediate_operand, "L" constraint instead of "K" and
2302 print it using %n2 instead of %B2.
2303 (*subsi3_carryin_const0): New define_insn.
2304 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
2305 instead of arm_not_operand and "I" constraint instead of "K" and
2306 print it using %n3 instead of %B2. Instead of using match_dup 2 add
2307 another match_operand and in the condition check that it is negation
2309 (*subsi3_carryin_compare_const0): New define_ins.
2310 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
2311 *subsi3_carryin_const.
2312 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
2313 split into *subsi3_carryin_compare_const0 if the highpart is zero.
2316 * config/arm.vfp.md (*negdf2_vfp): Use
2317 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
2318 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
2320 2019-02-24 Jakub Jelinek <jakub@redhat.com>
2322 PR rtl-optimization/89445
2323 * simplify-rtx.c (simplify_ternary_operation): Don't use
2324 simplify_merge_mask on operands that may trap.
2325 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
2326 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
2327 second operand is CONST_VECTOR, check if any element could be zero.
2328 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
2329 their operands can trap.
2331 2019-02-23 Martin Sebor <msebor@redhat.com>
2333 * gimple-ssa-sprintf.c (target_strtol): Rename...
2334 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
2335 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
2336 check for range error.
2338 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
2341 * opts-common.c (prune_options): Also prune joined switches
2342 with Negative and RejectNegative.
2343 * config/i386/i386.opt (march=): Add Negative(march=).
2344 (mtune=): Add Negative(mtune=).
2345 * doc/options.texi: Document Negative used together with Joined
2348 2019-02-22 Martin Sebor <msebor@redhat.com>
2350 * doc/extend.texi (Other Builtins): Add
2351 __builtin_is_constant_evaluated.
2353 2019-02-22 Richard Biener <rguenther@suse.de>
2355 PR tree-optimization/87609
2356 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
2358 2019-02-22 Jeff Law <law@redhat.com>
2360 PR rtl-optimization/87761
2361 * config/mips/mips.md: Add new combiner pattern to recognize
2362 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
2364 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
2367 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
2368 destination register in peepholes generating patterns for ADDS/SUBS.
2369 (add<mode>3_compare0,
2370 *addsi3_compare0_uxtw, add<mode>3_compareC,
2371 add<mode>3_compareV_imm, add<mode>3_compareV,
2372 *adds_<optab><ALLX:mode>_<GPI:mode>,
2373 *subs_<optab><ALLX:mode>_<GPI:mode>,
2374 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
2375 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
2376 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
2377 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
2378 sub<mode>3_compare1): Allow stack pointer for source register.
2379 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
2381 2019-02-22 Martin Sebor <msebor@redhat.com>
2383 PR tree-optimization/88993
2384 PR tree-optimization/88853
2385 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
2387 (sprintf_dom_walker::call_info::is_string_func): New helper.
2388 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
2389 for formatted string functions.
2390 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
2392 2019-02-22 Martin Sebor <msebor@redhat.com>
2395 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
2396 unreachable subexpressions.
2398 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
2399 Hongtao Liu <hongtao.liu@intel.com>
2400 Sunil K Pandey <sunil.k.pandey@intel.com>
2403 * config/i386/i386-passes.def: Add
2404 pass_remove_partial_avx_dependency.
2405 * config/i386/i386-protos.h
2406 (make_pass_remove_partial_avx_dependency): New.
2407 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
2409 (pass_data_remove_partial_avx_dependency): New.
2410 (pass_remove_partial_avx_dependency): Likewise.
2411 (make_pass_remove_partial_avx_dependency): Likewise.
2412 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
2413 (*extendsfdf2): Add avx_partial_xmm_update.
2414 (truncdfsf2): Likewise.
2415 (*float<SWI48:mode><MODEF:mode>2): Likewise.
2416 (SF/DF conversion splitters): Disabled for TARGET_AVX.
2418 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
2421 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
2424 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
2427 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
2428 (PTA_SKYLAKE): Add PTA_AES.
2429 (PTA_GOLDMONT): Likewise.
2431 2019-02-22 Sudakshina Das <sudi.das@arm.com>
2433 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
2434 instruction if enabled.
2435 (aarch64_override_options): Remove reference to return address key.
2437 2019-02-22 Richard Biener <rguenther@suse.de>
2439 PR tree-optimization/89440
2440 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
2441 not necessary assert.
2443 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
2446 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
2447 (oacc_replace_fn_attrib_attr): ... this new function.
2448 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
2449 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
2451 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2453 * config/arm/arm-cpus.in (ares): Rename to...
2454 (neoverse-n1): ... This. Add ares as alias.
2455 * config/arm/arm-tables.opt: Regenerate.
2456 * config/arm/arm-tune.md: Likewise.
2457 * doc/invoke.txt (ARM Options): Document neoverse-n1.
2459 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2461 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
2462 * config/aarch64/aarch64-tune.md: Regenerate.
2463 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
2465 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2467 * config/aarch64/aarch64.c (ares_tunings): Rename to...
2468 (neoversen1_tunings): ... This.
2469 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
2470 (neoverse-n1): New CPU.
2471 * config/aarch64/aarch64-tune.md: Regenerate.
2472 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
2474 2019-02-22 Richard Biener <rguenther@suse.de>
2477 * cfghooks.h (dependence_hash): New typedef.
2478 (struct copy_bb_data): New type.
2479 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
2480 (duplicate_block): Likewise.
2481 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
2482 (copy_bbs): Create and pass down copy_bb_data.
2483 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
2484 (rtl_duplicate_bb): Likewise.
2485 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
2486 remap dependence info.
2488 2019-02-22 Richard Biener <rguenther@suse.de>
2490 PR tree-optimization/87609
2491 * tree-core.h (tree_base): Document special clique values.
2492 * tree-inline.c (remap_dependence_clique): Do not use the
2493 special clique value of one.
2494 (maybe_set_dependence_info): Use clique one.
2495 (clear_dependence_clique): New callback.
2496 (compute_dependence_clique): Clear clique one from all refs
2497 before assigning it (again).
2499 2019-02-21 Martin Sebor <msebor@redhat.com>
2501 * doc/extend.texi (__clear_cache): Correct signature.
2503 2019-02-21 Ian Lance Taylor <iant@golang.org>
2506 * varasm.c (decode_addr_const): Call lookup_constant_def rather
2507 than output_constant_def.
2508 (add_constant_to_table): New static function.
2509 (output_constant_def): Call add_constant_to_table.
2510 (tree_output_constant_def): Likewise.
2512 2019-02-21 Jakub Jelinek <jakub@redhat.com>
2515 * builtins.c (fold_builtin_arith_overflow): If first two args are
2516 INTEGER_CSTs, set intres and ovfres to constants rather than calls
2519 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
2522 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
2523 error for -mindirect-branch/-mfunction-return with incompatible
2526 2019-02-21 Jakub Jelinek <jakub@redhat.com>
2529 * constraints.md (q): Remove.
2530 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
2533 2019-02-21 Martin Jambor <mjambor@suse.cz>
2536 * omp-general.c (omp_extract_for_data): Removed a duplicate call
2537 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
2538 (omp_adjust_for_condition): ...here. Added necessary parameters.
2539 * omp-general.h (omp_adjust_for_condition): Updated declaration.
2540 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
2541 proper values to new parameters of omp_adjust_for_condition.
2543 2019-02-20 Jakub Jelinek <jakub@redhat.com>
2546 * expr.c (expand_assignment): If result is a MEM, use change_address
2547 instead of simplify_gen_subreg.
2549 2019-02-20 Jakub Jelinek <jakub@redhat.com>
2550 David Malcolm <dmalcolm@redhat.com>
2553 * fold-const.c (decode_field_reference): Return NULL_TREE if
2554 lang_hooks.types.type_for_size returns NULL. Check it before
2555 overwriting *exp_. Use return NULL_TREE instead of return 0.
2557 2019-02-20 Jakub Jelinek <jakub@redhat.com>
2561 * toplev.c (do_compile): Double the emin/emax exponents to workaround
2564 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
2567 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
2568 TARGET_SSE in addition to TARGET_SSE_MATH.
2570 (ix86_excess_precision): Ditto.
2571 (ix86_float_exceptions_rounding_supported_p): Ditto.
2572 (use_rsqrt_p): Ditto.
2573 * config/i386/sse.md (rsqrt<mode>2): Ditto.
2575 2019-02-20 David Malcolm <dmalcolm@redhat.com>
2578 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
2579 linenum_arith_t when determining if two adjacent line spans are
2580 close enough to merge.
2581 (diagnostic_show_locus): Use linenum_arith_t when iterating over
2582 lines within each line_span.
2584 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
2587 * lra-constraints.c(uses_hard_regs_p): Fix handling of
2588 paradoxical SUBREGS.
2590 2019-02-20 Li Jia He <helijia@linux.ibm.com>
2593 * gcc/config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
2594 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
2595 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
2598 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
2600 * config/gcn/gcn.c (print_operand): Fix typo.
2602 2019-02-19 Richard Biener <rguenther@suse.de>
2605 * toplev.c (do_compile): Initialize mpfr's exponent range
2606 based on available float modes.
2608 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
2610 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
2611 as long as the epilogue isn't completed.
2613 2019-02-18 Martin Sebor <msebor@redhat.com>
2615 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
2616 __has_cpp_attribute, and __has_include.
2618 2019-02-18 Martin Sebor <msebor@redhat.com>
2620 * doc/invoke.texi (-Wreturn-type): Correct and expand.
2622 2019-02-18 Martin Sebor <msebor@redhat.com>
2625 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
2627 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
2629 2019-02-18 Richard Biener <rguenther@suse.de>
2631 PR tree-optimization/89296
2632 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
2633 of no-warning flag to cases that might emit the bogus warning.
2635 2019-02-18 Jakub Jelinek <jakub@redhat.com>
2638 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
2640 * config/arm/vfp.md (*movdi_vfp): Likewise.
2641 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
2642 "q" constraint for operands[0].
2645 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
2646 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
2647 pattern in a temporary buffer.
2648 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
2649 than 64-operands[2].
2652 * config/s390/s390.c (s390_indirect_branch_attrvalue,
2653 s390_indirect_branch_settings): Define unconditionally.
2654 (s390_set_current_function): Likewise, but guard the whole body except
2655 the s390_indirect_branch_settings call with
2656 #if S390_USE_TARGET_ATTRIBUTE.
2657 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
2659 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
2660 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
2661 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
2662 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
2663 HOST_WIDE_INT_1U instead of 1ULL.
2664 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
2665 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
2666 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
2667 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
2669 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
2672 2019-02-18 Martin Jambor <mjambor@suse.cz>
2674 PR tree-optimization/89209
2675 * tree-sra.c (create_access_replacement): New optional parameter
2676 reg_tree. Use it as a type if non-NULL and access type is not of
2678 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
2679 to create_access_replacement.
2680 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
2681 Check lacc is non-NULL before attempting to re-create it on the RHS.
2683 2019-02-18 Martin Liska <mliska@suse.cz>
2686 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
2688 (symbol_table::free_edge): Recycle m_summary_id.
2689 * cgraph.h (get_summary_id): New.
2690 (symbol_table::release_symbol): Set m_summary_id to -1
2692 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
2693 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
2694 function_summary to fast_function_summary.
2695 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
2696 * ipa-pure-const.c (class funct_state_summary_t):
2697 Switch from function_summary to fast_function_summary.
2698 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
2699 (class ipa_ref_opt_summary_t): Switch from function_summary
2700 to fast_function_summary.
2701 * symbol-summary.h (class function_summary_base): New class
2702 that is created from base of former function_summary.
2703 (function_summary_base::unregister_hooks): New.
2704 (class function_summary): Inherit from function_summary_base.
2705 (class call_summary_base): New class
2706 that is created from base of former call_summary.
2707 (class call_summary): Inherit from call_summary_base.
2708 (struct is_same): New.
2709 (class fast_function_summary): New summary class.
2710 (class fast_call_summary): New summary class.
2711 * vec.h (vec_safe_grow_cleared): New function.
2713 2019-02-18 Martin Liska <mliska@suse.cz>
2715 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
2716 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
2717 * doc/tm.texi: Document new target hook.
2718 * doc/tm.texi.in: Likewise.
2719 * target.def: Add new target macro.
2720 * gcc.c (find_fortran_preinclude_file): Do not search multilib
2723 2019-02-17 Alan Modra <amodra@gmail.com>
2726 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
2727 output reg on add insn.
2728 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
2730 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
2733 * config/i386/sse.md (ssedoublemode): Remove V4HI.
2734 (PMULHRSW): Likewise.
2735 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
2737 (ssse3_pmulhrswv4hi3): New expander.
2739 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
2741 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
2742 MMX. Add isa attribute.
2744 2019-02-16 Jakub Jelinek <jakub@redhat.com>
2746 PR rtl-optimization/66152
2747 * builtins.h (c_readstr): Declare.
2748 * builtins.c (c_readstr): Remove forward declaration. Add
2749 null_terminated_p argument, if false, read all bytes from the
2750 string instead of stopping after '\0'.
2751 * expr.c (string_cst_read_str): New function.
2752 (store_expr): Use string_cst_read_str instead of
2753 builtin_strncpy_read_str. Try to store by pieces the whole
2754 exp_len first, and only if that fails, split it up into
2755 store by pieces followed by clear_storage. Formatting fix.
2757 * config/i386/i386.md (*movqi_internal): Remove static from
2758 buf variable. Use output_asm_insn (buf, operands); return "";
2759 instead of return buf;.
2760 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
2761 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
2762 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
2764 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
2766 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
2767 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
2768 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
2769 (CC1_SPEC): Likewise.
2770 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
2772 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
2774 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
2775 the base address on 64-bit strict-alignment platforms.
2777 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
2779 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
2781 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
2783 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
2785 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
2787 PR rtl-optimization/88308
2788 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
2789 on copied instruction.
2791 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
2793 * final.c (insn_current_reference_address): Replace test on JUMP_P
2794 with test on jump_to_label_p.
2795 * config/visium/visium-passes.def: New file.
2796 * config/visium/t-visium (PASSES_EXTRA): Define.
2797 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
2798 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
2799 (TRAMPOLINE_ALIGNMENT): Define.
2800 * config/visium/visium.c (visium_option_override): Do not register
2801 the machine-specific reorg pass here.
2802 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
2804 (output_branch): Adjust threshold for long branch instruction.
2805 * config/visium/visium.md (cpu): Move around.
2806 (length): Adjust for the GR6.
2808 2019-02-15 Richard Biener <rguenther@suse.de>
2809 Jakub Jelinek <jakub@redhat.com>
2811 PR tree-optimization/89278
2812 * tree-loop-distribution.c: Include tree-eh.h.
2813 (generate_memset_builtin, generate_memcpy_builtin): Call
2814 rewrite_to_non_trapping_overflow on builtin->size before passing it
2815 to force_gimple_operand_gsi.
2817 2019-02-15 Jakub Jelinek <jakub@redhat.com>
2820 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
2822 * opth-gen.awk: Likewise.
2824 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
2826 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
2827 Enable MMX, SSE and SSE2 by default.
2828 * config/i386/i386.c (ix86_option_override_internal): Do not
2829 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
2831 2019-02-14 Jakub Jelinek <jakub@redhat.com>
2833 PR rtl-optimization/89354
2834 * combine.c (make_extraction): Punt if extraction_mode is narrower
2837 2019-02-14 Maya Rashish <coypu@sdf.org>
2839 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
2840 * config/netbsd-d.c: New file.
2841 * config/t-netbsd: Add netbsd-d.o
2843 2018-02-14 Steve Ellcey <sellcey@marvell.com>
2845 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
2846 affects_type_identity to true for aarch64_vector_pcs.
2847 (aarch64_comp_type_attributes): New function.
2848 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
2850 2019-02-14 Tamar Christina <tamar.christina@arm.com>
2853 * config/arm/iterators.md (ANY64): Add V4HF.
2855 2019-02-14 Martin Liska <mliska@suse.cz>
2857 PR rtl-optimization/89242
2858 * dce.c (delete_unmarked_insns): Call free_dominance_info we
2859 process a transformation.
2861 2019-02-14 Jakub Jelinek <jakub@redhat.com>
2863 PR tree-optimization/89314
2864 * fold-const.c (fold_binary_loc): Cast strlen argument to
2865 const char * before dereferencing it. Formatting fixes.
2868 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
2870 2019-02-13 Ian Lance Taylor <iant@golang.org>
2872 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
2873 and set current index for other optimizations.
2875 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
2877 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
2878 nonimmediate_operand as operand 2 predicate.
2879 (vec_set<VF2_512_256:mode>_0): Ditto.
2880 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
2881 (*vec_concatv2si): Remove alternative 2.
2882 (*vec_concatv4si_0): Use vm constraint for alternative 0.
2883 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
2884 (vec_concatv2di): Split alternatives 4,5,6 to ...
2885 (*vec_concatv2di_0) ... new pattern.
2887 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
2890 * config/arm/arm.c (ldm_stm_operation_p) Set
2891 addr_reg_in_reglist correctly for first register.
2892 (load_multiple_sequence): Remove dead base check.
2893 (gen_ldm_seq): Correctly set write_back for Thumb-1.
2895 2019-02-13 Tamar Christina <tamar.christina@arm.com>
2898 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
2899 Expose as @aarch64_pred_mov.
2900 * config/aarch64/aarch64.c (aarch64_classify_address):
2901 Use expand_insn which legitimizes operands.
2903 2019-02-13 Martin Liska <mliska@suse.cz>
2905 * builtins.h (expand_builtin_with_bounds): Remove declaration.
2906 * calls.c (struct arg_data): Remove special_slot, pointer_arg
2907 and pointer_offset fields.
2908 (initialize_argument_information): Remove usage of dead
2910 * cgraph.h (struct cgraph_thunk_info): Remove
2911 add_pointer_bounds_args.
2912 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
2914 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
2916 * config/i386/i386.c (ix86_function_arg_advance): Remove
2918 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
2919 (def_builtin): Remove usage of dead
2921 (ix86_add_new_builtins): Likewise.
2922 * ipa-fnsummary.c (compute_fn_summary): Likewise.
2923 * ipa-icf.c (sem_function::equals_wpa): Likewise.
2924 (sem_function::init): Likewise.
2925 (sem_variable::merge): Likewise.
2926 * ipa-visibility.c (function_and_variable_visibility): Likewise.
2927 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
2928 * lto-cgraph.c (lto_output_node): Likewise.
2929 (lto_output_varpool_node): Likewise.
2930 (input_node): Likewise.
2931 (input_varpool_node): Likewise.
2932 * lto-streamer-out.c (lto_output): Likewise.
2933 * tree-inline.c (expand_call_inline): Remove usage of
2935 * tree-inline.h (struct copy_body_data): Likewise.
2936 * varpool.c (varpool_node::dump): Likewise.
2938 2019-02-13 Jakub Jelinek <jakub@redhat.com>
2941 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
2942 into pt->vars_contains_escaped_heap instead of setting
2943 pt->vars_contains_escaped_heap to it.
2946 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
2947 INTVAL (size), compare it to GET_MODE_MASK instead of
2948 1 << GET_MODE_BITSIZE.
2951 * config/i386/predicates.md (x86_64_immediate_operand): Allow
2952 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
2955 2019-02-13 Martin Liska <mliska@suse.cz>
2958 * cfgrtl.c (remove_barriers_from_footer): New function.
2959 (try_redirect_by_replacing_jump): Use it.
2960 (cfg_layout_redirect_edge_and_branch): Likewise.
2962 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
2964 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
2965 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
2966 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
2967 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
2968 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
2969 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
2971 * config/rs6000/rs6000.c (builtin_function_type)
2972 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
2973 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
2974 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
2975 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
2976 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
2978 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
2980 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
2981 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
2983 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
2986 * config/i386/i386.md (*movoi_internal_avx): Revert revision
2987 268678 and revision 268657.
2988 (*movti_internal): Likewise.
2990 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
2993 * config/s390/s390.c (s390_decompose_address): Update comment.
2994 (s390_check_qrst_address): Reject invalid address forms after
2997 2019-02-12 Martin Liska <mliska@suse.cz>
3000 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
3001 we need default values of funct_state for a function that
3004 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
3006 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
3007 the object to pick the size of stores on strict-alignment platforms.
3009 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
3010 (*movdi_insn_sp32): Likewise.
3011 (*movdi_insn_sp64): Likewise.
3013 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
3016 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
3017 types that needs constructiong.
3018 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
3020 2019-02-12 Richard Biener <rguenther@suse.de>
3022 PR tree-optimization/89253
3023 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
3026 2019-02-11 David Malcolm <dmalcolm@redhat.com>
3029 * input.c (selftest::test_line_offset_overflow): New selftest.
3030 (selftest::input_c_tests): Call it.
3032 2019-02-11 Martin Sebor <msebor@redhat.com>
3034 PR tree-optimization/88771
3035 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
3036 when -Wstringop-overflow is set.
3037 (builtin_memref::builtin_memref): Adjust excessive upper bound
3038 only when lower bound is not excessive.
3039 (maybe_diag_overlap): Detect and diagnose excessive bounds via
3040 -Wstringop-ovefflow.
3041 (maybe_diag_offset_bounds): Rename...
3042 (maybe_diag_access_bounds): ...to this.
3043 (check_bounds_or_overlap): Adjust for name change above.
3045 2019-02-11 Martin Sebor <msebor@redhat.com>
3048 * builtins.c (max_object_size): Move from here...
3049 * builtins.h (max_object_size): ...and here...
3050 * tree.c (max_object_size): ...to here...
3051 * tree.h (max_object_size): ...and here.
3053 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
3055 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
3056 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
3057 for correct semantics.
3059 2019-02-11 Alan Modra <amodra@gmail.com>
3061 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
3062 -mlongcall and -mpltseq.
3063 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
3064 (RS/6000 and PowerPC Options <-mpltseq>): Document.
3065 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
3066 * config/rs6000/sysv4.opt (mpltseq): New option.
3067 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
3068 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
3069 support is lacking. Don't allow -mpltseq with -mbss-plt.
3070 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
3071 -mpltseq given for ELFv1.
3072 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
3073 Only use UNSPEC_PLTSEQ for inline PLT calls.
3074 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
3075 use UNSPEC_PLTSEQ for inline PLT calls.
3076 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
3077 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
3078 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
3079 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
3080 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
3081 (pltseq_mtctr_<mode>): Likewise.
3083 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3085 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
3087 * configure: Regenerate.
3089 2019-02-11 Jakub Jelinek <jakub@redhat.com>
3092 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
3095 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
3097 * function.c (assign_parm_setup_block): Use the stored
3098 size, not the passed size, when allocating stack-space,
3099 also for a parameter with alignment larger than
3100 MAX_SUPPORTED_STACK_ALIGNMENT.
3102 2019-02-11 Martin Liska <mliska@suse.cz>
3105 * ipa-cp.c (build_toporder_info): Remove usage of a param.
3106 * ipa-inline.c (inline_small_functions): Likewise.
3107 * ipa-pure-const.c (propagate_pure_const): Likewise.
3108 (propagate_nothrow): Likewise.
3109 * ipa-reference.c (propagate): Likewise.
3110 * ipa-utils.c (struct searchc_env): Remove unused field.
3111 (searchc): Always search across AVAIL_INTERPOSABLE.
3112 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
3113 the only called IPA pure const can properly not propagate
3114 across interposable boundary.
3115 * ipa-utils.h (ipa_reduced_postorder): Remove param.
3117 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
3119 * config/nds32/nds32.md (call_internal, call_value_internal,
3120 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
3122 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
3124 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
3127 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
3129 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
3132 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
3134 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
3136 2019-02-10 Jakub Jelinek <jakub@redhat.com>
3138 PR tree-optimization/89268
3139 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
3140 if preds is non-NULL.
3142 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
3145 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
3148 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
3150 * config/nds32/nds32.md (trap): New pattern.
3152 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
3154 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
3157 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
3159 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
3162 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
3164 * ipa-visibility.c (localize_node): Also do not localize
3165 LDPR_PREVAILING_DEF_IRONLY_EXP.
3167 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
3170 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
3171 instead of type_with_linkage.
3173 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
3176 * params.def (uninlined-function-insns, uninlined-function-time,
3177 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
3178 bound so we don't get overflows.
3180 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
3182 * config/rs6000/rs6000-string.c (expand_compare_loop,
3183 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
3186 2019-02-09 Jakub Jelinek <jakub@redhat.com>
3189 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
3190 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
3191 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
3193 2019-02-09 Alan Modra <amodra@gmail.com>
3196 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
3197 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
3200 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
3203 * lra-constraints.c (process_alt_operands): Don't increase reject
3204 for memory when offset memory is required.
3206 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
3208 * config/s390/vector.md: Implement vector copysign.
3210 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
3212 * expr.c (expand_constructor): Correct indentations.
3214 2019-02-08 Richard Biener <rguenther@suse.de>
3216 PR tree-optimization/89247
3217 * tree-if-conv.c: Include tree-cfgcleanup.h.
3218 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
3219 (tree_if_conversion): Pass through predicate vector.
3220 (pass_if_conversion::execute): Do CFG cleanup and SSA update
3221 inline, see if any if-converted loops we refrece in
3222 LOOP_VECTORIZED calls vanished and fixup.
3223 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
3225 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
3227 * config/s390/constraints.md (jdd): New constraint.
3229 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
3232 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
3233 upper 16 vector registers without TARGET_AVX512VL.
3234 (*movti_internal): Likewise.
3236 2019-02-08 Jakub Jelinek <jakub@redhat.com>
3238 PR rtl-optimization/89234
3239 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
3240 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
3241 (copy_reg_eh_region_note_backward): Likewise.
3243 2019-02-08 Richard Biener <rguenther@suse.de>
3246 * tree-data-ref.c (initialize_matrix_A): Fail if constant
3248 (analyze_subscript_affine_affine): Handle failure from
3249 initialize_matrix_A.
3251 2019-02-08 Jakub Jelinek <jakub@redhat.com>
3253 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
3256 2019-02-07 David Malcolm <dmalcolm@redhat.com>
3258 PR tree-optimization/86637
3259 PR tree-optimization/89235
3260 * tree-vect-loop.c (optimize_mask_stores): Add an
3261 auto_purge_vect_location sentinel to ensure that vect_location is
3264 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
3265 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
3266 to ensure that vect_location is purged on exit.
3267 (pass_slp_vectorize::execute): Likewise, replacing the manual
3269 * tree-vectorizer.h (class auto_purge_vect_location): New class.
3271 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3273 * config/aarch64/iterators.md (max_opp): New code_attr.
3274 (USMAX): New code iterator.
3275 * config/aarch64/predicates.md (aarch64_smin): New predicate.
3276 (aarch64_smax): Likewise.
3277 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
3278 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
3281 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
3284 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
3285 for TARGET_AVX512VL.
3286 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
3288 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
3290 * config/s390/s390-builtin-types.def: Add new types.
3291 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
3292 (s390_vec_xlw4): Make the memory operand into a const pointer.
3293 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
3295 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
3296 a new vector type with the alignment of the scalar memory operand.
3298 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
3299 Jakub Jelinek <jakub@redhat.com>
3302 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
3303 arm_count_ldrdstrd_insns): New declarations.
3304 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
3306 (valid_operands_ldrd_strd): New function.
3307 (arm_count_ldrdstrd_insns): New function.
3308 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
3309 sets instead of single DImode set and define new insns to match this.
3311 2019-02-07 Tamar Christina <tamar.christina@arm.com>
3313 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
3314 Make it a C initializer.
3316 2019-02-07 Tamar Christina <tamar.christina@arm.com>
3319 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
3321 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3323 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
3324 Use neon_dot<q> for type.
3325 (neon_<sup>dot_lane<vsi2qi>): Likewise.
3327 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3329 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
3330 Use neon_dot<q> for type.
3331 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
3332 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
3334 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
3336 PR rtl-optimization/89225
3337 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
3340 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
3342 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
3343 after restoring registers saved to allocate the frame on Windows.
3345 2019-02-06 Richard Biener <rguenther@suse.de>
3347 PR tree-optimization/89182
3348 * graphite.h (cached_scalar_evolution_in_region): Declare.
3349 * graphite.c (struct seir_cache_key): New.
3350 (struct sese_scev_hash): Likewise.
3351 (seir_cache): New global.
3352 (cached_scalar_evolution_in_region): New function.
3353 (graphite_transform_loops): Allocate and release seir_cache.
3354 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
3355 cached_scalar_evolution_in_region.
3356 * graphite-scop-detection.c (scop_detection::can_represent_loop):
3358 (scop_detection::graphite_can_represent_expr: Use
3359 cached_scalar_evolution_in_region.
3360 (scop_detection::stmt_simple_for_scop_p): Likewise.
3361 (find_params_in_bb): Likewise.
3362 (gather_bbs::before_dom_children): Likewise.
3363 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
3364 (add_loop_constraints): Likewise.
3366 2019-02-06 Jakub Jelinek <jakub@redhat.com>
3369 * fold-const-call.c (fold_const_vec_convert): Pass true as last
3370 operand to new_unary_operation only if both element types are integral
3371 and it isn't a widening conversion. Return NULL_TREE if
3372 new_unary_operation failed.
3374 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
3377 * config/s390/s390.md: Remove load and test FP splitter.
3379 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
3382 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
3383 expand_compare_loop, expand_block_compare_gpr,
3384 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
3385 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
3386 #include "profile-count.h" and "predict.h" for types and functions
3387 needed to work with REG_BR_PROB notes.
3389 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
3392 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
3393 for the long branch case.
3395 2019-02-05 Jakub Jelinek <jakub@redhat.com>
3398 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
3399 can throw, non-call exceptions are enabled and we can't delete
3400 dead exceptions or alter cfg. Set must_clean if
3401 delete_insn_and_edges returns true, don't set it blindly for calls.
3402 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
3404 PR rtl-optimization/89195
3405 * combine.c (make_extraction): For MEMs, don't extract bytes outside
3406 of the original MEM.
3408 2019-02-05 Martin Liska <mliska@suse.cz>
3410 PR gcov-profile/89000
3411 * gcov.c (function_summary): Remove argument.
3412 (file_summary): New function.
3413 (print_usage): Replace tabs with spaces.
3414 (generate_results): Use new function file_summary.
3416 2019-02-05 Jakub Jelinek <jakub@redhat.com>
3419 * optabs.c (prepare_cmp_insn): Pass x and y to
3420 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
3422 2019-02-05 Richard Biener <rguenther@suse.de>
3425 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
3426 (struct bitmap_element): Drop chain_prev so we properly recurse on
3427 the prev member, supporting tree views.
3428 (struct bitmap_head): GTY skip the obstack member.
3430 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
3433 * doc/extend.texi (Vector Extensions): Add an example of using vector
3434 types together with x86 intrinsics.
3436 2019-02-04 Alan Modra <amodra@gmail.com>
3438 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
3439 str[] size to 160, and comment.
3441 2019-02-04 Alan Modra <amodra@gmail.com>
3443 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
3444 (rs6000_pltseq_template): Guard output of TLS markers with
3446 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
3447 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
3448 to use inline PLT sequences.
3449 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
3450 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
3451 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
3453 2019-02-04 Martin Liska <mliska@suse.cz>
3456 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
3457 out when ipa_fn_summaries does not contain entry for callee.
3459 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
3461 * config/sparc/sparc.h: Remove superfluous blank lines.
3462 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
3463 (got_register_rtx): ...this.
3464 (sparc_got): Adjust to above renaming.
3465 (sparc_tls_got): Likewise.
3466 (sparc_delegitimize_address): Likewise.
3467 (sparc_output_mi_thunk): Likewise.
3468 (sparc_init_pic_reg): Likewise.
3469 (save_local_or_in_reg_p): Fix test on the GOT register.
3470 (USE_HIDDEN_LINKONCE): Move around.
3471 (get_pc_thunk_name): Likewise.
3472 (gen_load_pcrel_sym): Likewise.
3473 (load_got_register): Likewise.
3475 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
3477 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
3478 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
3480 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
3482 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
3485 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
3487 * config.gcc (with_nds32_lib, glibc):
3488 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
3489 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
3490 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
3492 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
3495 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
3496 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
3497 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
3498 (*rcpsf2_sse): Ditto.
3499 (*rsqrtsf2_sse): Ditto.
3500 (sse4_1_round<mode<2): Ditto.
3502 2019-02-03 Richard Biener <rguenther@suse.de>
3505 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
3508 2019-02-02 Jakub Jelinek <jakub@redhat.com>
3511 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
3512 Punt with warning on aggregate return or argument types. Ignore
3513 type/mode checking for uniform arguments.
3515 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
3517 * combine.c (try_combine): Do not print "Can't combine" messages unless
3518 printing failed combination attempts.
3520 2019-02-01 Martin Jambor <mjambor@suse.cz>
3523 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
3524 segment and global segment variables before making them static.
3526 2019-02-01 Martin Jambor <mjambor@suse.cz>
3528 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
3529 missed optimization dump with dump_enabled_p.
3531 2019-02-01 Richard Biener <rguenther@suse.de>
3534 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
3535 the instantiate cache.
3536 (instantiate_scev_binary): Elide second operand procesing
3537 if equal to the first.
3538 * tree-chrec.c (chrec_contains_symbols): Add visited set.
3539 (chrec_contains_undetermined): Likewise.
3540 (tree_contains_chrecs): Likewise.
3542 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
3544 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
3546 2019-02-01 Jakub Jelinek <jakub@redhat.com>
3548 PR tree-optimization/89143
3549 * wide-int-range.h (wide_int_range_absu): Declare.
3550 * wide-int-range.cc (wide_int_range_absu): New function.
3551 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
3553 PR tree-optimization/88107
3554 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
3555 instead of assertion that eh_region_outermost is non-NULL, if it
3556 is NULL, set *ALL to true and return NULL.
3557 (move_sese_region_to_fn): Adjust caller, if all is set, call
3558 duplicate_eh_regions with NULL region.
3560 2019-02-01 Richard Biener <rguenth@suse.de>
3562 PR rtl-optimization/88593
3563 * mode-switching.c (optimize_mode_switching): Free dominators before
3564 calling cleanup_cfg.
3566 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
3568 PR tree-optimization/88932
3569 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
3571 2019-01-31 Jakub Jelinek <jakub@redhat.com>
3574 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
3575 bogus clang warning.
3577 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
3580 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
3581 alternative to avoid partial SSE register stall for TARGET_AVX.
3582 (truncdfsf2): Ditto.
3583 (sse4_1_round<mode>2): Ditto.
3585 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
3587 PR tree-optimization/89008
3588 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
3589 process anything of the form X * 0.
3591 2019-01-31 Richard Biener <rguenther@suse.de>
3593 PR tree-optimization/89135
3594 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
3595 with abnormal preds.
3597 2019-01-31 Jakub Jelinek <jakub@redhat.com>
3600 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
3601 always_inline callees into no_sanitize_address callers.
3603 2019-01-31 Richard Biener <rguenther@suse.de>
3605 PR rtl-optimization/89115
3606 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
3608 2019-01-30 Martin Sebor <msebor@redhat.com>
3611 * doc/extend.texi (cast to a union): Correct and expand.
3613 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
3615 PR rtl-optimization/87246
3616 * lra-constraints.c (simplify_operand_subreg): Reload memory
3617 in subreg if the address became invalid.
3619 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
3622 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
3623 Disable for little-endian.
3625 2019-01-30 Richard Biener <rguenther@suse.de>
3627 PR rtl-optimization/89115
3628 * opts.c (default_options_optimization): Reduce
3629 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
3630 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
3633 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
3635 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
3636 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
3637 type of vector element when vec_extract is implemented by direct
3640 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
3642 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
3644 2019-01-30 Richard Biener <rguenther@suse.de>
3646 PR tree-optimization/89111
3647 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
3648 canonicalization to appropriately sized access types.
3650 2019-01-30 Jakub Jelinek <jakub@redhat.com>
3653 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
3654 for arguments to functions that are TU-local and shouldn't be
3655 referenced by assembly.
3657 2019-01-30 Ulrich Drepper <drepper@redhat.com>
3659 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
3662 2019-01-29 Martin Sebor <msebor@redhat.com>
3665 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
3667 2019-01-29 Jakub Jelinek <jakub@redhat.com>
3671 * omp-simd-clone.c (simd_clone_clauses_extract)
3672 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
3673 OMP_CLAUSE_ALIGNED_ALIGNMENT.
3675 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
3677 * config.gcc: Force .init_array for ARC.
3679 2019-01-29 Richard Biener <rguenther@suse.de>
3682 * dwarf2out.c (collect_skeleton_dies): New helper.
3683 (copy_decls_for_unworthy_types): Call it.
3684 (build_abbrev_table): Assert we do not try to replace
3685 DW_AT_signature refs with local refs.
3687 2019-01-28 Jakub Jelinek <jakub@redhat.com>
3690 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
3691 for lastprivate/linear IV, push gimplify context around gimplify_assign
3692 and, if it needed any temporaries, pop it into a gimple bind around the
3695 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
3697 * common.opt (-Wattribute-alias): Remove "no-" from name.
3698 Make -Wattribute-alias command line option and
3699 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
3701 2019-01-28 Jakub Jelinek <jakub@redhat.com>
3704 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
3705 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
3707 (bmi2): Add missing @opindex.
3708 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
3709 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
3710 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
3711 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
3712 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
3713 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
3714 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
3715 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
3716 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
3717 xsavec, xsaveopt and xsaves options.
3719 2019-01-28 Richard Biener <rguenther@suse.de>
3722 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
3725 2019-01-28 Richard Biener <rguenther@suse.de>
3727 PR tree-optimization/88739
3728 * tree-cfg.c (verify_types_in_gimple_reference): Verify
3729 BIT_FIELD_REFs only are applied to mode-precision operands
3730 when they are integral.
3731 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
3732 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
3733 BIT_FIELD_REFs of non-mode-precision integral operands.
3735 2019-01-27 Jakub Jelinek <jakub@redhat.com>
3738 * config/i386/sse.md
3739 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
3740 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
3741 first constants in pairs are multiples of 2. Formatting fixes.
3742 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
3743 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
3744 first constants in each quadruple are multiples of 4. Formatting fixes.
3746 2019-01-26 Martin Jambor <mjambor@suse.cz>
3749 * tree-inline.c: Include tree-cfgcleanup.h.
3750 (delete_unreachable_blocks_update_callgraph): Move...
3751 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
3752 ...here, make externally visible, make second argument bool, adjust
3754 * tree-cfgcleanup.c: Include cgraph.h.
3755 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
3757 * ipa-prop.c: Include tree-cfgcleanup.h.
3758 (ipcp_transform_function): Call
3759 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
3761 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
3763 PR rtl-optimization/88846
3764 * ira.c (process_set_for_memref_referenced_p): New.
3765 (memref_referenced_p): Add new param. Use
3766 process_set_for_memref_referenced_p. Add new switch cases.
3767 (memref_used_between_p): Pass new arg to memref_referenced_p.
3769 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
3772 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
3773 argument ABI_BREAK. Set to true if the calculated alignment has
3774 changed in gcc-9. Check bit-fields for their base type alignment.
3775 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
3776 (aarch64_function_arg_boundary): Likewise.
3777 (aarch64_gimplify_va_arg_expr): Likewise.
3779 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
3782 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
3783 instead of accessing TREE_INT_CST_ELT directly.
3785 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
3787 * doc/sourcebuild.texi (Environment attributes): Add fenv and
3788 fenv_exceptions description.
3790 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
3792 PR rtl-optimization/87763
3793 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
3794 Allow SUBREG when matching CC_NZmode compare.
3796 2019-01-25 Richard Biener <rguenther@suse.de>
3798 PR tree-optimization/89049
3799 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
3800 Look at the pattern stmt to determine if the stmt is vectorized.
3802 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
3804 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
3805 (pred_mov<mode>): Handle all-register forms using both a new
3806 alternative and a split.
3808 2019-01-25 Richard Biener <rguenther@suse.de>
3810 PR tree-optimization/86865
3811 * graphite-scop-detection.c (scop_detection::can_represent_loop):
3812 Reject non-do-while loops.
3814 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
3816 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
3817 * config/rs6000/constraints.md (Q constraint): Use REG_P.
3818 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
3819 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
3820 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
3821 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
3822 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
3823 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
3824 vlogical_operand, gpc_reg_operand, int_reg_operand,
3825 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
3826 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
3827 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
3828 (save_world_operation, restore_world_operation, lmw_operation,
3829 stmw_operation): Use MEM_P and REG_P.
3830 (tie_operand): Use MEM_P.
3831 (vrsave_operation, crsave_operation): Use REG_P.
3832 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
3833 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
3834 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
3835 (call_operand): Use HARD_REGISTER_P.
3836 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
3838 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
3839 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
3840 quad_aligned_load_p, replace_swapped_aligned_store,
3841 recombine_lvx_pattern, replace_swapped_aligned_load,
3842 recombine_stvx_pattern): Use MEM_P.
3843 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
3844 Use MEM_P and SYMBOL_REF_P.
3845 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
3846 (insn_is_swappable_p): Use REG_P and MEM_P.
3847 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
3848 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
3850 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
3852 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
3854 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
3855 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
3856 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
3857 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
3859 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
3860 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
3861 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
3862 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
3863 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
3864 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
3865 rs6000_split_logical_di): Use CONST_INT_P.
3866 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
3867 REG_P and SYMBOL_REF_P.
3868 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
3869 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
3870 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
3871 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
3872 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
3873 (small_data_operand, print_operand_address): Use CONST_INT_P and
3875 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
3876 (rs6000_init_hard_regno_mode_ok, direct_move_p):
3877 Use HARD_REGISTER_NUM_P.
3878 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
3879 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
3880 SUBREG_P and SYMBOL_REF_P.
3881 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
3882 and HARD_REGISTER_NUM_P.
3883 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
3885 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
3886 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
3888 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
3889 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
3890 find_addr_reg): Use REG_P.
3891 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
3892 (rs6000_emit_le_vsx_move): Use SUBREG_P.
3893 (offsettable_ok_by_alignment, constant_pool_expr_p,
3894 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
3895 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
3896 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
3897 rs6000_assemble_integer, create_TOC_reference,
3898 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
3899 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
3900 (rs6000_split_vec_extract_var): Use reg_or_subregno.
3901 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
3902 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
3903 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
3904 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
3905 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
3906 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
3907 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
3908 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
3909 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
3910 and cbranch<mode>4): Use CONST_INT_P.
3911 (multiple define_splits): Use REG_P and SUBREG_P.
3912 (define_expands call, call_value): Use MEM_P.
3913 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
3914 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
3915 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
3916 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
3917 and HARD_REGISTER_NUM_P.
3918 (multiple define_splits): Use HARD_REGISTER_NUM_P.
3920 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
3922 PR rtl-optimization/88948
3923 * rtl.h (prepare_copy_insn): New prototype.
3924 * gcse.c (prepare_copy_insn): New function, split out from
3925 process_insert_insn.
3926 (process_insert_insn): Use prepare_copy_insn.
3927 * store-motion.c (replace_store_insn): Use prepare_copy_insn
3928 instead of gen_move_insn.
3930 2019-01-24 Jakub Jelinek <jakub@redhat.com>
3933 * config/i386/i386.c (ix86_pic_register_p): Return true for
3936 PR tree-optimization/88964
3937 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
3938 punt if HONOR_SNANS (chrec).
3941 * tree-nested.c (convert_nonlocal_reference_stmt,
3942 convert_local_reference_stmt, convert_tramp_reference_stmt,
3943 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
3944 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
3947 PR tree-optimization/89027
3948 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
3949 for "omp simd array" variables.
3951 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
3954 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
3955 force the alignment of m_val.
3957 2019-01-24 Richard Biener <rguenther@suse.de>
3960 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
3961 When in "legacy" debug mode make sure to reset self-origins.
3963 2019-01-24 Martin Liska <mliska@suse.cz>
3965 PR gcov-profile/88994
3966 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
3967 result will be always smaller or equal to the original.
3968 * gcov.c (mangle_name): Fix else branch where we should
3969 also copy to PTR and shift the pointer.
3971 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
3973 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
3974 * vr-values.c (find_case_label_ranges): Fix a comment typo.
3976 2019-01-23 Bin Cheng <bin.cheng@arm.com>
3977 Steve Ellcey <sellcey@marvell.com>
3980 * recog.c (address_operand): Return false on wrong mode for address.
3981 (constrain_operands): Check for mode with 'p' constraint.
3983 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
3986 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
3987 Disparage MMX alternative.
3988 (sse2_cvtpd2pi): Ditto.
3989 (sse2_cvttpd2pi): Ditto.
3991 2019-01-23 David Malcolm <dmalcolm@redhat.com>
3994 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
3995 use-after-free of the result of
3996 aarch64_get_extension_string_for_isa_flags.
3998 2019-01-23 Jakub Jelinek <jakub@redhat.com>
4001 * doc/extend.texi: Document break and continue behavior in
4002 statement expressions.
4004 2019-01-23 Richard Biener <rguenther@suse.de>
4006 PR tree-optimization/89008
4007 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
4008 not leave another stray operand.
4010 2019-01-23 Jakub Jelinek <jakub@redhat.com>
4012 * BASE-VER: Bump to 9.0.1.
4014 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
4016 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
4017 thunk that returns by reference, use the type of the return object
4018 of the thunk instead of that of the alias to build the dereference.
4020 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
4022 * config/arc/atomic.md: Add operand to DMB instruction.
4024 2019-01-23 Jakub Jelinek <jakub@redhat.com>
4026 PR tree-optimization/88964
4027 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
4028 build_zero_cst instead of build_int_cst. Return false for loop
4029 invariants which honor signed zeros.
4031 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
4033 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
4035 2019-01-22 Jakub Jelinek <jakub@redhat.com>
4038 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
4039 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
4040 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
4043 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
4044 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
4047 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
4048 Disable for little endian.
4050 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
4053 * config/arm/arm.c (arm_needs_double_word_align): Check
4054 DECL_BIT_FIELD_TYPE.
4056 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
4057 H.J. Lu <hongjiu.lu@intel.com>
4060 * config/i386/i386-builtin.def: Add mask2 to all builtin
4061 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
4063 * config/i386/i386.c (BDESC): Add mask2 to the definition.
4064 (BDESC_FIRST): Likewise.
4065 (define_builtin): Add an argument for mask2. Updated to handle
4066 both ix86_isa_flags and ix86_isa_flags2.
4067 (define_builtin_const): Likewise.
4068 (define_builtin_pure): Likewise.
4069 (define_builtin2): Deleted.
4070 (define_builtin_const2): Likewise.
4071 (builtin_description): Add a member, mask2.
4072 (bdesc_*): Add mask2 to builtin initializations.
4073 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
4074 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
4076 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
4078 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
4081 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
4084 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
4087 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
4088 alignment is dominated by a bitfield with 64-bit aligned base type.
4089 (arm_function_arg): Emit a warning if the alignment has changed since
4090 earlier GCC releases.
4091 (arm_function_arg_boundary): Likewise.
4092 (arm_setup_incoming_varargs): Likewise.
4094 2019-01-22 Richard Biener <rguenther@suse.de>
4096 PR tree-optimization/88862
4097 * graphite-scop-detection.c
4098 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
4100 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
4102 * doc/extend.tex (AMD GCN Function Attributes): New section.
4103 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
4104 * doc/invoke.texi (AMD GCN Options): New section.
4105 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
4107 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
4109 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
4110 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
4112 2019-01-22 Jakub Jelinek <jakub@redhat.com>
4114 PR tree-optimization/88044
4115 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
4116 is false in the first iteration, but !every_iteration, return false
4117 instead of true with niter->niter zero.
4119 PR rtl-optimization/88904
4120 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
4121 any nonequal registers before processing BB_END (b).
4124 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
4126 (expand_binop_directly, expand_doubleword_clz,
4127 expand_doubleword_popcount, expand_ctz, expand_ffs,
4128 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
4130 PR rtl-optimization/49429
4132 PR rtl-optimization/86334
4134 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
4135 addressable from here...
4136 (emit_block_op_via_libcall): ... to here.
4138 2019-01-22 Richard Biener <rguenther@suse.de>
4140 * tree-vect-loop.c (vect_analyze_loop_operations): Use
4141 auto_vec for cost vector to fix memleak.
4142 (vectorize_fold_left_reduction): Properly gather SLP defs.
4143 (vectorizable_comparison): Do not swap operands to properly
4146 2019-01-22 Alan Modra <amodra@gmail.com>
4149 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
4150 stays a reg. Allow a const_int.
4151 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
4152 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
4153 (IS_NOMARK_TLSGETADDR): Define.
4154 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
4155 (rs6000_output_tlsargs): New function.
4156 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
4157 __tls_get_addr call takes an arg.
4158 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
4159 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
4161 (call_value_nonlocal_sysv): ..or here, delete split.
4162 (tls_gdld_nomark): Delete.
4163 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
4164 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
4165 (call_value_nonlocal_sysv): Likewise.
4166 (call_value_nonlocal_sysv_secure): Likewise.
4167 (call_value_nonlocal_aix): Likewise.
4168 (call_value_indirect_aix): Likewise.
4169 (call_value_indirect_elfv2): Likewise.
4170 (call_value_local32, call_value_local64): Disable for no-mark tls.
4171 (call_value_local_aix): Likewise.
4173 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
4176 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
4177 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
4179 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
4181 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
4182 string contents as hash_map keys.
4184 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
4187 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
4188 for rvalue context. Handle rvalues correctly. Use min_align_of_type
4189 instead of TYPE_ALIGN.
4190 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
4191 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
4192 pointer from TYPE_STUB_DECL.
4194 2019-01-21 Richard Biener <rguenther@suse.de>
4196 PR tree-optimization/88934
4197 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
4198 at the possibly non-constant operand.
4199 (vect_get_constant_vectors): Adjust.
4201 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
4204 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
4205 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
4206 instead of _X86INTRIN_H_INCLUDED.
4207 * onfig/i386/clwbintrin.h: Likewise.
4208 * config/i386/pkuintrin.h: Likewise.
4209 * config/i386/prfchwintrin.h: Likewise.
4210 * config/i386/rdseedintrin.h: Likewise.
4211 * config/i386/wbnoinvdintrin.h: Likewise.
4212 * config/i386/xsavecintrin.h: Likewise.
4213 * config/i386/xsavesintrin.h: Likewise.
4214 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
4215 * config/i386/xsaveintrin.h: Likewise.
4216 * config/i386/xsaveoptintrin.h: Likewise.
4217 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
4218 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
4219 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
4220 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
4221 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
4222 * config/i386/immintrin.h: Here.
4224 2019-01-20 Martin Jambor <mjambor@suse.cz>
4227 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
4228 with aa_walk_budget.
4229 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
4230 aa_walk_budget_p parameter.
4231 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
4232 walk. Updated all callers.
4233 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
4234 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
4236 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
4237 parameter info. Extract info from fbi. Pass fbi to recursive calls
4238 and to unmodified_parm.
4239 (phi_result_unknown_predicate): New parameter fbi, removed parameter
4240 info, updated call to will_be_nonconstant_expr_predicate.
4241 (param_change_prob): New parameter fbi, limit AA walking.
4242 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
4243 calls to various above functions.
4244 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
4245 parameter. Use it to limit AA walking.
4246 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
4248 (detect_type_change): New parameter fbi, pass it on to
4249 detect_type_change_from_memory_writes.
4250 (detect_type_change_ssa): Likewise.
4251 (aa_overwalked): Removed.
4252 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
4253 accordingly, adjust to the neew AA limiting scheme.
4254 (parm_ref_data_preserved_p): Likewise.
4255 (ipa_compute_jump_functions_for_edge): Adjust call to
4257 (ipa_analyze_call_uses): Likewise.
4258 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
4259 (ipa_analyze_node): Initialize aa_walk_budget.
4260 (ipcp_transform_function): Likewise.
4261 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
4262 to get_dynamic_type.
4264 2019-01-19 Jakub Jelinek <jakub@redhat.com>
4266 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
4267 outside of #if CHECKING_P code.
4269 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
4271 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
4272 New function, split out from...
4273 (loop_versioning::analyze_stride): ...here.
4274 (loop_versioning::find_per_loop_multiplication): Use gassign.
4275 (loop_versioning::analyze_term_using_scevs): Return a success code.
4276 (loop_versioning::analyze_arbitrary_term): New function.
4277 (loop_versioning::analyze_address_fragment): Use
4278 analyze_arbitrary_term if all else fails.
4280 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
4283 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
4286 2019-01-18 Richard Biener <rguenther@suse.de>
4288 PR tree-optimization/88903
4289 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
4290 scalar stmts a SLP shift amount is composed of when detecting
4293 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
4296 * config/arm/arm-cpus.in (mp): New feature.
4298 (fgroup ARMv7ve): Add mp and sec features.
4299 (arch armv7-a): Add options to allow mp and sec extensions.
4300 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
4301 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
4302 extenstions to the base architecture.
4303 (cpu cortex-a8): Add sec extension to the base architecture.
4304 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
4305 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
4306 variants down to the base v7-a varaint.
4307 * config/arm/t-multilib (v7_a_arch_variants): New variable.
4308 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
4309 of permitted extensions for -march=armv7-a and for
4310 -mcpu=generic-armv7-a.
4312 2019-01-18 Martin Liska <mliska@suse.cz>
4314 * params.def: Fix comment.
4315 * tree-profile.c (gimple_init_gcov_profiler): Bump function
4317 (gimple_gen_ic_func_profiler): Likewise.
4319 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4321 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
4322 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
4323 and put in error checks for stack protector guard options.
4324 (aarch64_stack_protect_guard): New.
4325 (TARGET_STACK_PROTECT_GUARD): Define.
4326 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
4327 (reg_stack_protect_address<mode>): New.
4328 (stack_protect_set): Adjust for SSP_GLOBAL.
4329 (stack_protect_test): Likewise.
4330 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
4331 (-mstack-protector-guard): Likewise.
4332 (-mstack-protector-guard-offset): Likewise.
4334 2019-01-18 Jakub Jelinek <jakub@redhat.com>
4336 PR tree-optimization/86214
4337 * tree-inline.h (struct copy_body_data): Add
4338 add_clobbers_to_eh_landing_pads member.
4339 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
4340 (copy_edges_for_bb): Call it if EH edge destination is <
4341 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
4342 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
4343 if flag_stack_reuse != SR_NONE and clear it afterwards.
4345 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
4348 * doc/install.texi (with-multilib-list): Document for aarch64.
4350 2019-01-18 Jakub Jelinek <jakub@redhat.com>
4353 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
4354 (("..."))) with ("...").
4356 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
4358 * doc/extend.texi (Built-in Functions for Memory Model Aware
4359 Atomic Operations): Document atomic fetch and nand.
4361 2019-01-18 Martin Liska <mliska@suse.cz>
4362 Richard Biener <rguenther@suse.de>
4365 * cgraph.h (create_version_clone_with_body): Add new argument
4367 * cgraphclones.c (cgraph_node::create_version_clone): Add
4368 DECL_ATTRIBUTES to a newly created decl. And call
4369 valid_attribute_p so that proper cl_target_optimization_node
4370 is set for the newly created declaration.
4371 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
4373 (expand_target_clones): Do not call valid_attribute_p, it must
4375 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
4378 2019-01-17 Jakub Jelinek <jakub@redhat.com>
4381 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
4382 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
4383 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
4385 2019-01-17 Martin Sebor <msebor@redhat.com>
4388 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
4389 Handle anti-ranges the same as no range at all.
4391 2018-01-17 Steve Ellcey <sellcey@cavium.com>
4393 * config/aarch64/aarch64.c (cgraph.h): New include.
4394 (intl.h): New include.
4395 (supported_simd_type): New function.
4396 (currently_supported_simd_type): Ditto.
4397 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
4398 (aarch64_simd_clone_adjust): Ditto.
4399 (aarch64_simd_clone_usable): Ditto.
4400 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
4401 (TARGET_SIMD_CLONE_ADJUST): Ditto.
4402 (TARGET_SIMD_CLONE_USABLE): Ditto.
4403 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
4404 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
4407 2019-01-17 Martin Sebor <msebor@redhat.com>
4409 PR tree-optimization/88800
4410 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
4411 NO_WARNING bit here. Avoid folding out-of-bounds calls.
4412 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
4413 redundant argument. Add new argument and issue diagnostics under
4414 its control. Detect out-of-bounds access even with warnings
4416 (check_bounds_or_overlap): Change return type. Add argument.
4417 (wrestrict_dom_walker::check_call): Adjust.
4418 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
4419 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
4420 check_bounds_or_overlap's return value.
4421 (handle_builtin_stxncpy): Same.
4422 (handle_builtin_strcat): Same.
4424 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
4425 Kwok Cheung Yeung <kcy@codesourcery.com>
4426 Julian Brown <julian@codesourcery.com>
4427 Tom de Vries <tom@codesourcery.com>
4429 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
4431 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
4433 * doc/sourcebuild.texi: Document dg-require-effective-target
4434 llvm_binutils and offload_gcn.
4436 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
4437 Kwok Cheung Yeung <kcy@codesourcery.com>
4438 Julian Brown <julian@codesourcery.com>
4439 Tom de Vries <tom@codesourcery.com>
4441 * doc/sourcebuild.texi: Document dg-required-effective-target
4444 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
4445 Kwok Cheung Yeung <kcy@codesourcery.com>
4446 Julian Brown <julian@codesourcery.com>
4447 Tom de Vries <tom@codesourcery.com>
4448 Jan Hubicka <hubicka@ucw.cz>
4449 Martin Jambor <mjambor@suse.cz>
4451 * config.gcc: Add amdgcn*-*-amdhsa configuration.
4452 * configure.ac: Check for dlopen.
4453 * configure: Regenerate.
4455 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
4456 Kwok Cheung Yeung <kcy@codesourcery.com>
4457 Julian Brown <julian@codesourcery.com>
4458 Tom de Vries <tom@codesourcery.com>
4459 Jan Hubicka <hubicka@ucw.cz>
4460 Martin Jambor <mjambor@suse.cz>
4462 * common/config/gcn/gcn-common.c: New file.
4463 * config/gcn/driver-gcn.c: New file.
4464 * config/gcn/gcn-builtins.def: New file.
4465 * config/gcn/gcn-hsa.h: New file.
4466 * config/gcn/gcn-modes.def: New file.
4467 * config/gcn/gcn-opts.h: New file.
4468 * config/gcn/gcn-passes.def: New file.
4469 * config/gcn/gcn-protos.h: New file.
4470 * config/gcn/gcn-run.c: New file.
4471 * config/gcn/gcn-tree.c: New file.
4472 * config/gcn/gcn.c: New file.
4473 * config/gcn/gcn.h: New file.
4474 * config/gcn/gcn.opt: New file.
4475 * config/gcn/t-gcn-hsa: New file.
4477 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
4478 Kwok Cheung Yeung <kcy@codesourcery.com>
4479 Julian Brown <julian@codesourcery.com>
4480 Tom de Vries <tom@codesourcery.com>
4481 Jan Hubicka <hubicka@ucw.cz>
4482 Martin Jambor <mjambor@suse.cz>
4484 * config/gcn/constraints.md: New file.
4485 * config/gcn/gcn-valu.md: New file.
4486 * config/gcn/gcn.md: New file.
4487 * config/gcn/predicates.md: New file.
4489 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
4491 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
4492 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
4493 (stmt_uses_0_or_null_in_undefined_way): Likewise.
4494 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
4496 2019-01-17 Tamar Christina <tamar.christina@arm.com>
4499 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
4500 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
4501 it and document registers.
4503 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4505 * config/aarch64/aarch64.c (ares_tunings): Define.
4506 * config/aarch64/aarch64-cores.def (ares): Use the above.
4508 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
4512 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
4514 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
4515 (_mm512_fixupimm_round_pd): Update parameters and builtin.
4516 (_mm512_maskz_fixupimm_round_pd): Ditto.
4517 (_mm512_fixupimm_round_ps): Ditto.
4518 (_mm512_maskz_fixupimm_round_ps): Ditto.
4519 (_mm_fixupimm_round_sd): Ditto.
4520 (_mm_maskz_fixupimm_round_sd): Ditto.
4521 (_mm_fixupimm_round_ss): Ditto.
4522 (_mm_maskz_fixupimm_round_ss): Ditto.
4523 (_mm512_fixupimm_pd): Ditto.
4524 (_mm512_maskz_fixupimm_pd): Ditto.
4525 (_mm512_fixupimm_ps): Ditto.
4526 (_mm512_maskz_fixupimm_ps): Ditto.
4527 (_mm_fixupimm_sd): Ditto.
4528 (_mm_maskz_fixupimm_sd): Ditto.
4529 (_mm_fixupimm_ss): Ditto.
4530 (_mm_maskz_fixupimm_ss): Ditto.
4531 (_mm512_mask_fixupimm_round_pd): Update builtin.
4532 (_mm512_mask_fixupimm_round_ps): Ditto.
4533 (_mm_mask_fixupimm_round_sd): Ditto.
4534 (_mm_mask_fixupimm_round_ss): Ditto.
4535 (_mm512_mask_fixupimm_pd): Ditto.
4536 (_mm512_mask_fixupimm_ps): Ditto.
4537 (_mm_mask_fixupimm_sd): Ditto.
4538 (_mm_mask_fixupimm_ss): Ditto.
4539 * config/i386/avx512vlintrin.h:
4540 (_mm256_fixupimm_pd): Update parameters and builtin.
4541 (_mm256_maskz_fixupimm_pd): Ditto.
4542 (_mm256_fixupimm_ps): Ditto.
4543 (_mm256_maskz_fixupimm_ps): Ditto.
4544 (_mm_fixupimm_pd): Ditto.
4545 (_mm_maskz_fixupimm_pd): Ditto.
4546 (_mm_fixupimm_ps): Ditto.
4547 (_mm_maskz_fixupimm_ps): Ditto.
4548 (_mm256_mask_fixupimm_pd): Update builtin.
4549 (_mm256_mask_fixupimm_ps): Ditto.
4550 (_mm_mask_fixupimm_pd): Ditto.
4551 (_mm_mask_fixupimm_ps): Ditto.
4552 * config/i386/i386-builtin-types.def: Add new types and remove useless ones.
4553 * config/i386/i386-builtin.def: Update builtin definitions.
4554 * config/i386/i386.c: Handle new builtin types and remove useless ones.
4555 * config/i386/sse.md: Update VFIXUPIMM* patterns.
4556 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
4557 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
4558 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
4559 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
4560 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
4561 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
4562 * config/i386/subst.md:
4563 (round_saeonly_sd_mask_operand4): Add new subst_attr.
4564 (round_saeonly_sd_mask_op4): Ditto.
4565 (round_saeonly_expand_operand5): Ditto.
4566 (round_saeonly_expand): Update.
4568 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
4572 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
4574 * config/i386/sse.md: Combine VFIXUPIMM* patterns
4575 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
4576 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
4577 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
4578 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
4579 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
4580 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
4582 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
4586 2018-12-15 Jakub Jelinek <jakub@redhat.com>
4589 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
4590 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
4591 instead of UNSPEC_FIXUPIMM.
4593 2019-01-17 Richard Biener <rguenther@suse.de>
4596 * dwarf2out.c (want_pubnames): Never generate pubnames sections
4597 and friends for the LTO part of debug info.
4599 2019-01-17 Jakub Jelinek <jakub@redhat.com>
4601 PR tree-optimization/86214
4602 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
4605 PR rtl-optimization/88870
4606 * dce.c (deletable_insn_p): Never delete const/pure calls that can
4607 throw if we can't alter the cfg or delete dead exceptions.
4608 (mark_insn): Don't call find_call_stack_args for such calls.
4610 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
4612 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
4613 prototypes for vec_st.
4614 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
4615 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
4616 mainly on signed/unsigned long long and double.
4618 2019-01-16 David Malcolm <dmalcolm@redhat.com>
4621 * combine.c (delete_noop_moves): Convert to "bool" return,
4622 returning true if any edges are eliminated.
4623 (combine_instructions): Also return true if delete_noop_moves
4626 2019-01-16 Tamar Christina <tamar.christina@arm.com>
4628 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
4629 correct max nunits for endian swap.
4630 (aarch64_expand_fcmla_builtin): Correct subreg code.
4631 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
4632 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
4635 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
4637 * config/alpha/alpha.c (alpha_gimplify_va_arg):
4638 Handle split indirect COMPLEX_TYPE arguments.
4640 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
4643 * config/aarch64/aarch64-modes.def: Add comment about how the carry
4644 bit is set by add and compare.
4645 (CC_ADC): New CC_MODE.
4646 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
4647 to cache the code and mode of X. Adjust the shape of a CC_Cmode
4648 comparison. Add detection for CC_ADCmode.
4649 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
4651 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
4652 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
4653 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
4654 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
4655 to eliminate the need for zero-extending the operands.
4656 (add<mode>3_compareC_imm): Delete. Merge into ...
4657 (add<mode>3_compareC): ... this. Restructure the comparison to
4658 eliminate the need for zero-extending the operands.
4659 (add<mode>3_carryin): Use LTU for the overflow detection.
4660 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
4661 Reexpress comparison for overflow.
4662 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
4663 (add<mode>3_carryinC): Likewise.
4664 (add<mode>3_carryinV): Use LTU for carry between partials.
4665 * config/aarch64/predicates.md (aarch64_carry_operation): Update
4666 handling of CC_Cmode and add CC_ADCmode.
4667 (aarch64_borrow_operation): Likewise.
4669 2019-01-16 Tamar Christina <tamar.christina@arm.com>
4671 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): Remove patternmode.
4672 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
4673 * config/arm/neon.md (neon_vcmla_lane<rot><mode>, neon_vcmla_laneq<rot><mode>,
4674 neon_vcmlaq_lane<rot><mode>): Remove endianness conversion.
4676 2019-01-16 Martin Liska <mliska@suse.cz>
4678 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
4680 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
4682 * gcc.c (add_sysrooted_hdrs_prefix): New function.
4683 (path_prefix_reset): Move up in the source file.
4684 (find_fortran_preinclude_file): Make complex search for the
4685 fortran header files.
4687 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
4689 * godump.c (go_output_typedef): When outputting a typedef, refer
4690 to the underlying type by its name and not its structure.
4692 2019-01-15 David Malcolm <dmalcolm@redhat.com>
4695 * tree.c (build_function_type): Assert that arg_types is not
4698 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
4701 * doc/extend.texi: Document that listing the stack pointer in the
4702 clobber list of an asm is a deprecated feature.
4703 * common.opt (Wdeprecated): Moved from c-family/c.opt.
4704 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
4705 warning instead of an error for clobbers of the stack pointer.
4706 Add a note explaining why.
4708 2019-01-15 Richard Biener <rguenther@suse.de>
4711 * dwarf2out.c (gen_member_die): Do not generate inheritance
4714 2019-01-15 Richard Biener <rguenther@suse.de>
4716 PR tree-optimization/88855
4717 * tree-if-conv.c (combine_blocks): Collect
4718 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
4720 2019-01-15 Tom de Vries <tdevries@suse.de>
4723 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
4724 lhs == NULL_TREE for gang-level reduction.
4726 2019-01-15 Richard Biener <rguenther@suse.de>
4727 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4730 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
4731 return true if SSA_NAME is already marked in visited bitmap.
4732 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
4734 2019-01-15 Jakub Jelinek <jakub@redhat.com>
4736 PR tree-optimization/88775
4737 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
4738 equal == 0 equality pointer comparisons some more if compared in
4739 integral types and either one points to an automatic var and the
4740 other to a global, or we can prove at least one points to the middle
4741 or both point to start or both point to end.
4743 2019-01-14 Andi Kleen <ak@linux.intel.com>
4745 * Makefile.in: Lower autofdo sampling rate by 10x.
4746 * Makefile.tpl: Dito.
4748 2019-01-14 Tom Honermann <tom@honermann.net>
4750 * defaults.h: Define CHAR8_TYPE.
4752 2019-01-14 Martin Sebor <msebor@redhat.com>
4755 * doc/extend.texi (Darwin Format Checks): Clarify.
4757 2019-01-14 Richard Biener <rguenther@suse.de>
4759 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
4760 whether we are in (simplify ...) or (match ...) context.
4762 2019-01-14 Jakub Jelinek <jakub@redhat.com>
4764 PR rtl-optimization/88796
4765 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
4766 * cfgexpand.c (stack_protect_prologue): Initialize
4767 crtl->stack_protect_guard_decl.
4768 * function.c (stack_protect_epilogue): Use it instead of calling
4769 targetm.stack_protect_guard again.
4770 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
4771 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
4772 crtl->stack_protect_guard_decl.
4773 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
4774 on the returned MEM_EXPR.
4776 2019-01-12 Tom de Vries <tdevries@suse.de>
4778 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
4779 vector length using -fopenacc-dim.
4781 2019-01-12 Tom de Vries <tdevries@suse.de>
4783 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
4784 lengths into account.
4786 2019-01-12 Svante Signell <svante.signell@gmail.com>
4788 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
4789 (TARGET_CAN_SPLIT_STACK): Define.
4790 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
4792 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
4794 * params.def (inline-unit-growth): Set to 40.
4796 2019-01-12 Jakub Jelinek <jakub@redhat.com>
4798 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
4800 2019-01-12 Tom de Vries <tdevries@suse.de>
4802 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
4803 region calling vector-partitionable routine, set default_vector_length
4806 2019-01-12 Tom de Vries <tdevries@suse.de>
4808 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
4809 variable default_vector_length.
4811 2019-01-12 Tom de Vries <tdevries@suse.de>
4814 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
4815 from oacc_default_dims, as oacc_validate_dims would do it, and apply
4818 2019-01-12 Tom de Vries <tdevries@suse.de>
4820 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
4821 (nvptx_goacc_validate_dims): Add used parameter.
4822 * doc/tm.texi: Regenerate.
4823 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
4824 argument to call to targetm.goacc.validate_dims.
4825 (default_goacc_validate_dims): Add used
4827 * target.def (validate_dims): Add used parameter in DEFHOOK.
4828 * targhooks.h (default_goacc_validate_dims): Add used parameter.
4830 2019-01-11 Jakub Jelinek <jakub@redhat.com>
4834 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
4836 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
4837 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
4838 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
4839 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
4841 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
4843 PR rtl-optimization/87305
4845 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
4846 for little endian pseudos used as paradoxical subreg.
4848 2019-01-11 Jakub Jelinek <jakub@redhat.com>
4850 PR tree-optimization/88693
4851 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
4852 for STRING_CSTs that don't contain any NUL characters in the first
4853 TREE_STRING_LENGTH bytes.
4855 2019-01-11 Alan Modra <amodra@gmail.com>
4859 * genattrtab.c (min_fn): Don't translate values.
4860 (min_attr_value): Return INT_MAX when the value can't be calculated.
4861 Return minimum among any values that can be calculated.
4862 (max_attr_value): Adjust.
4864 2019-01-11 Jakub Jelinek <jakub@redhat.com>
4866 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
4868 2019-01-11 Steve Ellcey <sellcey@marvell.com>
4870 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
4871 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
4872 (aarch64_return_call_with_max_clobbers): New function.
4873 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
4874 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
4876 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
4877 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
4878 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
4879 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
4880 * cselib.c (cselib_process_insn): Add argument to
4881 targetm.hard_regno_call_part_clobbered call.
4882 * ira-conflicts.c (ira_build_conflicts): Ditto.
4883 * ira-costs.c (ira_tune_allocno_costs): Ditto.
4884 * lra-constraints.c (inherit_reload_reg): Ditto.
4885 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
4886 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
4887 argument. Call targetm.return_call_with_max_clobbers.
4888 Add argument to targetm.hard_regno_call_part_clobbered call.
4889 (calls_have_same_clobbers_p): New function.
4890 (process_bb_lives): Add call_insn and last_call_insn variables.
4891 Pass call_insn to check_pseudos_live_through_calls.
4892 Modify if stmt to check targetm.return_call_with_max_clobbers.
4893 Update setting of flush variable.
4894 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
4896 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
4897 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
4898 targetm.hard_regno_call_part_clobbered call.
4899 * reginfo.c (choose_hard_reg_mode): Ditto.
4900 * regrename.c (check_new_reg_p): Ditto.
4901 * reload.c (find_equiv_reg): Ditto.
4902 * reload1.c (emit_reload_insns): Ditto.
4903 * sched-deps.c (deps_analyze_insn): Ditto.
4904 * sel-sched.c (init_regs_for_mode): Ditto.
4905 (mark_unavailable_hard_regs): Ditto.
4906 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
4907 * target.def (hard_regno_call_part_clobbered): Add insn argument.
4908 (return_call_with_max_clobbers): New target function.
4909 * doc/tm.texi: Regenerate.
4910 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
4911 * hooks.c (hook_bool_uint_mode_false): Change to
4912 hook_bool_insn_uint_mode_false.
4913 * hooks.h (hook_bool_uint_mode_false): Ditto.
4915 2019-01-11 Steve Ellcey <sellcey@marvell.com>
4917 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
4918 (aarch64_remove_extra_call_preserved_regs): New function.
4919 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
4920 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
4921 * doc/tm.texi: Regenerate.
4922 * final.c (get_call_reg_set_usage): Call new hook.
4923 * target.def (remove_extra_call_preserved_regs): New hook.
4924 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
4925 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
4927 2019-01-11 Jakub Jelinek <jakub@redhat.com>
4930 * passes.c (finish_optimization_passes): Call print_combine_total_stats
4931 inside of pass_combine_1 dump rather than pass_profile_1.
4933 2019-01-11 Tom de Vries <tdevries@suse.de>
4935 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
4936 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
4937 (PTX_NUM_PER_WORKER_BARRIERS): Define.
4938 (nvptx_apply_dim_limits): Prevent vector_length 64 and
4941 2019-01-11 Tom de Vries <tdevries@suse.de>
4943 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
4945 2019-01-11 Jan Beulich <jbeulich@suse.com>
4947 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
4948 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
4949 sse2_cvtsi2sd): Add {l}.
4950 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
4953 2019-01-10 Jakub Jelinek <jakub@redhat.com>
4956 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
4958 (*float<floatunssuffix>v2div2sf2): New define_insn.
4959 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
4960 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
4961 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
4962 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
4963 match_operands with "const0_operand" "C".
4965 2019-01-10 Tamar Christina <tamar.christina@arm.com>
4967 * config/aarch64/aarch64-builtins.c
4968 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
4969 (aarch64_init_simd_builtins): ...Here
4971 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
4973 PR rtl-optimization/87305
4975 (setup_live_pseudos_and_spill_after_risky_transforms): Check
4976 allocation for big endian pseudos used as paradoxical subregs and
4977 spill them if it is wrong.
4978 * lra-constraints.c (lra_constraints): Add a comment.
4980 2019-01-10 Richard Biener <rguenther@suse.de>
4982 PR tree-optimization/88792
4983 * tree-ssa-pre.c (get_representative_for): Do not return a
4986 2019-01-10 Jakub Jelinek <jakub@redhat.com>
4990 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
4991 (assign_parm_setup_block): Do the argument slot realignment here
4994 2019-01-10 Stefan Agner <stefan@agner.ch>
4997 * config/arm/arm.c (arm_option_override_internal): Force
4998 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
5000 2019-01-10 Jakub Jelinek <jakub@redhat.com>
5003 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
5006 2019-01-10 Tamar Christina <tamar.christina@arm.com>
5008 * config/arm/arm-builtins.c
5009 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
5010 (MAC_LANE_PAIR_QUALIFIERS): New.
5011 (arm_expand_builtin_args): Use it.
5012 (arm_expand_builtin_1): Likewise.
5013 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
5014 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
5015 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
5016 * config/arm/arm_neon.h:
5017 (vcadd_rot90_f16): New.
5018 (vcaddq_rot90_f16): New.
5019 (vcadd_rot270_f16): New.
5020 (vcaddq_rot270_f16): New.
5023 (vcmla_lane_f16): New.
5024 (vcmla_laneq_f16): New.
5025 (vcmlaq_lane_f16): New.
5026 (vcmlaq_laneq_f16): New.
5027 (vcmla_rot90_f16): New.
5028 (vcmlaq_rot90_f16): New.
5029 (vcmla_rot90_lane_f16): New.
5030 (vcmla_rot90_laneq_f16): New.
5031 (vcmlaq_rot90_lane_f16): New.
5032 (vcmlaq_rot90_laneq_f16): New.
5033 (vcmla_rot180_f16): New.
5034 (vcmlaq_rot180_f16): New.
5035 (vcmla_rot180_lane_f16): New.
5036 (vcmla_rot180_laneq_f16): New.
5037 (vcmlaq_rot180_lane_f16): New.
5038 (vcmlaq_rot180_laneq_f16): New.
5039 (vcmla_rot270_f16): New.
5040 (vcmlaq_rot270_f16): New.
5041 (vcmla_rot270_lane_f16): New.
5042 (vcmla_rot270_laneq_f16): New.
5043 (vcmlaq_rot270_lane_f16): New.
5044 (vcmlaq_rot270_laneq_f16): New.
5045 (vcadd_rot90_f32): New.
5046 (vcaddq_rot90_f32): New.
5047 (vcadd_rot270_f32): New.
5048 (vcaddq_rot270_f32): New.
5051 (vcmla_lane_f32): New.
5052 (vcmla_laneq_f32): New.
5053 (vcmlaq_lane_f32): New.
5054 (vcmlaq_laneq_f32): New.
5055 (vcmla_rot90_f32): New.
5056 (vcmlaq_rot90_f32): New.
5057 (vcmla_rot90_lane_f32): New.
5058 (vcmla_rot90_laneq_f32): New.
5059 (vcmlaq_rot90_lane_f32): New.
5060 (vcmlaq_rot90_laneq_f32): New.
5061 (vcmla_rot180_f32): New.
5062 (vcmlaq_rot180_f32): New.
5063 (vcmla_rot180_lane_f32): New.
5064 (vcmla_rot180_laneq_f32): New.
5065 (vcmlaq_rot180_lane_f32): New.
5066 (vcmlaq_rot180_laneq_f32): New.
5067 (vcmla_rot270_f32): New.
5068 (vcmlaq_rot270_f32): New.
5069 (vcmla_rot270_lane_f32): New.
5070 (vcmla_rot270_laneq_f32): New.
5071 (vcmlaq_rot270_lane_f32): New.
5072 (vcmlaq_rot270_laneq_f32): New.
5073 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
5074 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180, vcmla_lane270,
5075 vcmla_laneq0, vcmla_laneq90, vcmla_laneq180, vcmla_laneq270,
5076 vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180, vcmlaq_lane270): New.
5077 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
5078 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
5079 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
5080 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
5081 (arm_option_reconfigure_globals): Use them.
5082 * config/arm/iterators.md (VDF, VQ_HSF): New.
5083 (VCADD, VCMLA): New.
5084 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
5085 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>): New.
5086 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
5087 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
5089 2019-01-10 Tamar Christina <tamar.christina@arm.com>
5091 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers): Add qualifier_lane_pair_index.
5092 (emit-rtl.h): Include.
5093 (TYPES_QUADOP_LANE_PAIR): New.
5094 (aarch64_simd_expand_args): Use it.
5095 (aarch64_simd_expand_builtin): Likewise.
5096 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum): New.
5097 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
5098 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
5099 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
5100 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
5101 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
5102 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF, AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
5103 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF, AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
5104 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF, AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
5105 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
5106 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
5107 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add __ARM_FEATURE_COMPLEX.
5108 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0, fcmla90,
5109 fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180, fcmla_lane270,
5110 fcmla_laneq0, fcmla_laneq90, fcmla_laneq180, fcmla_laneq270,
5111 fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180, fcmlaq_lane270): New.
5112 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
5113 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,aarch64_fcadd<rot><mode>,
5114 aarch64_fcmla<rot><mode>): New.
5115 * config/aarch64/arm_neon.h:
5116 (vcadd_rot90_f16): New.
5117 (vcaddq_rot90_f16): New.
5118 (vcadd_rot270_f16): New.
5119 (vcaddq_rot270_f16): New.
5122 (vcmla_lane_f16): New.
5123 (vcmla_laneq_f16): New.
5124 (vcmlaq_lane_f16): New.
5125 (vcmlaq_rot90_lane_f16): New.
5126 (vcmla_rot90_laneq_f16): New.
5127 (vcmla_rot90_lane_f16): New.
5128 (vcmlaq_rot90_f16): New.
5129 (vcmla_rot90_f16): New.
5130 (vcmlaq_laneq_f16): New.
5131 (vcmla_rot180_laneq_f16): New.
5132 (vcmla_rot180_lane_f16): New.
5133 (vcmlaq_rot180_f16): New.
5134 (vcmla_rot180_f16): New.
5135 (vcmlaq_rot90_laneq_f16): New.
5136 (vcmlaq_rot270_laneq_f16): New.
5137 (vcmlaq_rot270_lane_f16): New.
5138 (vcmla_rot270_laneq_f16): New.
5139 (vcmlaq_rot270_f16): New.
5140 (vcmla_rot270_f16): New.
5141 (vcmlaq_rot180_laneq_f16): New.
5142 (vcmlaq_rot180_lane_f16): New.
5143 (vcmla_rot270_lane_f16): New.
5144 (vcadd_rot90_f32): New.
5145 (vcaddq_rot90_f32): New.
5146 (vcaddq_rot90_f64): New.
5147 (vcadd_rot270_f32): New.
5148 (vcaddq_rot270_f32): New.
5149 (vcaddq_rot270_f64): New.
5153 (vcmla_lane_f32): New.
5154 (vcmla_laneq_f32): New.
5155 (vcmlaq_lane_f32): New.
5156 (vcmlaq_laneq_f32): New.
5157 (vcmla_rot90_f32): New.
5158 (vcmlaq_rot90_f32): New.
5159 (vcmlaq_rot90_f64): New.
5160 (vcmla_rot90_lane_f32): New.
5161 (vcmla_rot90_laneq_f32): New.
5162 (vcmlaq_rot90_lane_f32): New.
5163 (vcmlaq_rot90_laneq_f32): New.
5164 (vcmla_rot180_f32): New.
5165 (vcmlaq_rot180_f32): New.
5166 (vcmlaq_rot180_f64): New.
5167 (vcmla_rot180_lane_f32): New.
5168 (vcmla_rot180_laneq_f32): New.
5169 (vcmlaq_rot180_lane_f32): New.
5170 (vcmlaq_rot180_laneq_f32): New.
5171 (vcmla_rot270_f32): New.
5172 (vcmlaq_rot270_f32): New.
5173 (vcmlaq_rot270_f64): New.
5174 (vcmla_rot270_lane_f32): New.
5175 (vcmla_rot270_laneq_f32): New.
5176 (vcmlaq_rot270_lane_f32): New.
5177 (vcmlaq_rot270_laneq_f32): New.
5178 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
5179 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
5180 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
5181 (FCADD, FCMLA): New.
5183 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
5185 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
5189 * config/pa/pa.c: Change "can not" to "cannot".
5190 * gimple-ssa-evrp-analyze.c: Likewise.
5191 * ipa-icf.c: Likewise.
5192 * ipa-polymorphic-call.c: Likewise.
5193 * ipa-pure-const.c: Likewise.
5194 * lra-constraints.c: Likewise.
5195 * lra-remat.c: Likewise.
5196 * reload1.c: Likewise.
5197 * reorg.c: Likewise.
5198 * tree-ssa-uninit.c: Likewise.
5200 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
5204 * Makefile.in: Mechanically replace "can not" with "cannot".
5205 * alias.c: Likewise.
5206 * builtins.c: Likewise.
5207 * calls.c: Likewise.
5208 * cgraph.c: Likewise.
5209 * cgraph.h: Likewise.
5210 * cgraphclones.c: Likewise.
5211 * cgraphunit.c: Likewise.
5212 * combine-stack-adj.c: Likewise.
5213 * combine.c: Likewise.
5214 * common/config/i386/i386-common.c: Likewise.
5215 * config/aarch64/aarch64.c: Likewise.
5216 * config/alpha/sync.md: Likewise.
5217 * config/arc/arc.c: Likewise.
5218 * config/arc/predicates.md: Likewise.
5219 * config/arm/arm-c.c: Likewise.
5220 * config/arm/arm.c: Likewise.
5221 * config/arm/arm.h: Likewise.
5222 * config/arm/arm.md: Likewise.
5223 * config/arm/cortex-r4f.md: Likewise.
5224 * config/csky/csky.c: Likewise.
5225 * config/csky/csky.h: Likewise.
5226 * config/darwin-f.c: Likewise.
5227 * config/epiphany/epiphany.md: Likewise.
5228 * config/i386/i386.c: Likewise.
5229 * config/i386/sol2.h: Likewise.
5230 * config/m68k/m68k.c: Likewise.
5231 * config/mcore/mcore.h: Likewise.
5232 * config/microblaze/microblaze.md: Likewise.
5233 * config/mips/20kc.md: Likewise.
5234 * config/mips/sb1.md: Likewise.
5235 * config/nds32/nds32.c: Likewise.
5236 * config/nds32/predicates.md: Likewise.
5237 * config/pa/pa.c: Likewise.
5238 * config/rs6000/e300c2c3.md: Likewise.
5239 * config/rs6000/rs6000.c: Likewise.
5240 * config/s390/s390.h: Likewise.
5241 * config/sh/sh.c: Likewise.
5242 * config/sh/sh.md: Likewise.
5243 * config/spu/vmx2spu.h: Likewise.
5244 * cprop.c: Likewise.
5245 * dbxout.c: Likewise.
5246 * df-scan.c: Likewise.
5247 * doc/cfg.texi: Likewise.
5248 * doc/extend.texi: Likewise.
5249 * doc/fragments.texi: Likewise.
5250 * doc/gty.texi: Likewise.
5251 * doc/invoke.texi: Likewise.
5252 * doc/lto.texi: Likewise.
5253 * doc/md.texi: Likewise.
5254 * doc/objc.texi: Likewise.
5255 * doc/rtl.texi: Likewise.
5256 * doc/tm.texi: Likewise.
5258 * emit-rtl.c: Likewise.
5259 * emit-rtl.h: Likewise.
5260 * except.c: Likewise.
5261 * expmed.c: Likewise.
5263 * fold-const.c: Likewise.
5264 * genautomata.c: Likewise.
5265 * gimple-fold.c: Likewise.
5266 * hard-reg-set.h: Likewise.
5267 * ifcvt.c: Likewise.
5268 * ipa-comdats.c: Likewise.
5269 * ipa-cp.c: Likewise.
5270 * ipa-devirt.c: Likewise.
5271 * ipa-fnsummary.c: Likewise.
5272 * ipa-icf.c: Likewise.
5273 * ipa-inline-transform.c: Likewise.
5274 * ipa-inline.c: Likewise.
5275 * ipa-polymorphic-call.c: Likewise.
5276 * ipa-profile.c: Likewise.
5277 * ipa-prop.c: Likewise.
5278 * ipa-pure-const.c: Likewise.
5279 * ipa-reference.c: Likewise.
5280 * ipa-split.c: Likewise.
5281 * ipa-visibility.c: Likewise.
5283 * ira-build.c: Likewise.
5284 * ira-color.c: Likewise.
5285 * ira-conflicts.c: Likewise.
5286 * ira-costs.c: Likewise.
5287 * ira-int.h: Likewise.
5288 * ira-lives.c: Likewise.
5291 * loop-invariant.c: Likewise.
5292 * loop-unroll.c: Likewise.
5293 * lower-subreg.c: Likewise.
5294 * lra-assigns.c: Likewise.
5295 * lra-constraints.c: Likewise.
5296 * lra-eliminations.c: Likewise.
5297 * lra-lives.c: Likewise.
5298 * lra-remat.c: Likewise.
5299 * lra-spills.c: Likewise.
5301 * lto-cgraph.c: Likewise.
5302 * lto-streamer-out.c: Likewise.
5303 * postreload-gcse.c: Likewise.
5304 * predict.c: Likewise.
5305 * profile-count.h: Likewise.
5306 * profile.c: Likewise.
5307 * recog.c: Likewise.
5309 * reload.c: Likewise.
5310 * reload1.c: Likewise.
5311 * reorg.c: Likewise.
5312 * resource.c: Likewise.
5313 * rtl.def: Likewise.
5315 * rtlanal.c: Likewise.
5316 * sched-deps.c: Likewise.
5317 * sched-ebb.c: Likewise.
5318 * sched-rgn.c: Likewise.
5319 * sel-sched-ir.c: Likewise.
5320 * sel-sched.c: Likewise.
5321 * shrink-wrap.c: Likewise.
5322 * simplify-rtx.c: Likewise.
5323 * symtab.c: Likewise.
5324 * target.def: Likewise.
5325 * toplev.c: Likewise.
5326 * tree-call-cdce.c: Likewise.
5327 * tree-cfg.c: Likewise.
5328 * tree-complex.c: Likewise.
5329 * tree-core.h: Likewise.
5330 * tree-eh.c: Likewise.
5331 * tree-inline.c: Likewise.
5332 * tree-loop-distribution.c: Likewise.
5333 * tree-nrv.c: Likewise.
5334 * tree-profile.c: Likewise.
5335 * tree-sra.c: Likewise.
5336 * tree-ssa-alias.c: Likewise.
5337 * tree-ssa-dce.c: Likewise.
5338 * tree-ssa-dom.c: Likewise.
5339 * tree-ssa-forwprop.c: Likewise.
5340 * tree-ssa-loop-im.c: Likewise.
5341 * tree-ssa-loop-ivcanon.c: Likewise.
5342 * tree-ssa-loop-ivopts.c: Likewise.
5343 * tree-ssa-loop-niter.c: Likewise.
5344 * tree-ssa-phionlycprop.c: Likewise.
5345 * tree-ssa-phiopt.c: Likewise.
5346 * tree-ssa-propagate.c: Likewise.
5347 * tree-ssa-threadedge.c: Likewise.
5348 * tree-ssa-threadupdate.c: Likewise.
5349 * tree-ssa-uninit.c: Likewise.
5350 * tree-ssanames.c: Likewise.
5351 * tree-streamer-out.c: Likewise.
5354 * vr-values.c: Likewise.
5356 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
5358 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
5359 (ix86_split_xorsign): Ditto.
5360 * config/i386/i386.c (ix86_expand_xorsign): New function.
5361 (ix86_split_xorsign): Ditto.
5362 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
5363 (xorsign<mode>3): New expander.
5364 (xorsign<mode>3_1): New insn_and_split pattern.
5365 * config/i386/sse.md (xorsign<mode>3): New expander.
5367 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
5369 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
5370 (*tablejump_sp64): Likewise.
5371 (*tablejump<P:mode>): ...this.
5372 (*call_address_sp32): Merge into...
5373 (*call_address_sp64): Likewise.
5374 (*call_address<P:mode>): ...this.
5375 (*call_symbolic_sp32): Merge into...
5376 (*call_symbolic_sp64): Likewise.
5377 (*call_symbolic<P:mode>): ...this.
5378 (call_value): Remove constraint and add predicate.
5379 (*call_value_address_sp32): Merge into...
5380 (*call_value_address_sp64): Likewise.
5381 (*call_value_address<P:mode>): ...this.
5382 (*call_value_symbolic_sp32): Merge into...
5383 (*call_value_symbolic_sp64): Likewise.
5384 (*call_value_symbolic<P:mode>): ...this.
5385 (*sibcall_symbolic_sp32): Merge into...
5386 (*sibcall_symbolic_sp64): Likewise.
5387 (*sibcall_symbolic<P:mode>): ...this.
5388 (sibcall_value): Remove constraint and add predicate.
5389 (*sibcall_value_symbolic_sp32): Merge into...
5390 (*sibcall_value_symbolic_sp64): Likewise.
5391 (*sibcall_value_symbolic<P:mode>): ...this.
5392 (window_save): Minor tweak.
5393 (*branch_sp32): Merge into...
5394 (*branch_sp64): Likewise.
5395 (*branch<P:mode>): ...this.
5397 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
5398 James Clarke <jrtc27@jrtc27.com>
5401 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
5402 consistently in TLS address generation and adjust code to the renaming
5403 of patterns. Mark calls to __tls_get_addr as const.
5404 * config/sparc/sparc.md (tgd_hi22): Turn into...
5405 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
5406 (tgd_lo10): Turn into...
5407 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
5408 (tgd_add32): Merge into...
5409 (tgd_add64): Likewise.
5410 (tgd_add<P:mode>): ...this and use Pmode throughout.
5411 (tldm_hi22): Turn into...
5412 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
5413 (tldm_lo10): Turn into...
5414 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
5415 (tldm_add32): Merge into...
5416 (tldm_add64): Likewise.
5417 (tldm_add<P:mode>): ...this and use Pmode throughout.
5418 (tldm_call32): Merge into...
5419 (tldm_call64): Likewise.
5420 (tldm_call<P:mode>): ...this and use Pmode throughout.
5421 (tldo_hix22): Turn into...
5422 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
5423 (tldo_lox10): Turn into...
5424 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
5425 (tldo_add32): Merge into...
5426 (tldo_add64): Likewise.
5427 (tldo_add<P:mode>): ...this and use Pmode throughout.
5428 (tie_hi22): Turn into...
5429 (tie_hi22<P:mode>): ...this and use Pmode throughout.
5430 (tie_lo10): Turn into...
5431 (tie_lo10<P:mode>): ...this and use Pmode throughout.
5432 (tie_ld64): Use DImode throughout.
5433 (tie_add32): Merge into...
5434 (tie_add64): Likewise.
5435 (tie_add<P:mode>): ...this and use Pmode throughout.
5436 (tle_hix22_sp32): Merge into...
5437 (tle_hix22_sp64): Likewise.
5438 (tle_hix22<P:mode>): ...this and use Pmode throughout.
5439 (tle_lox22_sp32): Merge into...
5440 (tle_lox22_sp64): Likewise.
5441 (tle_lox22<P:mode>): ...this and use Pmode throughout.
5442 (*tldo_ldub_sp32): Merge into...
5443 (*tldo_ldub_sp64): Likewise.
5444 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
5445 (*tldo_ldub1_sp32): Merge into...
5446 (*tldo_ldub1_sp64): Likewise.
5447 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
5448 (*tldo_ldub2_sp32): Merge into...
5449 (*tldo_ldub2_sp64): Likewise.
5450 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
5451 (*tldo_ldsb1_sp32): Merge into...
5452 (*tldo_ldsb1_sp64): Likewise.
5453 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
5454 (*tldo_ldsb2_sp32): Merge into...
5455 (*tldo_ldsb2_sp64): Likewise.
5456 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
5457 (*tldo_ldub3_sp64): Use DImode throughout.
5458 (*tldo_ldsb3_sp64): Likewise.
5459 (*tldo_lduh_sp32): Merge into...
5460 (*tldo_lduh_sp64): Likewise.
5461 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
5462 (*tldo_lduh1_sp32): Merge into...
5463 (*tldo_lduh1_sp64): Likewise.
5464 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
5465 (*tldo_ldsh1_sp32): Merge into...
5466 (*tldo_ldsh1_sp64): Likewise.
5467 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
5468 (*tldo_lduh2_sp64): Use DImode throughout.
5469 (*tldo_ldsh2_sp64): Likewise.
5470 (*tldo_lduw_sp32): Merge into...
5471 (*tldo_lduw_sp64): Likewise.
5472 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
5473 (*tldo_lduw1_sp64): Use DImode throughout.
5474 (*tldo_ldsw1_sp64): Likewise.
5475 (*tldo_ldx_sp64): Likewise.
5476 (*tldo_stb_sp32): Merge into...
5477 (*tldo_stb_sp64): Likewise.
5478 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
5479 (*tldo_sth_sp32): Merge into...
5480 (*tldo_sth_sp64): Likewise.
5481 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
5482 (*tldo_stw_sp32): Merge into...
5483 (*tldo_stw_sp64): Likewise.
5484 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
5485 (*tldo_stx_sp64): Use DImode throughout.
5487 2018-01-09 Sudakshina Das <sudi.das@arm.com>
5489 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
5490 check configure option to set BTI and Return Address Signing.
5491 * configure.ac: Add --enable-standard-branch-protection and
5492 --disable-standard-branch-protection.
5493 * configure: Regenerated.
5494 * doc/install.texi: Document the same.
5496 2018-01-09 Sudakshina Das <sudi.das@arm.com>
5497 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5499 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
5500 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
5501 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
5503 * config/aarch64/aarch64-bti-insert.c: New file.
5504 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
5506 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
5508 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
5509 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
5510 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
5511 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
5513 2018-01-09 Sudakshina Das <sudi.das@arm.com>
5515 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
5516 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
5517 Disable bti for -mbranch-protection=none.
5518 (aarch64_handle_standard_branch_protection): Enable bti for
5519 -mbranch-protection=standard.
5520 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
5521 -mbranch-protection.
5522 (aarch64_bti_enabled): Check if bti is enabled.
5523 * config/aarch64/aarch64.opt: Declare target variable.
5524 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
5526 2018-01-09 Sudakshina Das <sudi.das@arm.com>
5528 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
5529 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
5530 (aarch64_expand_epilogue): Likewise.
5531 (aarch64_output_mi_thunk): Likewise
5532 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
5533 TAILCALL_ADDR_REGS to x16 and x17.
5534 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
5536 2018-01-09 Sudakshina Das <sudi.das@arm.com>
5538 * config/aarch64/aarch64-option-extensions.def: Define
5539 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
5540 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
5541 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
5542 (AARCH64_FL_PREDRES): New.
5543 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
5544 AARCH64_FL_PREDRES by default.
5545 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
5547 2018-01-09 Sudakshina Das <sudi.das@arm.com>
5549 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
5551 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
5552 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
5553 * doc/invoke.texi: Document ARMv8.5-A.
5555 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
5557 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
5558 (xorsign<mode>3): Likewise.
5560 2019-01-09 Jelinek <jakub@redhat.com>
5563 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
5564 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
5566 PR rtl-optimization/88331
5567 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
5568 not currently_expanding_to_rtl.
5570 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
5572 * doc/invoke.texi (-Os): Remove trailing spaces.
5573 (-finline-functions): Remove reference to -O2.
5575 2019-01-08 Jakub Jelinek <jakub@redhat.com>
5577 PR rtl-optimization/79593
5578 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
5580 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
5581 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
5583 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
5586 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
5590 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
5591 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
5593 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
5596 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
5597 ix86_avx_u128_mode_entry.
5599 2019-01-08 Martin Liska <mliska@suse.cz>
5601 PR tree-optimization/88753
5602 * tree-switch-conversion.c (switch_conversion::build_one_array):
5603 Come up with local variable constructor. Convert first to
5604 type of constructor values.
5606 2019-01-08 Richard Biener <rguenther@suse.de>
5608 PR tree-optimization/86554
5609 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
5610 rpo_avail): Move earlier.
5611 (visit_nary_op): When value-numbering to expressions
5612 with different overflow behavior make sure there's an
5613 available expression on the path.
5615 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
5617 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
5618 aarch64_parse_branch_protection,
5619 struct aarch64_branch_protect_type,
5620 aarch64_handle_no_branch_protection,
5621 aarch64_handle_standard_branch_protection,
5622 aarch64_validate_mbranch_protection,
5623 aarch64_handle_pac_ret_protection,
5624 aarch64_handle_attr_branch_protection,
5625 accepted_branch_protection_string,
5626 aarch64_pac_ret_subtypes,
5627 aarch64_branch_protect_types,
5628 aarch64_handle_pac_ret_leaf): Define.
5629 (aarch64_override_options_after_change_1, aarch64_override_options):
5630 Add check for accepted_branch_protection_string.
5631 (aarch64_option_save): Save accepted_branch_protection_string.
5632 (aarch64_option_restore): Save accepted_branch_protection_string.
5633 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
5634 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
5635 msign-return-address.
5636 * doc/invoke.texi: Add mbranch-protection.
5638 2019-01-08 Alan Modra <amodra@gmail.com>
5641 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
5642 Delete "unknownp" parameter. Adjust callers. Handle
5643 CONST_INT, PLUS, MINUS, and MULT.
5644 (attr_value_aligned): Renamed from or_attr_value.
5645 (min_attr_value): Return INT_MIN for unhandled rtl case..
5646 (min_fn): ..and translate to INT_MAX here.
5647 (write_length_unit_log): Modify to cope without "unknown".
5648 (write_attr_value): Handle IF_THEN_ELSE.
5650 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
5652 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
5653 optimization for masked stores.
5655 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
5658 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
5659 output vector directly to duplicate_and_interleave instead of
5660 going through a temporary. Postpone insertion of ctor_seq to
5661 the end of the loop.
5663 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
5666 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
5667 unsigned_p. Handle signed and unsigned overflow correction as
5669 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
5671 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
5673 (add<mode>3_compareV_imm): Make this callable for expanding.
5674 (subv<GPI:mode>4): Use register_operand for operand 1. Use
5675 aarch64_plus_operand for operand 2.
5676 (subv<GPI:mode>_insn): New insn pattern.
5677 (subv<GPI:mode>_imm): Likewise.
5678 (negv<GPI:mode>3): New expand pattern.
5679 (negv<GPI:mode>_insn): New insn pattern.
5680 (negv<GPI:mode>_cmp_only): Likewise.
5681 (cmpv<GPI:mode>_insn): Likewise.
5682 (subvti4): Use register_operand for operand 1. Update call to
5683 aarch64_expand_subvti.
5684 (usubvti4): Likewise.
5685 (negvti3): New expand pattern.
5686 (negdi_carryout): New insn pattern.
5687 (negvdi_carryinV): New insn pattern.
5688 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
5689 version the named version.
5690 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
5692 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
5694 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
5696 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
5697 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
5698 (sub<mode>3_carryinCV): Delete.
5699 (sub<GPI:mode>3_carryinV): New expand pattern.
5700 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
5702 2019-01-07 Richard Biener <rguenther@suse.de>
5704 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
5705 of tree_operand_hash.
5707 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
5709 PR tree-optimization/88598
5710 * tree.h (single_nonzero_element): Declare.
5711 * tree.c (single_nonzero_element): New function.
5712 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
5713 if I is the only nonzero element of CST.
5715 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
5717 PR tree-optimization/88598
5718 * tree.h (initializer_each_zero_or_onep): Declare.
5719 * tree.c (initializer_each_zero_or_onep): New function.
5720 (signed_or_unsigned_type_for): Handle float types too.
5721 (unsigned_type_for, signed_type_for): Update comments accordingly.
5722 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
5723 x & { 0 or -1, 0 or -1, ... }.
5725 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
5727 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
5728 with x86_64-pc-linux-gnu.
5730 2019-01-07 Tom de Vries <tdevries@suse.de>
5733 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
5735 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
5738 2019-01-07 Jakub Jelinek <jakub@redhat.com>
5740 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
5741 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
5742 TARGET_AVX512F as condition.
5745 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
5746 const_not_ok_for_debug_p target hook.
5747 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
5748 on UNSPEC and subexpressions thereof if all subexpressions of the
5749 UNSPEC are CONSTANT_P.
5751 PR tree-optimization/88676
5752 * tree-ssa-phiopt.c (two_value_replacement): New function.
5753 (tree_ssa_phiopt_worker): Call it.
5756 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
5757 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
5760 * tree-vect-generic.c: Include insn-config.h and recog.h.
5761 (expand_vector_piecewise): Add defaulted ret_type argument,
5762 if non-NULL, use that in preference to type for the result type.
5763 (expand_vector_parallel): Formatting fix.
5764 (do_vec_conversion, do_vec_narrowing_conversion,
5765 expand_vector_conversion): New functions.
5766 (expand_vector_operations_1): Call expand_vector_conversion
5767 for VEC_CONVERT ifn calls.
5768 * internal-fn.def (VEC_CONVERT): New internal function.
5769 * internal-fn.c (expand_VEC_CONVERT): New function.
5770 * fold-const-call.c (fold_const_vec_convert): New function.
5771 (fold_const_call): Use it for CFN_VEC_CONVERT.
5772 * doc/extend.texi (__builtin_convertvector): Document.
5774 2019-01-07 Tom de Vries <tdevries@suse.de>
5776 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
5777 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
5778 vector_red_partition, vector_red_sym): New global variables.
5779 (nvptx_option_override): Initialize vector_red_sym.
5780 (nvptx_declare_function_name): Restore red_partition register.
5781 (nvptx_file_end): Emit code to declare the vector reduction variables.
5782 (nvptx_output_red_partition): New function.
5783 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
5784 large vector reductions.
5785 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
5786 (nvptx_init_builtins): Add VECTOR_ADDR.
5787 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
5788 Handle nvptx_expand_shared_addr.
5789 (nvptx_get_shared_red_addr): Add vector argument and handle large
5791 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
5793 (nvptx_goacc_reduction_init): Likewise.
5794 (nvptx_goacc_reduction_fini): Likewise.
5795 (nvptx_goacc_reduction_teardown): Likewise.
5796 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
5797 init,fini,teardown}.
5798 (nvptx_init_axis_predicate): Initialize vector_red_partition.
5799 (nvptx_set_current_function): Init vector_red_partition.
5800 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
5801 (nvptx_red_partition): New insn.
5802 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
5804 2019-01-07 Tom de Vries <tdevries@suse.de>
5807 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
5810 2019-01-07 Tom de Vries <tdevries@suse.de>
5812 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
5813 (nvptx_option_override): Init oacc_bcast_partition.
5814 (nvptx_init_oacc_workers): New function.
5815 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
5816 (nvptx_needs_shared_bcast): New function.
5817 (nvptx_find_par): Generalize to enable vectors to use shared-memory
5819 (nvptx_shared_propagate): Initialize vector bcast partition and
5820 synchronization state.
5821 (nvptx_single): Generalize to enable vectors to use shared-memory
5823 (nvptx_process_pars): Likewise.
5824 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
5825 * config/nvptx/nvptx.h (struct machine_function): Add
5826 bcast_partition and sync_bar members.
5828 2019-01-07 Tom de Vries <tdevries@suse.de>
5830 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
5831 (nvptx_apply_dim_limits): New function.
5832 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
5835 2019-01-07 Tom de Vries <tdevries@suse.de>
5837 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
5838 as late as possible.
5840 2019-01-07 Tom de Vries <tdevries@suse.de>
5842 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
5843 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
5844 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
5845 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
5846 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
5848 2019-01-07 Tom de Vries <tdevries@suse.de>
5850 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
5852 2019-01-07 Tom de Vries <tdevries@suse.de>
5854 * omp-offload.c (oacc_get_min_dim): New function.
5855 * omp-offload.h (oacc_get_min_dim): Declare.
5857 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
5860 * config/i386/i386.c (function_value_ms_64): Return small sturct in
5861 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
5863 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
5867 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
5869 * ipa-inline.c (edge_badness): Use inlined_time instead of
5870 inline_summaries->get.
5872 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
5874 * opts.c (enable_fdo_optimizations): Enable
5875 version-loops-for-strides, loop-interchange, unrol-and-jam
5876 and tree-loop-distribution.
5877 * invoke.texi: Document newly enabled options.
5879 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
5881 * doc/invoke.texi (max-inline-insns-small): New parameters.
5882 * ipa-inline.c (want_early_inline_function_p): simplify.
5883 (want_inline_small_function_p): Fix pasto from previous patch;
5884 use max-inline-insns-small bound.
5885 * params.def (max-inline-insns-small): New param.
5886 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
5887 variables correctly.
5889 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
5891 * doc/invoke.texi: Document max-inline-insns-size,
5892 uninlined-function-insns, uninlined-function-time,
5893 uninlined-thunk-insns and uninlined-thunk-time.
5894 * params.def: Add max-inline-insns-size,
5895 uninlined-function-insns, uninlined-function-time,
5896 uninlined-thunk-insns and uninlined-thunk-time.
5897 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
5899 * ipa-inline.c (can_inline_edge_by_limits_p,
5900 want_inline_small_function_p): Use new parameters.
5902 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
5904 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
5906 2019-01-05 Jakub Jelinek <jakub@redhat.com>
5910 * expr.c (expand_assignment): For calls returning VLA structures
5911 if to_rtx is not a MEM, force it into a stack temporary.
5914 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
5915 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
5916 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
5917 subexpressions of both operands.
5918 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
5919 subrtxes are CONSTANT_P.
5920 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
5923 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
5925 * params.def (hot-bb-count-ws-permille): Set to 990.
5927 2019-01-04 Martin Sebor <msebor@redhat.com>
5930 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
5933 2019-01-04 Martin Sebor <msebor@redhat.com>
5936 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
5938 2019-01-04 Jakub Jelinek <jakub@redhat.com>
5940 * gdbinit.in: Turn off pagination for the skip commands, restore
5941 it to previous state afterwards.
5943 2019-01-04 Jakub Jelinek <jakub@redhat.com>
5946 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
5947 of GET_MODE (opN) as modes of the libcall arguments.
5949 2019-01-04 Jan Beulich <jbeulich@suse.com>
5951 * config/i386/sse.md
5952 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
5953 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
5954 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
5955 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
5956 avx512f_vmcmp<mode>3<round_saeonly_name>,
5957 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
5958 avx512f_maskcmp<mode>3,
5959 <avx512>_cvt<ssemodesuffix>2mask<mode>,
5960 <avx512>_cvt<ssemodesuffix>2mask<mode>,
5961 *<avx512>_cvtmask2<ssemodesuffix><mode>,
5962 *<avx512>_cvtmask2<ssemodesuffix><mode>,
5963 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
5964 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
5965 <avx512>_gt<mode>3<mask_scalar_merge_name>,
5966 <avx512>_gt<mode>3<mask_scalar_merge_name>,
5967 <avx512>_testm<mode>3<mask_scalar_merge_name>,
5968 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
5969 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
5970 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
5971 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
5972 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
5973 avx512cd_maskb_vec_dup<mode>,
5974 avx512cd_maskw_vec_dup<mode>,
5975 avx512dq_fpclass<mode><mask_scalar_merge_name>,
5976 avx512dq_vmfpclass<mode>,
5977 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
5980 2019-01-03 Martin Sebor <msebor@redhat.com>
5982 PR tree-optimization/88659
5983 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
5985 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
5987 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
5988 unaligned vsx and avoid lxvd2x/stxvd2x.
5989 (gen_lvx_v4si_move): New function.
5991 2019-01-03 Tom de Vries <tdevries@suse.de>
5993 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
5994 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
5996 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
5998 2019-01-03 Tom de Vries <tdevries@suse.de>
6000 * config/nvptx/nvptx.c (struct offload_attrs): New.
6001 (populate_offload_attrs): New function. Factor mask extraction out of
6002 nvptx_reorg. Add extraction of dimensions.
6003 (nvptx_reorg): Use populate_offload_attrs.
6005 2019-01-03 Tom de Vries <tdevries@suse.de>
6007 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
6008 cases for oacc_min_dims_p and routine_p. Add asserts for
6009 oacc_default_dims_p and offload_region_p.
6011 2019-01-03 Tom de Vries <tdevries@suse.de>
6013 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
6015 (nvptx_goacc_validate_dims): ... here.
6017 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
6019 PR tree-optimization/85574
6020 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
6022 (struct ssa_equip_hash_traits): Declare.
6023 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
6025 2019-01-03 Jakub Jelinek <jakub@redhat.com>
6028 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
6029 change it to qualified_type.
6031 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
6033 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
6034 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
6036 2019-01-02 Martin Sebor <msebor@redhat.com>
6037 Jeff Law <law@redhat.com>
6039 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
6040 (get_range_strlen_tree): Update appropriately.
6042 * gimple-fold.h (get_range_strlen): Drop unused last argument.
6044 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
6045 rather than set_range_info.
6046 * tree-ssa-strlen.c (set_strlen_range): Extracted from
6047 maybe_set_strlen_range. Handle potentially boundary crossing
6048 cases more conservatively.
6049 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
6050 Call set_strlen_range.
6051 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
6054 * gimple-fold.c (get_range_strlen): Update prototype to no longer
6055 need the flexp argument.
6056 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
6057 from calls to get_range_strlen. Update comments. Just update
6058 VAL for an unterminated const char array and let the reset of the
6059 code handle it normally. No longer try to set *flexp. Adjust
6061 (get_range_strlen): Update for the new get_range_strlen API.
6062 (get_maxval_strlen): Similarly.
6063 (gimple_fold_builtin_strlen): Handle update meaning of return value
6064 from get_range_strlen.
6065 * gimple-ssa-sprintf.c (get_string_length): Update for the new
6066 get_range_strlen API.
6068 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
6071 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
6072 false at WPA time when body was removed.
6074 2019-01-02 Martin Liska <mliska@suse.cz>
6076 PR tree-optimization/88650
6077 * predict.c (set_even_probabilities): Calculate probability
6078 remainer only when really used.
6080 2019-01-02 Richard Biener <rguenther@suse.de>
6083 * tree-data-ref.c (analyze_subscript_affine_affine): Use
6084 widest_ints when mangling max_stmt_execution results.
6086 2019-01-02 Richard Biener <rguenther@suse.de>
6088 PR tree-optimization/88621
6089 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
6090 bitfields when canoncalizing.
6092 2019-01-02 Richard Biener <rguenther@suse.de>
6095 * config/i386/x86-tune-costs.h (intel_cost): Adjust
6096 cost of cheap SSE instruction.
6098 2019-01-02 Richard Biener <rguenther@suse.de>
6101 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
6102 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
6104 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
6105 set after UIDs before splitting them.
6107 2019-01-01 Martin Sebor <msebor@redhat.com>
6108 Jeff Law <law@redhat.com>
6110 * gimple-fold.c (get_range_strlen_tree): Record if the computed
6111 length is optimistic. If it is, then arrange to compute the
6112 conservative length as well.
6114 * gimple-fold.h (get_range_strlen): Update prototype.
6115 * builtins.c (check_access): Update call to get_range_strlen to use
6116 c_strlen_data pointer. Change various variable accesses to instead
6117 pull data from the c_strlen_data structure.
6118 (check_strncat_sizes, expand_builtin_strncat): Likewise.
6119 * calls.c (maybe_warn_nonstring_arg): Likewise.
6120 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
6121 minimum length if maximum lengh is unknown.
6122 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
6123 that used c_strlen, it's no longer needed. Restructure slightly.
6124 (format_string): Set unlikely range appropriately.
6125 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
6127 (get_range_strlen): Accept c_strlen_data pointer for external
6128 call sites as well. Pass through to call to internal get_range_strlen.
6129 Adjust minlen, maxlen and maxbound as needed.
6130 (get_maxval_strlen): Update comments.
6131 (gimple_fold_builtin_strlen): Update call to get_range_strlen
6132 to use c_strlen_data pointer. Change variable accesses to instead
6133 use c_strlen_data data members.
6135 * gimple-fold.c (get_range_strlen): Update prototype.
6136 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
6137 local variables. Use pdata to return information to caller.
6138 Update calls to get_range_strlen. Update pdata->maxbound.
6139 (get_range_strlen -- static version): Similarly.
6140 (get_range_strlen -- extern version): Update for internal
6141 get_range_strlen API change. Convert to external data format.
6142 (get_maxval_strlen): Similarly.
6144 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
6146 * coverage.c (get_coverage_counts): Use current_function_decl.
6147 * profile.c (read_thunk_profile): New function.
6148 (branch_prob): Add THUNK parameter.
6149 * tree-profile.c (tree_profiling): Handle thunks.
6150 * value-prof.c (init_node_map): Handle thunks.
6151 * value-prof.h (branch_prob): Upate prototype.
6152 (read_thunk_profile): Declare.
6154 2019-01-01 Jakub Jelinek <jakub@redhat.com>
6156 Update copyright years.
6158 * gcc.c (process_command): Update copyright notice dates.
6159 * gcov-dump.c (print_version): Ditto.
6160 * gcov.c (print_version): Ditto.
6161 * gcov-tool.c (print_version): Ditto.
6162 * gengtype.c (create_file): Ditto.
6163 * doc/cpp.texi: Bump @copying's copyright year.
6164 * doc/cppinternals.texi: Ditto.
6165 * doc/gcc.texi: Ditto.
6166 * doc/gccint.texi: Ditto.
6167 * doc/gcov.texi: Ditto.
6168 * doc/install.texi: Ditto.
6169 * doc/invoke.texi: Ditto.
6171 Copyright (C) 2019 Free Software Foundation, Inc.
6173 Copying and distribution of this file, with or without modification,
6174 are permitted in any medium without royalty provided the copyright
6175 notice and this notice are preserved.