1 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
4 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
5 TARGET_MMX_WITH_SSE. Add SSE emulation.
6 (mmx_<shift_insn><mode>3): Likewise.
8 (<shift_insn><mode>3): Likewise.
10 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
13 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
14 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
16 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
21 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
24 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
30 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
33 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
36 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
37 (plusminus:mmx_<plusminus_insn><mode>3): Check
39 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
40 (<plusminus_insn><mode>3): New.
41 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
42 (*mmx_<plusminus_insn><mode>3): Likewise.
44 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
47 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
48 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
50 * config/i386/mmx.m (mmx_punpckhbw): Changed to
51 define_insn_and_split to support SSE emulation.
52 (mmx_punpcklbw): Likewise.
53 (mmx_punpckhwd): Likewise.
54 (mmx_punpcklwd): Likewise.
55 (mmx_punpckhdq): Likewise.
56 (mmx_punpckldq): Likewise.
58 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
59 Uros Bizjak <ubizjak@gmail.com>
62 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
64 (ix86_split_mmx_pack): Likewise.
65 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
67 (ix86_split_mmx_pack): Likewise.
68 * config/i386/i386.md (mmx_isa): New.
69 (enabled): Also check mmx_isa.
70 * config/i386/mmx.md (any_s_truncate): New code iterator.
71 (s_trunsuffix): New code attr.
72 (mmx_packsswb): Removed.
73 (mmx_packssdw): Likewise.
74 (mmx_packuswb): Likewise.
75 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
76 MMX packsswb/packuswb with SSE2.
77 (mmx_packssdw): Likewise.
78 * config/i386/predicates.md (register_mmxmem_operand): New.
80 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
83 * config/i386/i386-c.c (ix86_target_macros_internal): Define
84 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
85 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
86 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
87 (ix86_vector_mode_supported_p): Likewise.
88 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
90 2019-05-15 Martin Liska <mliska@suse.cz>
93 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
96 2019-05-15 Richard Biener <rguenther@suse.de>
98 * tree-into-ssa.c (pass_build_ssa::execute): Run
99 update_address_taken before going into SSA.
101 2019-05-15 Richard Biener <rguenther@suse.de>
103 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
104 as __BIT_FIELD_REF with type with -gimple.
106 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
108 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
109 semantically equivalent branches (left over after prior refactorings).
111 2019-05-15 Richard Biener <rguenther@suse.de>
113 PR tree-optimization/88828
114 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
117 2019-05-14 Richard Biener <rguenther@suse.de>
119 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
120 as __VIEW_CONVERT with -gimple.
122 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
125 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
128 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
130 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
131 define_split to become a define_insn_and_split.
133 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
135 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
137 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
138 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
139 (sibcall_epilogue): Adjust.
142 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
144 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
146 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
147 * config.host: Likewise.
148 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
149 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
150 __svr4__]: Remove "brand" fallback.
151 [!KSTAT_DATA_STRING]: Remove.
152 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
154 (comdat_group): Likewise.
155 (set_have_as_tls): Likewise.
156 (gcc_cv_target_dl_iterate_phdr): Likewise.
157 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
158 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
159 * configure: Regenerate.
160 * doc/install.texi: Simplify Solaris target triplets.
161 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
162 (Specific, *-*-solaris2*): Document Solaris 10 removal.
163 Remove Solaris 10 references.
164 Remove obsolete Solaris bug reference.
165 (Specific, sparc-sun-solaris2.10): Remove.
167 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
169 * config/i386/i386.md (any_div): New code iterator.
170 (paired_mod): New code attribute.
171 (sgnprefix): Handle DIV and UDIV RTXes.
173 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
174 and udivmod<mode>4 patterns using any_div code iterator.
175 (divmod splitters): Macroize splitters using any_div code iterator.
176 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
177 (*udivmodsi4_pow2_zext_2): Ditto.
178 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
179 and *udivmod<mode>4_noext patterns using any_div code iterator.
180 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
181 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
182 patterns using any_div code iterator.
183 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
184 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
185 patterns using any_div code iterator.
186 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
187 udivmodhiqi3 patterns using any_extend code iterator.
189 2019-05-14 Richard Biener <rguenther@suse.de>
190 H.J. Lu <hongjiu.lu@intel.com>
192 PR tree-optimization/88828
193 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
194 permuting in a single non-constant element not extracted
197 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
199 * internal-fn.def (SIGNBIT): New.
200 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
202 (signbitv4sf2): Likewise.
204 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
207 * config/mips/mips.c (mips_split_move): Skip forward SRC into
208 next insn when the SRC reg is dead.
210 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
212 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
213 (alloc_cand_and_find_basis): Ditto.
214 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
215 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
216 (create_add_imm_cand, slsr_process_cast): Ditto.
217 (slsr_process_copy, replace_mult_candidate): Ditto.
218 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
219 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
220 (pass_strength_reduction::execute): Init the first NULL element.
222 2019-05-13 Nathan Sidwell <nathan@acm.org>
224 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
225 (run_attempt): Reformat line break.
227 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
230 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
231 data registers in sibcall epilogues.
232 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
234 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
237 * configure.ac (--enable-frame-pointer):
238 Disable by default for cygwin and mingw.
239 * configure: Regenerate.
241 2019-05-13 Nathan Sidwell <nathan@acm.org>
243 * dwarf2out.c (breakout_comdat_types): Move comment to correct
245 (const_ok_for_output_1): Balance parens around #if/#else/#endif
246 (gen_member_die): Move abstract origin check earlier. Only VARs
247 can be static_inline_p. Simplify splicing control flow.
249 2019-05-13 Richard Biener <rguenther@suse.de>
251 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
253 (vect_build_slp_tree_1): Likewise.
255 2019-05-13 Richard Biener <rguenther@suse.de>
257 PR tree-optimization/90402
258 * tree-if-conv.c (tree_if_conversion): Value number only
259 the loop body by making the latch an exit of the region
261 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
263 (do_rpo_vn): Deal with multiple edges into the entry block
264 that are not backedges inside the region by skipping PHIs
267 2019-05-13 Richard Biener <rguenther@suse.de>
269 PR tree-optimization/90316
270 * tree-ssa-pre.c (insert_aux): Fold into ...
271 (insert): ... this function. Use a RPO walk to reduce the
272 number of required iterations.
274 2019-05-13 Martin Liska <mliska@suse.cz>
276 PR tree-optimization/90416
277 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
278 string instead of passing the second part as va_arg argument.
280 2019-05-13 Martin Liska <mliska@suse.cz>
282 PR gcov-profile/90380
283 * gcov.c (handle_cycle): Do not support zero cycle count,
284 it should not be possible.
285 (path_contains_zero_cycle_arc): New function.
286 (circuit): Ignore zero cycle arc counts.
288 2019-05-13 Martin Liska <mliska@suse.cz>
290 PR gcov-profile/90380
291 * gcov.c (enum loop_type): Remove the enum and
293 (handle_cycle): Assert that we should not reach
295 (circuit): Use loop_found instead of a tri-state loop_type.
296 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
299 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
302 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
303 (ix86_output_indirect_branch_via_reg): Use output mechanism
304 accounting for __USER_LABEL_PREFIX__.
305 (ix86_output_indirect_branch_via_push): Likewise.
306 (ix86_output_function_return): Likewise.
307 (ix86_output_indirect_function_return): Likewise.
309 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
311 * doc/md.texi: Document use of code attributes in rtx patterns.
312 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
313 * read-rtl.c (find_code): Split out search loops into...
314 (maybe_find_code): ...this new function.
315 (check_code_iterator): Make the error message more informative.
316 (check_code_attribute): New function.
317 (rtx_reader::rtx_alloc_for_name): Likewise.
318 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
319 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
320 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
321 <max_opp> directly as an rtx code instead of via a match_operator.
322 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
323 (<su>abd<mode>_3): Update accordingly.
325 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
327 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
328 is given, print the state of the EH "save world" computation for
331 2019-05-11 Jakub Jelinek <jakub@redhat.com>
334 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
335 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
337 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
339 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
340 Use pinsrd for TARGET_SSE4_1.
341 * config/i386/sse.md (movdi_to_sse): Ditto.
343 2019-05-10 Richard Biener <rguenther@suse.de>
345 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
346 (do_rpo_vn): Initialize next_value_id.
348 2019-05-10 Martin Liska <mliska@suse.cz>
350 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
353 2019-05-10 Jakub Jelinek <jakub@redhat.com>
355 PR tree-optimization/90385
356 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
357 arguments of the exit phis.
360 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
361 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
363 (copy_tree_body_r): Likewise.
364 (copy_fn): Set id.do_not_fold to true.
366 2019-05-10 Martin Liska <mliska@suse.cz>
368 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
369 Reapply changes from r269790.
371 2019-05-10 Martin Liska <mliska@suse.cz>
374 * doc/invoke.texi: New params.
375 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
376 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
377 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
379 * tree-switch-conversion.h (struct jump_table_cluster):
382 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
384 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
386 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
388 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
390 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
392 PR rtl-optimization/88879
393 * sel-sched.c (sel_target_adjust_priority): Remove assert.
395 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
398 * config/arm/arm.c (callee_saved_reg_p): Move before
399 thumb_find_work_register.
400 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
401 thumb_find_work_register. Only call df_get_live_out once.
402 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
403 (thumb_find_work_register): Use
404 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
405 algorithms to locate a spare call clobbered reg.
407 2019-05-09 Martin Liska <mliska@suse.cz>
409 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
410 and MAX_EXPR in GIMPLE FE format.
412 2019-05-09 Martin Liska <mliska@suse.cz>
414 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
415 * gimple-pretty-print.c (dump_gimple_bb_header):
417 (pp_cfg_jump): Dump edge probability.
418 * profile-count.c (profile_quality_as_string): Simplify
420 (parse_profile_quality): New function.
421 (profile_count::dump): Simplify with a static array.
422 (profile_count::from_gcov_type): Add new argument.
423 * profile-count.h (parse_profile_quality): Likewise.
424 * predict.h (set_hot_bb_threshold): New.
425 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
427 * predict.c (get_hot_bb_threshold): Set from the new param.
428 (set_hot_bb_threshold): New.
430 2019-05-09 Richard Biener <rguenther@suse.de>
432 PR tree-optimization/90395
433 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
434 rewrite vector stores that throw internally.
436 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
438 * cif-code.def (CHKP): Remove.
441 * configure.ac (--enable-frame-pointer): Disable by default for
443 * configure: Regenerate.
445 2019-05-09 Alan Modra <amodra@gmail.com>
448 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
449 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
450 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
451 cost for general <-> vsx when direct moves are available.
452 Cost union classes at minimal cost for any reg in the class.
453 Correct calculation for moves between vsx, float, and altivec.
454 Don't return a low cost for moves between special regs. Don't
455 use hard coded register numbers.
456 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
457 (rs6000_ira_change_pseudo_allocno_class): New function.
458 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
459 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
461 (movsi_internal1): Don't disparage vector alternatives.
462 (mov<mode>_internal): Likewise, excepting alternative that
464 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
467 2019-05-08 Jakub Jelinek <jakub@redhat.com>
470 PR tree-optimization/89060
471 * tree-ssa-live.h (live_vars_map): New typedef.
472 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
473 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
474 (struct compute_live_vars_data): New type.
475 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
476 live_vars_at_stmt, destroy_live_vars): New functions.
477 * tree-tailcall.c: Include tree-ssa-live.h.
478 (live_vars, live_vars_vec): New global variables.
479 (find_tail_calls): Perform variable life analysis before punting.
480 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
481 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
483 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
484 Perform variable life analysis to select variables that really need
486 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
487 instead set id->eh_landing_pad_dest and assert it is the same.
488 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
490 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
491 Richard Earnshaw <rearnsha@arm.com>
494 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
496 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
497 (thumb1_compute_save_core_reg_mask): Don't force a spare work
498 register if both the epilogue and prologue can use call-clobbered
500 (thumb1_unexpanded_epilogue): Use
501 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
502 picking temporaries for restoring high regs to match that of the
503 prologue where possible.
504 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
505 the list of work registers. Detect if the return address is still live
506 at the end of the prologue and avoid using it for a work register if so.
507 If the return address is not live, add LR to the list of pushable regs
508 after the first pass.
510 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
512 PR tree-optimization/90078
513 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
514 (INFTY): Increase the value for infinite cost.
515 (struct comp_cost): Promote type of members to int64_t.
516 (infinite_cost): Don't set complexity in initialization.
517 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
518 overflows to infinite_cost.
519 (adjust_setup_cost): Promote type of parameter and cost computation
521 (struct ainc_cost_data, struct iv_ca): Promote type of member to
523 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
524 cost computation to int64_t.
525 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
526 int64_t's format specifier in dump.
528 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
530 PR tree-optimization/90240
531 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
532 with respect to scaling factor pre-computed for each basic block.
533 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
534 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
535 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
536 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
537 live range for array of loop's basic blocks. Cleanup aux field of
540 2019-05-08 Jakub Jelinek <jakub@redhat.com>
542 PR tree-optimization/90356
543 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
545 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
547 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
548 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
549 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
550 (ix86_handle_option): Handle -mavx512bf16.
551 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
553 * config/i386/avx512bf16vlintrin.h: New.
554 * config/i386/avx512bf16intrin.h: New.
555 * config/i386/cpuid.h (bit_AVX512BF16): New.
556 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
557 * config/i386/i386-builtin-types.def: Add new types.
558 * config/i386/i386-builtin.def: Add new builtins.
559 * config/i386/i386-c.c (ix86_target_macros_internal): Define
561 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
562 (ix86_option_override_internal): Handle BF16.
563 (ix86_valid_target_attribute_inner_p): Ditto.
564 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
565 * config/i386/i386-builtin.c (enum processor_features): Add
567 (static const _isa_names_table isa_names_table): Ditto.
568 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
569 (PTA_AVX512BF16): Ditto.
570 * config/i386/i386.opt: Add -mavx512bf16.
571 * config/i386/immintrin.h: Include avx512bf16intrin.h
572 and avx512bf16vlintrin.h.
573 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
574 avx512f_cvtneps2bf16_<mode><mask_name>,
575 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
576 * config/i386/subst.md (mask_half): Add new subst.
577 * doc/invoke.texi: Document -mavx512bf16.
579 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
581 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
583 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
584 (rs6000_debug_legitimize_reload_address): Delete.
585 (rs6000_legitimize_reload_address_ptr): Delete.
586 (rs6000_option_override_internal): Adjust.
587 (mem_operand_gpr): Adjust comment.
588 (legitimate_lo_sum_address_p): Ditto.
589 (rs6000_legitimize_reload_address): Delete.
590 (rs6000_debug_legitimize_reload_address): Delete.
591 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
593 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
596 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
597 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
598 to compute vector element selector for both constant and variable
601 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
603 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
604 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
605 ashrdi3_cvt using SWI48 mode iterator.
607 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
609 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
610 (aarch64_<su>abd<mode>_3): Likewise.
611 (*aarch64_<su>abd<mode>_3): New define_insn.
612 (<sur>sad<vsi2qi>): New define_expand.
613 * config/aarch64/iterators.md: Added MAX_OPP attribute.
614 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
615 (build_vect_cond_expr): Likewise.
617 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
619 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
620 clobbers outside of accessible_reg_set.
621 * config/i386/i386.c (ix86_conditional_register_usage):
622 Disable register sets by clearing corresponding bits in
623 accessible_reg_set. Do not set corresponding bits in fixed_regs,
624 call_used_regs and don't clear corresponding reg_names array members.
626 2019-05-07 Richard Biener <rguenther@suse.de>
628 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
629 not specified still compute a comp_vectype for invariant
632 2019-05-07 Richard Biener <rguenther@suse.de>
634 PR tree-optimization/90316
635 * tree-ssa-pre.c (translate_vuse_through_block): When
636 same_valid is NULL do not bother to search for a virtual
638 (phi_translate_1): When operands changed we cannot keep
639 the same value-number so do not bother to ask whether
640 that's possible from translate_vuse_through_block.
642 2019-05-07 Martin Liska <mliska@suse.cz>
644 * bitmap.c (bitmap_register): Come up with
645 alloc_descriptor_max_uid and assign it for
647 (register_overhead): Use get_descriptor as
649 (release_overhead): New.
650 (bitmap_elem_to_freelist): Call it.
651 (bitmap_elt_clear_from): Likewise.
652 (bitmap_obstack_free): Likewise.
653 (bitmap_move): Sensitively release memory.
654 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
655 (bitmap_initialize): Initialize alloc_descriptor to zero.
656 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
658 2019-05-07 Richard Biener <rguenther@suse.de>
660 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
661 we build a SLP node. Remove max_size and limiting.
662 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
664 2019-05-07 Richard Biener <rguenther@suse.de>
666 PR tree-optimization/90316
667 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
669 (walk_non_aliased_vuses): Take walking limit argument.
670 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
671 walking if it is reached instead of just counting.
672 (get_continuation_for_phi): Likewise.
673 (walk_non_aliased_vuses): Likewise, instead of leaving counter
674 limiting to the callback.
675 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
676 (vn_reference_lookup_3): Likewise.
677 (vn_reference_lookup_pieces): Likewise.
678 (vn_reference_lookup): Likewise.
679 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
680 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
681 (avail_exprs_stack::lookup_avail_expr): Likewise.
683 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
685 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
686 for comparaible types in the second direction even if first one
687 hits incomparable type.
689 2019-05-07 Richard Biener <rguenther@suse.de>
692 * lto-wrapper.c (debug_objcopy): Use the original filename
693 including archive offset for the filename used for -save-temps.
695 2019-05-07 Li Jia He <helijia@linux.ibm.com>
697 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
700 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
702 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
703 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
704 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
705 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
706 (FRAME_POINTER_REGNUM): Change numbering.
707 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
708 (alt_reg_names): Adjust.
709 (rs6000_conditional_register_usage): Don't mark hard register 64 as
711 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
712 (DWARF_FRAME_REGISTERS): Delete.
713 (DWARF2_FRAME_REG_OUT): Fix whitespace.
714 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
716 (REG_ALLOC_ORDER): Adjust.
717 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
718 (REG_CLASS_CONTENTS): Adjust.
719 (RETURN_ADDR_RTX): Change comment.
720 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
722 (REGISTER_NAMES): Adjust.
723 (ADDITIONAL_REGISTER_NAMES): Adjust.
724 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
726 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
728 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
730 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
731 (DWARF_FRAME_REGISTERS): Adjust.
732 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
734 (REG_ALLOC_ORDER): Adjust.
735 (enum reg_class): Delete SPR_REGS.
736 (REG_CLASS_NAMES): Delete SPR_REGS.
737 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
738 (REGISTER_NAMES): Adjust.
739 (ADDITIONAL_REGISTER_NAMES): Adjust.
740 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
741 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
742 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
743 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
744 (htm_spr_regno): Delete.
745 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
747 (rs6000_dbx_register_number): Adjust.
749 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
751 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
753 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
755 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
756 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
758 2019-05-06 Jakub Jelinek <jakub@redhat.com>
760 PR tree-optimization/88709
761 PR tree-optimization/90271
762 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
763 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
764 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
766 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
767 of the store merging group is larger than
768 PARAM_STORE_MERGING_MAX_SIZE parameter.
769 (split_group): Add bzero_first argument. If set, always emit first
770 the first store which must be = {} of the whole area and then for the
771 rest of the stores consider all zero bytes as paddings.
772 (imm_store_chain_info::output_merged_store): Check if first store
773 is = {} of the whole area and if yes, determine which setting of
774 bzero_first for split_group gives smaller number of stores. Adjust
776 (lhs_valid_for_store_merging_p): Allow decls.
777 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
779 (pass_store_merging::process_store): Likewise.
781 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
784 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
785 handling of V1TImode.
787 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
790 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
791 and enable_frame_pointer ...
792 * configure.ac: ... here. Update help strings for
793 --enable-frame-pointer.
794 * configure: Regenerate.
795 * config/i386/i386-options.c (ix86_option_override_internal): Remove
796 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
797 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
798 (USE_X86_64_FRAME_POINTER): Ditto.
800 2019-05-06 Martin Liska <mliska@suse.cz>
802 * config.gcc: Append to target_gtfiles and fix indentation.
804 2019-05-06 Richard Biener <rguenther@suse.de>
806 PR tree-optimization/90358
807 * tree-vect-stmts.c (get_group_load_store_type): Properly
808 detect unused upper half of load.
809 (vectorizable_load): Likewise.
811 2019-05-06 Richard Biener <rguenther@suse.de>
813 PR tree-optimization/88828
814 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
815 (simplify_vector_constructor): ...here. Handle constants in
818 2019-05-06 Richard Biener <rguenther@suse.de>
820 PR tree-optimization/90328
821 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
822 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
823 is valid in the loop nest before using it.
824 (initialize_data_dependence_relation): Adjust.
825 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
826 loop as loop-nest to dr_may_alias_p.
828 2019-05-06 Richard Biener <rguenther@suse.de>
830 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
832 2019-05-06 Richard Biener <rguenther@suse.de>
834 PR tree-optimization/90316
835 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
836 compute target on demand.
837 (get_continuation_for_phi): Remove code walking stmts to
838 get to a target virtual operand which could end up being
841 2019-05-06 Martin Liska <mliska@suse.cz>
844 * config/i386/i386-options.c (ix86_option_override_internal): Error only
845 when -mabi is selected to a non-default version.
847 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
848 Martin Liska <mliska@suse.cz>
850 * Makefile.in: Add lto-dump.texi.
851 * cgraph.h: Add new functions get_visibility_string and
852 get_symtab_type_string.
853 * doc/gcc.texi: Include lto-dump section.
854 * doc/lto-dump.texi: New file.
855 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
856 (parse_dump_option): Factor out this function.
857 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
858 (parse_dump_option): Export the function.
859 * symtab.c (symtab_node::get_visibility_string): New function.
860 (symtab_node::get_symtab_type_string): Likewise.
862 2019-05-06 Martin Liska <mliska@suse.cz>
864 * config/i386/i386-builtins.c: New file.
865 * config/i386/i386-builtins.h: New file.
866 * config/i386/i386-expand.c: New file.
867 * config/i386/i386-expand.h: New file.
868 * config/i386/i386-features.c: New file.
869 * config/i386/i386-features.h: New file.
870 * config/i386/i386-options.c: New file.
871 * config/i386/i386-options.h: New file.
872 * config.gcc: Add new files into extra_objs and
874 * config/i386/i386.c: Split content of the file
875 into newly introduced files.
876 * config/i386/i386.h: Declare common variables
878 * config/i386/t-i386: Define dependencies for new files.
881 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
884 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
885 Restrict 'all' variant to 32-bit configurations.
886 (unaligned_loadhiu): Likewise.
887 (unaligned_storehi): Likewise.
888 (unaligned_storesi): Likewise.
889 (unaligned_loadhis): Disable when compiling for thumb1.
891 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
893 PR tree-optimization/90269
894 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
897 2019-05-03 Martin Liska <mliska@suse.cz>
899 * hash-map.h: Add is_empty function.
900 * hash-set.h: Likewise.
901 * hash-table.h: Likewise.
902 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
903 elements () == 0 (and similar usages).
904 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
905 * gimplify.c (gimplify_bind_expr): Likewise.
906 (gimplify_switch_expr): Likewise.
907 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
908 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
909 * postreload-gcse.c (dump_hash_table): Likewise.
910 (gcse_after_reload_main): Likewise.
911 * predict.c (combine_predictions_for_bb): Likewise.
912 * tree-parloops.c (reduction_phi): Likewise.
913 (separate_decls_in_region): Likewise.
914 (transform_to_exit_first_loop): Likewise.
915 (gen_parallel_loop): Likewise.
916 (gather_scalar_reductions): Likewise.
917 (try_create_reduction_list): Likewise.
918 * var-tracking.c (dump_vars): Likewise.
919 (emit_notes_for_changes): Likewise.
920 (vt_emit_notes): Likewise.
922 2019-05-03 Richard Biener <rguenther@suse.de>
924 PR tree-optimization/90316
925 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
928 2019-05-03 Richard Biener <rguenther@suse.de>
930 * tree-vect-stmts.c (get_group_load_store_type): Avoid
931 peeling for gaps by loading only lower halves of vectors
933 (vectorizable_load): Likewise.
935 2019-05-03 Richard Biener <rguenther@suse.de>
938 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
940 2019-05-03 Richard Biener <rguenther@suse.de>
943 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
944 Handle STRING_CST vs DECL or STRING_CST.
946 2019-05-03 Richard Biener <rguenther@suse.de>
948 PR tree-optimization/88963
949 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
950 vector loads feeding only BIT_FIELD_REFs to component
951 loads. Rewrite stores fed by CONSTRUCTORs to component
954 2019-05-03 Jakub Jelinek <jakub@redhat.com>
956 * opts.h (finish_options): Remove lang_mask argument.
957 (print_help, help_option_argument): Declare.
958 * opts.c (print_help): Remove forward declaration, no longer static.
959 (finish_options): Remove lang_mask argument, don't call print_help
961 * opts-global.c (decode_options): Adjust finish_option caller, call
964 PR tree-optimization/90303
965 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
966 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
968 2019-05-03 Richard Biener <rguenther@suse.de>
970 PR tree-optimization/89698
971 * gimple-fold.c (canonicalize_constructor_val): Early out
972 for constants, handle unfolded INTEGER_CSTs as they appear in
973 C++ virtual table ctors.
975 2019-05-03 Richard Biener <rguenther@suse.de>
977 * passes.c (execute_function_todo): Remove dead code.
979 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
981 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
982 the internal register number, for any "real" register.
984 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
986 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
987 correct numbers for TFHAR, TFIAR, TEXASR.
989 2019-05-02 Richard Biener <rguenther@suse.de>
991 PR tree-optimization/89653
992 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
993 update-address-taken before the pass.
994 * passes.def (pass_tree_loop_init): Put comment before it.
996 2019-05-02 Richard Biener <rguenther@suse.de>
998 PR tree-optimization/89509
999 * tree-ssa-structalias.c (compute_dependence_clique): Look
1000 at the first subvar when determining whether it is restrict.
1002 2019-05-02 Richard Biener <rguenther@suse.de>
1004 PR tree-optimization/90273
1005 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
1006 useless debug stmts.
1008 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
1010 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
1012 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
1014 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
1015 VEC_COND_EXPR be inserted to emulate a conditional internal function.
1016 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
1017 (vectorizable_reduction): Use the functions above to vectorize in a
1018 fully masked loop codes that don't have a conditional internal
1021 2019-05-02 Martin Liska <mliska@suse.cz>
1023 * cgraphclones.c: Call valid_attribute_p with 1 for
1025 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
1026 it's for target attribute.
1027 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
1028 Add new boolean argument.
1029 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
1031 (ix86_valid_target_attribute_tree): Pass target_clone_attr
1032 to ix86_valid_target_attribute_inner_p.
1033 (ix86_valid_target_attribute_p): Pass flags argument to
1034 ix86_valid_target_attribute_inner_p.
1035 (get_builtin_code_for_version): Use 0 as it's target attribute.
1037 2019-05-02 Martin Liska <mliska@suse.cz>
1039 * gcc.c (process_command): Add dummy file only
1041 * opts-global.c (decode_options): Pass lang_mask.
1042 * opts.c (print_help): New function.
1043 (finish_options): Print --help if help_option_argument
1045 (common_handle_option): Factor out content of OPT__help_
1047 * opts.h (finish_options): Add new argument.
1049 2019-05-02 Martin Liska <mliska@suse.cz>
1052 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
1053 With -minline-all-stringops use inline expansion using 4B loop.
1054 * doc/invoke.texi: Document the change of
1055 -minline-all-stringops.
1057 2019-05-01 Jeff Law <law@redhat.com>
1059 PR tree-optimization/88797
1060 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
1061 PHI feeds a conditional on the RHS of an assignment.
1063 2019-04-30 Andrew Waterman <andrew@sifive.com>
1064 Jim Wilson <jimw@sifive.com>
1066 * config/riscv/constraints.md (L): New.
1067 * config/riscv/predicates.md (lui_operand): New.
1068 (sfb_alu_operand): New.
1069 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
1070 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
1071 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
1072 * config/riscv/risc.md (type): Add sfb_alu.
1073 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
1074 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
1075 (branch_zero<mode>): Delete.
1077 (mov<GPR:mode><X:mode>cc): Likewise.
1078 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
1080 2019-04-30 Nathan Sidwell <nathan@acm.org>
1082 * tree.h (MARK_TS_EXP): New.
1084 2019-04-30 Martin Liska <mliska@suse.cz>
1086 * opts.c (enable_warning_as_error): Provide hints
1087 for unknown options.
1089 2019-04-30 Martin Liska <mliska@suse.cz>
1092 * doc/invoke.texi: Add missing dash for gas-locview-support
1093 and gno-as-locview-support.
1095 2019-04-30 Jakub Jelinek <jakub@redhat.com>
1098 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
1099 whitespace at the start of target attribute string.
1101 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1104 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
1105 Define __ARM_FEATURE_ATOMICS.
1107 2019-04-30 Martin Liska <mliska@suse.cz>
1109 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
1110 into built_in_function enum. Remove code for endp == 2 and
1111 use BUILT_IN_* constants.
1112 (gimple_fold_builtin): Call the function with fcode.
1114 2019-04-30 Martin Liska <mliska@suse.cz>
1116 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
1117 DECL_FUNCTION_CODE into ix86_builtins enum before
1118 the switch statement.
1120 2019-04-30 Jakub Jelinek <jakub@redhat.com>
1122 PR tree-optimization/89475
1123 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
1126 2019-04-30 Martin Liska <mliska@suse.cz>
1128 PR translation/90274
1129 * opts.c (print_filtered_help): Wrap string in _(...).
1131 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
1133 PR tree-optimization/90240
1135 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
1137 PR tree-optimization/90078
1138 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
1139 checks for infinite_cost overflow.
1141 2019-04-29 Jeff Law <law@redhat.com>
1143 * passes.def: Move -Wrestrict pass after copy propagation.
1145 2019-04-29 Maya Rashish <coypu@sdf.org>
1147 * config.gcc (default_gnu_indirect_function): Default to yes
1148 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
1149 sparc*-*-netbsd*, x86_64-*-netbsd*.
1151 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
1153 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
1154 where cond2 is NE_EXPR.
1155 (is_value_included_in): Update comment.
1157 2019-04-29 Richard Biener <rguenther@suse.de>
1159 PR tree-optimization/90278
1160 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
1161 EH on comparison simplification.
1163 2019-04-29 Jason Merrill <jason@redhat.com>
1165 PR c++/82081 - tail call optimization breaks noexcept
1166 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
1167 nothrow function to a might-throw function into a tail call.
1169 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
1171 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
1172 (DDR_INNER_LOOP): Likewise.
1173 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
1174 (initialize_data_dependence_relation): Likewise.
1175 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
1177 2019-04-29 Jakub Jelinek <jakub@redhat.com>
1179 PR rtl-optimization/90257
1180 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
1184 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
1188 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
1191 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
1194 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
1196 * lra-spills.c (lra_final_code_change): Remove useless move insns.
1198 2019-04-29 Richard Biener <rguenther@suse.de>
1200 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
1203 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
1205 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
1206 varasm.h, and netbsd-protos.h.
1208 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
1211 * config/i386/i386-protos.h (ix86_data_alignment): Change
1212 the second argument type to unsigned int.
1213 * config/i386/i386.c (ix86_data_alignment): Change "align"
1214 argument type to unsigned int.
1216 2019-04-27 Martin Liska <mliska@suse.cz>
1219 * opt-suggestions.c (option_proposer::build_option_suggestions):
1220 When get_valid_option_values returns empty values, add the
1221 misspelling candidate.
1223 2019-04-26 Jim Wilson <jimw@sifive.com>
1225 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
1227 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
1228 Pass orig_mode to riscv_build_integer.
1229 (riscv_split_integer): Pass mode to riscv_move_integer.
1230 (riscv_legitimize_const_move): Likewise.
1231 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
1232 promoted_mode. Replace force_reg call with code to load constant into
1233 promoted reg and then subreg it for the store.
1234 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
1237 2018-04-26 Eugene Sharygin <eush@ispras.ru>
1239 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
1242 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
1244 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
1245 commentary about the encoding of precision.
1247 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
1249 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
1250 * config/i386/t-freebsd64: New file.
1251 * config.gcc: Add the t-freebsd64 for multilib support.
1253 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
1255 * doc/extend.texi (vector_size): Add missing comma after @xref.
1257 2019-04-25 Jakub Jelinek <jakub@redhat.com>
1259 * BASE-VER: Set to 10.0.0.
1261 2019-04-25 Richard Biener <rguenther@suse.de>
1264 * gimplify.c (gimplify_expr): Avoid turning a lvalue
1265 VIEW_CONVERT_EXPR into one operating on an rvalue.
1267 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
1270 * config/i386/i386.c (feature_priority): Moved to file scope.
1271 (processor_features): Likewise.
1272 (processor_model): Likewise.
1273 (_arch_names_table): Likewise.
1274 (arch_names_table): Likewise.
1275 (_feature_list): Removed.
1276 (feature_list): Likewise.
1277 (_isa_names_table): Moved to file scope. Add priority.
1278 (isa_names_table): Likewise.
1279 (get_builtin_code_for_version): Replace feature_list with
1280 isa_names_table. Update error message for P_ZERO priority.
1282 2019-04-25 Richard Biener <rguenther@suse.de>
1284 * tree-pass.h (make_pass_phi_only_cprop): Remove.
1285 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
1287 2019-04-24 Jeff Law <law@redhat.com>
1289 PR tree-optimization/90037
1290 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
1291 * passes.def: Replace all instance of phi-only cprop with the
1292 lattice propagator. Move propagation pass from after erroneous
1293 path isolation to before erroneous path isolation.
1294 * tree-ssa-phionlycprop.c: Remove.
1296 2019-04-24 Richard Biener <rguenther@suse.de>
1299 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
1300 by size and BITS_PER_UNIT on poly-wide-ints.
1302 2019-04-25 Richard Biener <rguenther@suse.de>
1305 * match.pd: Add pattern to simplify view-conversion of an
1308 2019-04-24 Clement Chigot <clement.chigot@atos.net>
1310 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
1311 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
1312 for Go on 32 bit AIX.
1313 * config/rs6000/aix72.h: Likewise.
1315 2019-04-24 Jakub Jelinek <jakub@redhat.com>
1318 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
1319 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
1321 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
1324 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
1325 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
1326 for restored hard frame pointer.
1327 (s390_sched_dependencies_evaluation): Implement new target hook.
1328 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
1330 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
1332 * config/arc/arc-options.def: Fix typos and spelling mistakes.
1333 * config/arc/arc.c (arc_init): Cleanup warning message.
1334 (arc_override_options): Likewise.
1336 2019-04-24 Jakub Jelinek <jakub@redhat.com>
1339 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
1340 a register if both if_true and if_false are MEMs.
1342 PR tree-optimization/90208
1343 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
1344 after labels of new_bb, not before them.
1346 PR tree-optimization/90211
1347 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
1348 which are not SSA_NAMEs.
1350 2018-04-23 Sudakshina Das <sudi.das@arm.com>
1352 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
1354 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
1356 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
1358 PR rtl-optimization/87979
1359 * modulo-sched.c (sms_schedule): Start ii value "mii" should
1362 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
1364 PR rtl-optimization/84032
1365 * modulo-sched.c (ps_insn_find_column): Change condition so that
1366 branch will always be the last insn in a row inside partial
1369 2019-04-23 Richard Biener <rguenther@suse.de>
1372 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
1373 dest_single_pred_p argument.
1374 (remove_forwarder_block): Adjust.
1375 (remove_forwarder_block_with_phi): Likewise.
1377 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1378 Bernd Edlinger <bernd.edlinger@hotmail.de>
1379 Jakub Jelinek <jakub@redhat.com>
1382 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
1383 if used with general-regs-only.
1384 (arm_conditional_register_usage): Don't add non-general regs if
1386 (arm_valid_target_attribute_rec): Handle general-regs-only.
1387 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
1389 (TARGET_HARD_FLOAT_SUB): Define.
1390 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
1391 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
1392 (TARGET_REALLY_IWMMXT2): Likewise.
1393 * config/arm/arm.opt: Add -mgeneral-regs-only.
1394 * doc/extend.texi: Document ARM general-regs-only target.
1395 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
1397 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
1399 PR tree-optimization/90078
1400 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
1401 checks for infinite_cost overflow.
1403 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
1405 PR tree-optimization/90021
1406 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
1407 and check univariate against it.
1408 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
1409 * tree-data-ref.c (add_other_self_distances): Pass new argument.
1411 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
1415 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
1418 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
1421 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
1423 * lra-spills.c (lra_final_code_change): Remove useless move insns.
1425 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
1427 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
1428 names using operand format, rather than hard-wired.
1429 (speculation_barrier): Likewise.
1431 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
1433 PR tree-optimization/88055
1434 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
1435 (gen_one_condition): Use it if !HONOR_NANS.
1437 2019-04-19 Jakub Jelinek <jakub@redhat.com>
1440 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
1441 assign_temp instead of gen_reg_rtx.
1443 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
1445 PR translation/90118
1446 * config/aarch64/aarch64.c (aarch64_override_options_internal):
1447 Add missing space before %<.
1449 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
1451 PR rtl-optimization/87871
1452 * ira-lives.c (make_object_dead): Don't add conflicts to
1453 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
1455 2019-04-18 Martin Sebor <msebor@redhat.com>
1458 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
1459 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
1460 assuming type size fits in SHWI.
1462 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
1465 * ipa-inline.c (flatten_function): New parameter UPDATE.
1466 (ipa_inline, early_inliner): Use it.
1468 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
1470 * fold-const.c (int_const_binop): Return early on failure.
1472 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
1475 * combine.c (force_int_to_mode): Cast the argument rather than
1476 the result of known_alignment.
1477 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
1479 2019-04-18 Richard Biener <rguenther@suse.de>
1482 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
1484 (remove_forwarder_block): ... here.
1485 (remove_forwarder_block_with_phi): Also move debug stmts here.
1487 2019-04-18 Jakub Jelinek <jakub@redhat.com>
1489 PR translation/79183
1490 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
1491 inform where appropriate.
1493 2019-04-18 Richard Biener <rguenther@suse.de>
1495 * tree.c (get_qualified_type): Put found type variants at the
1496 head of the variant list.
1498 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
1500 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
1502 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
1505 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
1506 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
1507 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
1508 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
1509 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
1511 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
1513 * ira-conflicts.c (print_allocno_conflicts): Always print something,
1514 even for allocno's with no conflicts.
1515 (print_conflicts): Print an extra newline.
1517 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
1519 * auto-inc-dec.c (attempt_change): Set the alignment of the
1520 temporary memory to that of the original.
1522 2019-04-17 Joao Moreira <jmoreira@suse.de>
1524 * targhooks.c (default_print_patchable_function_entry): Emit
1525 __patchable_function_entries section with writable flags to allow
1526 relocation resolution.
1528 2019-04-17 Jonny Grant <jg@jguk.org>
1530 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
1532 2019-04-17 Jakub Jelinek <jakub@redhat.com>
1535 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
1538 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
1540 * config/arc/arc.c (arc_init): Format diagnostic string.
1541 (arc_override_options): Likewise.
1542 (check_if_valid_regno_const): Likewise.
1543 (arc_reorg): Likewise.
1545 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
1548 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
1550 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
1552 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
1553 (*movdi_update1): Use Pmode.
1554 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
1555 (movdi_<mode>_update_stack): Rename to ...
1556 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
1558 (*movsi_update1): Use Pmode.
1559 (*movsi_update2): Use Pmode.
1560 (movsi_update): Rename to ...
1561 (movsi_<mode>_update): ... this. Use Pmode.
1562 (movsi_update_stack): Fix condition.
1563 (*movhi_update1): Use Pmode. Fix argument to
1564 avoiding_indexed_address_p.
1565 (*movhi_update2): Ditto.
1566 (*movhi_update3): Ditto.
1567 (*movhi_update4): Ditto.
1568 (*movqi_update1): Ditto.
1569 (*movqi_update2): Ditto.
1570 (*movqi_update3): Ditto.
1571 (*movsf_update1, *movdf_update1): Merge, rename to...
1572 (*mov<mode>_update1): This. Use Pmode. Fix argument to
1573 avoiding_indexed_address_p. Add "size" attribute.
1574 (*movsf_update2, *movdf_update2): Merge, rename to...
1575 (*mov<mode>_update2): This. Ditto.
1576 (*movsf_update3): Use Pmode. Fix argument to
1577 avoiding_indexed_address_p.
1578 (*movsf_update4): Ditto.
1579 (allocate_stack): Simplify condition. Adjust pattern names.
1581 2019-04-17 Jakub Jelinek <jakub@redhat.com>
1584 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
1585 whitespace at the start of target attribute string.
1587 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
1590 * config/rs6000/power9.md: Add store forwarding bypass.
1592 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
1595 * valtrack.c (dead_debug_insert_temp): Reset debug references
1596 to the return value of a call being removed.
1598 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
1600 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
1601 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
1602 implement target hook.
1603 (arc_memory_move_cost): New function.
1604 (TARGET_REGISTER_MOVE_COST): Define.
1605 (TARGET_MEMORY_MOVE_COST): Likewise.
1606 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
1607 (MEMORY_MOVE_COST): Likewise.
1609 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
1611 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
1612 (sibcall_value_insn): Likewise.
1613 * config/arc/constraints.md (Rs5): Remove.
1615 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
1617 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
1618 for last two fake registers.
1619 (arc_conditional_register_usage): Make sure fake frame and arg
1620 pointer regs are in general regs class.
1621 (FRAME_POINTER_MASK): Remove.
1622 (RETURN_ADDR_MASK): Remove.
1623 (arc_must_save_register): Use hard frame regnum.
1624 (frame_restore_reg): Use hard_frame_pointer_rtx.
1625 (arc_save_callee_saves): Likewise.
1626 (arc_restore_callee_saves): Likewise.
1627 (arc_save_callee_enter): Likewise.
1628 (arc_restore_callee_leave): Likewise.
1629 (arc_save_callee_milli): Likewise.
1630 (arc_eh_return_address_location): Likewise.
1631 (arc_check_multi): Use hard frame regnum.
1632 (arc_can_eliminate): Likewise.
1633 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
1634 for register allocator.
1635 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
1636 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
1637 (FRAME_POINTER_REGNUM): Change it to a fake register.
1638 (HARD_FRAME_POINTER_REGNUM): Defined.
1639 (ARG_POINTER_REGNUM): Change it to a new fake register.
1640 (ELIMINABLE_REGS): Update.
1641 (REGISTER_NAMES): Update names.
1642 * config/arc/arc.md (LP_START): Remove.
1644 (shift_si3_loop): Update pattern.
1646 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
1648 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
1649 to avoid delay slot scheduling.
1650 (arc_must_save_register): Don't save SP.
1651 * config/arc/arc.md (stack_tie): Remove.
1652 (UNSPEC_ARC_STKTIE): Likewise.
1654 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
1655 Shiva Chen <shiva0217@gmail.com>
1657 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
1658 code gen with large shift amount.
1660 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
1662 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
1665 2019-04-16 Jakub Jelinek <jakub@redhat.com>
1668 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
1669 print -m64/-mx32/-m32 if it is true.
1670 (ix86_debug_options, ix86_function_specific_print): Pass true as
1671 ADD_ABI_P to ix86_target_string.
1672 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
1673 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
1674 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
1676 PR rtl-optimization/90082
1677 * dce.c (can_delete_call): New function.
1678 (deletable_insn_p, mark_insn): Use it.
1680 PR tree-optimization/90090
1681 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
1683 (is_division_by_square): Likewise. Formatting fix.
1685 2019-04-16 Richard Biener <rguenther@suse.de>
1687 PR tree-optimization/56049
1688 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
1689 equality check if alias-set zero will prevail.
1691 2019-04-15 Jeff Law <law@redhat.com>
1693 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
1694 size and alignment as unsigned.
1696 2019-04-15 Richard Biener <rguenther@suse.de>
1699 * tree-loop-distribution.c (destroy_loop): Preserve correct
1702 2019-04-15 Richard Biener <rguenther@suse.de>
1704 PR tree-optimization/90071
1705 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
1706 abnormal operands from def stmts.
1708 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
1710 PR rtl-optimization/89794
1711 * combine.c (count_auto_inc): New function.
1712 (try_combine): Count how many auto_inc expressions there were in the
1713 original instructions. Ensure we have the same number in the new
1714 instructions. Remove the code that tried to ensure auto_inc side
1715 effects on i1 and i0 are not lost.
1717 2019-04-15 Richard Biener <rguenther@suse.de>
1720 * tree.h (auto_var_p): Declare.
1721 * tree.c (auto_var_p): New function, split out from ...
1722 (auto_var_in_fn_p): ... here.
1723 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
1725 (new_var_info): Initialize it.
1726 (set_uids_in_ptset): Also set the shadow variable uid if required.
1727 (ipa_pta_execute): Postprocess points-to solutions assigning
1728 shadow variable uids for locals that may reach their containing
1729 function recursively.
1730 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
1731 assert but instead check whether the points-to solution is
1734 2019-04-15 Martin Jambor <mjambor@suse.cz>
1737 * cgraph.c (clone_of_p): Loop over clone chain for each step in
1740 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
1742 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
1744 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
1745 Kito Cheng <kito.cheng@gmail.com>
1746 Shiva Chen <shiva0217@gmail.com>
1748 * config/nds32/nds32-md-auxiliary.c
1749 (nds32_legitimize_pic_address): Use new PIC pattern.
1750 (nds32_legitimize_tls_address): Use new TLS pattern.
1751 (nds32_output_symrel): New.
1752 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
1753 (nds32_alloc_relax_group_id): Ditto.
1754 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
1755 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
1757 (nds32_group_tls_insn): Ditto.
1758 (nds32_group_float_insns): Ditto.
1759 * config/nds32/nds32.md (tls_le): New.
1762 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
1764 * configure: Add nds32 target for dwarf2 debug_line checking.
1765 * configure.ac: Regenerated.
1767 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
1770 * ipa-devirt.c (skip_in_fields_list_p): New.
1771 (odr_types_equivalent_p): Use it.
1773 2019-04-13 Jakub Jelinek <jakub@redhat.com>
1776 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
1777 instead of strncmp when checking for thumb and arm. Formatting fixes.
1779 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
1781 * doc/install.texi: Document --with-target-system-zlib.
1783 2019-04-12 Martin Sebor <msebor@redhat.com>
1789 * targhooks.c (default_vector_alignment): Avoid assuming
1790 argument fits in SHWI.
1791 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
1793 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
1795 2019-04-12 Jakub Jelinek <jakub@redhat.com>
1797 PR rtl-optimization/89965
1798 * dce.c: Include rtl-iter.h.
1799 (struct check_argument_load_data): New type.
1800 (check_argument_load): New function.
1801 (find_call_stack_args): Check for loads from stack slots still tracked
1802 in sp_bytes and punt if any is found.
1804 * config/mips/loongson-mmiintrin.h: Fix up #error message.
1806 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
1808 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
1809 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
1811 2019-04-12 Martin Liska <mliska@suse.cz>
1814 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
1816 (separate_attrs): Handle multiple 'default's.
1817 (expand_target_clones): Rework error handling code.
1819 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
1822 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
1823 mode of vector rather than mode of destination for move instruction.
1824 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
1825 Use QI inner mode with V16QI vector mode.
1827 2019-04-12 Jakub Jelinek <jakub@redhat.com>
1830 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
1831 "invalid %%t operand" in output_operand_lossage message.
1833 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
1835 * config/s390/predicates.md (permute_pattern_operand): New
1837 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
1838 operand for the permute pattern.
1839 ("*vec_perm<mode>"): New insn definition.
1840 ("bswap<mode>"): Generate the permute pattern operand in the
1841 expander and perform the operand reloads for pre arch13 level
1843 ("*bswap<mode>_emu"): Rename to ...
1844 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
1845 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
1846 Add the USE operand for the permute pattern.
1847 ("*vec_set_bswap_vec<mode>"): Likewise.
1849 2019-04-12 Jakub Jelinek <jakub@redhat.com>
1852 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
1853 and gcc_unreachable if it fails, just call tree_to_uhwi which
1854 verifies that too. Test TREE_CHAIN instead of list_length > 1.
1855 Start warning message with a lower-case letter. Formatting fixes.
1857 PR rtl-optimization/90026
1858 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
1859 successors, look for BARRIERs inside of the whole BB_FOOTER chain
1860 rather than just at the start of it. If e->src BB_FOOTER is not NULL
1861 in cfglayout mode, use emit_barrier_after_bb.
1863 2018-04-11 Steve Ellcey <sellcey@marvell.com>
1865 PR rtl-optimization/87763
1866 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
1869 2019-04-11 Tom de Vries <tdevries@suse.de>
1871 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
1872 max macro using statement expression.
1874 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
1876 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
1877 * xcoffout.c (xcoff_private_rodata_section_name): Define.
1878 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
1879 read_only_private_data_section using xcoff_private_rodata_section_name.
1880 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
1882 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
1885 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
1887 2019-04-11 Jakub Jelinek <jakub@redhat.com>
1889 PR rtl-optimization/89965
1890 * dce.c (sp_based_mem_offset): New function.
1891 (find_call_stack_args): Use sp_based_mem_offset.
1893 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
1895 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
1897 2019-04-11 Richard Biener <rguenther@suse.de>
1899 PR tree-optimization/90020
1900 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
1901 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
1902 * tree-ssa-pre.c (compute_avail): Use it to not put
1903 possibly trapping references after a call that might not
1904 return into EXP_GEN.
1905 * gcse.c (compute_hash_table_work): Do not elide
1906 marking a block containing a call if the call might not
1909 2019-04-11 Richard Biener <rguenther@suse.de>
1911 PR tree-optimization/90018
1912 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
1913 Test both SLP and interleaving variants.
1915 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
1917 * config/s390/8561.md: New file.
1918 * config/s390/driver-native.c (s390_host_detect_local_cpu):
1919 Add arch13 cpu model.
1920 * config/s390/s390-opts.h (enum processor_type): Likewise.
1921 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
1922 (s390_get_unit_mask): Likewise.
1923 (s390_is_fpd): Likewise.
1924 (s390_is_fxd): Likewise.
1925 * config/s390/s390.h (s390_tune_attr): Likewise.
1926 * config/s390/s390.md: Include arch13 pipeline description.
1927 * config/s390/s390.opt: Add arch13.
1929 2018-04-10 Steve Ellcey <sellcey@marvell.com>
1931 PR rtl-optimization/87763
1932 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
1934 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
1936 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
1938 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
1939 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
1940 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
1941 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
1943 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
1945 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
1946 "Although" in -fipa-icf documentation.
1948 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
1949 of using multiple -g options.
1951 2019-04-10 Martin Liska <mliska@suse.cz>
1953 PR gcov-profile/89959
1954 * doc/gcov.texi: Make documentation of -x option
1957 2019-04-10 Richard Biener <rguenther@suse.de>
1959 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
1961 (DR_GROUP_SAME_DR_STMT): Remove.
1962 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
1963 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
1964 replace with assert.
1965 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
1966 (vect_record_grouped_load_vectors): Remove unreachable code.
1968 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
1971 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
1972 obsolete reference to N.
1974 2019-04-10 Jakub Jelinek <jakub@redhat.com>
1977 * expr.c (store_expr): Set properly size on the MEM passed to
1981 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
1982 with strlen in between hostsz-3 and hostsz-1 inclusive when no
1983 translation is needed, and when translation is needed, only append
1984 ... if the string length is hostsz or more bytes long. Avoid using
1987 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
1990 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
1991 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
1993 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
1994 differences directly.
1995 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
1997 2019-04-09 Jakub Jelinek <jakub@redhat.com>
1999 PR translation/90011
2000 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
2002 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
2004 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
2005 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
2006 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
2007 trailing space from -gsplit-dwarf diagnostics.
2009 PR tree-optimization/89998
2010 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
2011 instead of integer_type_node if possible, don't add ranges if return
2012 type is not compatible with int.
2013 * gimple-fold.c (gimple_fold_builtin_sprintf,
2014 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
2017 2019-04-09 Martin Liska <mliska@suse.cz>
2019 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
2020 * doc/install.texi: Document the new config.
2022 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
2024 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
2025 use gimple_expr_type for load and store calls. Skip over the
2026 condition argument in a conditional internal function.
2027 Protect use of TREE_INT_CST_LOW.
2029 2019-04-09 Jakub Jelinek <jakub@redhat.com>
2032 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
2033 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
2034 trailing period from it too.
2036 2019-04-08 wu yuan <wuyuan5@huawei.com>
2038 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
2039 * config/aarch64/aarch64.md : Add "tsv110.md"
2040 * config/aarch64/tsv110.md: New file.
2042 2019-04-08 Richard Biener <rguenther@suse.de>
2044 PR tree-optimization/90006
2045 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
2048 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
2051 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
2053 (fma_root_node): Likewise.
2054 (func_fma_steering): Likewise.
2056 2019-04-08 Jakub Jelinek <jakub@redhat.com>
2058 PR rtl-optimization/89865
2059 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
2061 PR rtl-optimization/89865
2062 * config/i386/i386.md
2063 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
2064 numbers not to clash with the additional operands[4].
2065 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
2066 with extra register copy in the middle.
2068 2019-04-08 Martin Liska <mliska@suse.cz>
2070 PR gcov-profile/89961
2071 * doc/gcov.texi: Document data_file.
2072 * gcov.c (generate_results): Add data_info into JSON output.
2074 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
2076 PR tree-optimization/89725
2077 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
2078 loop's chrec as invariant symbol.
2079 * tree-chrec.h (chrec_contains_symbols): New parameter.
2080 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
2081 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
2082 function of loops not in DDR's loop_nest.
2083 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
2085 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
2088 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
2091 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
2094 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
2095 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
2097 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
2099 * sched-deps.c (sched_macro_fuse_insns): Check return value of
2100 targetm.fixed_condition_code_regs.
2102 2019-04-05 Richard Biener <rguenther@suse.de>
2106 * tree-cfgcleanup.c (remove_forwarder_block): Always move
2107 debug bind stmts but reset them if they are not valid at the
2110 2019-04-05 Martin Liska <mliska@suse.cz>
2112 PR translation/89936
2113 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
2114 order to wrap keywords or arguments.
2115 * collect2.c (main): Likewise.
2116 (scan_prog_file): Likewise.
2117 (scan_libraries): Likewise.
2118 * common/config/riscv/riscv-common.c
2119 (riscv_subset_list::parsing_subset_version): Likewise.
2120 (riscv_subset_list::parse_std_ext): Likewise.
2121 * config/aarch64/aarch64.c (aarch64_override_options_internal):
2123 * config/arm/arm.c (arm_option_override): Likewise.
2124 * config/cris/cris.c (cris_print_operand): Likewise.
2125 * config/darwin-c.c (darwin_pragma_options): Likewise.
2126 (darwin_pragma_unused): Likewise.
2127 (darwin_pragma_ms_struct): Likewise.
2128 * config/ft32/ft32.c (ft32_print_operand): Likewise.
2129 * config/i386/i386.c (print_reg): Likewise.
2130 (ix86_print_operand): Likewise.
2131 * config/i386/xm-djgpp.h: Likewise.
2132 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
2133 * config/m32c/m32c.c (m32c_option_override): Likewise.
2134 * config/msp430/msp430.c (msp430_option_override): Likewise.
2135 * config/nds32/nds32.c (nds32_option_override): Likewise.
2136 * config/nvptx/mkoffload.c (main): Likewise.
2137 * config/rx/rx.c (rx_print_operand): Likewise.
2138 (valid_psw_flag): Likewise.
2139 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
2140 (vms_pragma_nomember_alignment): Likewise.
2141 (vms_pragma_extern_model): Likewise.
2142 * lto-wrapper.c (compile_offload_image): Likewise.
2143 * omp-offload.c (oacc_parse_default_dims): Likewise.
2144 * symtab.c (symtab_node::verify_base): Likewise.
2145 * tlink.c (recompile_files): Likewise.
2146 (start_tweaking): Likewise.
2147 * tree-profile.c (parse_profile_filter): Likewise.
2149 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
2151 PR tree-optimization/89956
2152 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
2153 multiple negates of the same value.
2155 2019-04-04 Martin Sebor <msebor@redhat.com>
2159 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
2160 have the same precision since the function crashes otherwise.
2161 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
2162 has non-zero arguments.
2164 2019-04-04 Martin Sebor <msebor@redhat.com>
2167 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
2168 out if the number of arguments is less than expected.
2170 2019-04-04 Jeff Law <law@redhat.com>
2172 PR rtl-optimization/89399
2173 * ree.c (combine_set_extension): Use single_set rather than
2174 digging into PATTERN for items on the candidate list.
2175 (combine_reaching_defs): Likewise.
2177 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
2179 PR rtl-optimization/46590
2180 * loop-invariant.c (find_defs): Move df_remove_problem and
2181 df_process_deferred_rescans to move_invariants.
2182 Move df_live_add_problem and df_live_set_all_dirty calls
2184 (move_invariants): Likewise.
2185 (move_loop_invariants): Likewise, making the df_live calls
2186 conditional on -O. Remove the problem again if we added it
2189 2019-04-03 qing zhao <qing.zhao@oracle.com>
2191 PR tree-optimization/89730
2192 * ipa-inline.c (can_inline_edge_p): Delete the checking for
2193 -flive-patching=inline-only-static.
2194 (can_inline_edge_by_limits_p): Add the checking for
2195 -flive-patching=inline-only-static and grant always_inline
2196 even when -flive-patching=inline-only-static is specified.
2198 2019-04-03 Jeff Law <law@redhat.com>
2200 PR rtl-optimization/81025
2201 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
2203 2019-04-03 Richard Biener <rguenther@suse.de>
2205 PR tree-optimization/84101
2206 * tree-vect-stmts.c: Include explow.h for hard_function_value,
2207 regs.h for hard_regno_nregs.
2208 (cfun_returns): New helper.
2209 (vect_model_store_cost): When vectorizing a store to a decl
2210 we return and the function ABI returns in a multi-reg location
2211 account for the possible spilling that will happen.
2213 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
2215 * config/s390/s390.c (s390_legitimate_address_p): Reject long
2216 displacement addresses for vector mode operands.
2218 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
2220 * config/arc/arc.c (GMASK_LEN): Define.
2221 (arc_restore_callee_saves): Restore first blink when
2224 2019-04-03 Sudakshina Das <sudi.das@arm.com>
2226 * doc/extend.texi: Add deprecated comment on sign-return-address
2227 function attribute and add mbranch-protection.
2228 * doc/invoke.texi: Add bti to the options for mbranch-protection.
2230 2019-04-03 Richard Biener <rguenther@suse.de>
2233 * lto-wrapper.c (run_gcc): Avoid implicit rules making
2234 the all target phony.
2236 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
2240 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
2241 Return false for variable DImode shifts.
2242 (dimode_scalar_chain::compute_convert_gain): Do not handle
2243 register count operand in variable DImode shifts.
2244 (dimode_scalar_chain::make_vector_copies): Remove support to copy
2245 count argument of a variable shift instruction to a vector register.
2246 (dimode_scalar_chain::convert_reg): Remove support to convert
2247 count argument of a variable shift instruction.
2249 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
2251 PR rtl-optimization/84206
2252 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
2253 iterating over loop headers.
2255 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
2257 PR rtl-optimization/85876
2258 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
2259 beyond the original fence.
2261 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
2263 * config.gcc: Mark spu* targets as deprecated/obsolete.
2265 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2267 * config/s390/s390-builtin-types.def: New builtin function type
2268 definitions. Remove unused types.
2269 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
2270 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
2271 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
2272 overloaded builtins.
2273 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
2274 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
2275 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
2276 (vec_double, vec_signed, vec_unsigned): Define to use the new
2277 overloaded builtins.
2278 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
2281 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2283 * config/s390/s390-builtin-types.def: New builtin function type
2285 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
2286 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
2287 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
2288 (s390_vstrszh, s390_vstrszf): New low-level builtins.
2289 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
2290 constant definitions.
2291 * config/s390/vecintrin.h (vec_search_string_cc)
2292 (vec_search_string_until_zero_cc): New builtin name definitions.
2293 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
2295 ("vec_vstrs<mode>"): New insn definition.
2297 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2299 * config/s390/s390-builtin-types.def: Add new builtin function
2301 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
2302 New overloaded builtins.
2303 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
2305 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
2306 (UNSPEC_VEC_SLDBYTE): ... this.
2307 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
2308 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
2310 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
2311 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
2312 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
2314 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2316 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
2317 New insn definition.
2318 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
2319 * config/s390/vector.md (V_HW_HSD): ... here.
2321 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2323 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
2324 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
2325 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
2326 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
2327 New insn definitions.
2329 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2331 * config/s390/s390-builtin-types.def: Add new builtin function type.
2332 * config/s390/s390-builtins.def: Add overloaded builtin
2333 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
2334 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
2335 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
2336 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
2337 ("eltswap<mode>"): New expander.
2338 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
2341 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2343 * config/s390/s390-builtin-types.def: Add new builtin function types.
2344 * config/s390/s390-builtins.def: Add overloaded builtin
2345 s390_vec_revb. Add low-level builtins for vlbr and vstbr
2347 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
2348 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
2349 ("bswap<mode>"): New expander.
2350 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
2352 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2354 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
2355 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
2356 vector builtin version number in __VEC__.
2358 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2360 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
2362 (SFSI): New mode attribute.
2363 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
2364 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
2366 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
2367 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
2368 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
2369 ("floatsi<mode>2"): Add wcefb instruction.
2371 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2373 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
2374 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
2376 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
2377 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
2378 support 32 bit fp-int conversions. Rename to ...
2379 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
2380 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
2381 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
2382 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
2385 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2387 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
2388 if-then-else constructs if we can use the select instruction.
2389 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
2391 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2393 * config/s390/s390.md ("*popcountdi_arch13_cc")
2394 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
2396 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
2397 Append _z196 to make it ...
2398 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
2399 ("popcounthi2_z196"): ... this.
2400 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
2401 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
2403 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2405 * config/s390/s390.c (s390_canonicalize_comparison): Convert
2406 certain compares for arch13 in order to make use of the condition
2407 code result produced by the new instructions.
2408 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
2409 nxrk, and nxgrk instruction patterns.
2410 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
2411 (inv_no): Add new code iterator together with some attributes.
2412 ("*andc_split_<mode>"): Disable splitter for arch13.
2413 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
2414 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
2415 ("*<ANDOR:bitops_name>c<GPR:mode>")
2416 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
2417 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
2418 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
2419 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
2421 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2423 * common/config/s390/s390-common.c (processor_flags_table): New
2425 * config.gcc: Support arch13 with the --with-arch= configure flag.
2426 * config/s390/driver-native.c (s390_host_detect_local_cpu):
2427 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
2428 * config/s390/s390.c (s390_get_sched_attrmask)
2429 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
2430 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
2431 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
2432 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
2433 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
2435 * config/s390/s390.opt: Support arch13 as processor type in
2436 command line options.
2438 2019-04-02 Martin Liska <mliska@suse.cz>
2440 PR translation/89912
2441 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
2442 Fix param description of graphite-max-arrays-per-scop.
2444 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
2446 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
2447 (ASAN_CC1_SPEC): Use it in 64-bit mode.
2448 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
2450 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
2452 PR rtl-optimization/85412
2453 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
2454 sel_sched_region_1, not after.
2456 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
2458 PR rtl-optimization/86928
2459 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
2460 compute_live if necessary.
2461 (sel_redirect_edge_and_branch): Likewise.
2463 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
2465 PR rtl-optimization/89865
2466 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
2467 register if it is a part of small class.
2469 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
2471 PR rtl-optimization/87273
2472 * sel-sched-ir.c (merge_fences): Remove assert.
2474 2019-04-01 Richard Biener <rguenther@suse.de>
2476 PR tree-optimization/46590
2477 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
2478 (dom_walker::m_reachability): Add in place of...
2479 (dom_walker::m_skip_unreachable_blocks): ...this.
2480 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
2481 Move complex initialization ...
2482 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
2483 lazily and initialize edge flags on each invocation.
2484 (dom_walker::bb_reachable): Use m_reachability.
2486 2019-04-01 Martin Liska <mliska@suse.cz>
2489 * opt-suggestions.c (option_proposer::build_option_suggestions):
2490 Add variant without any argument in order to provide better
2493 2019-04-01 Richard Biener <rguenther@suse.de>
2496 * gimple.c: Include langhooks.h.
2497 (gimple_get_alias_set): Treat enumeral types as the underlying
2500 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
2501 Eric Botcazou <ebotcazou@adacore.com>
2503 PR rtl-optimization/89862
2504 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
2505 that operates on the full registers for WORD_REGISTER_OPERATIONS
2508 2019-03-29 Jim Wilson <jimw@sifive.com>
2510 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
2511 Clear MASK_RVC and then set if C subset supported.
2513 2019-03-29 Jakub Jelinek <jakub@redhat.com>
2516 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
2517 non-addressable complit into its initializer if it is volatile.
2519 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
2521 * opts-common.c (integral_argument): Set errno properly in one case.
2523 2019-03-29 Martin Liska <mliska@suse.cz>
2525 * doc/invoke.texi: Remove -Wchkp from documentation.
2527 2019-03-29 Martin Liska <mliska@suse.cz>
2529 * dbgcnt.c (print_limit_reach): New function.
2532 2019-03-29 Martin Liska <mliska@suse.cz>
2534 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
2535 (dbg_cnt_process_opt): Parse first tokens aas
2536 dbg_cnt_process_single_pair is also using strtok.
2538 2019-03-29 Jakub Jelinek <jakub@redhat.com>
2540 PR rtl-optimization/87485
2541 * function.c (expand_function_end): Move stack_protect_epilogue
2542 before loading of return value into hard register(s).
2544 2019-03-28 Jakub Jelinek <jakub@redhat.com>
2547 * tree-inline.h (struct copy_body_data): Add
2548 dont_remap_vla_if_no_change flag.
2549 * tree-inline.c (remap_type_3, remap_type_2): New functions.
2550 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
2551 and remap_type_2 returns false.
2552 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
2553 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
2554 only from where it is copied to nested contexts.
2556 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
2559 * config/i386/i386.md (RMW operation with LEA peephole):
2560 Use LEAMODE mode attribute instead of SWI mode iterator for
2563 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
2566 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
2567 Also process XEXP (src, 0) of a shift insn.
2569 2019-03-28 David Malcolm <dmalcolm@redhat.com>
2572 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
2573 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
2575 2019-03-28 Jakub Jelinek <jakub@redhat.com>
2577 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
2579 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
2580 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
2581 immediately after first one with df_analyze in between, but rather
2582 process all bbs, queueing ones that need second pass in a worklist,
2583 df_analyze, process queued debug insn changes and if second pass is
2584 needed, process bbs from worklist, df_analyze, process queued debug
2587 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
2588 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
2589 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
2591 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
2594 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
2597 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
2600 * config/i386/i386.c (ix86_function_value_1): Call the newly added
2601 function for 32-bit MS_ABI.
2602 (function_value_ms_32): New function.
2604 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
2606 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
2607 (movdi): Call gen_movdi_symbol_save_scc.
2608 (gen_movdi_symbol_save_scc): New insn and split.
2610 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
2612 PR rtl-optimization/89313
2613 * function.c (matching_constraint_num): New static function.
2614 (match_asm_constraints_1): Use it. Fixup white space and comment.
2615 Don't replace inputs with non-matching constraints which conflict
2616 with early clobber outputs.
2618 2019-03-27 Jeff Law <law@redhat.com>
2621 PR rtl-optimization/87761
2622 PR rtl-optimization/89826
2623 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
2625 (pass_cprop_hardreg::execute): Call df_analyze after adding the
2626 note problem to get REG_DEAD/REG_UNUSED notes updated.
2628 2019-03-27 Richard Biener <rguenther@suse.de>
2630 PR tree-optimization/89463
2631 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
2632 queue edges to remove.
2633 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
2634 dead stmts. Delay edge removal until PHIs are removed to
2635 make debug-stmt creation not confused by seemingly degenerate
2638 2019-03-27 Alan Modra <amodra@gmail.com>
2640 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
2642 * config/rs6000/darwin.h: Likewise.
2643 * config/rs6000/rs6000.c: Likewise.
2645 2019-03-27 Alan Modra <amodra@gmail.com>
2647 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
2648 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
2650 2019-03-26 Andrew Waterman <andrew@sifive.com>
2651 Jim Wilson <jimw@sifive.com>
2653 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
2654 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
2655 (generic_idivdi, generic_fmul_single, generic_fmul_double)
2656 (generic_fdiv, generic_fsqrt): Add check for generic tune.
2657 (generic_alu): Add auipc to type list.
2658 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
2659 (riscv_microarchitecture): Declare.
2660 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
2661 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
2663 (riscv_microarchitecture): New.
2664 (sifive_7_tune_info): New.
2665 (riscv_cpu_info_table): Add microarchitecture value for rocket and
2666 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
2668 (riscv_store_data_bypass_p): New.
2669 (riscv_option_override): Set riscv_microarchitecture from
2670 cpu->microarchitecture.
2671 * config/riscv/riscv.md: Include sifive-7.md.
2674 (auipc<mode>): Change type to auipc.
2675 (restore_stack_nonlocal): New.
2676 * config/riscv/sifive-7.md: New.
2677 * doc/invoke.texi (RISC-V Options): Update mtune docs.
2679 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
2682 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
2683 Also process XEXP (src, 0) of a shift insn.
2685 2019-03-26 Richard Biener <rguenther@suse.de>
2687 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
2688 (copy_debug_stmt): Likewise.
2689 (expand_call_inline): Likewise.
2690 (copy_bb): Avoid redundant lookup & set of gimple_block.
2691 * gimple-low.c (lower_gimple_return): Likewise.
2692 (lower_builtin_setjmp): Likewise.
2694 2019-03-26 Jakub Jelinek <jakub@redhat.com>
2696 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
2697 is constant 0, turn into static const data member initialized to false.
2698 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
2699 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
2701 2019-03-26 Jason Merrill <jason@redhat.com>
2702 Jakub Jelinek <jakub@redhat.com>
2704 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
2706 (mem_alloc_description::release_object_overhead): Fix comment typos.
2707 * hash-table.h (hash_table::~hash_table): Call
2708 release_instance_overhead only if m_entries is non-NULL, otherwise
2709 call unregister_descriptor.
2711 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
2713 PR tree-optimization/81740
2714 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
2715 In case of outer loop vectorization, check for backward dependence
2716 at the inner loop if outer loop dependence is reversed.
2718 2019-03-26 Alan Modra <amodra@gmail.com>
2720 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
2721 rs6000_vector_mem init. Correct wI and wJ comment.
2723 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
2725 PR rtl-optimization/88347
2726 PR rtl-optimization/88423
2727 * sched-deps.c (sched_analyze_insn): Take into account that for
2728 tablejumps the barrier appears after a label and a jump_table_data.
2730 2019-03-25 Martin Sebor <msebor@redhat.com>
2733 * c-common.c (check_user_alignment): Rename local. Correct maximum
2734 alignment in diagnostic. Avoid assuming argument fits in SHWI,
2735 convert it to UHWI when it fits.
2737 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
2740 * dwarf2out.c (premark_used_variables): New function.
2741 (prune_unused_types_walk): Do not mark not premarked external
2743 (prune_unused_types): Call premark_used_variables.
2745 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
2747 PR rtl-optimization/89676
2748 * lra-constraints.c (curr_insn_transform): Do match reload for
2749 early clobbers when the match was successful only for different
2752 2019-03-25 Martin Sebor <msebor@redhat.com>
2754 * doc/extend.texi (Common Type Attributes): Document vector_size.
2755 (Common Variable Attributes): Mention size constraint. Correct
2757 (Vector Extensions): Use @dfn when defining bas type. Clarify
2758 base type and size constraints.
2760 2019-03-25 Richard Biener <rguenther@suse.de>
2762 PR tree-optimization/89789
2763 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
2764 changes from non-undefined back to undefined.
2766 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
2768 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
2769 heap string and a gc string, but since this variable is unknown to
2770 ggc the gc string might get reused and corrupted. Fixed by always
2771 using a heap string.
2773 2019-03-25 Richard Biener <rguenther@suse.de>
2775 PR tree-optimization/89779
2776 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
2777 to remove IV defs, delay actual removal.
2778 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
2779 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
2780 very end, properly also reset loop control IV information.
2782 2019-03-25 Richard Biener <rguenther@suse.de>
2784 PR tree-optimization/89802
2785 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
2786 move EH data to folded stmt.
2788 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
2790 * config/s390/s390-builtin-types.def: Remove few unused types and
2791 fix sort order for others.
2793 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
2795 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
2796 expected and found types with -mdebug during builtin matching.
2798 2019-03-25 Richard Biener <rguenther@suse.de>
2801 * fold-const.c (operand_equal_p): Revert last change with
2804 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
2806 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
2807 notes for the result of the __tls_get_addr calls.
2808 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
2810 2019-03-24 Jeff Law <law@redhat.com>
2812 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
2814 PR rtl-optimization/87761
2815 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
2816 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
2818 (pass_cprop_hardreg::execute): Add df note problem and defer insn
2819 rescans. Reprocess blocks as needed, calling df_analyze before
2820 reprocessing. Always call df_analyze before fixing up debug bind
2823 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
2825 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
2828 2019-03-22 Andrew Pinski <apinski@marvell.com>
2830 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
2831 attrribute for uxtw.
2833 2019-03-26 Jeff Law <law@redhat.com>
2835 PR rtl-optimization/87761
2836 * config/mips/mips-protos.h (mips_split_move): Add new argument.
2837 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
2838 (mips_split_move): Accept new INSN argument. Try to forward SRC
2839 into the next instruction.
2840 (mips_split_move_insn): Pass INSN through to mips_split_move.
2842 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
2844 PR rtl-optimization/89676
2845 * lra-constraints.c (curr_insn_transform): Do match reload for
2846 early clobbers even if the match was successful.
2848 2019-03-22 Jakub Jelinek <jakub@redhat.com>
2851 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
2853 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
2855 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
2857 2019-03-22 Jakub Jelinek <jakub@redhat.com>
2859 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
2860 <avx512>_fmsub_<mode>_mask3<round_name>,
2861 <avx512>_fnmadd_<mode>_mask3<round_name>,
2862 <avx512>_fnmsub_<mode>_mask3<round_name>,
2863 avx512f_vmfmadd_<mode>_mask3<round_name>,
2864 avx512f_vmfmsub_<mode>_mask3<round_name>,
2865 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
2866 instead of register_operand and %v instead of v for match_operand 1.
2867 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
2868 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
2869 <round_nimm_predicate> instead of register_operand and %v instead of v
2870 for match_operand 1.
2872 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
2873 <avx512>_fmadd_<mode>_mask3<round_name>,
2874 <avx512>_fmsub_<mode>_mask<round_name>,
2875 <avx512>_fmsub_<mode>_mask3<round_name>,
2876 <avx512>_fnmadd_<mode>_mask<round_name>,
2877 <avx512>_fnmadd_<mode>_mask3<round_name>,
2878 <avx512>_fnmsub_<mode>_mask<round_name>,
2879 <avx512>_fnmsub_<mode>_mask3<round_name>,
2880 <avx512>_fmaddsub_<mode>_mask<round_name>,
2881 <avx512>_fmaddsub_<mode>_mask3<round_name>,
2882 <avx512>_fmsubadd_<mode>_mask<round_name>,
2883 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
2884 <round_nimm_predicate> instead of nonimmediate_operand.
2885 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
2886 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
2887 Use register_operand instead of <round_nimm_predicate> for the
2888 operand that needs to match output.
2889 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
2890 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
2891 Likewise. Formatting fixes.
2894 * config/i386/i386.c (enum ix86_builtins): Remove
2895 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
2896 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
2897 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
2898 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
2899 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
2900 __builtin_ia32_vfmsubss3_mask3): New builtins.
2901 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
2902 avx512f_vmfmadd_<mode>_mask3<round_name>,
2903 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
2904 *avx512f_vmfmsub_<mode>_mask<round_name>,
2905 avx512f_vmfmsub_<mode>_mask3<round_name>,
2906 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
2907 *avx512f_vmfnmadd_<mode>_mask<round_name>,
2908 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
2909 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
2910 *avx512f_vmfnmsub_<mode>_mask<round_name>,
2911 avx512f_vmfnmsub_<mode>_mask3<round_name>,
2912 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
2913 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
2914 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
2915 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
2916 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
2917 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
2918 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
2919 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
2920 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
2921 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
2922 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
2923 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
2924 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
2925 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
2926 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
2927 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
2928 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
2929 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
2930 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
2931 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
2932 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
2933 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
2935 2019-03-21 Martin Sebor <msebor@redhat.com>
2937 PR tree-optimization/89350
2938 * builtins.c (compute_objsize): Also ignore offsets whose upper
2940 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
2941 (builtin_memref::builtin_memref): Initialize new member.
2942 Allow EXPR to be null.
2943 (builtin_memref::extend_offset_range): Replace local with a member.
2944 Avoid assuming pointer offsets are unsigned.
2945 (builtin_memref::set_base_and_offset): Determine base object
2946 before computing offset range.
2947 (builtin_access::builtin_access): Handle memset.
2948 (builtin_access::generic_overlap): Replace local with a member.
2949 (builtin_access::strcat_overlap): Same.
2950 (builtin_access::overlap): Same.
2951 (maybe_diag_overlap): Same.
2952 (maybe_diag_access_bounds): Same.
2953 (wrestrict_dom_walker::check_call): Handle memset.
2954 (check_bounds_or_overlap): Same.
2956 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
2957 Jakub Jelinek <jakub@redhat.com>
2960 * tree.c (fld_type_variant, fld_incomplete_type_of,
2961 fld_process_array_type): Call fld->pset.add and don't call
2962 add_tree_to_fld_list if it returns true.
2963 (free_lang_data_in_type): Similarly with self-recursive call. Purge
2964 non-marked types from TYPE_NEXT_VARIANT list.
2965 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
2967 2019-03-21 Jakub Jelinek <jakub@redhat.com>
2969 * hash-table.h (hash_table): Add Lazy template parameter defaulted
2970 to false, if true, don't alloc_entries during construction, but defer
2971 it to the first method that needs m_entries allocated.
2972 (hash_table::hash_table, hash_table::~hash_table,
2973 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
2974 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
2975 hash_table::clear_slot, hash_table::traverse_noresize,
2976 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
2977 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
2979 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
2980 NO_INSERT instead of find_with_hash.
2981 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
2982 hash_set::m_table): Add Lazy to template params of hash_table.
2983 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
2984 * attribs.c (test_attribute_exclusions): Likewise.
2985 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
2986 hash_set. Add tests for hash_set with Lazy = true.
2988 2019-03-21 Richard Biener <rguenther@suse.de>
2990 PR tree-optimization/89779
2991 * tree.c (tree_nop_conversion): Consolidate and fix defensive
2992 checks with respect to released SSA names now having error_mark_node
2994 * fold-const.c (operand_equal_p): Likewise.
2996 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
2999 * config/s390/s390.c (global_not_special_regno_p): Move to make it
3001 (s390_optimize_register_info): Use global_not_special_regno_p to
3002 check for global regs.
3004 2019-03-20 Jakub Jelinek <jakub@redhat.com>
3007 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
3008 update this_alternative nor this_alternative_set.
3010 2019-03-19 Jim Wilson <jimw@sifive.com>
3013 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
3014 align, size, offset. Use them to handle a BLKmode reference. Update
3016 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
3018 2019-03-19 Jakub Jelinek <jakub@redhat.com>
3020 PR rtl-optimization/89768
3021 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
3023 (unroll_loop_runtime_iterations): Likewise.
3025 2019-03-19 Martin Sebor <msebor@redhat.com>
3027 PR tree-optimization/89644
3028 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
3029 rather than endptr as an indicator of nul-termination.
3031 PR tree-optimization/89644
3032 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
3033 arrays in determining sequence sizes in strncpy and stpncpy.
3035 2019-03-19 Martin Liska <mliska@suse.cz>
3038 * predict.c (combine_predictions_for_bb): Empty likely_edges and
3039 unlikely_edges if there's an edge that belongs to both these sets.
3041 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
3044 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
3045 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
3046 go via a stack temporary.
3048 2019-03-19 Jakub Jelinek <jakub@redhat.com>
3051 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
3052 instead of gen_rtx_SUBREG.
3053 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
3055 2019-03-19 Richard Biener <rguenther@suse.de>
3058 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
3060 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
3064 * tree.c (free_lang_data_in_decl): Do not free context of C++
3067 2019-03-19 Jakub Jelinek <jakub@redhat.com>
3070 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
3071 subs for the first alternative except when operands[3] is 1.
3074 * gimplify.c (gimplify_asm_expr): For output argument with
3075 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
3078 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
3080 PR rtl-optimization/89753
3081 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
3082 explicit unrolling factor even more robust.
3084 2019-03-19 Jakub Jelinek <jakub@redhat.com>
3087 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
3088 compensation use x2 += 1 instead of x2 -= -1 and when honoring
3089 signed zeros, do another copysign after the compensation.
3091 2019-03-18 Martin Sebor <msebor@redhat.com>
3093 PR tree-optimization/89720
3094 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
3095 more conservatively, the same as anti-range.
3097 2019-03-18 Richard Biener <rguenther@suse.de>
3100 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
3101 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
3102 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
3103 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
3105 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
3107 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
3108 Extend queue to 1024 entries.
3109 Add "consumed" field.
3110 (gomp_print_output): Remove print_index parameter.
3111 Add final parameter.
3112 Change limit to unsigned.
3113 Use consumed field to implement circular buffer.
3114 Detect interrupted print in final pass.
3115 Flush output at the end.
3116 (run): Update gomp_print_output usage.
3117 (main): Initialize kernargs->output_data.consumed.
3119 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
3121 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
3122 calculation of the minimum number of scalar iterations for
3123 fully-predicated loops.
3125 2019-03-18 Martin Jambor <mjambor@suse.cz>
3127 PR tree-optimization/89546
3128 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
3129 any propagation to its children took place.
3131 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
3134 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
3135 parameter, and make use of it.
3136 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
3138 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
3140 * config/arc/arc.opt (mcode-density-frame): Get the inital value
3141 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
3142 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
3143 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
3144 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
3145 match what the ops is doing.
3146 (push_multi_fp_blink): Likewise.
3147 * config/arc/arc.c (arc_override_options): Enable enter/leave when
3148 compiling for size and elf target.
3149 (arc_save_callee_enter): Adjust note to match what enter/leave
3152 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
3154 * config/arc/arc.md (tst_movb): Fix constraint.
3156 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
3158 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
3160 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
3162 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
3163 * config/arc/arc.c (arc_conditional_register_usage): Remove all
3164 reg_alloc_order references.
3165 (size_alloc_order): Define.
3166 (arc_adjust_reg_alloc_order): New function.
3167 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
3169 (ADJUST_REG_ALLOC_ORDER): Define.
3170 (HONOR_REG_ALLOC_ORDER): Likewise.
3172 2019-03-18 Richard Biener <rguenther@suse.de>
3175 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
3176 loads and stores a bit more.
3178 2019-03-18 Richard Biener <rguenther@suse.de>
3181 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
3182 load pessimization to stores as well.
3184 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
3187 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
3188 successor, use NULL as its av set.
3190 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
3192 PR rtl-optimization/89721
3193 * lra-constraints (invariant_p): Return false if side_effects_p holds.
3195 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
3198 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3199 When handling vec_extract, use modular arithmetic to allow
3200 constant selectors greater than vector length.
3201 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
3202 V1TImode vectors to have constant selector values greater than 0.
3203 Use modular arithmetic to compute vector index.
3204 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
3205 index for in-memory vectors. Correct code generation for
3206 in-register vectors.
3207 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
3210 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
3214 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
3217 2019-03-15 Jakub Jelinek <jakub@redhat.com>
3220 * tree.c (inchash::add_expr): Strip any location wrappers.
3221 * fold-const.c (operand_equal_p): Move stripping of location wrapper
3222 after hash verification.
3225 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
3226 SIGN_EXTEND and ZERO_EXTEND.
3228 2019-03-14 Jason Merrill <jason@redhat.com>
3229 Jakub Jelinek <jakub@redhat.com>
3231 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
3232 than if is_empty (*slot).
3233 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
3234 existing elt and for elt removal.
3235 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
3236 of already removed elt.
3238 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
3241 * config/i386/i386.c (remove_partial_avx_dependency): Handle
3244 2019-03-14 Martin Liska <mliska@suse.cz>
3247 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
3249 2019-03-14 Richard Biener <rguenther@suse.de>
3252 * config/i386/i386.c (make_resolver_func): Properly set
3253 DECL_CONTEXT on the RESULT_DECL.
3254 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
3256 2019-03-14 Richard Biener <rguenther@suse.de>
3258 * gimple-pretty-print.c: Include cfgloop.h.
3259 (dump_gimple_phi): Adjust.
3260 (dump_gimple_bb_header): Dump loop header for GIMPLE.
3261 (pp_cfg_jump): Adjust.
3262 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
3263 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
3264 (lower_phi_internal_fn): Remove.
3265 (verify_gimple_call): Remove IFN_PHI special-casing.
3266 (dump_function_to_file): Dump IL state.
3267 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
3268 done to deal with PHI nodes being present in non-SSA state.
3270 2019-03-14 Jakub Jelinek <jakub@redhat.com>
3273 * multiple_target.c (create_dispatcher_calls): Change
3274 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
3275 In the node->iterate_referring loop, push *ref rather than ref, call
3276 ref->remove_reference () and always pass 0 to iterate_referring.
3278 PR rtl-optimization/89679
3279 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
3280 would contain a paradoxical SUBREG.
3282 2019-03-14 Richard Biener <rguenther@suse.de>
3284 PR tree-optimization/89710
3285 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
3288 2019-03-14 Martin Liska <mliska@suse.cz>
3290 * coverage.c (coverage_begin_function): Stream also
3292 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
3293 documentation about function declaration location.
3294 * gcov-dump.c (tag_function): Print whole range
3295 of function declaration.
3296 * gcov.c (struct function_info): Add end_column field.
3297 (function_info::function_info): Initialize it.
3298 (output_json_intermediate_file): Output {start,end}_column
3300 (read_graph_file): Read end_column.
3302 2019-03-14 Richard Biener <rguenther@suse.de>
3305 * fold-const.c (operand_equal_p): For INDIRECT_REF check
3306 that the access types are similar.
3308 2019-03-14 Jakub Jelinek <jakub@redhat.com>
3310 PR tree-optimization/89703
3311 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
3312 aren't compatible also with builtin_decl_explicit. Check pure
3313 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
3314 and BUILT_IN_STPNCPY{,_CHK}.
3316 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
3319 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
3320 addr32 prefix to VSIB address for X32.
3321 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
3323 (*avx512pf_gatherpf<mode>df_mask): Likewise.
3324 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
3325 (*avx512pf_scatterpf<mode>df_mask): Likewise.
3326 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
3327 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
3328 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
3329 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
3330 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
3331 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
3332 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
3333 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
3334 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
3335 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
3336 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
3337 (*avx512f_scatterdi<mode>): Likewise.
3339 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
3342 * lra-constraints.c (inherit_in_ebb): Update
3343 potential_reload_hard_regs along with live_hard_regs.
3345 2019-03-13 Jakub Jelinek <jakub@redhat.com>
3348 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
3350 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
3352 2019-03-13 Martin Sebor <msebor@redhat.com>
3354 PR tree-optimization/89662
3355 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
3358 2019-03-13 Richard Biener <rguenther@suse.de>
3361 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
3362 throw FP expressions at tree-affine.
3364 2019-03-14 Richard Biener <rguenther@suse.de>
3366 * tree-pretty-print.c (dump_generic_node): For -gimple properly
3367 dump negative integer constants using _Literal (type) -num.
3369 2019-03-13 Jakub Jelinek <jakub@redhat.com>
3371 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
3372 nonlocal_value member.
3375 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
3376 (ipa_simd_modify_function_body): Handle PHIs.
3378 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
3380 * config/s390/s390.c (s390_option_override_internal): Use more
3381 aggressive inlining parameters.
3383 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
3385 * config/s390/3906.md: New file.
3386 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
3387 (LONGRUNNING_THRESHOLD): Remove.
3388 (MAX_SCHED_MIX_SCORE): Decrease.
3389 (MAX_SCHED_MIX_DISTANCE): Decrease.
3390 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
3391 (struct s390_sched_state): New struct to hold scheduling state.
3392 (S390_SCHED_STATE_NORMAL): Remove.
3393 (S390_SCHED_STATE_CRACKED): Remove.
3394 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
3395 (s390_get_sched_attrmask): Use new attribute.
3396 (s390_get_unit_mask): Use new units.
3397 (s390_is_fpd): New function.
3398 (s390_is_fxd): New function.
3399 (s390_is_longrunning): New function.
3400 (s390_sched_score): Use new functions.
3401 (s390_sched_reorder): Likewise.
3402 (s390_sched_variable_issue): Rework and use new functions.
3403 (s390_sched_init): Use new functions.
3404 * config/s390/s390.h (s390_tune_attr): Add z14.
3405 * config/s390/s390.md: Add z14.
3407 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
3409 * config/s390/2964.md: Update pipeline description.
3410 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
3411 (LONGRUNNING_THRESHOLD): Remove.
3412 (LATENCY_FACTOR): Remove.
3413 (s390_get_unit_mask): Add unit.
3414 (s390_sched_score): Use fxd/fpd.
3415 (s390_sched_variable_issue): Use fxd/fpd.
3417 2019-03-12 Martin Liska <mliska@suse.cz>
3419 * config/i386/i386.c: Reword an error message.
3421 2019-03-12 Martin Jambor <mjambor@suse.cz>
3423 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
3424 terminate with newline.
3426 2019-03-12 Jakub Jelinek <jakub@redhat.com>
3429 * config/s390/s390.md (tabort): Use %wd instead of
3430 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
3431 letters and periods.
3432 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
3433 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
3437 * builtins.c (expand_builtin_int_roundingfn,
3438 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
3439 gcc_unreachable if validate_arglist fails.
3441 2019-03-12 Richard Biener <rguenther@suse.de>
3443 PR tree-optimization/89664
3444 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
3445 free the occurance tree after the early out.
3447 2019-03-11 Jakub Jelinek <jakub@redhat.com>
3451 * vr-values.c (vr_values::update_value_range): If
3452 old_vr->varying_p (), don't update it, make new_vr also VARYING
3455 2019-03-11 Martin Liska <mliska@suse.cz>
3457 * config/aarch64/aarch64.c (aarch64_override_options_internal):
3458 Fix double string quoting.
3460 2019-03-11 Martin Liska <mliska@suse.cz>
3462 * collect-utils.c (collect_wait): Wrap apostrophes
3463 in gcc internal format with %'.
3464 * collect2.c (main): Likewise.
3465 (scan_prog_file): Likewise.
3466 (scan_libraries): Likewise.
3467 * config/i386/i386.c (ix86_expand_call): Likewise.
3468 (ix86_handle_interrupt_attribute): Likewise.
3469 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
3470 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
3471 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
3472 * lto-wrapper.c (find_crtoffloadtable): Likewise.
3473 * symtab.c (symtab_node::verify_base): Likewise.
3474 * tree-cfg.c (verify_gimple_label): Likewise.
3475 * tree.c (verify_type_variant): Likewise.
3477 2019-03-11 Martin Liska <mliska@suse.cz>
3479 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
3480 in a string format message and fix GNU coding style.
3481 (expand_builtin_set_thread_pointer): Likewise.
3482 * common/config/aarch64/aarch64-common.c
3483 (aarch64_rewrite_selected_cpu): Likewise.
3484 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
3485 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
3486 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
3487 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
3488 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
3489 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
3490 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
3491 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
3492 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
3493 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
3495 * common/config/riscv/riscv-common.c
3496 (riscv_subset_list::parsing_subset_version): Likewise.
3497 (riscv_subset_list::parse_std_ext): Likewise.
3498 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
3499 (riscv_subset_list::parse): Likewise.
3500 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
3501 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
3502 (aarch64_override_options_internal): Likewise.
3503 (aarch64_validate_mcpu): Likewise.
3504 (aarch64_validate_march): Likewise.
3505 (aarch64_validate_mtune): Likewise.
3506 (aarch64_override_options): Likewise.
3507 * config/alpha/alpha.c (alpha_option_override): Likewise.
3508 * config/arc/arc.c (arc_init): Likewise.
3509 (parse_mrgf_banked_regs_option): Likewise.
3510 (arc_override_options): Likewise.
3511 (arc_expand_builtin_aligned): Likewise.
3512 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
3513 (arm_expand_builtin): Likewise.
3514 * config/arm/arm.c (arm_option_check_internal): Likewise.
3515 (arm_configure_build_target): Likewise.
3516 (arm_option_override): Likewise.
3517 (arm_options_perform_arch_sanity_checks): Likewise.
3518 (arm_handle_cmse_nonsecure_entry): Likewise.
3519 (arm_handle_cmse_nonsecure_call): Likewise.
3520 (arm_tls_referenced_p): Likewise.
3521 (thumb1_expand_prologue): Likewise.
3522 * config/avr/avr.c (avr_option_override): Likewise.
3523 * config/bfin/bfin.c (bfin_option_override): Likewise.
3524 * config/c6x/c6x.c (c6x_option_override): Likewise.
3525 * config/cr16/cr16.c (cr16_override_options): Likewise.
3526 * config/cris/cris.c (cris_option_override): Likewise.
3527 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
3528 * config/darwin-c.c (macosx_version_as_macro): Likewise.
3529 * config/darwin.c (darwin_override_options): Likewise.
3530 * config/frv/frv.c (frv_expand_builtin): Likewise.
3531 * config/h8300/h8300.c (h8300_option_override): Likewise.
3532 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
3533 (ix86_option_override_internal): Likewise.
3534 (warn_once_call_ms2sysv_xlogues): Likewise.
3535 (ix86_expand_prologue): Likewise.
3536 (split_stack_prologue_scratch_regno): Likewise.
3537 (ix86_warn_parameter_passing_abi): Likewise.
3538 * config/ia64/ia64.c (fix_range): Likewise.
3539 * config/m68k/m68k.c (m68k_option_override): Likewise.
3540 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
3541 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
3542 (mips_set_compression_mode): Likewise.
3543 * config/mmix/mmix.c (mmix_option_override): Likewise.
3544 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
3545 * config/msp430/msp430.c (msp430_option_override): Likewise.
3546 * config/nds32/nds32.c (nds32_option_override): Likewise.
3547 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
3548 (nios2_option_override): Likewise.
3549 (nios2_expand_custom_builtin): Likewise.
3550 * config/nvptx/mkoffload.c (main): Likewise.
3551 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
3552 * config/pa/pa.c (fix_range): Likewise.
3553 (pa_option_override): Likewise.
3554 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
3555 (riscv_option_override): Likewise.
3556 * config/rl78/rl78.c (rl78_option_override): Likewise.
3557 * config/rs6000/aix61.h: Likewise.
3558 * config/rs6000/aix71.h: Likewise.
3559 * config/rs6000/aix72.h: Likewise.
3560 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
3561 * config/rs6000/freebsd64.h: Likewise.
3562 * config/rs6000/linux64.h: Likewise.
3563 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
3564 (rs6000_expand_zeroop_builtin): Likewise.
3565 (rs6000_expand_mtfsb_builtin): Likewise.
3566 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
3567 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
3568 (rs6000_invalid_builtin): Likewise.
3569 (rs6000_expand_split_stack_prologue): Likewise.
3570 * config/rs6000/rtems.h: Likewise.
3571 * config/rx/rx.c (valid_psw_flag): Likewise.
3572 (rx_expand_builtin): Likewise.
3573 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
3574 * config/s390/s390.c (s390_expand_builtin): Likewise.
3575 (s390_function_profiler): Likewise.
3576 (s390_option_override_internal): Likewise.
3577 (s390_option_override): Likewise.
3578 * config/sh/sh.c (sh_option_override): Likewise.
3579 (sh_builtin_saveregs): Likewise.
3580 (sh_fix_range): Likewise.
3581 * config/sh/vxworks.h: Likewise.
3582 * config/sparc/sparc.c (sparc_option_override): Likewise.
3583 * config/spu/spu.c (spu_option_override): Likewise.
3584 (fix_range): Likewise.
3585 * config/visium/visium.c (visium_option_override): Likewise.
3586 (visium_handle_interrupt_attr): Likewise.
3587 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
3588 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
3589 (dbg_cnt_process_opt): Likewise.
3590 * dwarf2out.c (output_dwarf_version): Likewise.
3591 * except.c (expand_eh_return): Likewise.
3592 * gcc.c (defined): Likewise.
3593 (driver_handle_option): Likewise.
3594 (process_command): Likewise.
3595 (compare_files): Likewise.
3596 (driver::prepare_infiles): Likewise.
3597 (driver::do_spec_on_infiles): Likewise.
3598 (driver::maybe_run_linker): Likewise.
3599 * omp-offload.c (oacc_parse_default_dims): Likewise.
3600 * opts-global.c (handle_common_deferred_options): Likewise.
3601 * opts.c (parse_sanitizer_options): Likewise.
3602 (common_handle_option): Likewise.
3603 (enable_warning_as_error): Likewise.
3604 * passes.c (enable_disable_pass): Likewise.
3605 * plugin.c (parse_plugin_arg_opt): Likewise.
3606 (default_plugin_dir_name): Likewise.
3607 * targhooks.c (default_expand_builtin_saveregs): Likewise.
3608 (default_pch_valid_p): Likewise.
3609 * toplev.c (init_asm_output): Likewise.
3610 (process_options): Likewise.
3611 (toplev::run_self_tests): Likewise.
3612 * tree-cfg.c (verify_gimple_call): Likewise.
3613 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
3614 (tree_inlinable_function_p): Likewise.
3615 * var-tracking.c (vt_find_locations): Likewise.
3617 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
3619 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
3620 only on the else branch.
3622 2019-03-11 Martin Liska <mliska@suse.cz>
3624 * gcov.c (output_intermediate_json_line): Print function
3626 (output_json_intermediate_file): Add new argument.
3627 * doc/gcov.texi: Document the change.
3629 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
3631 PR rtl-optimization/89588
3632 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
3633 explicit unrolling factor more robust.
3635 2019-03-11 Richard Biener <rguenther@suse.de>
3637 PR tree-optimization/89649
3638 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
3639 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
3640 on the prolog and epilog loops.
3641 (vect_loop_versioning): Return copy of loop.
3642 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
3643 on the non-vectorized version of the loop.
3645 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
3648 * config/i386/sse.md (*vec_extractv2di_0_sse):
3649 Add (=r,x) alternative and corresponding splitter.
3651 2019-03-10 Martin Jambor <mjambor@suse.cz>
3653 PR tree-optimization/85762
3654 PR tree-optimization/87008
3655 PR tree-optimization/85459
3656 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
3657 it points to if there is a type changing MEM_REF. Adjust all callers.
3658 (build_accesses_from_assign): Disable total scalarization if
3659 contains_vce_or_bfcref_p returns true through the new parameter, for
3662 2019-03-09 Jakub Jelinek <jakub@redhat.com>
3665 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
3666 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
3669 * common.opt (fdiagnostics-show-labels,
3670 fdiagnostics-show-line-numbers, fdiagnostics-format=,
3671 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
3672 gas-locview-support, ginline-points, ginternal-reset-location-views):
3673 Terminate description text with a dot.
3674 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
3675 * config/mcore/mcore.opt (m210, m340): Likewise.
3676 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
3677 mnops=): Start description text with a capital letter.
3678 * config/arc/arc.opt (msize-level=): Likewise.
3679 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
3680 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
3682 * config/ft32/ft32.opt (msim): Likewise.
3683 (mft32b, mcompress): Likewise. Terminate description text with a dot.
3684 (mnodiv, mnopm): Terminate description text with a dot.
3685 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
3687 * config/i386/i386.opt (prefer_vector_width, instrument_return):
3689 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
3692 PR rtl-optimization/89634
3693 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
3694 are modified in BB_END (e->src) instruction.
3696 2019-03-08 David Malcolm <dmalcolm@redhat.com>
3699 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
3700 messages more amenable to translation, and improve wording.
3702 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
3704 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
3705 ud- and du-chains between phases.
3707 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
3710 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
3711 instead of POLY_INT_CST.
3713 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
3715 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
3718 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
3723 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
3724 (_mm_storeu_si64): Ditto.
3726 2019-03-08 Martin Liska <mliska@suse.cz>
3729 * config/i386/i386.c (ix86_option_override_internal): Disable
3730 jump tables when retpolines are used.
3732 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
3735 * ipa-split.c (execute_split_functions): Do not split
3736 'noinline' or 'section' function.
3738 2019-03-08 Jakub Jelinek <jakub@redhat.com>
3741 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
3742 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
3743 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
3746 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
3747 from diagnostics. Formatting fixes.
3750 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
3751 warn_odr diagnostics.
3754 * lra-constraints.c (process_alt_operands): Avoid one space before
3755 " at the end of line and another after " on another line in a string
3757 * attribs.c (handle_dll_attribute): Likewise.
3758 * config/avr/avr-devices.c (avr_texinfo): Likewise.
3760 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
3761 warning_at or inform messages in G_() if there is no ?:.
3763 PR tree-optimization/89550
3764 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
3765 returned true. Formatting fixes.
3766 (expand_builtin_strnlen): Formatting fixes.
3767 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
3768 if warning_at returned true.
3769 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
3771 2019-03-08 Richard Biener <rguenther@suse.de>
3774 * cfgloop.h (struct loop): Add owned_clique field.
3775 * cfgloopmanip.c (copy_loop_info): Copy it.
3776 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
3778 * tree-inline.c (copy_loops): Remap owned_clique.
3779 * lto-streamer-in.c (input_cfg): Stream owned_clique.
3780 * lto-streamer-out.c (output_cfg): Likewise.
3782 2019-03-08 Jakub Jelinek <jakub@redhat.com>
3785 * config/darwin.c: Include intl.h.
3786 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
3787 composing the message out of two separate parts.
3789 2019-03-07 Jakub Jelinek <jakub@redhat.com>
3792 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
3793 doesn't start with a capital letter and doesn't end with a dot.
3794 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
3795 with a capital letter.
3796 (ix86_mangle_function_version_assembler_name): Likewise.
3797 (ix86_generate_version_dispatcher_body): Likewise.
3798 (fold_builtin_cpu): Likewise.
3799 (get_builtin_code_for_version): Likewise. Remove extraneous space.
3800 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
3801 translators, wrap full type name in %qs.
3803 PR translation/79999
3804 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
3805 depend clause with source (or sink) modifier.
3806 * omp-expand.c (expand_omp_ordered_sink): Likewise.
3809 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
3810 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
3811 (avx512f_load<mode>_mask): New define_expand.
3812 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
3813 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
3814 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
3815 __builtin_ia32_movess_mask): New builtins.
3816 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
3817 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
3818 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
3819 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
3821 2019-03-07 Martin Jambor <mjambor@suse.cz>
3824 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
3825 for extern inline functions.
3827 2019-03-07 Martin Jambor <mjambor@suse.cz>
3830 * cgraph.h (cgraph_node): New inline method former_thunk_p.
3831 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
3832 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
3833 have multiple callees. At the end check if declarations match as
3834 opposed to cgraph_nodes.
3836 2019-03-07 Martin Liska <mliska@suse.cz>
3838 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
3839 which is equivalent to searching for this in clones chain.
3840 * symtab.c (symtab_node::verify_base): Similarly compare ASM
3841 names with a neighbour and special case first node in a chain.
3843 2019-01-25 Jason Merrill <jason@redhat.com>
3845 PR c++/80916 - spurious "static but not defined" warning.
3846 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
3847 for an internal symbol with DECL_EXTERNAL.
3849 2019-04-07 Richard Biener <rguenther@suse.de>
3852 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
3853 * tree-inline.c (copy_loops): Simplify.
3855 2019-03-07 Martin Liska <mliska@suse.cz>
3857 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
3859 2019-03-07 Richard Biener <rguenther@suse.de>
3861 PR tree-optimization/89595
3862 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
3863 stmt iterator as reference, take boolean output parameter to
3864 indicate whether the stmt was removed and thus the iterator
3866 (dom_opt_dom_walker::before_dom_children): Re-iterate over
3867 stmts created by folding.
3869 2019-03-07 Jakub Jelinek <jakub@redhat.com>
3872 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
3875 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
3877 PR rtl-optimization/88845
3878 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
3880 * lra.c (remove_scratches_1): New function.
3881 (remove_scratches): Use it.
3882 (lra_emit_move): Likewise.
3884 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
3886 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
3887 unaligned_access variable.
3888 * config/arc/arc.c (arc_override_options): Set unaligned access
3889 default on for HS CPUs.
3890 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
3892 2019-03-06 Martin Liska <mliska@suse.cz>
3894 PR gcov-profile/89577
3895 * doc/gcov.texi: Prefer to use --coverage.
3896 * doc/sourcebuild.texi: Likewise.
3898 2019-03-02 Jason Merrill <jason@redhat.com>
3900 PR c++/86485 - -Wmaybe-unused with empty class ?:
3901 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
3903 2019-03-05 Jakub Jelinek <jakub@redhat.com>
3906 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
3910 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
3911 exactly one argument.
3913 2019-03-05 Jakub Jelinek <jakub@redhat.com>
3914 Richard Sandiford <richard.sandiford@arm.com>
3916 PR tree-optimization/89570
3917 * match.pd (vec_cond into cond_op simplification): Don't use
3918 get_conditional_internal_fn, use as_internal_fn (cond_op).
3920 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
3923 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
3924 to decide when to split off a non-zero offset from a symbol.
3925 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
3926 in function symbols.
3928 2019-03-05 Richard Biener <rguenther@suse.de>
3930 PR tree-optimization/89594
3931 * tree-if-conv.c (pass_if_conversion::execute): Handle
3932 case where .LOOP_VECTORIZED_FUNCTION was removed.
3934 2019-03-05 Jakub Jelinek <jakub@redhat.com>
3937 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
3938 instead alloca it only when needed with the needed size.
3940 PR tree-optimization/89570
3941 * match.pd (vec_cond into cond_op simplification): Guard with
3942 vectorized_internal_fn_supported_p test and #if GIMPLE.
3944 PR tree-optimization/89566
3945 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
3946 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
3947 Punt if get_user_idx_format succeeds, but idx_format argument is
3948 not provided or doesn't have pointer type, or if idx_args is above
3949 number of provided arguments.
3951 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
3953 PR tree-optimization/89437
3954 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
3956 2019-03-04 Richard Biener <rguenther@suse.de>
3959 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
3962 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
3964 PR tree-optimization/89487
3965 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
3966 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
3967 (distribute_loop): Don't do runtime alias check if there is non-
3968 addressable data reference.
3969 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
3970 is a register variable.
3972 2019-03-02 Jakub Jelinek <jakub@redhat.com>
3975 * config/arm/arm.md (cmpsi2_addneg): Use
3976 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
3977 If operands[2] is 0 or INT_MIN, force use of subs.
3978 (*compare_scc splitter): Use gen_int_mode.
3979 (*negscc): Likewise.
3980 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
3982 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
3983 Monk Chiang <sh.chiang04@gmail.com>
3985 * common/config/riscv/riscv-common.c: Include sstream.
3986 (riscv_subset_list::to_string): New.
3987 (riscv_arch_str): Likewise.
3988 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
3990 * config/riscv/riscv-protos.h (riscv_arch_str): New.
3991 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
3992 (riscv_emit_attribute): New.
3993 (riscv_file_start): Emit attribute if needed.
3994 (riscv_option_override): Init riscv_emit_attribute_p.
3995 * config/riscv/riscv.opt (mriscv-attribute): New option.
3996 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
3998 * doc/install.texi: Document --with-riscv-attribute.
3999 * doc/invoke.texi: Document -mriscv-attribute.
4001 * common/config/riscv/riscv-common.c:
4002 Include config/riscv/riscv-protos.h.
4003 (INCLUDE_STRING): Defined.
4004 (RISCV_DONT_CARE_VERSION): Defined.
4005 (riscv_subset_t): Declare.
4006 (riscv_subset_t::riscv_subset_t): New.
4007 (riscv_subset_list): Declare.
4008 (riscv_subset_list::riscv_subset_list): New.
4009 (riscv_subset_list::~riscv_subset_list): Likewise.
4010 (riscv_subset_list::parsing_subset_version): Likewise.
4011 (riscv_subset_list::parse_std_ext): Likewise.
4012 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
4013 (riscv_subset_list::add): Likewise.
4014 (riscv_subset_list::lookup): Likewise.
4015 (riscv_subset_list::xlen): Likewise.
4016 (riscv_subset_list::parse): Likewise.
4017 (riscv_supported_std_ext): Likewise.
4018 (current_subset_list): Likewise.
4019 (riscv_parse_arch_string): Using riscv_subset_list::parse to
4022 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
4024 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
4025 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
4026 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
4028 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
4030 PR rtl-optimization/85899
4031 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
4032 fallthru edges leading to the exit block.
4034 2019-03-01 Tamar Christina <tamar.christina@arm.com>
4037 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
4038 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
4040 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
4042 PR tree-optimization/89535
4043 * tree-vect-stmts.c (vectorizable_call): Record the vector types
4044 for each operand. Calculate the fallback choice for mask operands
4045 and pass it to vect_get_vec_def_for_operand.
4047 2019-03-01 Richard Biener <rguenther@suse.de>
4050 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
4051 get virtual operands.
4052 (get_expr_operands): Handle CONST_DECL like other decls.
4054 2019-03-01 Jakub Jelinek <jakub@redhat.com>
4057 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
4058 on DECL_P and EXPR_P.
4060 2019-03-01 Richard Biener <rguenther@suse.de>
4063 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
4064 argument, defaulted to zero.
4065 * passes.c (execute_function_todo): Pass down SSA update flags
4066 to cleanup_tree_cfg.
4067 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
4068 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
4070 (cleanup_tree_cfg): Get and pass down SSA update flags.
4072 2019-03-01 Jakub Jelinek <jakub@redhat.com>
4075 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
4076 early_lto_debug argument.
4078 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
4080 PR tree-optimization/89536
4081 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
4082 only whether bit #0 of the value is 0 instead of the entire value.
4084 2019-02-28 Marek Polacek <polacek@redhat.com>
4086 PR c++/87068 - missing diagnostic with fallthrough statement.
4087 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
4088 at the end of a seq, save its location to walk_stmt_info.
4089 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
4092 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
4095 * tree.c (find_atomic_core_type): Move ahead in file.
4096 (check_base_type): Correctly compare alignments of atomic types.
4098 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
4101 * config/i386/i386.c (get_builtin_code_for_version): Identify
4102 Westmere from PCLMUL, instead of AES.
4104 2019-02-28 Jakub Jelinek <jakub@redhat.com>
4107 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
4108 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
4111 2019-02-28 Tamar Christina <tamar.christina@arm.com>
4114 * config/aarch64/aarch64-option-extensions.def: Document it.
4115 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
4118 2019-02-28 Jakub Jelinek <jakub@redhat.com>
4121 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
4122 builtins if they don't have a single scalar floating point argument.
4125 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
4127 PR rtl-optimization/89490
4128 * varasm.c (get_block_for_section): Bail out for mergeable sections.
4129 (default_use_anchors_for_symbol_p, output_object_block): Assert the
4130 block section is not mergeable.
4132 2019-02-27 Jakub Jelinek <jakub@redhat.com>
4135 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
4136 old define_insn to ...
4137 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
4138 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
4139 Rename old define_insn to ...
4140 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
4141 (thumb2_casesi_internal_pic): New define_expand. Rename old
4143 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
4144 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
4145 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
4147 2019-02-27 Richard Biener <rguenther@suse.de>
4150 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
4152 2019-02-27 Richard Biener <rguenther@suse.de>
4154 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
4157 2019-02-27 Richard Biener <rguenther@suse.de>
4160 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
4161 parameter, prefix section name with .gnu.debuglto_ if true.
4162 (dwarf2out_finish): Pass false to output_comdat_type_unit.
4163 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
4165 2019-02-27 Richard Biener <rguenther@suse.de>
4168 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
4169 rather than on use_debug_types, doing what output_die does.
4170 (value_format): Likewise.
4172 2019-02-27 Martin Jambor <mjambor@suse.cz>
4173 Martin Sebor <msebor@redhat.com>
4175 * doc/invoke.texi (Warning Options): Reword description of
4176 -Wno-absolute-value.
4178 2019-02-27 Jakub Jelinek <jakub@redhat.com>
4180 PR tree-optimization/89280
4181 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
4182 builtin_setjmp_setup_bb): New functions.
4183 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
4184 When visiting __builtin_setjmp_setup block, queue in special
4185 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
4186 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
4187 from visited after the loop if they don't have any visited successor
4190 2018-02-26 Steve Ellcey <sellcey@marvell.com>
4192 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
4194 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
4196 2019-02-26 Jakub Jelinek <jakub@redhat.com>
4199 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
4200 with types other than sizetype/ssizetype.
4202 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
4204 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
4205 (enum sparc_processor_type): ...this.
4206 (enum sparc_code_model_type): New enumeration type.
4207 (enum sparc_memory_model_type): Tweak comments.
4208 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
4210 (mcmodel): Use sparc_code_model enumeration and variable.
4211 (sparc_code_model): New enumeration.
4212 (mdebug): Add Undocumented marker.
4213 * config/sparc/sparc.h (enum cmodel): Delete.
4214 (sparc_cmodel): Likewise.
4215 (TARGET_CM_MEDLOW): Adjust to above renaming.
4216 (TARGET_CM_MEDMID): Likewise.
4217 (TARGET_CM_MEDANY): Likewise.
4218 (TARGET_CM_EMBMEDANY): Likewise.
4219 * config/sparc/sparc.c (sparc_cmodel): Delete.
4220 (sparc_option_override): Remove string/value mapping support for the
4221 code model. Move code and memory model support to after the handling
4222 of target flags. Do private machine setup last.
4223 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
4224 (sparc_legitimize_reload_address): Likewise.
4225 (sparc_output_mi_thunk): Likewise.
4226 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
4228 2019-02-26 Jakub Jelinek <jakub@redhat.com>
4230 PR tree-optimization/89500
4231 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
4232 (handle_builtin_strlen): Remove noncst_bound variable. Always
4233 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
4234 cst if the first cst bytes starting at x are known to be non-zero,
4235 even if the string is not zero terminated. Don't try to modify
4236 *si for strnlen. Update strlen_to_stridx only for strlen or if
4237 we can prove strnlen returns the same value as strlen would.
4239 2019-02-26 Martin Liska <mliska@suse.cz>
4241 * alloc-pool.h (struct pool_usage): Remove extra
4243 * bitmap.h (struct bitmap_usage): Likewise.
4244 * ggc-common.c (struct ggc_usage): Likewise.
4245 * mem-stats.h (struct mem_usage): Likewise.
4246 (mem_alloc_description::dump): Print dash lines
4247 here and repeat header at the end of a table report.
4248 It's then more readable.
4249 * tree-phinodes.c (phinodes_print_statistics): Make
4250 horizontal alignment.
4251 * tree-ssanames.c (ssanames_print_statistics): Likewise.
4252 * vec.c (struct vec_usage): Remove extra print_dash_line.
4253 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
4255 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
4257 * doc/extend.texi (__builtin_object_size):
4258 Use @pxref instead of @xref inside parenthesis.
4259 (__builtin_has_attribute): Add missing comma after @xref.
4260 (__builtin_object_size): Ditto.
4261 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
4262 * fortran/invoke.texi (-ffpe-trap): Use @var for every item
4265 2019-02-26 Jeff Law <law@redhat.com>
4267 PR rtl-optimization/87761
4268 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
4269 detect obviously dead insns and delete them.
4271 2019-02-26 Richard Biener <rguenther@suse.de>
4273 PR tree-optimization/89505
4274 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
4275 to handle restrict pointed-to vars with multiple subvars
4278 2019-02-26 Richard Biener <rguenther@suse.de>
4280 PR tree-optimization/89489
4281 * tree-parloops.c (create_loop_fn): Copy over last_clique.
4283 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
4285 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
4286 and move around comment.
4287 <BIT_AND_EXPR>: Likewise.
4288 <BIT_NOT_EXPR>: Add specific handling for boolean types.
4290 2019-02-26 Jakub Jelinek <jakub@redhat.com>
4293 * config/i386/i386.c (remove_partial_avx_dependency): Call
4294 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
4295 after changing possibly many instructions to use that pseudo. Fix up
4296 insertion of v4sf_const0 setter at the start of bb.
4298 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
4301 * doc/extend.texi (Variadic Pointer Args): New section.
4303 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
4304 Martin Sebor <msebor@gmail.com>
4306 * common.opt (Wattribute-alias): Likewise.
4307 * doc/invoke.texi (Option Summary): List general form of
4308 -Wattribute-alias=. List positive form of -Wmissing-attributes.
4309 (-Wmissing-attributes): Invert entry, rewrite and correct default.
4310 Add cross-references.
4311 (-Wattribute-alias): Rewrite and correct default. Mention
4312 considered attributes (same as for -Wmissing-attributes).
4314 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
4316 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
4317 (_mm_cvtpd_ps): Likewise.
4318 (_mm_cvttpd_epi32): Likewise.
4321 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
4322 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
4325 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
4327 2019-02-25 Tamar Christina <tamar.christina@arm.com>
4330 * common/config/aarch64/aarch64-common.c
4331 (struct aarch64_option_extension): Add is_synthetic.
4332 (all_extensions): Use it.
4333 (TARGET_OPTION_INIT_STRUCT): Define hook.
4334 (struct gcc_targetm_common): Moved to end.
4335 (all_extensions_by_on): New.
4336 (opt_ext_cmp, typedef opt_ext): New.
4337 (aarch64_option_init_struct): New.
4338 (aarch64_contains_opt): New.
4339 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
4340 * config/aarch64/aarch64-option-extensions.def
4341 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
4342 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
4343 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
4344 Set is_synthetic to false.
4345 (crypto): Set is_synthetic to true.
4346 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
4349 2019-02-25 Tamar Christina <tamar.christina@arm.com>
4351 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
4352 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
4353 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
4354 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
4355 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
4356 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
4357 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
4358 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
4360 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
4361 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
4362 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
4363 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
4364 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
4365 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
4366 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
4367 vfmlsl_laneq_high_f16): ... To this.
4368 * config/arm/neon.md: Update comments.
4370 2019-02-25 Tamar Christina <tamar.christina@arm.com>
4372 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
4373 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
4374 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
4375 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
4376 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
4377 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
4378 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
4379 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
4381 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
4382 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
4383 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
4384 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
4385 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
4386 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
4387 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
4388 vfmlslq_laneq_high_f16): ... To this.
4390 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
4392 PR rtl-optimization/86096
4393 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
4394 comparing mw_order values.
4396 2019-02-25 Jakub Jelinek <jakub@redhat.com>
4399 * config/arm/arm.md (*subsi3_carryin_const): Use
4400 arm_neg_immediate_operand predicate instead of
4401 arm_not_immediate_operand, "L" constraint instead of "K" and
4402 print it using %n2 instead of %B2.
4403 (*subsi3_carryin_const0): New define_insn.
4404 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
4405 instead of arm_not_operand and "I" constraint instead of "K" and
4406 print it using %n3 instead of %B2. Instead of using match_dup 2 add
4407 another match_operand and in the condition check that it is negation
4409 (*subsi3_carryin_compare_const0): New define_ins.
4410 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
4411 *subsi3_carryin_const.
4412 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
4413 split into *subsi3_carryin_compare_const0 if the highpart is zero.
4416 * config/arm.vfp.md (*negdf2_vfp): Use
4417 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
4418 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
4420 2019-02-24 Jakub Jelinek <jakub@redhat.com>
4422 PR rtl-optimization/89445
4423 * simplify-rtx.c (simplify_ternary_operation): Don't use
4424 simplify_merge_mask on operands that may trap.
4425 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
4426 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
4427 second operand is CONST_VECTOR, check if any element could be zero.
4428 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
4429 their operands can trap.
4431 2019-02-23 Martin Sebor <msebor@redhat.com>
4433 * gimple-ssa-sprintf.c (target_strtol): Rename...
4434 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
4435 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
4436 check for range error.
4438 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
4441 * opts-common.c (prune_options): Also prune joined switches
4442 with Negative and RejectNegative.
4443 * config/i386/i386.opt (march=): Add Negative(march=).
4444 (mtune=): Add Negative(mtune=).
4445 * doc/options.texi: Document Negative used together with Joined
4448 2019-02-22 Martin Sebor <msebor@redhat.com>
4450 * doc/extend.texi (Other Builtins): Add
4451 __builtin_is_constant_evaluated.
4453 2019-02-22 Richard Biener <rguenther@suse.de>
4455 PR tree-optimization/87609
4456 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
4458 2019-02-22 Jeff Law <law@redhat.com>
4460 PR rtl-optimization/87761
4461 * config/mips/mips.md: Add new combiner pattern to recognize
4462 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
4464 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
4467 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
4468 destination register in peepholes generating patterns for ADDS/SUBS.
4469 (add<mode>3_compare0,
4470 *addsi3_compare0_uxtw, add<mode>3_compareC,
4471 add<mode>3_compareV_imm, add<mode>3_compareV,
4472 *adds_<optab><ALLX:mode>_<GPI:mode>,
4473 *subs_<optab><ALLX:mode>_<GPI:mode>,
4474 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
4475 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
4476 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
4477 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
4478 sub<mode>3_compare1): Allow stack pointer for source register.
4479 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
4481 2019-02-22 Martin Sebor <msebor@redhat.com>
4483 PR tree-optimization/88993
4484 PR tree-optimization/88853
4485 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
4487 (sprintf_dom_walker::call_info::is_string_func): New helper.
4488 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
4489 for formatted string functions.
4490 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
4492 2019-02-22 Martin Sebor <msebor@redhat.com>
4495 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
4496 unreachable subexpressions.
4498 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
4499 Hongtao Liu <hongtao.liu@intel.com>
4500 Sunil K Pandey <sunil.k.pandey@intel.com>
4503 * config/i386/i386-passes.def: Add
4504 pass_remove_partial_avx_dependency.
4505 * config/i386/i386-protos.h
4506 (make_pass_remove_partial_avx_dependency): New.
4507 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
4509 (pass_data_remove_partial_avx_dependency): New.
4510 (pass_remove_partial_avx_dependency): Likewise.
4511 (make_pass_remove_partial_avx_dependency): Likewise.
4512 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
4513 (*extendsfdf2): Add avx_partial_xmm_update.
4514 (truncdfsf2): Likewise.
4515 (*float<SWI48:mode><MODEF:mode>2): Likewise.
4516 (SF/DF conversion splitters): Disabled for TARGET_AVX.
4518 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
4521 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
4524 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
4527 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
4528 (PTA_SKYLAKE): Add PTA_AES.
4529 (PTA_GOLDMONT): Likewise.
4531 2019-02-22 Sudakshina Das <sudi.das@arm.com>
4533 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
4534 instruction if enabled.
4535 (aarch64_override_options): Remove reference to return address key.
4537 2019-02-22 Richard Biener <rguenther@suse.de>
4539 PR tree-optimization/89440
4540 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
4541 not necessary assert.
4543 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
4546 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
4547 (oacc_replace_fn_attrib_attr): ... this new function.
4548 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
4549 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
4551 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4553 * config/arm/arm-cpus.in (ares): Rename to...
4554 (neoverse-n1): ... This. Add ares as alias.
4555 * config/arm/arm-tables.opt: Regenerate.
4556 * config/arm/arm-tune.md: Likewise.
4557 * doc/invoke.txt (ARM Options): Document neoverse-n1.
4559 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4561 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
4562 * config/aarch64/aarch64-tune.md: Regenerate.
4563 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
4565 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4567 * config/aarch64/aarch64.c (ares_tunings): Rename to...
4568 (neoversen1_tunings): ... This.
4569 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
4570 (neoverse-n1): New CPU.
4571 * config/aarch64/aarch64-tune.md: Regenerate.
4572 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
4574 2019-02-22 Richard Biener <rguenther@suse.de>
4577 * cfghooks.h (dependence_hash): New typedef.
4578 (struct copy_bb_data): New type.
4579 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
4580 (duplicate_block): Likewise.
4581 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
4582 (copy_bbs): Create and pass down copy_bb_data.
4583 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
4584 (rtl_duplicate_bb): Likewise.
4585 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
4586 remap dependence info.
4588 2019-02-22 Richard Biener <rguenther@suse.de>
4590 PR tree-optimization/87609
4591 * tree-core.h (tree_base): Document special clique values.
4592 * tree-inline.c (remap_dependence_clique): Do not use the
4593 special clique value of one.
4594 (maybe_set_dependence_info): Use clique one.
4595 (clear_dependence_clique): New callback.
4596 (compute_dependence_clique): Clear clique one from all refs
4597 before assigning it (again).
4599 2019-02-21 Martin Sebor <msebor@redhat.com>
4601 * doc/extend.texi (__clear_cache): Correct signature.
4603 2019-02-21 Ian Lance Taylor <iant@golang.org>
4606 * varasm.c (decode_addr_const): Call lookup_constant_def rather
4607 than output_constant_def.
4608 (add_constant_to_table): New static function.
4609 (output_constant_def): Call add_constant_to_table.
4610 (tree_output_constant_def): Likewise.
4612 2019-02-21 Jakub Jelinek <jakub@redhat.com>
4615 * builtins.c (fold_builtin_arith_overflow): If first two args are
4616 INTEGER_CSTs, set intres and ovfres to constants rather than calls
4619 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
4622 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
4623 error for -mindirect-branch/-mfunction-return with incompatible
4626 2019-02-21 Jakub Jelinek <jakub@redhat.com>
4629 * constraints.md (q): Remove.
4630 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
4633 2019-02-21 Martin Jambor <mjambor@suse.cz>
4636 * omp-general.c (omp_extract_for_data): Removed a duplicate call
4637 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
4638 (omp_adjust_for_condition): ...here. Added necessary parameters.
4639 * omp-general.h (omp_adjust_for_condition): Updated declaration.
4640 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
4641 proper values to new parameters of omp_adjust_for_condition.
4643 2019-02-20 Jakub Jelinek <jakub@redhat.com>
4646 * expr.c (expand_assignment): If result is a MEM, use change_address
4647 instead of simplify_gen_subreg.
4649 2019-02-20 Jakub Jelinek <jakub@redhat.com>
4650 David Malcolm <dmalcolm@redhat.com>
4653 * fold-const.c (decode_field_reference): Return NULL_TREE if
4654 lang_hooks.types.type_for_size returns NULL. Check it before
4655 overwriting *exp_. Use return NULL_TREE instead of return 0.
4657 2019-02-20 Jakub Jelinek <jakub@redhat.com>
4661 * toplev.c (do_compile): Double the emin/emax exponents to workaround
4664 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
4667 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
4668 TARGET_SSE in addition to TARGET_SSE_MATH.
4670 (ix86_excess_precision): Ditto.
4671 (ix86_float_exceptions_rounding_supported_p): Ditto.
4672 (use_rsqrt_p): Ditto.
4673 * config/i386/sse.md (rsqrt<mode>2): Ditto.
4675 2019-02-20 David Malcolm <dmalcolm@redhat.com>
4678 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
4679 linenum_arith_t when determining if two adjacent line spans are
4680 close enough to merge.
4681 (diagnostic_show_locus): Use linenum_arith_t when iterating over
4682 lines within each line_span.
4684 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
4687 * lra-constraints.c(uses_hard_regs_p): Fix handling of
4688 paradoxical SUBREGS.
4690 2019-02-20 Li Jia He <helijia@linux.ibm.com>
4693 * gcc/config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
4694 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
4695 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
4698 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
4700 * config/gcn/gcn.c (print_operand): Fix typo.
4702 2019-02-19 Richard Biener <rguenther@suse.de>
4705 * toplev.c (do_compile): Initialize mpfr's exponent range
4706 based on available float modes.
4708 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
4710 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
4711 as long as the epilogue isn't completed.
4713 2019-02-18 Martin Sebor <msebor@redhat.com>
4715 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
4716 __has_cpp_attribute, and __has_include.
4718 2019-02-18 Martin Sebor <msebor@redhat.com>
4720 * doc/invoke.texi (-Wreturn-type): Correct and expand.
4722 2019-02-18 Martin Sebor <msebor@redhat.com>
4725 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
4727 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
4729 2019-02-18 Richard Biener <rguenther@suse.de>
4731 PR tree-optimization/89296
4732 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
4733 of no-warning flag to cases that might emit the bogus warning.
4735 2019-02-18 Jakub Jelinek <jakub@redhat.com>
4738 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
4740 * config/arm/vfp.md (*movdi_vfp): Likewise.
4741 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
4742 "q" constraint for operands[0].
4745 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
4746 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
4747 pattern in a temporary buffer.
4748 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
4749 than 64-operands[2].
4752 * config/s390/s390.c (s390_indirect_branch_attrvalue,
4753 s390_indirect_branch_settings): Define unconditionally.
4754 (s390_set_current_function): Likewise, but guard the whole body except
4755 the s390_indirect_branch_settings call with
4756 #if S390_USE_TARGET_ATTRIBUTE.
4757 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
4759 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
4760 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
4761 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
4762 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
4763 HOST_WIDE_INT_1U instead of 1ULL.
4764 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
4765 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
4766 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
4767 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
4769 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
4772 2019-02-18 Martin Jambor <mjambor@suse.cz>
4774 PR tree-optimization/89209
4775 * tree-sra.c (create_access_replacement): New optional parameter
4776 reg_tree. Use it as a type if non-NULL and access type is not of
4778 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
4779 to create_access_replacement.
4780 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
4781 Check lacc is non-NULL before attempting to re-create it on the RHS.
4783 2019-02-18 Martin Liska <mliska@suse.cz>
4786 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
4788 (symbol_table::free_edge): Recycle m_summary_id.
4789 * cgraph.h (get_summary_id): New.
4790 (symbol_table::release_symbol): Set m_summary_id to -1
4792 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
4793 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
4794 function_summary to fast_function_summary.
4795 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
4796 * ipa-pure-const.c (class funct_state_summary_t):
4797 Switch from function_summary to fast_function_summary.
4798 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
4799 (class ipa_ref_opt_summary_t): Switch from function_summary
4800 to fast_function_summary.
4801 * symbol-summary.h (class function_summary_base): New class
4802 that is created from base of former function_summary.
4803 (function_summary_base::unregister_hooks): New.
4804 (class function_summary): Inherit from function_summary_base.
4805 (class call_summary_base): New class
4806 that is created from base of former call_summary.
4807 (class call_summary): Inherit from call_summary_base.
4808 (struct is_same): New.
4809 (class fast_function_summary): New summary class.
4810 (class fast_call_summary): New summary class.
4811 * vec.h (vec_safe_grow_cleared): New function.
4813 2019-02-18 Martin Liska <mliska@suse.cz>
4815 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
4816 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
4817 * doc/tm.texi: Document new target hook.
4818 * doc/tm.texi.in: Likewise.
4819 * target.def: Add new target macro.
4820 * gcc.c (find_fortran_preinclude_file): Do not search multilib
4823 2019-02-17 Alan Modra <amodra@gmail.com>
4826 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
4827 output reg on add insn.
4828 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
4830 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
4833 * config/i386/sse.md (ssedoublemode): Remove V4HI.
4834 (PMULHRSW): Likewise.
4835 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
4837 (ssse3_pmulhrswv4hi3): New expander.
4839 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
4841 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
4842 MMX. Add isa attribute.
4844 2019-02-16 Jakub Jelinek <jakub@redhat.com>
4846 PR rtl-optimization/66152
4847 * builtins.h (c_readstr): Declare.
4848 * builtins.c (c_readstr): Remove forward declaration. Add
4849 null_terminated_p argument, if false, read all bytes from the
4850 string instead of stopping after '\0'.
4851 * expr.c (string_cst_read_str): New function.
4852 (store_expr): Use string_cst_read_str instead of
4853 builtin_strncpy_read_str. Try to store by pieces the whole
4854 exp_len first, and only if that fails, split it up into
4855 store by pieces followed by clear_storage. Formatting fix.
4857 * config/i386/i386.md (*movqi_internal): Remove static from
4858 buf variable. Use output_asm_insn (buf, operands); return "";
4859 instead of return buf;.
4860 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
4861 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
4862 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
4864 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
4866 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
4867 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
4868 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
4869 (CC1_SPEC): Likewise.
4870 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
4872 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
4874 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
4875 the base address on 64-bit strict-alignment platforms.
4877 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
4879 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
4881 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
4883 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
4885 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
4887 PR rtl-optimization/88308
4888 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
4889 on copied instruction.
4891 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
4893 * final.c (insn_current_reference_address): Replace test on JUMP_P
4894 with test on jump_to_label_p.
4895 * config/visium/visium-passes.def: New file.
4896 * config/visium/t-visium (PASSES_EXTRA): Define.
4897 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
4898 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
4899 (TRAMPOLINE_ALIGNMENT): Define.
4900 * config/visium/visium.c (visium_option_override): Do not register
4901 the machine-specific reorg pass here.
4902 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
4904 (output_branch): Adjust threshold for long branch instruction.
4905 * config/visium/visium.md (cpu): Move around.
4906 (length): Adjust for the GR6.
4908 2019-02-15 Richard Biener <rguenther@suse.de>
4909 Jakub Jelinek <jakub@redhat.com>
4911 PR tree-optimization/89278
4912 * tree-loop-distribution.c: Include tree-eh.h.
4913 (generate_memset_builtin, generate_memcpy_builtin): Call
4914 rewrite_to_non_trapping_overflow on builtin->size before passing it
4915 to force_gimple_operand_gsi.
4917 2019-02-15 Jakub Jelinek <jakub@redhat.com>
4920 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
4922 * opth-gen.awk: Likewise.
4924 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
4926 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
4927 Enable MMX, SSE and SSE2 by default.
4928 * config/i386/i386.c (ix86_option_override_internal): Do not
4929 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
4931 2019-02-14 Jakub Jelinek <jakub@redhat.com>
4933 PR rtl-optimization/89354
4934 * combine.c (make_extraction): Punt if extraction_mode is narrower
4937 2019-02-14 Maya Rashish <coypu@sdf.org>
4939 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
4940 * config/netbsd-d.c: New file.
4941 * config/t-netbsd: Add netbsd-d.o
4943 2018-02-14 Steve Ellcey <sellcey@marvell.com>
4945 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
4946 affects_type_identity to true for aarch64_vector_pcs.
4947 (aarch64_comp_type_attributes): New function.
4948 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
4950 2019-02-14 Tamar Christina <tamar.christina@arm.com>
4953 * config/arm/iterators.md (ANY64): Add V4HF.
4955 2019-02-14 Martin Liska <mliska@suse.cz>
4957 PR rtl-optimization/89242
4958 * dce.c (delete_unmarked_insns): Call free_dominance_info we
4959 process a transformation.
4961 2019-02-14 Jakub Jelinek <jakub@redhat.com>
4963 PR tree-optimization/89314
4964 * fold-const.c (fold_binary_loc): Cast strlen argument to
4965 const char * before dereferencing it. Formatting fixes.
4968 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
4970 2019-02-13 Ian Lance Taylor <iant@golang.org>
4972 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
4973 and set current index for other optimizations.
4975 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
4977 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
4978 nonimmediate_operand as operand 2 predicate.
4979 (vec_set<VF2_512_256:mode>_0): Ditto.
4980 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
4981 (*vec_concatv2si): Remove alternative 2.
4982 (*vec_concatv4si_0): Use vm constraint for alternative 0.
4983 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
4984 (vec_concatv2di): Split alternatives 4,5,6 to ...
4985 (*vec_concatv2di_0) ... new pattern.
4987 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
4990 * config/arm/arm.c (ldm_stm_operation_p) Set
4991 addr_reg_in_reglist correctly for first register.
4992 (load_multiple_sequence): Remove dead base check.
4993 (gen_ldm_seq): Correctly set write_back for Thumb-1.
4995 2019-02-13 Tamar Christina <tamar.christina@arm.com>
4998 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
4999 Expose as @aarch64_pred_mov.
5000 * config/aarch64/aarch64.c (aarch64_classify_address):
5001 Use expand_insn which legitimizes operands.
5003 2019-02-13 Martin Liska <mliska@suse.cz>
5005 * builtins.h (expand_builtin_with_bounds): Remove declaration.
5006 * calls.c (struct arg_data): Remove special_slot, pointer_arg
5007 and pointer_offset fields.
5008 (initialize_argument_information): Remove usage of dead
5010 * cgraph.h (struct cgraph_thunk_info): Remove
5011 add_pointer_bounds_args.
5012 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
5014 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
5016 * config/i386/i386.c (ix86_function_arg_advance): Remove
5018 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
5019 (def_builtin): Remove usage of dead
5021 (ix86_add_new_builtins): Likewise.
5022 * ipa-fnsummary.c (compute_fn_summary): Likewise.
5023 * ipa-icf.c (sem_function::equals_wpa): Likewise.
5024 (sem_function::init): Likewise.
5025 (sem_variable::merge): Likewise.
5026 * ipa-visibility.c (function_and_variable_visibility): Likewise.
5027 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
5028 * lto-cgraph.c (lto_output_node): Likewise.
5029 (lto_output_varpool_node): Likewise.
5030 (input_node): Likewise.
5031 (input_varpool_node): Likewise.
5032 * lto-streamer-out.c (lto_output): Likewise.
5033 * tree-inline.c (expand_call_inline): Remove usage of
5035 * tree-inline.h (struct copy_body_data): Likewise.
5036 * varpool.c (varpool_node::dump): Likewise.
5038 2019-02-13 Jakub Jelinek <jakub@redhat.com>
5041 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
5042 into pt->vars_contains_escaped_heap instead of setting
5043 pt->vars_contains_escaped_heap to it.
5046 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
5047 INTVAL (size), compare it to GET_MODE_MASK instead of
5048 1 << GET_MODE_BITSIZE.
5051 * config/i386/predicates.md (x86_64_immediate_operand): Allow
5052 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
5055 2019-02-13 Martin Liska <mliska@suse.cz>
5058 * cfgrtl.c (remove_barriers_from_footer): New function.
5059 (try_redirect_by_replacing_jump): Use it.
5060 (cfg_layout_redirect_edge_and_branch): Likewise.
5062 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
5064 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
5065 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
5066 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
5067 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
5068 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
5069 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
5071 * config/rs6000/rs6000.c (builtin_function_type)
5072 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
5073 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
5074 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
5075 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
5076 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
5078 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
5080 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
5081 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
5083 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
5086 * config/i386/i386.md (*movoi_internal_avx): Revert revision
5087 268678 and revision 268657.
5088 (*movti_internal): Likewise.
5090 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
5093 * config/s390/s390.c (s390_decompose_address): Update comment.
5094 (s390_check_qrst_address): Reject invalid address forms after
5097 2019-02-12 Martin Liska <mliska@suse.cz>
5100 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
5101 we need default values of funct_state for a function that
5104 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
5106 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
5107 the object to pick the size of stores on strict-alignment platforms.
5109 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
5110 (*movdi_insn_sp32): Likewise.
5111 (*movdi_insn_sp64): Likewise.
5113 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
5116 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
5117 types that needs constructiong.
5118 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
5120 2019-02-12 Richard Biener <rguenther@suse.de>
5122 PR tree-optimization/89253
5123 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
5126 2019-02-11 David Malcolm <dmalcolm@redhat.com>
5129 * input.c (selftest::test_line_offset_overflow): New selftest.
5130 (selftest::input_c_tests): Call it.
5132 2019-02-11 Martin Sebor <msebor@redhat.com>
5134 PR tree-optimization/88771
5135 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
5136 when -Wstringop-overflow is set.
5137 (builtin_memref::builtin_memref): Adjust excessive upper bound
5138 only when lower bound is not excessive.
5139 (maybe_diag_overlap): Detect and diagnose excessive bounds via
5140 -Wstringop-ovefflow.
5141 (maybe_diag_offset_bounds): Rename...
5142 (maybe_diag_access_bounds): ...to this.
5143 (check_bounds_or_overlap): Adjust for name change above.
5145 2019-02-11 Martin Sebor <msebor@redhat.com>
5148 * builtins.c (max_object_size): Move from here...
5149 * builtins.h (max_object_size): ...and here...
5150 * tree.c (max_object_size): ...to here...
5151 * tree.h (max_object_size): ...and here.
5153 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
5155 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
5156 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
5157 for correct semantics.
5159 2019-02-11 Alan Modra <amodra@gmail.com>
5161 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
5162 -mlongcall and -mpltseq.
5163 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
5164 (RS/6000 and PowerPC Options <-mpltseq>): Document.
5165 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
5166 * config/rs6000/sysv4.opt (mpltseq): New option.
5167 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
5168 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
5169 support is lacking. Don't allow -mpltseq with -mbss-plt.
5170 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
5171 -mpltseq given for ELFv1.
5172 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
5173 Only use UNSPEC_PLTSEQ for inline PLT calls.
5174 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
5175 use UNSPEC_PLTSEQ for inline PLT calls.
5176 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
5177 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
5178 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
5179 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
5180 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
5181 (pltseq_mtctr_<mode>): Likewise.
5183 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5185 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
5187 * configure: Regenerate.
5189 2019-02-11 Jakub Jelinek <jakub@redhat.com>
5192 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
5195 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
5197 * function.c (assign_parm_setup_block): Use the stored
5198 size, not the passed size, when allocating stack-space,
5199 also for a parameter with alignment larger than
5200 MAX_SUPPORTED_STACK_ALIGNMENT.
5202 2019-02-11 Martin Liska <mliska@suse.cz>
5205 * ipa-cp.c (build_toporder_info): Remove usage of a param.
5206 * ipa-inline.c (inline_small_functions): Likewise.
5207 * ipa-pure-const.c (propagate_pure_const): Likewise.
5208 (propagate_nothrow): Likewise.
5209 * ipa-reference.c (propagate): Likewise.
5210 * ipa-utils.c (struct searchc_env): Remove unused field.
5211 (searchc): Always search across AVAIL_INTERPOSABLE.
5212 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
5213 the only called IPA pure const can properly not propagate
5214 across interposable boundary.
5215 * ipa-utils.h (ipa_reduced_postorder): Remove param.
5217 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
5219 * config/nds32/nds32.md (call_internal, call_value_internal,
5220 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
5222 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
5224 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
5227 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
5229 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
5232 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
5234 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
5236 2019-02-10 Jakub Jelinek <jakub@redhat.com>
5238 PR tree-optimization/89268
5239 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
5240 if preds is non-NULL.
5242 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
5245 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
5248 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
5250 * config/nds32/nds32.md (trap): New pattern.
5252 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
5254 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
5257 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
5259 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
5262 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
5264 * ipa-visibility.c (localize_node): Also do not localize
5265 LDPR_PREVAILING_DEF_IRONLY_EXP.
5267 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
5270 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
5271 instead of type_with_linkage.
5273 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
5276 * params.def (uninlined-function-insns, uninlined-function-time,
5277 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
5278 bound so we don't get overflows.
5280 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
5282 * config/rs6000/rs6000-string.c (expand_compare_loop,
5283 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
5286 2019-02-09 Jakub Jelinek <jakub@redhat.com>
5289 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
5290 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
5291 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
5293 2019-02-09 Alan Modra <amodra@gmail.com>
5296 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
5297 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
5300 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
5303 * lra-constraints.c (process_alt_operands): Don't increase reject
5304 for memory when offset memory is required.
5306 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
5308 * config/s390/vector.md: Implement vector copysign.
5310 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
5312 * expr.c (expand_constructor): Correct indentations.
5314 2019-02-08 Richard Biener <rguenther@suse.de>
5316 PR tree-optimization/89247
5317 * tree-if-conv.c: Include tree-cfgcleanup.h.
5318 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
5319 (tree_if_conversion): Pass through predicate vector.
5320 (pass_if_conversion::execute): Do CFG cleanup and SSA update
5321 inline, see if any if-converted loops we refrece in
5322 LOOP_VECTORIZED calls vanished and fixup.
5323 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
5325 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
5327 * config/s390/constraints.md (jdd): New constraint.
5329 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
5332 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
5333 upper 16 vector registers without TARGET_AVX512VL.
5334 (*movti_internal): Likewise.
5336 2019-02-08 Jakub Jelinek <jakub@redhat.com>
5338 PR rtl-optimization/89234
5339 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
5340 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
5341 (copy_reg_eh_region_note_backward): Likewise.
5343 2019-02-08 Richard Biener <rguenther@suse.de>
5346 * tree-data-ref.c (initialize_matrix_A): Fail if constant
5348 (analyze_subscript_affine_affine): Handle failure from
5349 initialize_matrix_A.
5351 2019-02-08 Jakub Jelinek <jakub@redhat.com>
5353 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
5356 2019-02-07 David Malcolm <dmalcolm@redhat.com>
5358 PR tree-optimization/86637
5359 PR tree-optimization/89235
5360 * tree-vect-loop.c (optimize_mask_stores): Add an
5361 auto_purge_vect_location sentinel to ensure that vect_location is
5364 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
5365 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
5366 to ensure that vect_location is purged on exit.
5367 (pass_slp_vectorize::execute): Likewise, replacing the manual
5369 * tree-vectorizer.h (class auto_purge_vect_location): New class.
5371 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5373 * config/aarch64/iterators.md (max_opp): New code_attr.
5374 (USMAX): New code iterator.
5375 * config/aarch64/predicates.md (aarch64_smin): New predicate.
5376 (aarch64_smax): Likewise.
5377 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
5378 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
5381 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
5384 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
5385 for TARGET_AVX512VL.
5386 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
5388 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
5390 * config/s390/s390-builtin-types.def: Add new types.
5391 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
5392 (s390_vec_xlw4): Make the memory operand into a const pointer.
5393 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
5395 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
5396 a new vector type with the alignment of the scalar memory operand.
5398 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
5399 Jakub Jelinek <jakub@redhat.com>
5402 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
5403 arm_count_ldrdstrd_insns): New declarations.
5404 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
5406 (valid_operands_ldrd_strd): New function.
5407 (arm_count_ldrdstrd_insns): New function.
5408 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
5409 sets instead of single DImode set and define new insns to match this.
5411 2019-02-07 Tamar Christina <tamar.christina@arm.com>
5413 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
5414 Make it a C initializer.
5416 2019-02-07 Tamar Christina <tamar.christina@arm.com>
5419 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
5421 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5423 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
5424 Use neon_dot<q> for type.
5425 (neon_<sup>dot_lane<vsi2qi>): Likewise.
5427 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5429 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
5430 Use neon_dot<q> for type.
5431 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
5432 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
5434 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
5436 PR rtl-optimization/89225
5437 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
5440 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
5442 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
5443 after restoring registers saved to allocate the frame on Windows.
5445 2019-02-06 Richard Biener <rguenther@suse.de>
5447 PR tree-optimization/89182
5448 * graphite.h (cached_scalar_evolution_in_region): Declare.
5449 * graphite.c (struct seir_cache_key): New.
5450 (struct sese_scev_hash): Likewise.
5451 (seir_cache): New global.
5452 (cached_scalar_evolution_in_region): New function.
5453 (graphite_transform_loops): Allocate and release seir_cache.
5454 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
5455 cached_scalar_evolution_in_region.
5456 * graphite-scop-detection.c (scop_detection::can_represent_loop):
5458 (scop_detection::graphite_can_represent_expr: Use
5459 cached_scalar_evolution_in_region.
5460 (scop_detection::stmt_simple_for_scop_p): Likewise.
5461 (find_params_in_bb): Likewise.
5462 (gather_bbs::before_dom_children): Likewise.
5463 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
5464 (add_loop_constraints): Likewise.
5466 2019-02-06 Jakub Jelinek <jakub@redhat.com>
5469 * fold-const-call.c (fold_const_vec_convert): Pass true as last
5470 operand to new_unary_operation only if both element types are integral
5471 and it isn't a widening conversion. Return NULL_TREE if
5472 new_unary_operation failed.
5474 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
5477 * config/s390/s390.md: Remove load and test FP splitter.
5479 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
5482 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
5483 expand_compare_loop, expand_block_compare_gpr,
5484 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
5485 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
5486 #include "profile-count.h" and "predict.h" for types and functions
5487 needed to work with REG_BR_PROB notes.
5489 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
5492 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
5493 for the long branch case.
5495 2019-02-05 Jakub Jelinek <jakub@redhat.com>
5498 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
5499 can throw, non-call exceptions are enabled and we can't delete
5500 dead exceptions or alter cfg. Set must_clean if
5501 delete_insn_and_edges returns true, don't set it blindly for calls.
5502 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
5504 PR rtl-optimization/89195
5505 * combine.c (make_extraction): For MEMs, don't extract bytes outside
5506 of the original MEM.
5508 2019-02-05 Martin Liska <mliska@suse.cz>
5510 PR gcov-profile/89000
5511 * gcov.c (function_summary): Remove argument.
5512 (file_summary): New function.
5513 (print_usage): Replace tabs with spaces.
5514 (generate_results): Use new function file_summary.
5516 2019-02-05 Jakub Jelinek <jakub@redhat.com>
5519 * optabs.c (prepare_cmp_insn): Pass x and y to
5520 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
5522 2019-02-05 Richard Biener <rguenther@suse.de>
5525 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
5526 (struct bitmap_element): Drop chain_prev so we properly recurse on
5527 the prev member, supporting tree views.
5528 (struct bitmap_head): GTY skip the obstack member.
5530 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
5533 * doc/extend.texi (Vector Extensions): Add an example of using vector
5534 types together with x86 intrinsics.
5536 2019-02-04 Alan Modra <amodra@gmail.com>
5538 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
5539 str[] size to 160, and comment.
5541 2019-02-04 Alan Modra <amodra@gmail.com>
5543 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
5544 (rs6000_pltseq_template): Guard output of TLS markers with
5546 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
5547 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
5548 to use inline PLT sequences.
5549 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
5550 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
5551 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
5553 2019-02-04 Martin Liska <mliska@suse.cz>
5556 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
5557 out when ipa_fn_summaries does not contain entry for callee.
5559 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
5561 * config/sparc/sparc.h: Remove superfluous blank lines.
5562 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
5563 (got_register_rtx): ...this.
5564 (sparc_got): Adjust to above renaming.
5565 (sparc_tls_got): Likewise.
5566 (sparc_delegitimize_address): Likewise.
5567 (sparc_output_mi_thunk): Likewise.
5568 (sparc_init_pic_reg): Likewise.
5569 (save_local_or_in_reg_p): Fix test on the GOT register.
5570 (USE_HIDDEN_LINKONCE): Move around.
5571 (get_pc_thunk_name): Likewise.
5572 (gen_load_pcrel_sym): Likewise.
5573 (load_got_register): Likewise.
5575 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
5577 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
5578 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
5580 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
5582 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
5585 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
5587 * config.gcc (with_nds32_lib, glibc):
5588 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
5589 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
5590 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
5592 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
5595 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
5596 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
5597 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
5598 (*rcpsf2_sse): Ditto.
5599 (*rsqrtsf2_sse): Ditto.
5600 (sse4_1_round<mode<2): Ditto.
5602 2019-02-03 Richard Biener <rguenther@suse.de>
5605 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
5608 2019-02-02 Jakub Jelinek <jakub@redhat.com>
5611 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
5612 Punt with warning on aggregate return or argument types. Ignore
5613 type/mode checking for uniform arguments.
5615 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
5617 * combine.c (try_combine): Do not print "Can't combine" messages unless
5618 printing failed combination attempts.
5620 2019-02-01 Martin Jambor <mjambor@suse.cz>
5623 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
5624 segment and global segment variables before making them static.
5626 2019-02-01 Martin Jambor <mjambor@suse.cz>
5628 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
5629 missed optimization dump with dump_enabled_p.
5631 2019-02-01 Richard Biener <rguenther@suse.de>
5634 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
5635 the instantiate cache.
5636 (instantiate_scev_binary): Elide second operand procesing
5637 if equal to the first.
5638 * tree-chrec.c (chrec_contains_symbols): Add visited set.
5639 (chrec_contains_undetermined): Likewise.
5640 (tree_contains_chrecs): Likewise.
5642 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
5644 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
5646 2019-02-01 Jakub Jelinek <jakub@redhat.com>
5648 PR tree-optimization/89143
5649 * wide-int-range.h (wide_int_range_absu): Declare.
5650 * wide-int-range.cc (wide_int_range_absu): New function.
5651 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
5653 PR tree-optimization/88107
5654 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
5655 instead of assertion that eh_region_outermost is non-NULL, if it
5656 is NULL, set *ALL to true and return NULL.
5657 (move_sese_region_to_fn): Adjust caller, if all is set, call
5658 duplicate_eh_regions with NULL region.
5660 2019-02-01 Richard Biener <rguenth@suse.de>
5662 PR rtl-optimization/88593
5663 * mode-switching.c (optimize_mode_switching): Free dominators before
5664 calling cleanup_cfg.
5666 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
5668 PR tree-optimization/88932
5669 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
5671 2019-01-31 Jakub Jelinek <jakub@redhat.com>
5674 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
5675 bogus clang warning.
5677 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
5680 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
5681 alternative to avoid partial SSE register stall for TARGET_AVX.
5682 (truncdfsf2): Ditto.
5683 (sse4_1_round<mode>2): Ditto.
5685 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
5687 PR tree-optimization/89008
5688 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
5689 process anything of the form X * 0.
5691 2019-01-31 Richard Biener <rguenther@suse.de>
5693 PR tree-optimization/89135
5694 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
5695 with abnormal preds.
5697 2019-01-31 Jakub Jelinek <jakub@redhat.com>
5700 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
5701 always_inline callees into no_sanitize_address callers.
5703 2019-01-31 Richard Biener <rguenther@suse.de>
5705 PR rtl-optimization/89115
5706 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
5708 2019-01-30 Martin Sebor <msebor@redhat.com>
5711 * doc/extend.texi (cast to a union): Correct and expand.
5713 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
5715 PR rtl-optimization/87246
5716 * lra-constraints.c (simplify_operand_subreg): Reload memory
5717 in subreg if the address became invalid.
5719 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
5722 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
5723 Disable for little-endian.
5725 2019-01-30 Richard Biener <rguenther@suse.de>
5727 PR rtl-optimization/89115
5728 * opts.c (default_options_optimization): Reduce
5729 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
5730 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
5733 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
5735 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
5736 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
5737 type of vector element when vec_extract is implemented by direct
5740 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
5742 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
5744 2019-01-30 Richard Biener <rguenther@suse.de>
5746 PR tree-optimization/89111
5747 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
5748 canonicalization to appropriately sized access types.
5750 2019-01-30 Jakub Jelinek <jakub@redhat.com>
5753 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
5754 for arguments to functions that are TU-local and shouldn't be
5755 referenced by assembly.
5757 2019-01-30 Ulrich Drepper <drepper@redhat.com>
5759 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
5762 2019-01-29 Martin Sebor <msebor@redhat.com>
5765 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
5767 2019-01-29 Jakub Jelinek <jakub@redhat.com>
5771 * omp-simd-clone.c (simd_clone_clauses_extract)
5772 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
5773 OMP_CLAUSE_ALIGNED_ALIGNMENT.
5775 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
5777 * config.gcc: Force .init_array for ARC.
5779 2019-01-29 Richard Biener <rguenther@suse.de>
5782 * dwarf2out.c (collect_skeleton_dies): New helper.
5783 (copy_decls_for_unworthy_types): Call it.
5784 (build_abbrev_table): Assert we do not try to replace
5785 DW_AT_signature refs with local refs.
5787 2019-01-28 Jakub Jelinek <jakub@redhat.com>
5790 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
5791 for lastprivate/linear IV, push gimplify context around gimplify_assign
5792 and, if it needed any temporaries, pop it into a gimple bind around the
5795 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
5797 * common.opt (-Wattribute-alias): Remove "no-" from name.
5798 Make -Wattribute-alias command line option and
5799 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
5801 2019-01-28 Jakub Jelinek <jakub@redhat.com>
5804 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
5805 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
5807 (bmi2): Add missing @opindex.
5808 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
5809 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
5810 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
5811 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
5812 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
5813 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
5814 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
5815 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
5816 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
5817 xsavec, xsaveopt and xsaves options.
5819 2019-01-28 Richard Biener <rguenther@suse.de>
5822 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
5825 2019-01-28 Richard Biener <rguenther@suse.de>
5827 PR tree-optimization/88739
5828 * tree-cfg.c (verify_types_in_gimple_reference): Verify
5829 BIT_FIELD_REFs only are applied to mode-precision operands
5830 when they are integral.
5831 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
5832 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
5833 BIT_FIELD_REFs of non-mode-precision integral operands.
5835 2019-01-27 Jakub Jelinek <jakub@redhat.com>
5838 * config/i386/sse.md
5839 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
5840 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
5841 first constants in pairs are multiples of 2. Formatting fixes.
5842 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
5843 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
5844 first constants in each quadruple are multiples of 4. Formatting fixes.
5846 2019-01-26 Martin Jambor <mjambor@suse.cz>
5849 * tree-inline.c: Include tree-cfgcleanup.h.
5850 (delete_unreachable_blocks_update_callgraph): Move...
5851 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
5852 ...here, make externally visible, make second argument bool, adjust
5854 * tree-cfgcleanup.c: Include cgraph.h.
5855 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
5857 * ipa-prop.c: Include tree-cfgcleanup.h.
5858 (ipcp_transform_function): Call
5859 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
5861 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
5863 PR rtl-optimization/88846
5864 * ira.c (process_set_for_memref_referenced_p): New.
5865 (memref_referenced_p): Add new param. Use
5866 process_set_for_memref_referenced_p. Add new switch cases.
5867 (memref_used_between_p): Pass new arg to memref_referenced_p.
5869 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
5872 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
5873 argument ABI_BREAK. Set to true if the calculated alignment has
5874 changed in gcc-9. Check bit-fields for their base type alignment.
5875 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
5876 (aarch64_function_arg_boundary): Likewise.
5877 (aarch64_gimplify_va_arg_expr): Likewise.
5879 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
5882 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
5883 instead of accessing TREE_INT_CST_ELT directly.
5885 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
5887 * doc/sourcebuild.texi (Environment attributes): Add fenv and
5888 fenv_exceptions description.
5890 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
5892 PR rtl-optimization/87763
5893 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
5894 Allow SUBREG when matching CC_NZmode compare.
5896 2019-01-25 Richard Biener <rguenther@suse.de>
5898 PR tree-optimization/89049
5899 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
5900 Look at the pattern stmt to determine if the stmt is vectorized.
5902 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
5904 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
5905 (pred_mov<mode>): Handle all-register forms using both a new
5906 alternative and a split.
5908 2019-01-25 Richard Biener <rguenther@suse.de>
5910 PR tree-optimization/86865
5911 * graphite-scop-detection.c (scop_detection::can_represent_loop):
5912 Reject non-do-while loops.
5914 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
5916 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
5917 * config/rs6000/constraints.md (Q constraint): Use REG_P.
5918 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
5919 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
5920 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
5921 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
5922 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
5923 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
5924 vlogical_operand, gpc_reg_operand, int_reg_operand,
5925 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
5926 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
5927 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
5928 (save_world_operation, restore_world_operation, lmw_operation,
5929 stmw_operation): Use MEM_P and REG_P.
5930 (tie_operand): Use MEM_P.
5931 (vrsave_operation, crsave_operation): Use REG_P.
5932 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
5933 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
5934 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
5935 (call_operand): Use HARD_REGISTER_P.
5936 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
5938 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
5939 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
5940 quad_aligned_load_p, replace_swapped_aligned_store,
5941 recombine_lvx_pattern, replace_swapped_aligned_load,
5942 recombine_stvx_pattern): Use MEM_P.
5943 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
5944 Use MEM_P and SYMBOL_REF_P.
5945 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
5946 (insn_is_swappable_p): Use REG_P and MEM_P.
5947 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
5948 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
5950 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
5952 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
5954 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
5955 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
5956 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
5957 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
5959 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
5960 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
5961 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
5962 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
5963 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
5964 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
5965 rs6000_split_logical_di): Use CONST_INT_P.
5966 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
5967 REG_P and SYMBOL_REF_P.
5968 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
5969 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
5970 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
5971 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
5972 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
5973 (small_data_operand, print_operand_address): Use CONST_INT_P and
5975 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
5976 (rs6000_init_hard_regno_mode_ok, direct_move_p):
5977 Use HARD_REGISTER_NUM_P.
5978 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
5979 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
5980 SUBREG_P and SYMBOL_REF_P.
5981 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
5982 and HARD_REGISTER_NUM_P.
5983 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
5985 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
5986 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
5988 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
5989 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
5990 find_addr_reg): Use REG_P.
5991 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
5992 (rs6000_emit_le_vsx_move): Use SUBREG_P.
5993 (offsettable_ok_by_alignment, constant_pool_expr_p,
5994 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
5995 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
5996 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
5997 rs6000_assemble_integer, create_TOC_reference,
5998 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
5999 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
6000 (rs6000_split_vec_extract_var): Use reg_or_subregno.
6001 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
6002 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
6003 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
6004 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
6005 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
6006 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
6007 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
6008 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
6009 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
6010 and cbranch<mode>4): Use CONST_INT_P.
6011 (multiple define_splits): Use REG_P and SUBREG_P.
6012 (define_expands call, call_value): Use MEM_P.
6013 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
6014 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
6015 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
6016 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
6017 and HARD_REGISTER_NUM_P.
6018 (multiple define_splits): Use HARD_REGISTER_NUM_P.
6020 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
6022 PR rtl-optimization/88948
6023 * rtl.h (prepare_copy_insn): New prototype.
6024 * gcse.c (prepare_copy_insn): New function, split out from
6025 process_insert_insn.
6026 (process_insert_insn): Use prepare_copy_insn.
6027 * store-motion.c (replace_store_insn): Use prepare_copy_insn
6028 instead of gen_move_insn.
6030 2019-01-24 Jakub Jelinek <jakub@redhat.com>
6033 * config/i386/i386.c (ix86_pic_register_p): Return true for
6036 PR tree-optimization/88964
6037 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
6038 punt if HONOR_SNANS (chrec).
6041 * tree-nested.c (convert_nonlocal_reference_stmt,
6042 convert_local_reference_stmt, convert_tramp_reference_stmt,
6043 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
6044 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
6047 PR tree-optimization/89027
6048 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
6049 for "omp simd array" variables.
6051 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
6054 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
6055 force the alignment of m_val.
6057 2019-01-24 Richard Biener <rguenther@suse.de>
6060 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
6061 When in "legacy" debug mode make sure to reset self-origins.
6063 2019-01-24 Martin Liska <mliska@suse.cz>
6065 PR gcov-profile/88994
6066 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
6067 result will be always smaller or equal to the original.
6068 * gcov.c (mangle_name): Fix else branch where we should
6069 also copy to PTR and shift the pointer.
6071 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
6073 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
6074 * vr-values.c (find_case_label_ranges): Fix a comment typo.
6076 2019-01-23 Bin Cheng <bin.cheng@arm.com>
6077 Steve Ellcey <sellcey@marvell.com>
6080 * recog.c (address_operand): Return false on wrong mode for address.
6081 (constrain_operands): Check for mode with 'p' constraint.
6083 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
6086 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
6087 Disparage MMX alternative.
6088 (sse2_cvtpd2pi): Ditto.
6089 (sse2_cvttpd2pi): Ditto.
6091 2019-01-23 David Malcolm <dmalcolm@redhat.com>
6094 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
6095 use-after-free of the result of
6096 aarch64_get_extension_string_for_isa_flags.
6098 2019-01-23 Jakub Jelinek <jakub@redhat.com>
6101 * doc/extend.texi: Document break and continue behavior in
6102 statement expressions.
6104 2019-01-23 Richard Biener <rguenther@suse.de>
6106 PR tree-optimization/89008
6107 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
6108 not leave another stray operand.
6110 2019-01-23 Jakub Jelinek <jakub@redhat.com>
6112 * BASE-VER: Bump to 9.0.1.
6114 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
6116 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
6117 thunk that returns by reference, use the type of the return object
6118 of the thunk instead of that of the alias to build the dereference.
6120 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
6122 * config/arc/atomic.md: Add operand to DMB instruction.
6124 2019-01-23 Jakub Jelinek <jakub@redhat.com>
6126 PR tree-optimization/88964
6127 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
6128 build_zero_cst instead of build_int_cst. Return false for loop
6129 invariants which honor signed zeros.
6131 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
6133 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
6135 2019-01-22 Jakub Jelinek <jakub@redhat.com>
6138 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
6139 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
6140 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
6143 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
6144 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
6147 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
6148 Disable for little endian.
6150 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
6153 * config/arm/arm.c (arm_needs_double_word_align): Check
6154 DECL_BIT_FIELD_TYPE.
6156 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
6157 H.J. Lu <hongjiu.lu@intel.com>
6160 * config/i386/i386-builtin.def: Add mask2 to all builtin
6161 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
6163 * config/i386/i386.c (BDESC): Add mask2 to the definition.
6164 (BDESC_FIRST): Likewise.
6165 (define_builtin): Add an argument for mask2. Updated to handle
6166 both ix86_isa_flags and ix86_isa_flags2.
6167 (define_builtin_const): Likewise.
6168 (define_builtin_pure): Likewise.
6169 (define_builtin2): Deleted.
6170 (define_builtin_const2): Likewise.
6171 (builtin_description): Add a member, mask2.
6172 (bdesc_*): Add mask2 to builtin initializations.
6173 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
6174 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
6176 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
6178 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
6181 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
6184 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
6187 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
6188 alignment is dominated by a bitfield with 64-bit aligned base type.
6189 (arm_function_arg): Emit a warning if the alignment has changed since
6190 earlier GCC releases.
6191 (arm_function_arg_boundary): Likewise.
6192 (arm_setup_incoming_varargs): Likewise.
6194 2019-01-22 Richard Biener <rguenther@suse.de>
6196 PR tree-optimization/88862
6197 * graphite-scop-detection.c
6198 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
6200 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
6202 * doc/extend.tex (AMD GCN Function Attributes): New section.
6203 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
6204 * doc/invoke.texi (AMD GCN Options): New section.
6205 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
6207 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
6209 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
6210 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
6212 2019-01-22 Jakub Jelinek <jakub@redhat.com>
6214 PR tree-optimization/88044
6215 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
6216 is false in the first iteration, but !every_iteration, return false
6217 instead of true with niter->niter zero.
6219 PR rtl-optimization/88904
6220 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
6221 any nonequal registers before processing BB_END (b).
6224 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
6226 (expand_binop_directly, expand_doubleword_clz,
6227 expand_doubleword_popcount, expand_ctz, expand_ffs,
6228 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
6230 PR rtl-optimization/49429
6232 PR rtl-optimization/86334
6234 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
6235 addressable from here...
6236 (emit_block_op_via_libcall): ... to here.
6238 2019-01-22 Richard Biener <rguenther@suse.de>
6240 * tree-vect-loop.c (vect_analyze_loop_operations): Use
6241 auto_vec for cost vector to fix memleak.
6242 (vectorize_fold_left_reduction): Properly gather SLP defs.
6243 (vectorizable_comparison): Do not swap operands to properly
6246 2019-01-22 Alan Modra <amodra@gmail.com>
6249 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
6250 stays a reg. Allow a const_int.
6251 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
6252 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
6253 (IS_NOMARK_TLSGETADDR): Define.
6254 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
6255 (rs6000_output_tlsargs): New function.
6256 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
6257 __tls_get_addr call takes an arg.
6258 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
6259 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
6261 (call_value_nonlocal_sysv): ..or here, delete split.
6262 (tls_gdld_nomark): Delete.
6263 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
6264 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
6265 (call_value_nonlocal_sysv): Likewise.
6266 (call_value_nonlocal_sysv_secure): Likewise.
6267 (call_value_nonlocal_aix): Likewise.
6268 (call_value_indirect_aix): Likewise.
6269 (call_value_indirect_elfv2): Likewise.
6270 (call_value_local32, call_value_local64): Disable for no-mark tls.
6271 (call_value_local_aix): Likewise.
6273 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
6276 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
6277 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
6279 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
6281 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
6282 string contents as hash_map keys.
6284 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
6287 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
6288 for rvalue context. Handle rvalues correctly. Use min_align_of_type
6289 instead of TYPE_ALIGN.
6290 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
6291 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
6292 pointer from TYPE_STUB_DECL.
6294 2019-01-21 Richard Biener <rguenther@suse.de>
6296 PR tree-optimization/88934
6297 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
6298 at the possibly non-constant operand.
6299 (vect_get_constant_vectors): Adjust.
6301 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
6304 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
6305 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
6306 instead of _X86INTRIN_H_INCLUDED.
6307 * onfig/i386/clwbintrin.h: Likewise.
6308 * config/i386/pkuintrin.h: Likewise.
6309 * config/i386/prfchwintrin.h: Likewise.
6310 * config/i386/rdseedintrin.h: Likewise.
6311 * config/i386/wbnoinvdintrin.h: Likewise.
6312 * config/i386/xsavecintrin.h: Likewise.
6313 * config/i386/xsavesintrin.h: Likewise.
6314 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
6315 * config/i386/xsaveintrin.h: Likewise.
6316 * config/i386/xsaveoptintrin.h: Likewise.
6317 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
6318 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
6319 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
6320 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
6321 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
6322 * config/i386/immintrin.h: Here.
6324 2019-01-20 Martin Jambor <mjambor@suse.cz>
6327 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
6328 with aa_walk_budget.
6329 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
6330 aa_walk_budget_p parameter.
6331 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
6332 walk. Updated all callers.
6333 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
6334 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
6336 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
6337 parameter info. Extract info from fbi. Pass fbi to recursive calls
6338 and to unmodified_parm.
6339 (phi_result_unknown_predicate): New parameter fbi, removed parameter
6340 info, updated call to will_be_nonconstant_expr_predicate.
6341 (param_change_prob): New parameter fbi, limit AA walking.
6342 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
6343 calls to various above functions.
6344 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
6345 parameter. Use it to limit AA walking.
6346 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
6348 (detect_type_change): New parameter fbi, pass it on to
6349 detect_type_change_from_memory_writes.
6350 (detect_type_change_ssa): Likewise.
6351 (aa_overwalked): Removed.
6352 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
6353 accordingly, adjust to the neew AA limiting scheme.
6354 (parm_ref_data_preserved_p): Likewise.
6355 (ipa_compute_jump_functions_for_edge): Adjust call to
6357 (ipa_analyze_call_uses): Likewise.
6358 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
6359 (ipa_analyze_node): Initialize aa_walk_budget.
6360 (ipcp_transform_function): Likewise.
6361 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
6362 to get_dynamic_type.
6364 2019-01-19 Jakub Jelinek <jakub@redhat.com>
6366 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
6367 outside of #if CHECKING_P code.
6369 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
6371 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
6372 New function, split out from...
6373 (loop_versioning::analyze_stride): ...here.
6374 (loop_versioning::find_per_loop_multiplication): Use gassign.
6375 (loop_versioning::analyze_term_using_scevs): Return a success code.
6376 (loop_versioning::analyze_arbitrary_term): New function.
6377 (loop_versioning::analyze_address_fragment): Use
6378 analyze_arbitrary_term if all else fails.
6380 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
6383 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
6386 2019-01-18 Richard Biener <rguenther@suse.de>
6388 PR tree-optimization/88903
6389 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
6390 scalar stmts a SLP shift amount is composed of when detecting
6393 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
6396 * config/arm/arm-cpus.in (mp): New feature.
6398 (fgroup ARMv7ve): Add mp and sec features.
6399 (arch armv7-a): Add options to allow mp and sec extensions.
6400 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
6401 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
6402 extenstions to the base architecture.
6403 (cpu cortex-a8): Add sec extension to the base architecture.
6404 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
6405 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
6406 variants down to the base v7-a varaint.
6407 * config/arm/t-multilib (v7_a_arch_variants): New variable.
6408 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
6409 of permitted extensions for -march=armv7-a and for
6410 -mcpu=generic-armv7-a.
6412 2019-01-18 Martin Liska <mliska@suse.cz>
6414 * params.def: Fix comment.
6415 * tree-profile.c (gimple_init_gcov_profiler): Bump function
6417 (gimple_gen_ic_func_profiler): Likewise.
6419 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6421 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
6422 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
6423 and put in error checks for stack protector guard options.
6424 (aarch64_stack_protect_guard): New.
6425 (TARGET_STACK_PROTECT_GUARD): Define.
6426 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
6427 (reg_stack_protect_address<mode>): New.
6428 (stack_protect_set): Adjust for SSP_GLOBAL.
6429 (stack_protect_test): Likewise.
6430 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
6431 (-mstack-protector-guard): Likewise.
6432 (-mstack-protector-guard-offset): Likewise.
6434 2019-01-18 Jakub Jelinek <jakub@redhat.com>
6436 PR tree-optimization/86214
6437 * tree-inline.h (struct copy_body_data): Add
6438 add_clobbers_to_eh_landing_pads member.
6439 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
6440 (copy_edges_for_bb): Call it if EH edge destination is <
6441 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
6442 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
6443 if flag_stack_reuse != SR_NONE and clear it afterwards.
6445 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
6448 * doc/install.texi (with-multilib-list): Document for aarch64.
6450 2019-01-18 Jakub Jelinek <jakub@redhat.com>
6453 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
6454 (("..."))) with ("...").
6456 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
6458 * doc/extend.texi (Built-in Functions for Memory Model Aware
6459 Atomic Operations): Document atomic fetch and nand.
6461 2019-01-18 Martin Liska <mliska@suse.cz>
6462 Richard Biener <rguenther@suse.de>
6465 * cgraph.h (create_version_clone_with_body): Add new argument
6467 * cgraphclones.c (cgraph_node::create_version_clone): Add
6468 DECL_ATTRIBUTES to a newly created decl. And call
6469 valid_attribute_p so that proper cl_target_optimization_node
6470 is set for the newly created declaration.
6471 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
6473 (expand_target_clones): Do not call valid_attribute_p, it must
6475 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
6478 2019-01-17 Jakub Jelinek <jakub@redhat.com>
6481 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
6482 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
6483 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
6485 2019-01-17 Martin Sebor <msebor@redhat.com>
6488 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
6489 Handle anti-ranges the same as no range at all.
6491 2018-01-17 Steve Ellcey <sellcey@cavium.com>
6493 * config/aarch64/aarch64.c (cgraph.h): New include.
6494 (intl.h): New include.
6495 (supported_simd_type): New function.
6496 (currently_supported_simd_type): Ditto.
6497 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
6498 (aarch64_simd_clone_adjust): Ditto.
6499 (aarch64_simd_clone_usable): Ditto.
6500 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
6501 (TARGET_SIMD_CLONE_ADJUST): Ditto.
6502 (TARGET_SIMD_CLONE_USABLE): Ditto.
6503 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
6504 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
6507 2019-01-17 Martin Sebor <msebor@redhat.com>
6509 PR tree-optimization/88800
6510 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
6511 NO_WARNING bit here. Avoid folding out-of-bounds calls.
6512 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
6513 redundant argument. Add new argument and issue diagnostics under
6514 its control. Detect out-of-bounds access even with warnings
6516 (check_bounds_or_overlap): Change return type. Add argument.
6517 (wrestrict_dom_walker::check_call): Adjust.
6518 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
6519 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
6520 check_bounds_or_overlap's return value.
6521 (handle_builtin_stxncpy): Same.
6522 (handle_builtin_strcat): Same.
6524 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
6525 Kwok Cheung Yeung <kcy@codesourcery.com>
6526 Julian Brown <julian@codesourcery.com>
6527 Tom de Vries <tom@codesourcery.com>
6529 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
6531 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
6533 * doc/sourcebuild.texi: Document dg-require-effective-target
6534 llvm_binutils and offload_gcn.
6536 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
6537 Kwok Cheung Yeung <kcy@codesourcery.com>
6538 Julian Brown <julian@codesourcery.com>
6539 Tom de Vries <tom@codesourcery.com>
6541 * doc/sourcebuild.texi: Document dg-required-effective-target
6544 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
6545 Kwok Cheung Yeung <kcy@codesourcery.com>
6546 Julian Brown <julian@codesourcery.com>
6547 Tom de Vries <tom@codesourcery.com>
6548 Jan Hubicka <hubicka@ucw.cz>
6549 Martin Jambor <mjambor@suse.cz>
6551 * config.gcc: Add amdgcn*-*-amdhsa configuration.
6552 * configure.ac: Check for dlopen.
6553 * configure: Regenerate.
6555 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
6556 Kwok Cheung Yeung <kcy@codesourcery.com>
6557 Julian Brown <julian@codesourcery.com>
6558 Tom de Vries <tom@codesourcery.com>
6559 Jan Hubicka <hubicka@ucw.cz>
6560 Martin Jambor <mjambor@suse.cz>
6562 * common/config/gcn/gcn-common.c: New file.
6563 * config/gcn/driver-gcn.c: New file.
6564 * config/gcn/gcn-builtins.def: New file.
6565 * config/gcn/gcn-hsa.h: New file.
6566 * config/gcn/gcn-modes.def: New file.
6567 * config/gcn/gcn-opts.h: New file.
6568 * config/gcn/gcn-passes.def: New file.
6569 * config/gcn/gcn-protos.h: New file.
6570 * config/gcn/gcn-run.c: New file.
6571 * config/gcn/gcn-tree.c: New file.
6572 * config/gcn/gcn.c: New file.
6573 * config/gcn/gcn.h: New file.
6574 * config/gcn/gcn.opt: New file.
6575 * config/gcn/t-gcn-hsa: New file.
6577 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
6578 Kwok Cheung Yeung <kcy@codesourcery.com>
6579 Julian Brown <julian@codesourcery.com>
6580 Tom de Vries <tom@codesourcery.com>
6581 Jan Hubicka <hubicka@ucw.cz>
6582 Martin Jambor <mjambor@suse.cz>
6584 * config/gcn/constraints.md: New file.
6585 * config/gcn/gcn-valu.md: New file.
6586 * config/gcn/gcn.md: New file.
6587 * config/gcn/predicates.md: New file.
6589 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
6591 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
6592 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
6593 (stmt_uses_0_or_null_in_undefined_way): Likewise.
6594 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
6596 2019-01-17 Tamar Christina <tamar.christina@arm.com>
6599 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
6600 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
6601 it and document registers.
6603 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6605 * config/aarch64/aarch64.c (ares_tunings): Define.
6606 * config/aarch64/aarch64-cores.def (ares): Use the above.
6608 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
6612 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
6614 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
6615 (_mm512_fixupimm_round_pd): Update parameters and builtin.
6616 (_mm512_maskz_fixupimm_round_pd): Ditto.
6617 (_mm512_fixupimm_round_ps): Ditto.
6618 (_mm512_maskz_fixupimm_round_ps): Ditto.
6619 (_mm_fixupimm_round_sd): Ditto.
6620 (_mm_maskz_fixupimm_round_sd): Ditto.
6621 (_mm_fixupimm_round_ss): Ditto.
6622 (_mm_maskz_fixupimm_round_ss): Ditto.
6623 (_mm512_fixupimm_pd): Ditto.
6624 (_mm512_maskz_fixupimm_pd): Ditto.
6625 (_mm512_fixupimm_ps): Ditto.
6626 (_mm512_maskz_fixupimm_ps): Ditto.
6627 (_mm_fixupimm_sd): Ditto.
6628 (_mm_maskz_fixupimm_sd): Ditto.
6629 (_mm_fixupimm_ss): Ditto.
6630 (_mm_maskz_fixupimm_ss): Ditto.
6631 (_mm512_mask_fixupimm_round_pd): Update builtin.
6632 (_mm512_mask_fixupimm_round_ps): Ditto.
6633 (_mm_mask_fixupimm_round_sd): Ditto.
6634 (_mm_mask_fixupimm_round_ss): Ditto.
6635 (_mm512_mask_fixupimm_pd): Ditto.
6636 (_mm512_mask_fixupimm_ps): Ditto.
6637 (_mm_mask_fixupimm_sd): Ditto.
6638 (_mm_mask_fixupimm_ss): Ditto.
6639 * config/i386/avx512vlintrin.h:
6640 (_mm256_fixupimm_pd): Update parameters and builtin.
6641 (_mm256_maskz_fixupimm_pd): Ditto.
6642 (_mm256_fixupimm_ps): Ditto.
6643 (_mm256_maskz_fixupimm_ps): Ditto.
6644 (_mm_fixupimm_pd): Ditto.
6645 (_mm_maskz_fixupimm_pd): Ditto.
6646 (_mm_fixupimm_ps): Ditto.
6647 (_mm_maskz_fixupimm_ps): Ditto.
6648 (_mm256_mask_fixupimm_pd): Update builtin.
6649 (_mm256_mask_fixupimm_ps): Ditto.
6650 (_mm_mask_fixupimm_pd): Ditto.
6651 (_mm_mask_fixupimm_ps): Ditto.
6652 * config/i386/i386-builtin-types.def: Add new types and remove useless ones.
6653 * config/i386/i386-builtin.def: Update builtin definitions.
6654 * config/i386/i386.c: Handle new builtin types and remove useless ones.
6655 * config/i386/sse.md: Update VFIXUPIMM* patterns.
6656 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
6657 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
6658 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
6659 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
6660 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
6661 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
6662 * config/i386/subst.md:
6663 (round_saeonly_sd_mask_operand4): Add new subst_attr.
6664 (round_saeonly_sd_mask_op4): Ditto.
6665 (round_saeonly_expand_operand5): Ditto.
6666 (round_saeonly_expand): Update.
6668 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
6672 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
6674 * config/i386/sse.md: Combine VFIXUPIMM* patterns
6675 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
6676 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
6677 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
6678 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
6679 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
6680 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
6682 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
6686 2018-12-15 Jakub Jelinek <jakub@redhat.com>
6689 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
6690 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
6691 instead of UNSPEC_FIXUPIMM.
6693 2019-01-17 Richard Biener <rguenther@suse.de>
6696 * dwarf2out.c (want_pubnames): Never generate pubnames sections
6697 and friends for the LTO part of debug info.
6699 2019-01-17 Jakub Jelinek <jakub@redhat.com>
6701 PR tree-optimization/86214
6702 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
6705 PR rtl-optimization/88870
6706 * dce.c (deletable_insn_p): Never delete const/pure calls that can
6707 throw if we can't alter the cfg or delete dead exceptions.
6708 (mark_insn): Don't call find_call_stack_args for such calls.
6710 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
6712 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
6713 prototypes for vec_st.
6714 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
6715 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
6716 mainly on signed/unsigned long long and double.
6718 2019-01-16 David Malcolm <dmalcolm@redhat.com>
6721 * combine.c (delete_noop_moves): Convert to "bool" return,
6722 returning true if any edges are eliminated.
6723 (combine_instructions): Also return true if delete_noop_moves
6726 2019-01-16 Tamar Christina <tamar.christina@arm.com>
6728 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
6729 correct max nunits for endian swap.
6730 (aarch64_expand_fcmla_builtin): Correct subreg code.
6731 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
6732 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
6735 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
6737 * config/alpha/alpha.c (alpha_gimplify_va_arg):
6738 Handle split indirect COMPLEX_TYPE arguments.
6740 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
6743 * config/aarch64/aarch64-modes.def: Add comment about how the carry
6744 bit is set by add and compare.
6745 (CC_ADC): New CC_MODE.
6746 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
6747 to cache the code and mode of X. Adjust the shape of a CC_Cmode
6748 comparison. Add detection for CC_ADCmode.
6749 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
6751 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
6752 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
6753 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
6754 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
6755 to eliminate the need for zero-extending the operands.
6756 (add<mode>3_compareC_imm): Delete. Merge into ...
6757 (add<mode>3_compareC): ... this. Restructure the comparison to
6758 eliminate the need for zero-extending the operands.
6759 (add<mode>3_carryin): Use LTU for the overflow detection.
6760 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
6761 Reexpress comparison for overflow.
6762 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
6763 (add<mode>3_carryinC): Likewise.
6764 (add<mode>3_carryinV): Use LTU for carry between partials.
6765 * config/aarch64/predicates.md (aarch64_carry_operation): Update
6766 handling of CC_Cmode and add CC_ADCmode.
6767 (aarch64_borrow_operation): Likewise.
6769 2019-01-16 Tamar Christina <tamar.christina@arm.com>
6771 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): Remove patternmode.
6772 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
6773 * config/arm/neon.md (neon_vcmla_lane<rot><mode>, neon_vcmla_laneq<rot><mode>,
6774 neon_vcmlaq_lane<rot><mode>): Remove endianness conversion.
6776 2019-01-16 Martin Liska <mliska@suse.cz>
6778 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
6780 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
6782 * gcc.c (add_sysrooted_hdrs_prefix): New function.
6783 (path_prefix_reset): Move up in the source file.
6784 (find_fortran_preinclude_file): Make complex search for the
6785 fortran header files.
6787 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
6789 * godump.c (go_output_typedef): When outputting a typedef, refer
6790 to the underlying type by its name and not its structure.
6792 2019-01-15 David Malcolm <dmalcolm@redhat.com>
6795 * tree.c (build_function_type): Assert that arg_types is not
6798 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
6801 * doc/extend.texi: Document that listing the stack pointer in the
6802 clobber list of an asm is a deprecated feature.
6803 * common.opt (Wdeprecated): Moved from c-family/c.opt.
6804 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
6805 warning instead of an error for clobbers of the stack pointer.
6806 Add a note explaining why.
6808 2019-01-15 Richard Biener <rguenther@suse.de>
6811 * dwarf2out.c (gen_member_die): Do not generate inheritance
6814 2019-01-15 Richard Biener <rguenther@suse.de>
6816 PR tree-optimization/88855
6817 * tree-if-conv.c (combine_blocks): Collect
6818 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
6820 2019-01-15 Tom de Vries <tdevries@suse.de>
6823 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
6824 lhs == NULL_TREE for gang-level reduction.
6826 2019-01-15 Richard Biener <rguenther@suse.de>
6827 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6830 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
6831 return true if SSA_NAME is already marked in visited bitmap.
6832 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
6834 2019-01-15 Jakub Jelinek <jakub@redhat.com>
6836 PR tree-optimization/88775
6837 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
6838 equal == 0 equality pointer comparisons some more if compared in
6839 integral types and either one points to an automatic var and the
6840 other to a global, or we can prove at least one points to the middle
6841 or both point to start or both point to end.
6843 2019-01-14 Andi Kleen <ak@linux.intel.com>
6845 * Makefile.in: Lower autofdo sampling rate by 10x.
6846 * Makefile.tpl: Dito.
6848 2019-01-14 Tom Honermann <tom@honermann.net>
6850 * defaults.h: Define CHAR8_TYPE.
6852 2019-01-14 Martin Sebor <msebor@redhat.com>
6855 * doc/extend.texi (Darwin Format Checks): Clarify.
6857 2019-01-14 Richard Biener <rguenther@suse.de>
6859 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
6860 whether we are in (simplify ...) or (match ...) context.
6862 2019-01-14 Jakub Jelinek <jakub@redhat.com>
6864 PR rtl-optimization/88796
6865 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
6866 * cfgexpand.c (stack_protect_prologue): Initialize
6867 crtl->stack_protect_guard_decl.
6868 * function.c (stack_protect_epilogue): Use it instead of calling
6869 targetm.stack_protect_guard again.
6870 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
6871 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
6872 crtl->stack_protect_guard_decl.
6873 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
6874 on the returned MEM_EXPR.
6876 2019-01-12 Tom de Vries <tdevries@suse.de>
6878 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
6879 vector length using -fopenacc-dim.
6881 2019-01-12 Tom de Vries <tdevries@suse.de>
6883 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
6884 lengths into account.
6886 2019-01-12 Svante Signell <svante.signell@gmail.com>
6888 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
6889 (TARGET_CAN_SPLIT_STACK): Define.
6890 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
6892 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
6894 * params.def (inline-unit-growth): Set to 40.
6896 2019-01-12 Jakub Jelinek <jakub@redhat.com>
6898 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
6900 2019-01-12 Tom de Vries <tdevries@suse.de>
6902 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
6903 region calling vector-partitionable routine, set default_vector_length
6906 2019-01-12 Tom de Vries <tdevries@suse.de>
6908 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
6909 variable default_vector_length.
6911 2019-01-12 Tom de Vries <tdevries@suse.de>
6914 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
6915 from oacc_default_dims, as oacc_validate_dims would do it, and apply
6918 2019-01-12 Tom de Vries <tdevries@suse.de>
6920 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
6921 (nvptx_goacc_validate_dims): Add used parameter.
6922 * doc/tm.texi: Regenerate.
6923 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
6924 argument to call to targetm.goacc.validate_dims.
6925 (default_goacc_validate_dims): Add used
6927 * target.def (validate_dims): Add used parameter in DEFHOOK.
6928 * targhooks.h (default_goacc_validate_dims): Add used parameter.
6930 2019-01-11 Jakub Jelinek <jakub@redhat.com>
6934 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
6936 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
6937 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
6938 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
6939 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
6941 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
6943 PR rtl-optimization/87305
6945 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
6946 for little endian pseudos used as paradoxical subreg.
6948 2019-01-11 Jakub Jelinek <jakub@redhat.com>
6950 PR tree-optimization/88693
6951 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
6952 for STRING_CSTs that don't contain any NUL characters in the first
6953 TREE_STRING_LENGTH bytes.
6955 2019-01-11 Alan Modra <amodra@gmail.com>
6959 * genattrtab.c (min_fn): Don't translate values.
6960 (min_attr_value): Return INT_MAX when the value can't be calculated.
6961 Return minimum among any values that can be calculated.
6962 (max_attr_value): Adjust.
6964 2019-01-11 Jakub Jelinek <jakub@redhat.com>
6966 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
6968 2019-01-11 Steve Ellcey <sellcey@marvell.com>
6970 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
6971 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
6972 (aarch64_return_call_with_max_clobbers): New function.
6973 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
6974 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
6976 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
6977 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
6978 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
6979 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
6980 * cselib.c (cselib_process_insn): Add argument to
6981 targetm.hard_regno_call_part_clobbered call.
6982 * ira-conflicts.c (ira_build_conflicts): Ditto.
6983 * ira-costs.c (ira_tune_allocno_costs): Ditto.
6984 * lra-constraints.c (inherit_reload_reg): Ditto.
6985 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
6986 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
6987 argument. Call targetm.return_call_with_max_clobbers.
6988 Add argument to targetm.hard_regno_call_part_clobbered call.
6989 (calls_have_same_clobbers_p): New function.
6990 (process_bb_lives): Add call_insn and last_call_insn variables.
6991 Pass call_insn to check_pseudos_live_through_calls.
6992 Modify if stmt to check targetm.return_call_with_max_clobbers.
6993 Update setting of flush variable.
6994 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
6996 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
6997 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
6998 targetm.hard_regno_call_part_clobbered call.
6999 * reginfo.c (choose_hard_reg_mode): Ditto.
7000 * regrename.c (check_new_reg_p): Ditto.
7001 * reload.c (find_equiv_reg): Ditto.
7002 * reload1.c (emit_reload_insns): Ditto.
7003 * sched-deps.c (deps_analyze_insn): Ditto.
7004 * sel-sched.c (init_regs_for_mode): Ditto.
7005 (mark_unavailable_hard_regs): Ditto.
7006 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
7007 * target.def (hard_regno_call_part_clobbered): Add insn argument.
7008 (return_call_with_max_clobbers): New target function.
7009 * doc/tm.texi: Regenerate.
7010 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
7011 * hooks.c (hook_bool_uint_mode_false): Change to
7012 hook_bool_insn_uint_mode_false.
7013 * hooks.h (hook_bool_uint_mode_false): Ditto.
7015 2019-01-11 Steve Ellcey <sellcey@marvell.com>
7017 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
7018 (aarch64_remove_extra_call_preserved_regs): New function.
7019 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
7020 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
7021 * doc/tm.texi: Regenerate.
7022 * final.c (get_call_reg_set_usage): Call new hook.
7023 * target.def (remove_extra_call_preserved_regs): New hook.
7024 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
7025 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
7027 2019-01-11 Jakub Jelinek <jakub@redhat.com>
7030 * passes.c (finish_optimization_passes): Call print_combine_total_stats
7031 inside of pass_combine_1 dump rather than pass_profile_1.
7033 2019-01-11 Tom de Vries <tdevries@suse.de>
7035 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
7036 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
7037 (PTX_NUM_PER_WORKER_BARRIERS): Define.
7038 (nvptx_apply_dim_limits): Prevent vector_length 64 and
7041 2019-01-11 Tom de Vries <tdevries@suse.de>
7043 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
7045 2019-01-11 Jan Beulich <jbeulich@suse.com>
7047 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
7048 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
7049 sse2_cvtsi2sd): Add {l}.
7050 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
7053 2019-01-10 Jakub Jelinek <jakub@redhat.com>
7056 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
7058 (*float<floatunssuffix>v2div2sf2): New define_insn.
7059 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
7060 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
7061 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
7062 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
7063 match_operands with "const0_operand" "C".
7065 2019-01-10 Tamar Christina <tamar.christina@arm.com>
7067 * config/aarch64/aarch64-builtins.c
7068 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
7069 (aarch64_init_simd_builtins): ...Here
7071 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
7073 PR rtl-optimization/87305
7075 (setup_live_pseudos_and_spill_after_risky_transforms): Check
7076 allocation for big endian pseudos used as paradoxical subregs and
7077 spill them if it is wrong.
7078 * lra-constraints.c (lra_constraints): Add a comment.
7080 2019-01-10 Richard Biener <rguenther@suse.de>
7082 PR tree-optimization/88792
7083 * tree-ssa-pre.c (get_representative_for): Do not return a
7086 2019-01-10 Jakub Jelinek <jakub@redhat.com>
7090 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
7091 (assign_parm_setup_block): Do the argument slot realignment here
7094 2019-01-10 Stefan Agner <stefan@agner.ch>
7097 * config/arm/arm.c (arm_option_override_internal): Force
7098 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
7100 2019-01-10 Jakub Jelinek <jakub@redhat.com>
7103 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
7106 2019-01-10 Tamar Christina <tamar.christina@arm.com>
7108 * config/arm/arm-builtins.c
7109 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
7110 (MAC_LANE_PAIR_QUALIFIERS): New.
7111 (arm_expand_builtin_args): Use it.
7112 (arm_expand_builtin_1): Likewise.
7113 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
7114 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
7115 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
7116 * config/arm/arm_neon.h:
7117 (vcadd_rot90_f16): New.
7118 (vcaddq_rot90_f16): New.
7119 (vcadd_rot270_f16): New.
7120 (vcaddq_rot270_f16): New.
7123 (vcmla_lane_f16): New.
7124 (vcmla_laneq_f16): New.
7125 (vcmlaq_lane_f16): New.
7126 (vcmlaq_laneq_f16): New.
7127 (vcmla_rot90_f16): New.
7128 (vcmlaq_rot90_f16): New.
7129 (vcmla_rot90_lane_f16): New.
7130 (vcmla_rot90_laneq_f16): New.
7131 (vcmlaq_rot90_lane_f16): New.
7132 (vcmlaq_rot90_laneq_f16): New.
7133 (vcmla_rot180_f16): New.
7134 (vcmlaq_rot180_f16): New.
7135 (vcmla_rot180_lane_f16): New.
7136 (vcmla_rot180_laneq_f16): New.
7137 (vcmlaq_rot180_lane_f16): New.
7138 (vcmlaq_rot180_laneq_f16): New.
7139 (vcmla_rot270_f16): New.
7140 (vcmlaq_rot270_f16): New.
7141 (vcmla_rot270_lane_f16): New.
7142 (vcmla_rot270_laneq_f16): New.
7143 (vcmlaq_rot270_lane_f16): New.
7144 (vcmlaq_rot270_laneq_f16): New.
7145 (vcadd_rot90_f32): New.
7146 (vcaddq_rot90_f32): New.
7147 (vcadd_rot270_f32): New.
7148 (vcaddq_rot270_f32): New.
7151 (vcmla_lane_f32): New.
7152 (vcmla_laneq_f32): New.
7153 (vcmlaq_lane_f32): New.
7154 (vcmlaq_laneq_f32): New.
7155 (vcmla_rot90_f32): New.
7156 (vcmlaq_rot90_f32): New.
7157 (vcmla_rot90_lane_f32): New.
7158 (vcmla_rot90_laneq_f32): New.
7159 (vcmlaq_rot90_lane_f32): New.
7160 (vcmlaq_rot90_laneq_f32): New.
7161 (vcmla_rot180_f32): New.
7162 (vcmlaq_rot180_f32): New.
7163 (vcmla_rot180_lane_f32): New.
7164 (vcmla_rot180_laneq_f32): New.
7165 (vcmlaq_rot180_lane_f32): New.
7166 (vcmlaq_rot180_laneq_f32): New.
7167 (vcmla_rot270_f32): New.
7168 (vcmlaq_rot270_f32): New.
7169 (vcmla_rot270_lane_f32): New.
7170 (vcmla_rot270_laneq_f32): New.
7171 (vcmlaq_rot270_lane_f32): New.
7172 (vcmlaq_rot270_laneq_f32): New.
7173 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
7174 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
7175 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
7176 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
7177 vcmlaq_lane270): New.
7178 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
7179 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
7180 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
7181 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
7182 (arm_option_reconfigure_globals): Use them.
7183 * config/arm/iterators.md (VDF, VQ_HSF): New.
7184 (VCADD, VCMLA): New.
7185 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
7186 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
7188 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
7189 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
7191 2019-01-10 Tamar Christina <tamar.christina@arm.com>
7193 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
7194 Add qualifier_lane_pair_index.
7195 (emit-rtl.h): Include.
7196 (TYPES_QUADOP_LANE_PAIR): New.
7197 (aarch64_simd_expand_args): Use it.
7198 (aarch64_simd_expand_builtin): Likewise.
7199 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
7201 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
7202 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
7203 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
7204 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
7205 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
7206 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
7207 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
7208 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
7209 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
7210 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
7211 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
7212 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
7213 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
7214 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
7215 Add __ARM_FEATURE_COMPLEX.
7216 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
7217 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
7218 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
7219 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
7220 fcmlaq_lane270): New.
7221 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
7222 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
7223 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
7224 * config/aarch64/arm_neon.h:
7225 (vcadd_rot90_f16): New.
7226 (vcaddq_rot90_f16): New.
7227 (vcadd_rot270_f16): New.
7228 (vcaddq_rot270_f16): New.
7231 (vcmla_lane_f16): New.
7232 (vcmla_laneq_f16): New.
7233 (vcmlaq_lane_f16): New.
7234 (vcmlaq_rot90_lane_f16): New.
7235 (vcmla_rot90_laneq_f16): New.
7236 (vcmla_rot90_lane_f16): New.
7237 (vcmlaq_rot90_f16): New.
7238 (vcmla_rot90_f16): New.
7239 (vcmlaq_laneq_f16): New.
7240 (vcmla_rot180_laneq_f16): New.
7241 (vcmla_rot180_lane_f16): New.
7242 (vcmlaq_rot180_f16): New.
7243 (vcmla_rot180_f16): New.
7244 (vcmlaq_rot90_laneq_f16): New.
7245 (vcmlaq_rot270_laneq_f16): New.
7246 (vcmlaq_rot270_lane_f16): New.
7247 (vcmla_rot270_laneq_f16): New.
7248 (vcmlaq_rot270_f16): New.
7249 (vcmla_rot270_f16): New.
7250 (vcmlaq_rot180_laneq_f16): New.
7251 (vcmlaq_rot180_lane_f16): New.
7252 (vcmla_rot270_lane_f16): New.
7253 (vcadd_rot90_f32): New.
7254 (vcaddq_rot90_f32): New.
7255 (vcaddq_rot90_f64): New.
7256 (vcadd_rot270_f32): New.
7257 (vcaddq_rot270_f32): New.
7258 (vcaddq_rot270_f64): New.
7262 (vcmla_lane_f32): New.
7263 (vcmla_laneq_f32): New.
7264 (vcmlaq_lane_f32): New.
7265 (vcmlaq_laneq_f32): New.
7266 (vcmla_rot90_f32): New.
7267 (vcmlaq_rot90_f32): New.
7268 (vcmlaq_rot90_f64): New.
7269 (vcmla_rot90_lane_f32): New.
7270 (vcmla_rot90_laneq_f32): New.
7271 (vcmlaq_rot90_lane_f32): New.
7272 (vcmlaq_rot90_laneq_f32): New.
7273 (vcmla_rot180_f32): New.
7274 (vcmlaq_rot180_f32): New.
7275 (vcmlaq_rot180_f64): New.
7276 (vcmla_rot180_lane_f32): New.
7277 (vcmla_rot180_laneq_f32): New.
7278 (vcmlaq_rot180_lane_f32): New.
7279 (vcmlaq_rot180_laneq_f32): New.
7280 (vcmla_rot270_f32): New.
7281 (vcmlaq_rot270_f32): New.
7282 (vcmlaq_rot270_f64): New.
7283 (vcmla_rot270_lane_f32): New.
7284 (vcmla_rot270_laneq_f32): New.
7285 (vcmlaq_rot270_lane_f32): New.
7286 (vcmlaq_rot270_laneq_f32): New.
7287 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
7288 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
7289 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
7290 (FCADD, FCMLA): New.
7292 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
7294 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
7298 * config/pa/pa.c: Change "can not" to "cannot".
7299 * gimple-ssa-evrp-analyze.c: Likewise.
7300 * ipa-icf.c: Likewise.
7301 * ipa-polymorphic-call.c: Likewise.
7302 * ipa-pure-const.c: Likewise.
7303 * lra-constraints.c: Likewise.
7304 * lra-remat.c: Likewise.
7305 * reload1.c: Likewise.
7306 * reorg.c: Likewise.
7307 * tree-ssa-uninit.c: Likewise.
7309 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
7313 * Makefile.in: Mechanically replace "can not" with "cannot".
7314 * alias.c: Likewise.
7315 * builtins.c: Likewise.
7316 * calls.c: Likewise.
7317 * cgraph.c: Likewise.
7318 * cgraph.h: Likewise.
7319 * cgraphclones.c: Likewise.
7320 * cgraphunit.c: Likewise.
7321 * combine-stack-adj.c: Likewise.
7322 * combine.c: Likewise.
7323 * common/config/i386/i386-common.c: Likewise.
7324 * config/aarch64/aarch64.c: Likewise.
7325 * config/alpha/sync.md: Likewise.
7326 * config/arc/arc.c: Likewise.
7327 * config/arc/predicates.md: Likewise.
7328 * config/arm/arm-c.c: Likewise.
7329 * config/arm/arm.c: Likewise.
7330 * config/arm/arm.h: Likewise.
7331 * config/arm/arm.md: Likewise.
7332 * config/arm/cortex-r4f.md: Likewise.
7333 * config/csky/csky.c: Likewise.
7334 * config/csky/csky.h: Likewise.
7335 * config/darwin-f.c: Likewise.
7336 * config/epiphany/epiphany.md: Likewise.
7337 * config/i386/i386.c: Likewise.
7338 * config/i386/sol2.h: Likewise.
7339 * config/m68k/m68k.c: Likewise.
7340 * config/mcore/mcore.h: Likewise.
7341 * config/microblaze/microblaze.md: Likewise.
7342 * config/mips/20kc.md: Likewise.
7343 * config/mips/sb1.md: Likewise.
7344 * config/nds32/nds32.c: Likewise.
7345 * config/nds32/predicates.md: Likewise.
7346 * config/pa/pa.c: Likewise.
7347 * config/rs6000/e300c2c3.md: Likewise.
7348 * config/rs6000/rs6000.c: Likewise.
7349 * config/s390/s390.h: Likewise.
7350 * config/sh/sh.c: Likewise.
7351 * config/sh/sh.md: Likewise.
7352 * config/spu/vmx2spu.h: Likewise.
7353 * cprop.c: Likewise.
7354 * dbxout.c: Likewise.
7355 * df-scan.c: Likewise.
7356 * doc/cfg.texi: Likewise.
7357 * doc/extend.texi: Likewise.
7358 * doc/fragments.texi: Likewise.
7359 * doc/gty.texi: Likewise.
7360 * doc/invoke.texi: Likewise.
7361 * doc/lto.texi: Likewise.
7362 * doc/md.texi: Likewise.
7363 * doc/objc.texi: Likewise.
7364 * doc/rtl.texi: Likewise.
7365 * doc/tm.texi: Likewise.
7367 * emit-rtl.c: Likewise.
7368 * emit-rtl.h: Likewise.
7369 * except.c: Likewise.
7370 * expmed.c: Likewise.
7372 * fold-const.c: Likewise.
7373 * genautomata.c: Likewise.
7374 * gimple-fold.c: Likewise.
7375 * hard-reg-set.h: Likewise.
7376 * ifcvt.c: Likewise.
7377 * ipa-comdats.c: Likewise.
7378 * ipa-cp.c: Likewise.
7379 * ipa-devirt.c: Likewise.
7380 * ipa-fnsummary.c: Likewise.
7381 * ipa-icf.c: Likewise.
7382 * ipa-inline-transform.c: Likewise.
7383 * ipa-inline.c: Likewise.
7384 * ipa-polymorphic-call.c: Likewise.
7385 * ipa-profile.c: Likewise.
7386 * ipa-prop.c: Likewise.
7387 * ipa-pure-const.c: Likewise.
7388 * ipa-reference.c: Likewise.
7389 * ipa-split.c: Likewise.
7390 * ipa-visibility.c: Likewise.
7392 * ira-build.c: Likewise.
7393 * ira-color.c: Likewise.
7394 * ira-conflicts.c: Likewise.
7395 * ira-costs.c: Likewise.
7396 * ira-int.h: Likewise.
7397 * ira-lives.c: Likewise.
7400 * loop-invariant.c: Likewise.
7401 * loop-unroll.c: Likewise.
7402 * lower-subreg.c: Likewise.
7403 * lra-assigns.c: Likewise.
7404 * lra-constraints.c: Likewise.
7405 * lra-eliminations.c: Likewise.
7406 * lra-lives.c: Likewise.
7407 * lra-remat.c: Likewise.
7408 * lra-spills.c: Likewise.
7410 * lto-cgraph.c: Likewise.
7411 * lto-streamer-out.c: Likewise.
7412 * postreload-gcse.c: Likewise.
7413 * predict.c: Likewise.
7414 * profile-count.h: Likewise.
7415 * profile.c: Likewise.
7416 * recog.c: Likewise.
7418 * reload.c: Likewise.
7419 * reload1.c: Likewise.
7420 * reorg.c: Likewise.
7421 * resource.c: Likewise.
7422 * rtl.def: Likewise.
7424 * rtlanal.c: Likewise.
7425 * sched-deps.c: Likewise.
7426 * sched-ebb.c: Likewise.
7427 * sched-rgn.c: Likewise.
7428 * sel-sched-ir.c: Likewise.
7429 * sel-sched.c: Likewise.
7430 * shrink-wrap.c: Likewise.
7431 * simplify-rtx.c: Likewise.
7432 * symtab.c: Likewise.
7433 * target.def: Likewise.
7434 * toplev.c: Likewise.
7435 * tree-call-cdce.c: Likewise.
7436 * tree-cfg.c: Likewise.
7437 * tree-complex.c: Likewise.
7438 * tree-core.h: Likewise.
7439 * tree-eh.c: Likewise.
7440 * tree-inline.c: Likewise.
7441 * tree-loop-distribution.c: Likewise.
7442 * tree-nrv.c: Likewise.
7443 * tree-profile.c: Likewise.
7444 * tree-sra.c: Likewise.
7445 * tree-ssa-alias.c: Likewise.
7446 * tree-ssa-dce.c: Likewise.
7447 * tree-ssa-dom.c: Likewise.
7448 * tree-ssa-forwprop.c: Likewise.
7449 * tree-ssa-loop-im.c: Likewise.
7450 * tree-ssa-loop-ivcanon.c: Likewise.
7451 * tree-ssa-loop-ivopts.c: Likewise.
7452 * tree-ssa-loop-niter.c: Likewise.
7453 * tree-ssa-phionlycprop.c: Likewise.
7454 * tree-ssa-phiopt.c: Likewise.
7455 * tree-ssa-propagate.c: Likewise.
7456 * tree-ssa-threadedge.c: Likewise.
7457 * tree-ssa-threadupdate.c: Likewise.
7458 * tree-ssa-uninit.c: Likewise.
7459 * tree-ssanames.c: Likewise.
7460 * tree-streamer-out.c: Likewise.
7463 * vr-values.c: Likewise.
7465 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
7467 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
7468 (ix86_split_xorsign): Ditto.
7469 * config/i386/i386.c (ix86_expand_xorsign): New function.
7470 (ix86_split_xorsign): Ditto.
7471 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
7472 (xorsign<mode>3): New expander.
7473 (xorsign<mode>3_1): New insn_and_split pattern.
7474 * config/i386/sse.md (xorsign<mode>3): New expander.
7476 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
7478 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
7479 (*tablejump_sp64): Likewise.
7480 (*tablejump<P:mode>): ...this.
7481 (*call_address_sp32): Merge into...
7482 (*call_address_sp64): Likewise.
7483 (*call_address<P:mode>): ...this.
7484 (*call_symbolic_sp32): Merge into...
7485 (*call_symbolic_sp64): Likewise.
7486 (*call_symbolic<P:mode>): ...this.
7487 (call_value): Remove constraint and add predicate.
7488 (*call_value_address_sp32): Merge into...
7489 (*call_value_address_sp64): Likewise.
7490 (*call_value_address<P:mode>): ...this.
7491 (*call_value_symbolic_sp32): Merge into...
7492 (*call_value_symbolic_sp64): Likewise.
7493 (*call_value_symbolic<P:mode>): ...this.
7494 (*sibcall_symbolic_sp32): Merge into...
7495 (*sibcall_symbolic_sp64): Likewise.
7496 (*sibcall_symbolic<P:mode>): ...this.
7497 (sibcall_value): Remove constraint and add predicate.
7498 (*sibcall_value_symbolic_sp32): Merge into...
7499 (*sibcall_value_symbolic_sp64): Likewise.
7500 (*sibcall_value_symbolic<P:mode>): ...this.
7501 (window_save): Minor tweak.
7502 (*branch_sp32): Merge into...
7503 (*branch_sp64): Likewise.
7504 (*branch<P:mode>): ...this.
7506 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
7507 James Clarke <jrtc27@jrtc27.com>
7510 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
7511 consistently in TLS address generation and adjust code to the renaming
7512 of patterns. Mark calls to __tls_get_addr as const.
7513 * config/sparc/sparc.md (tgd_hi22): Turn into...
7514 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
7515 (tgd_lo10): Turn into...
7516 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
7517 (tgd_add32): Merge into...
7518 (tgd_add64): Likewise.
7519 (tgd_add<P:mode>): ...this and use Pmode throughout.
7520 (tldm_hi22): Turn into...
7521 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
7522 (tldm_lo10): Turn into...
7523 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
7524 (tldm_add32): Merge into...
7525 (tldm_add64): Likewise.
7526 (tldm_add<P:mode>): ...this and use Pmode throughout.
7527 (tldm_call32): Merge into...
7528 (tldm_call64): Likewise.
7529 (tldm_call<P:mode>): ...this and use Pmode throughout.
7530 (tldo_hix22): Turn into...
7531 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
7532 (tldo_lox10): Turn into...
7533 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
7534 (tldo_add32): Merge into...
7535 (tldo_add64): Likewise.
7536 (tldo_add<P:mode>): ...this and use Pmode throughout.
7537 (tie_hi22): Turn into...
7538 (tie_hi22<P:mode>): ...this and use Pmode throughout.
7539 (tie_lo10): Turn into...
7540 (tie_lo10<P:mode>): ...this and use Pmode throughout.
7541 (tie_ld64): Use DImode throughout.
7542 (tie_add32): Merge into...
7543 (tie_add64): Likewise.
7544 (tie_add<P:mode>): ...this and use Pmode throughout.
7545 (tle_hix22_sp32): Merge into...
7546 (tle_hix22_sp64): Likewise.
7547 (tle_hix22<P:mode>): ...this and use Pmode throughout.
7548 (tle_lox22_sp32): Merge into...
7549 (tle_lox22_sp64): Likewise.
7550 (tle_lox22<P:mode>): ...this and use Pmode throughout.
7551 (*tldo_ldub_sp32): Merge into...
7552 (*tldo_ldub_sp64): Likewise.
7553 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
7554 (*tldo_ldub1_sp32): Merge into...
7555 (*tldo_ldub1_sp64): Likewise.
7556 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
7557 (*tldo_ldub2_sp32): Merge into...
7558 (*tldo_ldub2_sp64): Likewise.
7559 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
7560 (*tldo_ldsb1_sp32): Merge into...
7561 (*tldo_ldsb1_sp64): Likewise.
7562 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
7563 (*tldo_ldsb2_sp32): Merge into...
7564 (*tldo_ldsb2_sp64): Likewise.
7565 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
7566 (*tldo_ldub3_sp64): Use DImode throughout.
7567 (*tldo_ldsb3_sp64): Likewise.
7568 (*tldo_lduh_sp32): Merge into...
7569 (*tldo_lduh_sp64): Likewise.
7570 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
7571 (*tldo_lduh1_sp32): Merge into...
7572 (*tldo_lduh1_sp64): Likewise.
7573 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
7574 (*tldo_ldsh1_sp32): Merge into...
7575 (*tldo_ldsh1_sp64): Likewise.
7576 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
7577 (*tldo_lduh2_sp64): Use DImode throughout.
7578 (*tldo_ldsh2_sp64): Likewise.
7579 (*tldo_lduw_sp32): Merge into...
7580 (*tldo_lduw_sp64): Likewise.
7581 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
7582 (*tldo_lduw1_sp64): Use DImode throughout.
7583 (*tldo_ldsw1_sp64): Likewise.
7584 (*tldo_ldx_sp64): Likewise.
7585 (*tldo_stb_sp32): Merge into...
7586 (*tldo_stb_sp64): Likewise.
7587 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
7588 (*tldo_sth_sp32): Merge into...
7589 (*tldo_sth_sp64): Likewise.
7590 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
7591 (*tldo_stw_sp32): Merge into...
7592 (*tldo_stw_sp64): Likewise.
7593 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
7594 (*tldo_stx_sp64): Use DImode throughout.
7596 2018-01-09 Sudakshina Das <sudi.das@arm.com>
7598 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
7599 check configure option to set BTI and Return Address Signing.
7600 * configure.ac: Add --enable-standard-branch-protection and
7601 --disable-standard-branch-protection.
7602 * configure: Regenerated.
7603 * doc/install.texi: Document the same.
7605 2018-01-09 Sudakshina Das <sudi.das@arm.com>
7606 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7608 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
7609 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
7610 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
7612 * config/aarch64/aarch64-bti-insert.c: New file.
7613 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
7615 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
7617 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
7618 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
7619 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
7620 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
7622 2018-01-09 Sudakshina Das <sudi.das@arm.com>
7624 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
7625 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
7626 Disable bti for -mbranch-protection=none.
7627 (aarch64_handle_standard_branch_protection): Enable bti for
7628 -mbranch-protection=standard.
7629 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
7630 -mbranch-protection.
7631 (aarch64_bti_enabled): Check if bti is enabled.
7632 * config/aarch64/aarch64.opt: Declare target variable.
7633 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
7635 2018-01-09 Sudakshina Das <sudi.das@arm.com>
7637 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
7638 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
7639 (aarch64_expand_epilogue): Likewise.
7640 (aarch64_output_mi_thunk): Likewise
7641 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
7642 TAILCALL_ADDR_REGS to x16 and x17.
7643 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
7645 2018-01-09 Sudakshina Das <sudi.das@arm.com>
7647 * config/aarch64/aarch64-option-extensions.def: Define
7648 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
7649 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
7650 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
7651 (AARCH64_FL_PREDRES): New.
7652 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
7653 AARCH64_FL_PREDRES by default.
7654 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
7656 2018-01-09 Sudakshina Das <sudi.das@arm.com>
7658 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
7660 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
7661 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
7662 * doc/invoke.texi: Document ARMv8.5-A.
7664 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
7666 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
7667 (xorsign<mode>3): Likewise.
7669 2019-01-09 Jelinek <jakub@redhat.com>
7672 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
7673 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
7675 PR rtl-optimization/88331
7676 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
7677 not currently_expanding_to_rtl.
7679 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
7681 * doc/invoke.texi (-Os): Remove trailing spaces.
7682 (-finline-functions): Remove reference to -O2.
7684 2019-01-08 Jakub Jelinek <jakub@redhat.com>
7686 PR rtl-optimization/79593
7687 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
7689 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
7690 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
7692 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
7695 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
7699 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
7700 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
7702 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
7705 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
7706 ix86_avx_u128_mode_entry.
7708 2019-01-08 Martin Liska <mliska@suse.cz>
7710 PR tree-optimization/88753
7711 * tree-switch-conversion.c (switch_conversion::build_one_array):
7712 Come up with local variable constructor. Convert first to
7713 type of constructor values.
7715 2019-01-08 Richard Biener <rguenther@suse.de>
7717 PR tree-optimization/86554
7718 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
7719 rpo_avail): Move earlier.
7720 (visit_nary_op): When value-numbering to expressions
7721 with different overflow behavior make sure there's an
7722 available expression on the path.
7724 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
7726 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
7727 aarch64_parse_branch_protection,
7728 struct aarch64_branch_protect_type,
7729 aarch64_handle_no_branch_protection,
7730 aarch64_handle_standard_branch_protection,
7731 aarch64_validate_mbranch_protection,
7732 aarch64_handle_pac_ret_protection,
7733 aarch64_handle_attr_branch_protection,
7734 accepted_branch_protection_string,
7735 aarch64_pac_ret_subtypes,
7736 aarch64_branch_protect_types,
7737 aarch64_handle_pac_ret_leaf): Define.
7738 (aarch64_override_options_after_change_1, aarch64_override_options):
7739 Add check for accepted_branch_protection_string.
7740 (aarch64_option_save): Save accepted_branch_protection_string.
7741 (aarch64_option_restore): Save accepted_branch_protection_string.
7742 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
7743 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
7744 msign-return-address.
7745 * doc/invoke.texi: Add mbranch-protection.
7747 2019-01-08 Alan Modra <amodra@gmail.com>
7750 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
7751 Delete "unknownp" parameter. Adjust callers. Handle
7752 CONST_INT, PLUS, MINUS, and MULT.
7753 (attr_value_aligned): Renamed from or_attr_value.
7754 (min_attr_value): Return INT_MIN for unhandled rtl case..
7755 (min_fn): ..and translate to INT_MAX here.
7756 (write_length_unit_log): Modify to cope without "unknown".
7757 (write_attr_value): Handle IF_THEN_ELSE.
7759 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
7761 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
7762 optimization for masked stores.
7764 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
7767 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
7768 output vector directly to duplicate_and_interleave instead of
7769 going through a temporary. Postpone insertion of ctor_seq to
7770 the end of the loop.
7772 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
7775 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
7776 unsigned_p. Handle signed and unsigned overflow correction as
7778 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
7780 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
7782 (add<mode>3_compareV_imm): Make this callable for expanding.
7783 (subv<GPI:mode>4): Use register_operand for operand 1. Use
7784 aarch64_plus_operand for operand 2.
7785 (subv<GPI:mode>_insn): New insn pattern.
7786 (subv<GPI:mode>_imm): Likewise.
7787 (negv<GPI:mode>3): New expand pattern.
7788 (negv<GPI:mode>_insn): New insn pattern.
7789 (negv<GPI:mode>_cmp_only): Likewise.
7790 (cmpv<GPI:mode>_insn): Likewise.
7791 (subvti4): Use register_operand for operand 1. Update call to
7792 aarch64_expand_subvti.
7793 (usubvti4): Likewise.
7794 (negvti3): New expand pattern.
7795 (negdi_carryout): New insn pattern.
7796 (negvdi_carryinV): New insn pattern.
7797 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
7798 version the named version.
7799 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
7801 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
7803 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
7805 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
7806 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
7807 (sub<mode>3_carryinCV): Delete.
7808 (sub<GPI:mode>3_carryinV): New expand pattern.
7809 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
7811 2019-01-07 Richard Biener <rguenther@suse.de>
7813 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
7814 of tree_operand_hash.
7816 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
7818 PR tree-optimization/88598
7819 * tree.h (single_nonzero_element): Declare.
7820 * tree.c (single_nonzero_element): New function.
7821 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
7822 if I is the only nonzero element of CST.
7824 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
7826 PR tree-optimization/88598
7827 * tree.h (initializer_each_zero_or_onep): Declare.
7828 * tree.c (initializer_each_zero_or_onep): New function.
7829 (signed_or_unsigned_type_for): Handle float types too.
7830 (unsigned_type_for, signed_type_for): Update comments accordingly.
7831 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
7832 x & { 0 or -1, 0 or -1, ... }.
7834 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
7836 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
7837 with x86_64-pc-linux-gnu.
7839 2019-01-07 Tom de Vries <tdevries@suse.de>
7842 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
7844 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
7847 2019-01-07 Jakub Jelinek <jakub@redhat.com>
7849 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
7850 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
7851 TARGET_AVX512F as condition.
7854 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
7855 const_not_ok_for_debug_p target hook.
7856 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
7857 on UNSPEC and subexpressions thereof if all subexpressions of the
7858 UNSPEC are CONSTANT_P.
7860 PR tree-optimization/88676
7861 * tree-ssa-phiopt.c (two_value_replacement): New function.
7862 (tree_ssa_phiopt_worker): Call it.
7865 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
7866 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
7869 * tree-vect-generic.c: Include insn-config.h and recog.h.
7870 (expand_vector_piecewise): Add defaulted ret_type argument,
7871 if non-NULL, use that in preference to type for the result type.
7872 (expand_vector_parallel): Formatting fix.
7873 (do_vec_conversion, do_vec_narrowing_conversion,
7874 expand_vector_conversion): New functions.
7875 (expand_vector_operations_1): Call expand_vector_conversion
7876 for VEC_CONVERT ifn calls.
7877 * internal-fn.def (VEC_CONVERT): New internal function.
7878 * internal-fn.c (expand_VEC_CONVERT): New function.
7879 * fold-const-call.c (fold_const_vec_convert): New function.
7880 (fold_const_call): Use it for CFN_VEC_CONVERT.
7881 * doc/extend.texi (__builtin_convertvector): Document.
7883 2019-01-07 Tom de Vries <tdevries@suse.de>
7885 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
7886 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
7887 vector_red_partition, vector_red_sym): New global variables.
7888 (nvptx_option_override): Initialize vector_red_sym.
7889 (nvptx_declare_function_name): Restore red_partition register.
7890 (nvptx_file_end): Emit code to declare the vector reduction variables.
7891 (nvptx_output_red_partition): New function.
7892 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
7893 large vector reductions.
7894 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
7895 (nvptx_init_builtins): Add VECTOR_ADDR.
7896 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
7897 Handle nvptx_expand_shared_addr.
7898 (nvptx_get_shared_red_addr): Add vector argument and handle large
7900 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
7902 (nvptx_goacc_reduction_init): Likewise.
7903 (nvptx_goacc_reduction_fini): Likewise.
7904 (nvptx_goacc_reduction_teardown): Likewise.
7905 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
7906 init,fini,teardown}.
7907 (nvptx_init_axis_predicate): Initialize vector_red_partition.
7908 (nvptx_set_current_function): Init vector_red_partition.
7909 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
7910 (nvptx_red_partition): New insn.
7911 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
7913 2019-01-07 Tom de Vries <tdevries@suse.de>
7916 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
7919 2019-01-07 Tom de Vries <tdevries@suse.de>
7921 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
7922 (nvptx_option_override): Init oacc_bcast_partition.
7923 (nvptx_init_oacc_workers): New function.
7924 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
7925 (nvptx_needs_shared_bcast): New function.
7926 (nvptx_find_par): Generalize to enable vectors to use shared-memory
7928 (nvptx_shared_propagate): Initialize vector bcast partition and
7929 synchronization state.
7930 (nvptx_single): Generalize to enable vectors to use shared-memory
7932 (nvptx_process_pars): Likewise.
7933 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
7934 * config/nvptx/nvptx.h (struct machine_function): Add
7935 bcast_partition and sync_bar members.
7937 2019-01-07 Tom de Vries <tdevries@suse.de>
7939 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
7940 (nvptx_apply_dim_limits): New function.
7941 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
7944 2019-01-07 Tom de Vries <tdevries@suse.de>
7946 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
7947 as late as possible.
7949 2019-01-07 Tom de Vries <tdevries@suse.de>
7951 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
7952 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
7953 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
7954 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
7955 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
7957 2019-01-07 Tom de Vries <tdevries@suse.de>
7959 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
7961 2019-01-07 Tom de Vries <tdevries@suse.de>
7963 * omp-offload.c (oacc_get_min_dim): New function.
7964 * omp-offload.h (oacc_get_min_dim): Declare.
7966 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
7969 * config/i386/i386.c (function_value_ms_64): Return small sturct in
7970 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
7972 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
7976 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
7978 * ipa-inline.c (edge_badness): Use inlined_time instead of
7979 inline_summaries->get.
7981 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
7983 * opts.c (enable_fdo_optimizations): Enable
7984 version-loops-for-strides, loop-interchange, unrol-and-jam
7985 and tree-loop-distribution.
7986 * invoke.texi: Document newly enabled options.
7988 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
7990 * doc/invoke.texi (max-inline-insns-small): New parameters.
7991 * ipa-inline.c (want_early_inline_function_p): simplify.
7992 (want_inline_small_function_p): Fix pasto from previous patch;
7993 use max-inline-insns-small bound.
7994 * params.def (max-inline-insns-small): New param.
7995 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
7996 variables correctly.
7998 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
8000 * doc/invoke.texi: Document max-inline-insns-size,
8001 uninlined-function-insns, uninlined-function-time,
8002 uninlined-thunk-insns and uninlined-thunk-time.
8003 * params.def: Add max-inline-insns-size,
8004 uninlined-function-insns, uninlined-function-time,
8005 uninlined-thunk-insns and uninlined-thunk-time.
8006 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
8008 * ipa-inline.c (can_inline_edge_by_limits_p,
8009 want_inline_small_function_p): Use new parameters.
8011 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
8013 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
8015 2019-01-05 Jakub Jelinek <jakub@redhat.com>
8019 * expr.c (expand_assignment): For calls returning VLA structures
8020 if to_rtx is not a MEM, force it into a stack temporary.
8023 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
8024 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
8025 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
8026 subexpressions of both operands.
8027 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
8028 subrtxes are CONSTANT_P.
8029 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
8032 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
8034 * params.def (hot-bb-count-ws-permille): Set to 990.
8036 2019-01-04 Martin Sebor <msebor@redhat.com>
8039 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
8042 2019-01-04 Martin Sebor <msebor@redhat.com>
8045 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
8047 2019-01-04 Jakub Jelinek <jakub@redhat.com>
8049 * gdbinit.in: Turn off pagination for the skip commands, restore
8050 it to previous state afterwards.
8052 2019-01-04 Jakub Jelinek <jakub@redhat.com>
8055 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
8056 of GET_MODE (opN) as modes of the libcall arguments.
8058 2019-01-04 Jan Beulich <jbeulich@suse.com>
8060 * config/i386/sse.md
8061 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
8062 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
8063 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
8064 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
8065 avx512f_vmcmp<mode>3<round_saeonly_name>,
8066 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
8067 avx512f_maskcmp<mode>3,
8068 <avx512>_cvt<ssemodesuffix>2mask<mode>,
8069 <avx512>_cvt<ssemodesuffix>2mask<mode>,
8070 *<avx512>_cvtmask2<ssemodesuffix><mode>,
8071 *<avx512>_cvtmask2<ssemodesuffix><mode>,
8072 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
8073 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
8074 <avx512>_gt<mode>3<mask_scalar_merge_name>,
8075 <avx512>_gt<mode>3<mask_scalar_merge_name>,
8076 <avx512>_testm<mode>3<mask_scalar_merge_name>,
8077 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
8078 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
8079 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
8080 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
8081 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
8082 avx512cd_maskb_vec_dup<mode>,
8083 avx512cd_maskw_vec_dup<mode>,
8084 avx512dq_fpclass<mode><mask_scalar_merge_name>,
8085 avx512dq_vmfpclass<mode>,
8086 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
8089 2019-01-03 Martin Sebor <msebor@redhat.com>
8091 PR tree-optimization/88659
8092 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
8094 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
8096 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
8097 unaligned vsx and avoid lxvd2x/stxvd2x.
8098 (gen_lvx_v4si_move): New function.
8100 2019-01-03 Tom de Vries <tdevries@suse.de>
8102 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
8103 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
8105 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
8107 2019-01-03 Tom de Vries <tdevries@suse.de>
8109 * config/nvptx/nvptx.c (struct offload_attrs): New.
8110 (populate_offload_attrs): New function. Factor mask extraction out of
8111 nvptx_reorg. Add extraction of dimensions.
8112 (nvptx_reorg): Use populate_offload_attrs.
8114 2019-01-03 Tom de Vries <tdevries@suse.de>
8116 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
8117 cases for oacc_min_dims_p and routine_p. Add asserts for
8118 oacc_default_dims_p and offload_region_p.
8120 2019-01-03 Tom de Vries <tdevries@suse.de>
8122 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
8124 (nvptx_goacc_validate_dims): ... here.
8126 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
8128 PR tree-optimization/85574
8129 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
8131 (struct ssa_equip_hash_traits): Declare.
8132 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
8134 2019-01-03 Jakub Jelinek <jakub@redhat.com>
8137 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
8138 change it to qualified_type.
8140 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
8142 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
8143 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
8145 2019-01-02 Martin Sebor <msebor@redhat.com>
8146 Jeff Law <law@redhat.com>
8148 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
8149 (get_range_strlen_tree): Update appropriately.
8151 * gimple-fold.h (get_range_strlen): Drop unused last argument.
8153 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
8154 rather than set_range_info.
8155 * tree-ssa-strlen.c (set_strlen_range): Extracted from
8156 maybe_set_strlen_range. Handle potentially boundary crossing
8157 cases more conservatively.
8158 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
8159 Call set_strlen_range.
8160 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
8163 * gimple-fold.c (get_range_strlen): Update prototype to no longer
8164 need the flexp argument.
8165 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
8166 from calls to get_range_strlen. Update comments. Just update
8167 VAL for an unterminated const char array and let the reset of the
8168 code handle it normally. No longer try to set *flexp. Adjust
8170 (get_range_strlen): Update for the new get_range_strlen API.
8171 (get_maxval_strlen): Similarly.
8172 (gimple_fold_builtin_strlen): Handle update meaning of return value
8173 from get_range_strlen.
8174 * gimple-ssa-sprintf.c (get_string_length): Update for the new
8175 get_range_strlen API.
8177 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
8180 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
8181 false at WPA time when body was removed.
8183 2019-01-02 Martin Liska <mliska@suse.cz>
8185 PR tree-optimization/88650
8186 * predict.c (set_even_probabilities): Calculate probability
8187 remainer only when really used.
8189 2019-01-02 Richard Biener <rguenther@suse.de>
8192 * tree-data-ref.c (analyze_subscript_affine_affine): Use
8193 widest_ints when mangling max_stmt_execution results.
8195 2019-01-02 Richard Biener <rguenther@suse.de>
8197 PR tree-optimization/88621
8198 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
8199 bitfields when canoncalizing.
8201 2019-01-02 Richard Biener <rguenther@suse.de>
8204 * config/i386/x86-tune-costs.h (intel_cost): Adjust
8205 cost of cheap SSE instruction.
8207 2019-01-02 Richard Biener <rguenther@suse.de>
8210 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
8211 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
8213 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
8214 set after UIDs before splitting them.
8216 2019-01-01 Martin Sebor <msebor@redhat.com>
8217 Jeff Law <law@redhat.com>
8219 * gimple-fold.c (get_range_strlen_tree): Record if the computed
8220 length is optimistic. If it is, then arrange to compute the
8221 conservative length as well.
8223 * gimple-fold.h (get_range_strlen): Update prototype.
8224 * builtins.c (check_access): Update call to get_range_strlen to use
8225 c_strlen_data pointer. Change various variable accesses to instead
8226 pull data from the c_strlen_data structure.
8227 (check_strncat_sizes, expand_builtin_strncat): Likewise.
8228 * calls.c (maybe_warn_nonstring_arg): Likewise.
8229 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
8230 minimum length if maximum lengh is unknown.
8231 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
8232 that used c_strlen, it's no longer needed. Restructure slightly.
8233 (format_string): Set unlikely range appropriately.
8234 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
8236 (get_range_strlen): Accept c_strlen_data pointer for external
8237 call sites as well. Pass through to call to internal get_range_strlen.
8238 Adjust minlen, maxlen and maxbound as needed.
8239 (get_maxval_strlen): Update comments.
8240 (gimple_fold_builtin_strlen): Update call to get_range_strlen
8241 to use c_strlen_data pointer. Change variable accesses to instead
8242 use c_strlen_data data members.
8244 * gimple-fold.c (get_range_strlen): Update prototype.
8245 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
8246 local variables. Use pdata to return information to caller.
8247 Update calls to get_range_strlen. Update pdata->maxbound.
8248 (get_range_strlen -- static version): Similarly.
8249 (get_range_strlen -- extern version): Update for internal
8250 get_range_strlen API change. Convert to external data format.
8251 (get_maxval_strlen): Similarly.
8253 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
8255 * coverage.c (get_coverage_counts): Use current_function_decl.
8256 * profile.c (read_thunk_profile): New function.
8257 (branch_prob): Add THUNK parameter.
8258 * tree-profile.c (tree_profiling): Handle thunks.
8259 * value-prof.c (init_node_map): Handle thunks.
8260 * value-prof.h (branch_prob): Upate prototype.
8261 (read_thunk_profile): Declare.
8263 2019-01-01 Jakub Jelinek <jakub@redhat.com>
8265 Update copyright years.
8267 * gcc.c (process_command): Update copyright notice dates.
8268 * gcov-dump.c (print_version): Ditto.
8269 * gcov.c (print_version): Ditto.
8270 * gcov-tool.c (print_version): Ditto.
8271 * gengtype.c (create_file): Ditto.
8272 * doc/cpp.texi: Bump @copying's copyright year.
8273 * doc/cppinternals.texi: Ditto.
8274 * doc/gcc.texi: Ditto.
8275 * doc/gccint.texi: Ditto.
8276 * doc/gcov.texi: Ditto.
8277 * doc/install.texi: Ditto.
8278 * doc/invoke.texi: Ditto.
8280 Copyright (C) 2019 Free Software Foundation, Inc.
8282 Copying and distribution of this file, with or without modification,
8283 are permitted in any medium without royalty provided the copyright
8284 notice and this notice are preserved.