1 2019-07-01 Richard Biener <rguenther@suse.de>
3 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
4 TARGET_MEM_REF handling to also handle address-taken ones.
6 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
8 * doc/sourcebuild.texi (Effective-Target Keywords, Other
9 hardware attributes): Document avx512vp2intersect.
11 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
13 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
14 (abs<mode>2): New expander.
15 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
16 Use CODE_FOR_ssse3_absv8qi2.
17 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
18 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
20 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
23 to sse, sse_noavx and avx. Update all uses.
25 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
27 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
28 (*mmx_<plusminus_insn><mode>3): Ditto.
29 (*mmx_mulv4hi3"): Ditto.
30 (*mmx_smulv4hi3_highpart): Ditto.
31 (*mmx_umulv4hi3_highpart): Ditto.
32 (*mmx_pmaddwd): Ditto.
33 (*sse2_umulv1siv1di3): Ditto.
34 (*mmx_<code>v4hi3): Ditto.
35 (*mmx_<code>v8qi3): Ditto.
36 (mmx_ashr<mode>3): Ditto.
37 ("mmx_<shift_insn><mode>3): Ditto.
38 (*mmx_eq<mode>3): Ditto.
39 (mmx_gt<mode>3): Ditto.
40 (mmx_andnot<mode>3): Ditto.
41 (*mmx_<code><mode>3): Ditto.
44 (mmx_pshufw_1): Ditto.
45 (*mmx_uavgv8qi3): Ditto.
46 (*mmx_uavgv4hi3): Ditto.
48 * config/i386/sse.md (sse_cvtps2pi): Ditto.
49 (sse_cvttps2pi): Ditto.
50 (ssse3_pmaddubsw): Ditto.
51 (*ssse3_pmulhrswv4hi3): Ditto.
52 (ssse3_psign<mode>3): Ditto.
54 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
56 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
57 adjustment for bit-fields to all aggregate types.
59 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
61 * config/rs6000/predicates.md (pcrel_address): Use
62 SYMBOL_REF_LOCAL_P to determine if a label is local.
63 (pcrel_external_address): New predicate.
64 (non_prefixed_mem_operand): Delete, predicate not used.
65 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
66 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
68 (SYMBOL_REF_PCREL_P): Likewise.
71 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
73 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
74 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
75 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
77 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
79 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
80 override on extra_headers.
82 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
84 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
85 * config/darwin-driver.c (darwin_default_min_version): Remove newline
87 (darwin_driver_init): Likewise.
89 2019-06-28 Jan Beulich <jbeulich@suse.com>
91 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
92 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
93 Eliminate redundant alternative.
95 2019-06-28 Jan Beulich <jbeulich@suse.com>
97 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
98 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
101 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
103 * config/arc/arc.c (arc_rtx_costs): All short instructions are
104 having a lower cost regardless of the speed option.
106 2019-06-28 Jan Beulich <jbeulich@suse.com>
108 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
109 vector_operand plus, on both alternatives, "Bm" constraint.
111 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
113 * config/arm/arm.md: Remove redundant constraints from
114 define_expand but leave reload_inm and reload_outm patterns
115 untouched since they need special constraints to work.
116 * config/arm/arm-fixed.md: Remove redundant constraints from
118 * config/arm/iwmmxt.md: Likewise.
119 * config/arm/neon.md: Likewise.
120 * config/arm/sync.md: Likewise.
121 * config/arm/thumb1.md: Likewise.
122 * config/arm/vec-common.md: Likewise.
124 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
126 * doc/install.texi: Document --disable-tm-clone-registry.
128 2019-06-27 Jakub Jelinek <jakub@redhat.com>
131 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
134 PR tree-optimization/91010
135 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
136 return true. Otherwise, don't call operand_equal_p if offset1 or
137 offset2 is NULL and just return false.
139 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
141 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
142 user-specified float mode choice for kernel mode code.
144 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
146 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
149 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
151 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
152 use longcall for 64b code.
154 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
156 * builtins.c (get_memory_rtx): Fix comment.
157 * optabs.def (movmem_optab): Change to cpymem_optab.
158 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
159 (emit_block_move_hints): Change movmem to cpymem.
160 * defaults.h: Change movmem to cpymem.
161 * targhooks.c (get_move_ratio): Change movmem to cpymem.
162 (default_use_by_pieces_infrastructure_p): Ditto.
163 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
164 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
166 * config/aarch64/aarch64.h: Change movmem to cpymem.
167 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
168 * config/alpha/alpha.h: Change movmem to cpymem in comment.
169 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
171 * config/arc/arc-protos.h: Change movmem to cpymem.
172 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
173 * config/arc/arc.h: Change movmem to cpymem in comment.
174 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
175 * config/arm/arm-protos.h: Change movmem to cpymem in names.
176 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
177 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
178 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
179 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
180 * config/avr/avr-protos.h: Change movmem to cpymem.
181 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
182 avr_out_movmem): Change movmem to cpymem.
183 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
184 Change movmem to cpymem.
185 * config/bfin/bfin-protos.h: Change movmem to cpymem.
186 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
187 Change movmem to cpymem.
188 * config/bfin/bfin.h: Change movmem to cpymem in comment.
189 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
190 * config/c6x/c6x-protos.h: Change movmem to cpymem.
191 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
192 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
193 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
194 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
195 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
196 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
197 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
198 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
199 expand_small_cpymem_or_setmem,
200 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
201 expand_set_or_cpymem_constant_prologue,
202 ix86_expand_set_or_cpymem): Change movmem to cpymem.
203 * config/i386/i386-protos.h: Change movmem to cpymem.
204 * config/i386/i386.h: Change movmem to cpymem in comment.
205 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
206 (setmem<mode>): Change expansion function name.
207 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
208 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
209 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
210 * config/m32c/m32c-protos.h: Change movmem to cpymem.
211 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
212 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
213 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
215 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
216 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
217 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
218 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
219 Change movmem to cpymem.
220 * config/mips/mips.h: Change movmem to cpymem.
221 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
222 * config/nds32/nds32-memory-manipulation.c
223 (nds32_expand_movmemsi_loop_unknown_size,
224 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
225 nds32_expand_movmemsi_unroll,
226 nds32_expand_movmemsi): Change movmem to cpymem.
227 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
228 * config/nds32/nds32-protos.h: Change movmem to cpymem.
229 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
230 (pa_adjust_insn_length): Change call to compute_movmem_length.
231 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
232 movmemdi, movmemdi_prereload,
233 movmemdi_postreload): Change movmem to cpymem.
234 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
235 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
236 * config/riscv/riscv.c: Change movmem to cpymem in comment.
237 * config/riscv/riscv.h: Change movmem to cpymem.
238 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
239 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
240 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
242 * config/s390/s390-protos.h: Change movmem to cpymem.
243 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
244 s390_expand_insv): Change movmem to cpymem.
245 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
246 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
247 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
248 * config/sparc/sparc.h: Change movmem to cpymem in comment.
249 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
250 for nonexistent function.
251 * config/vax/vax.h: Change movmem to cpymem in comment.
252 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
253 * config/visium/visium.h: Change movmem to cpymem in comment.
254 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
255 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
256 * doc/md.texi: Change movmem to cpymem and update description to match.
257 * doc/rtl.texi: Change movmem to cpymem.
258 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
259 * doc/tm.texi: Regenerate.
261 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
263 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
264 -fvariable-expansion-in-unroller by default.
265 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
268 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
271 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
272 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
274 * config.gcc(rs6000-*-*): Define target_gtfiles.
276 2019-06-27 Jan Hubicka <jh@suse.cz>
278 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
279 (add_type_duplicate): When odr hash is not allocated, to nothing.
280 (odr_based_tbaa_p): New function.
281 (set_type_canonical_for_odr_type): New function.
282 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
283 set_type_canonical_for_odr_type): New.
284 * tree.c (gimple_canonical_types_compatible_p): ODR types with
285 ODR based TBAA are not equivalent to non-ODR types.
287 2019-06-27 Martin Liska <mliska@suse.cz>
289 PR tree-optimization/90974
290 PR rtl-optimization/90975
291 PR rtl-optimization/90976
293 PR tree-optimization/91017
294 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
296 * lra.c (lra_set_insn_recog_data): Remove a leftover from
297 initial commit of IRA.
298 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
300 * tree-vect-loop.c (vect_create_epilog_for_reduction):
302 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
305 2019-06-27 Jakub Jelinek <jakub@redhat.com>
308 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
309 instead of register_operand for operands[1], add m to its constraints
310 if operands[2] uses "C" constraint. Ensure in condition that if
311 operands[2] is not 0, then operands[1] is not a MEM. For last two
312 alternatives, use unaligned loads instead of aligned if operands[1] is
315 2019-06-27 Martin Liska <mliska@suse.cz>
317 * asan.c (asan_emit_allocas_unpoison): Remove obviously
319 * bt-load.c (move_btr_def): Likewise.
320 * builtins.c (expand_builtin_apply_args_1): Likewise.
321 (expand_builtin_apply): Likewise.
322 * cfgexpand.c (expand_asm_stmt): Likewise.
323 (construct_init_block): Likewise.
324 * cfghooks.c (verify_flow_info): Likewise.
325 * cfgloopmanip.c (remove_path): Likewise.
326 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
327 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
328 * combine.c (simplify_if_then_else): Likewise.
329 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
330 (choose_basereg): Likewise.
331 (ix86_expand_prologue): Likewise.
332 (ix86_preferred_output_reload_class): Likewise.
333 * cselib.c (cselib_record_sets): Likewise.
334 * df-scan.c (df_scan_alloc): Likewise.
335 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
336 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
337 * emit-rtl.c (try_split): Likewise.
338 * graphite-scop-detection.c (assign_parameter_index_in_region): Likewise.
339 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
340 * ira-color.c (setup_profitable_hard_regs): Likewise.
341 * ira.c (rtx_moveable_p): Likewise.
342 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
343 * read-rtl.c (read_subst_mapping): Likewise.
344 * regrename.c (scan_rtx): Likewise.
345 * reorg.c (fill_slots_from_thread): Likewise.
346 * tree-inline.c (tree_function_versioning): Likewise.
347 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
348 * tree-ssa-sink.c (statement_sink_location): Likewise.
349 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
350 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
351 (vect_create_epilog_for_reduction): Likewise.
352 * tree.c (build_nonstandard_integer_type): Likewise.
354 2019-06-27 Richard Biener <rguenther@suse.de>
356 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
358 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
360 PR tree-optimization/89772
361 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
362 out-of-bound accesses checking.
364 2019-06-27 Martin Liska <mliska@suse.cz>
366 PR tree-optimization/91014
367 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
368 when LHS is NULL_TREE.
370 2019-06-27 Martin Liska <mliska@suse.cz>
372 * symbol-summary.h (traverse): Pass
373 argument a to the call of callback.
374 (gt_ggc_mx): Mark arguments as unused.
375 (gt_pch_nx): Likewise.
377 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
380 * gcc/loop-iv.c (find_simple_exit): Call finite_loop_p to update
383 2019-06-26 Jeff Law <law@redhat.com>
385 PR tree-optimization/90883
386 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
387 (delete_dead_or_redundant_assignment): Likewise.
389 PR tree-optimization/90883
390 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
391 * tree-ssa-dse.c: Update various comments to distinguish between
392 dead and redundant stores.
393 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
394 (dse_optimize_redundant_stores): New function.
395 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
396 Distinguish between dead and redundant calls in dump output. All
398 (delete_dead_or_redundant_assignment): Similarly for assignments.
399 (dse_optimize_stmt): Handle _CHK variants. For statements which
400 store 0 into multiple memory locations, try to prove a subsequent
403 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
406 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
407 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
409 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
411 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
412 (branch_islands): New extern.
413 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
414 * config/rs6000/rs6000.c: .. here.
416 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
418 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
419 (powerpc*-*-*) ... to here.
421 2019-06-26 Jeff Law <law@redhat.com>
423 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
424 memcpy, memmove and memset builtins.
425 (maybe_trim_memstar_call): Likewise.
427 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
429 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
431 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
433 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
435 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
437 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
439 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
441 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
444 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
446 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
448 2019-06-26 Richard Biener <rguenther@suse.de>
451 * tree-inline.c (remap_ssa_name): Copy SSA range info.
453 2019-06-26 Richard Biener <rguenther@suse.de>
455 * lto-streamer.h (lto_bitmap_alloc): Remove.
456 (lto_bitmap_free): Likewise.
457 * lto-streamer.c (lto_bitmap_alloc): Remove.
458 (lto_bitmap_free): Likewise.
459 (lto_obstack): Likewise.
460 (lto_obstack_initialized): Likewise.
461 * lto-streamer-out.c (lto_output): Use own obstack for local
462 bitmap, free it consistently.
464 2019-06-26 Jakub Jelinek <jakub@redhat.com>
468 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
469 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
470 insns if operands[2] is misaligned_operand.
472 2019-06-26 Li Jia He <helijia@linux.ibm.com>
474 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
476 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
479 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
481 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
483 2019-06-26 Martin Liska <mliska@suse.cz>
485 PR tree-optimization/90973
486 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
487 epilogue_cost_vec instead of prologue_cost_vec for
490 2019-06-26 Martin Liska <mliska@suse.cz>
492 * bb-reorder.c (connect_better_edge_p): Add missing else
493 statement in the middle of if-else statements.
495 /home/marxin/Programming/gcc/gcc/bb-reorder.c:1031:2: warning: Value stored to 'is_better_edge' is never read
496 is_better_edge = true;
498 /home/marxin/Programming/gcc/gcc/bb-reorder.c:1034:2: warning: Value stored to 'is_better_edge' is never read
499 is_better_edge = false;
502 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
503 H.J. Lu <hongjiu.lu@intel.com>
504 Olga Makhotina <olga.makhotina@intel.com>
506 * common/config/i386/i386-common.c
507 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
508 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
509 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
510 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
511 (ix86_handle_option): Handle -mavx512vp2intersect.
512 * config/i386/avx512vp2intersectintrin.h: New.
513 * config/i386/avx512vp2intersectvlintrin.h: New.
514 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
515 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
517 * config/i386/i386-builtin-types.def: Add new types.
518 * config/i386/i386-builtin.def: Add new builtins.
519 * config/i386/i386-builtins.c: (enum processor_features): Add
520 F_AVX512VP2INTERSECT.
521 (static const _isa_names_table isa_names_table): Ditto.
522 * config/i386/i386-c.c (ix86_target_macros_internal): Define
523 __AVX512VP2INTERSECT__.
524 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
525 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
526 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
527 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
528 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
529 * config/i386/i386-options.c (ix86_target_string): Add
530 -mavx512vp2intersect.
531 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
532 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
533 P2HImode and P2QImode.
534 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
535 number for P2QImode and P2HImode.
536 (ix86_regmode_natural_size): New function.
537 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
538 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
539 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
540 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
541 * config/i386/i386.opt: Add -mavx512vp2intersect.
542 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
543 avx512vp2intersectvlintrin.h.
544 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
545 (define_mode_iterator VI48_AVX512VP2VL): New.
546 (avx512vp2intersect_2intersect<mode>,
547 avx512vp2intersect_2intersectv16si): New define_insn patterns.
548 * config.gcc: Add avx512vp2intersectvlintrin.h and
549 avx512vp2intersectintrin.h to extra_headers.
550 * doc/invoke.texi: Document -mavx512vp2intersect.
552 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
554 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
556 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
558 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
559 savres_routine_syms, savres_routine_name, morestack_ref,
560 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
561 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
562 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
563 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
564 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
565 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
566 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
567 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
568 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
569 get_stack_clash_protection_probe_interval,
570 get_stack_clash_protection_guard_size,
571 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
572 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
573 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
574 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
575 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
576 gen_frame_mem_offset, rs6000_savres_routine_name,
577 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
578 ptr_regno_for_savres, rs6000_emit_savres_rtx,
579 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
580 rs6000_global_entry_point_prologue_needed_p,
581 rs6000_get_separate_components, rs6000_components_for_bb,
582 rs6000_disqualify_components, rs6000_emit_prologue_components,
583 rs6000_emit_epilogue_components, rs6000_set_handled_components,
584 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
585 rs6000_output_savres_externs, rs6000_output_function_prologue,
586 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
587 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
588 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
589 rs6000_output_function_epilogue, gen_add3_const,
590 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
591 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
593 (machine_function): Moved to rs6000.h.
594 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
596 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
597 savres_routine_syms, savres_routine_name, morestack_ref,
598 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
599 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
600 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
601 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
602 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
603 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
604 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
605 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
606 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
607 get_stack_clash_protection_probe_interval,
608 get_stack_clash_protection_guard_size,
609 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
610 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
611 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
612 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
613 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
614 gen_frame_mem_offset, rs6000_savres_routine_name,
615 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
616 ptr_regno_for_savres, rs6000_emit_savres_rtx,
617 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
618 rs6000_global_entry_point_prologue_needed_p,
619 rs6000_get_separate_components, rs6000_components_for_bb,
620 rs6000_disqualify_components, rs6000_emit_prologue_components,
621 rs6000_emit_epilogue_components, rs6000_set_handled_components,
622 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
623 rs6000_output_savres_externs, rs6000_output_function_prologue,
624 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
625 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
626 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
627 rs6000_output_function_epilogue, gen_add3_const,
628 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
629 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
630 to here from rs6000.c.
631 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
632 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
633 quad_address_offset_p) Moved to here from rs6000.c.
634 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
635 * config/config.gcc: Add new source file rs6000-logue.c to garbage
638 2019-06-25 Martin Liska <mliska@suse.cz>
640 * hash-table.c (hashtab_chk_error): Move here from ...
641 * hash-table.h (hashtab_chk_error): ... here.
643 2019-06-25 Martin Liska <mliska@suse.cz>
645 PR tree-optimization/90978
646 * df-scan.c (df_update_entry_block_defs): Remove dead else
648 (df_update_exit_block_uses): Likewise.
650 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
651 Andrew Stubbs <ams@codesourcery.com>
653 * config.gcc (thread_file): Set to gcn for AMD GCN.
654 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
655 (TARGET_EMUTLS_VAR_INIT): New hook.
657 2019-06-25 Martin Jambor <mjambor@suse.cz>
660 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
662 2019-06-25 Richard Biener <rguenther@suse.de>
664 PR tree-optimization/90930
665 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
666 into parallel form in the last pass instance.
668 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
670 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
671 (arc_legitimize_pic_address): Simplify and cleanup the function.
672 (SYMBOLIC_CONST): Remove.
673 (prepare_pic_move): Likewise.
674 (prepare_move_operands): Handle complex mov cases here.
675 (arc_legitimize_address_0): Remove call to
676 arc_legitimize_pic_address.
677 (arc_legitimize_address): Remove call to
678 arc_legitimize_tls_address.
679 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
680 (movhi_insn): Likewise.
682 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
684 * gcc/c-family/c-common.c (c_common_nodes_and_builtins): Define
685 alternate "__intN__" name for "__intN" types.
686 * gcc/c/c-parser.c (c_parse_init): Create keyword for "__intN__" type.
687 * gcc/cp/lex.c (init_reswords): Likewise.
688 * gcc/config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
690 * gcc/cp/cp-tree.h (cp_decl_specifier_seq): New bitfield "int_n_alt".
691 * gcc/c/c-decl.c (declspecs_add_type): Don't pedwarn about "__intN" ISO
692 C incompatibility if alternate "__intN__" form is used.
693 * gcc/cp/decl.c (grokdeclarator): Likewise.
694 * gcc/cp/parser.c (cp_parser_simple_type_specifier): Set
695 decl_specs->int_n_alt if "__intN__" form is used.
696 * gcc/gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
697 format of "__intN" types for UINTMAX_TYPE.
698 * gcc/brig/brig-lang.c (brig_build_c_type_nodes): Accept "__intN__"
699 format of "__intN" types for SIZE_TYPE.
700 * gcc/lto/lto-lang.c (lto_build_c_type_nodes): Likewise.
701 * gcc/stor-layout.c (initialize_sizetypes): Accept "__intN__"
702 format of "__intN" types for SIZETYPE.
703 * gcc/tree.c (build_common_tree_nodes): Accept "__intN__"
704 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
705 * gcc/doc/invoke.texi: Document that __intN__ disables pedantic
708 2019-06-25 Jan Hubicka <jh@suse.cz>
710 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
711 base2_alias_set is non-zero before doing TBAA based disambiguation.
713 2019-06-25 Martin Liska <mliska@suse.cz>
715 PR tree-optimization/90973
716 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
717 of prologue and epilogue.
719 2019-06-24 Jan Hubicka <jh@suse.cz>
721 * ipa-utils.h (type_with_linkage_p): Verify that type is
723 (odr_type_p): Remove extra return.
724 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
725 hash STRING_FLAG only for arrays and integers.
726 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
728 * tree-streamer-out.c (pack_ts_type_common_value_fields):
730 * print-tree.c (print_node): Print cxx-odr-p
732 * tree.c (need_assembler_name_p): Also check that type
734 (verify_type_variant): Update verification of SRING_FLAG;
735 also check CXX_ODR_P.
736 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
737 (TYPE_STRING_FLAG): Use it.
738 (TYPE_CXX_ODR_P): New macro.
739 * dwarf2out.c (gen_array_type_die): First check that type
740 is an array and then test string flag.
742 2019-06-24 Richard Biener <rguenther@suse.de>
744 PR tree-optimization/90972
745 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
746 in common code, dealing with STRING_CST properly.
748 2019-06-24 Richard Biener <rguenther@suse.de>
750 PR tree-optimization/90930
751 PR tree-optimization/90316
752 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
755 2019-06-24 Martin Sebor <msebor@redhat.com>
757 * tree-pretty-print.h: Remove unnecessary punctuation characters
759 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
761 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
763 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
764 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
765 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
767 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
769 * config/rs6000/darwin.h: Handle GCC target pragma.
771 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
773 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
775 2019-06-22 Jeff Law <law@redhat.com>
777 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
779 2019-06-22 Jan Hubicka <jh@suse.cz>
781 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
782 give up on bitfields; continue searching for different refs
785 2019-06-21 Jakub Jelinek <jakub@redhat.com>
787 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
788 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
789 containing the offset as possible simd lane access. Look through
790 widening conversion. Move the
791 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
793 2019-06-21 Richard Biener <rguenther@suse.de>
795 PR tree-optimization/90930
796 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
797 flag on new stmts to avoid re-processing them.
799 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
801 PR c++/90875 - added -Wswitch-outside-range option
802 * doc/invoke.texi (Wswitch-outside-range): Document.
804 2019-06-21 Jeff Law <law@redhat.com>
806 PR tree-optimization/90949
807 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
808 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
810 2019-06-21 Richard Biener <rguenther@suse.de>
813 * dwarf2out.c (prune_unused_types_walk): Always consider
814 function-local extern declarations as used.
816 2019-06-21 Richard Biener <rguenther@suse.de>
818 PR tree-optimization/90913
819 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
820 the scalar variant of if-conversion versioning.
822 2019-06-21 Jakub Jelinek <jakub@redhat.com>
824 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
825 create another "omp scan inscan exclusive" array if
826 !ctx->scan_inclusive.
827 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
828 (lower_omp_scan): Likewise.
829 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
830 2-bit bitfield for simd_lane_access_p member.
831 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
832 aux == (void *)-4 as simd lane access.
833 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
834 comment with permutations to show the canonical permutation order.
835 (vectorizable_scan_store): Handle exclusive scan.
836 (vectorizable_store): Call vectorizable_scan_store even for
837 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
839 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
840 "omp simd array" arrays with one byte elements.
842 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
844 * config/alpha/alpha.md (@unaligned_store<mode>):
845 Rename from unaligned_store<mode>.
846 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
847 * config/alpha/sync.md (@load_locked_<mode>): Rename
848 from load_locked_<mode>.
849 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
850 (@atomic_compare_and_swap<mode>_1): Rename
851 from atomic_compare_and_swap<mode>_1.
852 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
853 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
854 Use gen_reload_in_aligned and gen_unaligned_store.
855 (emit_load_locked): Remove.
856 (emit_store_conditional): Ditto.
857 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
858 (alpha_split_compare_and_swap): Ditto.
859 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
860 (alpha_split_compare_and_swap_12): Use gen_load_locked
861 and gen_store_conditional.
862 (alpha_split_atomic_exchange): Ditto.
863 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
864 (alpha_split_atomic_exchange_12): Use gen_load_locked
865 and gen_store_conditional.
867 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
869 * config/aarch64/aarch64-errata.h: New file.
870 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
871 (CA53_ERR_843419_SPEC): Delete.
872 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
873 * config/aarch64/aarch64-linux.h: Likewise.
874 * config/aarch64/aarch64-netbsd.h: Likewise.
875 * config/aarch64/aarch64-freebsd.h: Likewise.
877 2019-06-20 Marek Polacek <polacek@redhat.com>
879 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
881 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
883 * config/rs6000/rs6000.md (isa attribute): Add support for
884 for a future processor.
886 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
889 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
890 standard scalar operation pattern for V2DF.
891 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
892 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
893 (*ieee_<ieee_maxmin><mode>3): Likewise.
894 (vec_setv2df_0): Likewise.
896 2019-06-20 Jan Hubicka <jh@suse.cz>
898 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
899 parameter; it has no use in gimple memory model.
900 (indirect_ref_may_alias_decl_p): Update.
902 2019-06-20 Martin Liska <mliska@suse.cz>
904 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
907 2019-06-20 Jakub Jelinek <jakub@redhat.com>
909 * tree-vect-stmts.c (enum scan_store_kind): New type.
910 (scan_store_can_perm_p): Change last argument from int * to
911 vec<enum scan_store_kind> *, record precisely which permutations
912 need whole vector left shift or that plus VEC_COND_EXPR.
913 (vectorizable_scan_store): Adjust caller, use whole vector left shift
914 and additional VEC_COND_EXPR only for those iterations that need it.
916 2019-06-20 Alexandre Oliva <oliva@adacore.com>
918 * config.gcc: Fix ARM --with-fpu checking and error message.
920 2019-06-19 Marek Polacek <polacek@redhat.com>
922 PR c++/60364 - noreturn after first decl not diagnosed.
923 * attribs.c (get_attribute_namespace): No longer static.
924 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
926 (attr_noreturn_exclusions): Make it extern.
927 * attribs.h (get_attribute_namespace): Declare.
928 * tree-inline.c (function_attribute_inlinable_p): Use
931 2019-06-19 Martin Sebor <msebor@redhat.com>
933 PR tree-optimization/90626
934 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
936 PR tree-optimization/90626
937 * tree-ssa-strlen.c (strxcmp_unequal): New function.
938 (handle_builtin_string_cmp): Call it.
940 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
942 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
943 and DARWIN_NOPIE_SPEC.
944 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
945 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
946 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
947 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
948 (DARWIN_EXPORT_DYNAMIC): Delete.
949 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
950 and pie options processing to darwin.h.
951 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
953 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
955 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
956 in computing the number of options to be moved.
958 2019-06-19 Maya Rashish <coypu@sdf.org>
960 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
961 (CLEAR_INSN_CACHE) Use it.
963 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
965 * config/i386/i386.md (cmpstrnsi): Remove dead code.
967 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
970 * builtins.c (expand_builtin_setjmp_setup): Save
971 hard_frame_pointer_rtx.
972 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
974 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
976 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
978 (remove_reg_equal_offset_note): Remove unused function.
979 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
981 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
982 (arc_builtin_setjmp_frame_value): Remove function.
983 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
984 (avr_builtin_setjmp_frame_value): Remove function.
985 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
986 (ix86_builtin_setjmp_frame_value): Remove function.
987 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
988 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
989 (sparc_builtin_setjmp_frame_value): Remove function.
990 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
991 (vax_builtin_setjmp_frame_value): Remove function.
992 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
993 pointer if has_nonlocal_label.
995 2019-06-19 Jakub Jelinek <jakub@redhat.com>
997 * doc/md.texi: Document vec_shl_<mode> pattern.
998 * optabs.def (vec_shl_optab): New optab.
999 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
1000 argument, if == vec_shl_optab, check for left whole vector shift
1001 pattern rather than right shift.
1002 (expand_vec_perm_const): Add vec_shl_optab support.
1003 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
1005 * tree-vect-generic.c (lower_vec_perm): Support permutations which
1006 can be handled by vec_shl_optab.
1007 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
1008 (check_scan_store): Use it.
1009 (vectorizable_scan_store): If target can't do normal permutations,
1010 try to use whole vector left shifts and if needed a VEC_COND_EXPR
1012 * config/i386/sse.md (vec_shl_<mode>): New expander.
1014 * omp-low.c (lower_rec_input_clauses): Handle references properly
1016 (lower_omp_scan): Likewise.
1018 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1020 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
1021 mem_mode is BLKmode.
1023 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
1026 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
1027 pointer adjustment for the case of no callee-saved registers and
1028 stack frame bigger than 128 bytes.
1030 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
1033 * omp-low.c (check_omp_nesting_restrictions): Handle
1034 GF_OMP_TARGET_KIND_OACC_DECLARE.
1036 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
1038 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
1039 (@add<mode>3_carry): Rename from add<mode>3_carry.
1040 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
1041 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
1042 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
1043 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
1044 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
1045 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
1046 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
1047 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
1048 (cmpstrnsi): Use gen_cmp_1.
1049 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
1050 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
1051 (@umonitor_<mode>): Rename from umonitor_<mode>.
1052 * config/i386/i386-expand.c (ix86_expand_copysign):
1053 Use gen_copysign3_const and gen_copysign3_var.
1054 (ix86_expand_xorsign): Use gen_xorsign3_1.
1055 (ix86_expand_branch): Use gen_sub3_carry_ccc,
1056 gen_sub3_carry_ccgz and gen_cmp1.
1057 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
1058 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
1059 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
1060 (ix86_split_lshr): Ditto.
1061 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
1063 2019-06-18 Jason Merrill <jason@redhat.com>
1065 * tree.c (build_constructor): Add MEM_STAT_DECL.
1067 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
1069 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
1070 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
1071 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
1072 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
1073 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
1074 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
1075 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
1076 Use CC_NZC instead of CC.
1077 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
1078 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
1079 (aarch64_print_operand): Handle E_CC_NZCmode.
1080 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
1081 of gen_set_clobber_cc.
1083 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
1085 * config/aarch64/aarch64-sve.md: Tabify file.
1087 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
1089 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
1090 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
1091 * config/aarch64/aarch64-sve.md: Use it.
1093 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
1095 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
1096 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
1097 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
1098 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
1099 (aarch64_expand_sve_vec_cmp_int): Use it.
1100 (aarch64_expand_sve_vec_cmp_float): Likewise.
1101 * config/aarch64/aarch64-sve.md: Likewise throughout.
1103 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
1104 Kugan Vivekanandarajah <kuganv@linaro.org>
1106 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
1107 (*cond_<optab><mode>_z): Fold into...
1108 (*cond_<optab><mode>_any): ...here. Also handle cases in which
1109 operand 4 can be tied to operand 0 (either inherently or via RA).
1111 2019-06-18 Richard Biener <rguenther@suse.de>
1114 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
1115 as if optimized away.
1117 2019-06-18 Tom de Vries <tdevries@suse.de>
1119 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
1120 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
1121 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
1123 (define_insn "@set_softstack_<mode>"): ... this.
1124 (define_insn "omp_simt_enter_<mode>"): Rename to ...
1125 (define_insn "@omp_simt_enter_<mode>"): ... this.
1126 (define_insn "omp_simt_exit_<mode>"): Rename to ...
1127 (define_insn "@omp_simt_exit_<mode>"): ... this.
1129 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
1131 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
1132 vf parameter. Restore the previous iv step of nscalars_step,
1133 but give it iv_type rather than compare_type. Tweak code order
1134 to match the comments.
1135 (vect_set_loop_condition_masked): Update accordingly.
1136 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
1137 for iv_precision. Tweak comment formatting.
1139 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
1141 * config/darwin.c: Strip trailing whitespace.
1143 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
1145 * config/darwin.c (darwin_emit_unwind_label): New default to false.
1146 (darwin_override_options): Set darwin_emit_unwind_label as needed.
1148 2019-06-18 Martin Jambor <mjambor@suse.cz>
1151 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
1152 caller does not have flag_ipa_cp set.
1154 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
1156 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
1157 from "*fold_left_plus_<mode>", updated operands order.
1158 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
1159 * internal-fn.c (mask_fold_left_direct): New define.
1160 (expand_mask_fold_left_optab_fn): Likewise.
1161 (direct_mask_fold_left_optab_supported_p): Likewise.
1162 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
1163 * optabs.def (mask_fold_left_plus_optab): New optab.
1164 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
1165 masked internal_fn for a reduction ifn.
1166 (vectorize_fold_left_reduction): Add support for masking reductions.
1168 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
1171 * target.def (predict_doloop_p): New hook.
1172 * targhooks.h (default_predict_doloop_p): New declaration.
1173 * targhooks.c (default_predict_doloop_p): New function.
1174 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
1175 * doc/tm.texi: Regenerate.
1176 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
1177 (TARGET_PREDICT_DOLOOP_P): New macro.
1178 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
1180 2019-06-17 Jakub Jelinek <jakub@redhat.com>
1182 * omp-low.c (struct omp_context): Add scan_inclusive field.
1183 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
1185 (struct omplow_simd_context): Add lastlane member.
1186 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
1187 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
1189 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
1190 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
1191 (lower_omp_scan): New function.
1192 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
1193 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
1194 check 3rd argument if present rather than 2nd.
1195 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
1196 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
1198 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
1199 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
1201 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
1202 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
1203 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
1205 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
1206 IFN_GOMP_SIMD_LANE argument.
1207 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
1208 encoded ->aux value.
1209 * tree-vect-stmts.c: Include attribs.h.
1210 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
1211 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
1213 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
1214 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
1216 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
1219 * config/i386/i386.md (*nabstf2_1): New insn pattern.
1220 (*nabs<mode>2_1): Ditto.
1221 (nabs sse-reg splitter): New splitter.
1222 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
1224 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
1227 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
1230 2019-06-17 Tom de Vries <tdevries@suse.de>
1232 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
1233 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
1234 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
1236 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
1238 (define_insn "omp_simt_enter_insn"): Rename to ...
1239 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
1240 match_operand 0, 1 and 2, as well as the unspec_volatile result.
1241 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
1242 gen_omp_simt_enter_si.
1243 (define_expand "omp_simt_exit"): New.
1244 (define_insn "omp_simt_exit"): Rename to ...
1245 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
1248 2019-06-17 Matthew Green <mrg@eterna.com.au>
1249 Maya Rashish <coypu@sdf.org>
1251 * config.gcc (aarch64*-*-netbsd*): New target.
1252 * config/aarch64/aarch64-netbsd.h: New file.
1253 * config/aarch64/t-aarch64-netbsd: Likewise.
1255 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
1257 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
1258 the access path from base to first VIEW_CONVERT_EXPR or
1261 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
1263 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
1264 access path on BIT_FIELD_REFs.
1266 2019-06-17 Martin Liska <mliska@suse.cz>
1269 * ipa-utils.h (odr_type_p): Remove dead code.
1271 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1273 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
1274 alternative Solaris 11.4 format.
1275 * configure: Regenerate.
1277 2019-06-17 Tom de Vries <tdevries@suse.de>
1279 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
1280 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
1282 (define_insn "call_value_insn"): Rename to ...
1283 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
1285 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
1288 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
1291 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
1292 frame clobbers and schedule block.
1293 (builtin_longjmp): Likewise.
1295 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1297 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
1298 describe how to perform MSPABI compliant 64-bit shift.
1299 * config/msp430/msp430.md (ashldi3): New define_expand.
1300 (ashrdi3): New define_expand.
1301 (lshrdi3): New define_expand.
1303 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1305 * doc/sourcebuild.texi: Document new effective target keyword
1308 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
1310 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
1311 indirect_refs_may_alias_p): Revert accidental commits.
1313 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
1314 at the end of structures.
1316 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
1318 * config/darwin.c (machopic_indirect_call_target): Use renamed
1319 darwin_picsymbol_stubs to decide on output.
1320 (darwin_override_options): Handle darwin_picsymbol_stubs.
1321 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
1322 (LD64_VERSION): Revise default.
1323 * config/darwin.opt: (mpic-symbol-stubs): New option.
1324 (darwin_picsymbol_stubs): New variable.
1325 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
1326 rename to TARGET_MACHO_PICSYM_STUBS.
1327 * config/i386/i386.c (output_pic_addr_const): Likewise.
1328 * config/i386/i386.h Likewise.
1329 * config/rs6000/darwin.h: Likewise.
1330 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
1331 darwin_picsymbol_stubs.
1333 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
1335 * config/darwin.opt (prebind, noprebind, seglinkedit,
1336 noseglinkedit): Add RejectNegative.
1338 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
1340 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
1341 in my previous patch.
1343 2019-06-16 Tom de Vries <tdevries@suse.de>
1345 PR tree-optimization/89376
1346 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
1348 2019-06-15 Maya Rashish <coypu@sdf.org>
1350 * doc/invoke.texi (Spec Files): Update location of the
1353 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
1355 * doc/extend.texi (Common Function Attributes): Clarify
1356 no_sanitize. Fix grammar.
1358 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
1360 * tree-ssa-alias.c (alias_stats): Add
1361 nonoverlapping_component_refs_p_may_alias,
1362 nonoverlapping_component_refs_p_no_alias,
1363 nonoverlapping_component_refs_of_decl_p_may_alias,
1364 nonoverlapping_component_refs_of_decl_p_no_alias.
1365 (dump_alias_stats): Dump them.
1366 (nonoverlapping_component_refs_of_decl_p): Add stats.
1367 (nonoverlapping_component_refs_p): Add stats; do not stop on first
1370 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
1372 * config/i386/i386.md (and<mode>3): Generate zero-extends for
1373 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
1375 (*anddi3_doubleword): Split before reload. Merge with
1376 anddi->zext pre-reload splitter.
1377 (*andndi3_doubleword): Split before reload.
1378 (*<code>di3_doubleword): Ditto.
1379 (*one_cmpldi2_doubleword): Ditto.
1381 2019-06-15 Jakub Jelinek <jakub@redhat.com>
1384 * gimplify.c: Include omp-offload.h and context.h.
1385 (gimplify_bind_expr): Add "omp declare target" attributes
1386 to static block scope variables inside of target region or target
1389 2019-06-15 Tom de Vries <tdevries@suse.de>
1391 PR tree-optimization/90009
1392 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
1393 Return NULL if bb contains IFN_UNIQUE.
1395 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
1397 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
1398 (un): New define_mode_attr.
1399 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
1400 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
1401 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
1403 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
1405 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
1407 * config/darwin.opt: Add RejectNegative where needed, reorder
1408 and add minimal functional descriptions.
1410 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
1412 PR rtl-optimization/90765
1413 * calls.c (update_stack_alignment_for_call): New function.
1414 (expand_call): Call update_stack_alignment_for_call when
1415 outgoing parameter is passed in the stack.
1416 (emit_library_call_value_1): Likewise.
1417 * function.c (locate_and_pad_parm): Don't update
1418 stack_alignment_needed and preferred_stack_boundary.
1420 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
1423 * config/i386/i386-features.c
1424 (dimode_scalar_chain::compute_convert_gain): Replace
1425 mmxsse_to_integer with sse_to_integer.
1426 * config/i386/i386.c (ix86_register_move_cost): Verify that
1427 moves between MMX and non-MMX units require secondary memory.
1428 Correct costs of moves between SSE and integer units.
1429 * config/i386/i386.h (processor_costs): Rename cost of moving
1430 SSE register to integer to sse_to_integer. Rename cost of
1432 2019-06-14 Matt Thomas <matt@3am-software.com>
1433 Matthew Green <mrg@eterna.com.au>
1434 Nick Hudson <skrll@netbsd.org>
1435 Maya Rashish <coypu@sdf.org>
1436 Richard Earnshaw <rearnsha@arm.com>
1438 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
1439 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
1440 * config/arm/netbsd-eabi.h: New file.
1441 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
1443 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
1444 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
1445 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
1446 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
1448 2019-06-14 Richard Biener <rguenther@suse.de>
1450 * tree-loop-distribution.c (classify_partition): Return
1451 whether a reduction appeared in all partitions and do not
1452 stop builtin detection because of this.
1453 (distribute_loop): Sort a non-builtin partition last if
1454 there's a reduction in all partitions and make sure the
1455 partition prevailing as last is not a builtin.
1457 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
1460 * ipa-prop.c (add_to_agg_contents_list): New function.
1461 (clobber_by_agg_contents_list_p): Likewise.
1462 (extract_mem_content): Likewise.
1463 (get_place_in_agg_contents_list): Delete.
1464 (determine_known_aggregate_parts): Renamed from
1465 determine_locally_known_aggregate_parts. New parameter
1468 2019-06-13 Martin Sebor <msebor@redhat.com>
1470 PR tree-optimization/90662
1471 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
1474 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
1477 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
1478 dbase is not TARGET_MEM_REF.
1480 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
1482 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
1484 (and<mode>3): Use gen_extend_insn instead of indirect functions.
1485 Do not generate DImode extends for 32bit targets.
1486 (and->zext post-reload splitter): Use gen_extend_insn
1487 instead of indirect functions.
1488 (anddi->zext pre-reload splitter): New.
1489 (*zext<mode>_doubleword_and): Remove.
1490 (*zext<mode>_doubleword): Ditto.
1491 (*zextsi_doubleword): Dittto.
1493 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
1495 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
1496 Use gen_sub3_insn instead of indirect function.
1497 (ix86_expand_ashl_const): Use gen_add2_insn instead of
1499 (ix86_adjust_counter): Ditto.
1501 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
1502 Lijia He <helijia@linux.ibm.com>
1504 PR tree-optimization/77820
1505 * tree-ssa-threadedge.c
1506 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
1508 (thread_across_edge): Add call to
1509 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
1511 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
1513 * config/darwin-driver.c (validate_macosx_version_min): New.
1514 (darwin_default_min_version): Cleanup and validate supplied version.
1515 (darwin_driver_init): Likewise and push cleaned version into opts.
1517 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
1519 PR tree-optimization/90869
1520 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
1521 converts in MEM_REF referencing decl rather than view converts
1522 from decl type to MEM_REF type.
1524 2019-06-13 Richard Biener <rguenther@suse.de>
1526 PR tree-optimization/90856
1527 * tree-sra.c (build_ref_for_model): Only use
1528 build_reconstructed_reference when address-spaces are the same.
1530 2019-06-13 Jakub Jelinek <jakub@redhat.com>
1532 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
1533 wrap ei variable name in the declaration in ()s.
1534 (nvptx_single): Actually use mode_label variable. Formatting fix.
1536 2019-06-13 Richard Biener <rguenther@suse.de>
1538 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
1539 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
1540 also return the condition stmt.
1541 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
1542 loop we can version and version that, reusing the loop version
1543 created by if-conversion instead of versioning again.
1545 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
1547 * gimple-loop-versioning.cc (prune_loop_conditions): Use
1549 * tree-vrp (value_range_base::may_contain_p): Call into
1551 (value_inside_range): Make private inside value_range_base class.
1552 Take min/max from *this.
1553 (range_includes_p): Remove.
1554 * tree-vrp.h (value_range_base): Add value_inside_range.
1555 (range_includes_p): Remove.
1556 (range_includes_zero_p): Call may_contain_p.
1557 * vr-values.c (compare_range_with_value): Same.
1559 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
1561 * doc/extend.texi (ARC Function Attributes): Update info.
1563 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
1565 PR tree-optimization/89713
1566 * doc/invoke.texi (-ffinite-loops): Document new option.
1567 * common.opt (-ffinite-loops): New option.
1568 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
1569 IFN_GOACC_LOOP calls as necessary.
1570 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
1572 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
1573 IFN_GOACC_LOOP call is not used.
1574 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
1576 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1579 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
1580 compare_type is not with Pmode size, we will create an IV with
1581 Pmode size with truncated use (i.e. converted to the correct type).
1582 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
1583 (vect_iv_limit_for_full_masking): New. Factored out of
1584 vect_set_loop_condition_masked.
1585 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
1586 (vect_iv_limit_for_full_masking): Declare.
1588 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1591 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
1592 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
1593 (get_alias_ptr_type_for_ptr_address): Likewise.
1594 (add_iv_candidate_for_use): Add scaled index candidate if useful.
1595 * tree-ssa-address.c (preferred_mem_scale_factor): New.
1596 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
1599 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1601 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
1603 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
1605 * common/config/pru/pru-common.c: New file.
1606 * config.gcc: Add PRU target.
1607 * config/pru/alu-zext.md: New file.
1608 * config/pru/constraints.md: New file.
1609 * config/pru/predicates.md: New file.
1610 * config/pru/pru-opts.h: New file.
1611 * config/pru/pru-passes.c: New file.
1612 * config/pru/pru-pragma.c: New file.
1613 * config/pru/pru-protos.h: New file.
1614 * config/pru/pru.c: New file.
1615 * config/pru/pru.h: New file.
1616 * config/pru/pru.md: New file.
1617 * config/pru/pru.opt: New file.
1618 * config/pru/t-pru: New file.
1619 * doc/extend.texi: Document PRU pragmas.
1620 * doc/invoke.texi: Document PRU-specific options.
1621 * doc/md.texi: Document PRU asm constraints.
1623 2019-06-12 Martin Sebor <msebor@redhat.com>
1626 * tree-pretty-print.c (dump_mem_ref): New function. Include
1627 MEM_REF type in output when different size than operand.
1628 (dump_generic_node): Move code to dump_mem_ref and call it.
1630 2019-06-12 Martin Sebor <msebor@redhat.com>
1632 PR tree-optimization/90662
1633 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
1636 2019-06-12 Tom de Vries <tdevries@suse.de>
1638 PR tree-optimization/90009
1639 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
1641 2019-06-12 Martin Liska <mliska@suse.cz>
1643 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
1645 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
1646 * mem-stats.h (mem_alloc_description::mem_alloc_description):
1647 Do not sanitize created maps.
1649 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
1651 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
1652 value_range::singleton_p.
1653 * tree-vrp.c (value_range_constant_singleton): Remove.
1654 * tree-vrp.h (value_range_constant_singleton): Remove.
1655 * vr-values.c (vr_values::singleton): Use
1656 value_range::singleton_p.
1658 2019-06-12 Jakub Jelinek <jakub@redhat.com>
1661 * cfgexpand.c (align_local_variable): Add really_expand argument,
1662 don't SET_DECL_ALIGN if it is false.
1663 (add_stack_var): Add really_expand argument, pass it through to
1664 align_local_variable.
1665 (expand_one_stack_var_1): Pass true as really_expand to
1666 align_local_variable.
1667 (expand_one_ssa_partition): Pass true as really_expand to
1669 (expand_one_var): Pass really_expand through to add_stack_var.
1671 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1673 * config/arm/iterators.md (VABAL): New int iterator.
1674 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
1675 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S, UNSPEC_VABAL_U
1678 2019-06-12 Martin Liska <mliska@suse.cz>
1680 * value-prof.c (stream_out_histogram_value): Only first value
1683 2019-06-12 Jakub Jelinek <jakub@redhat.com>
1686 * symtab.c (symtab_node::set_section): Allow being called on aliases
1687 as long as they aren't analyzed yet.
1689 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
1691 * config/mips/mips.c (mips_final_postscan_insn): Modify call
1692 to `mips_set_text_contents_type' to indicate whether a
1693 non-debug insn follows.
1695 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
1697 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
1698 enabling -mpcrel by default.
1699 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
1700 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
1701 that the test against -mcpu=future is done first. Then test if
1702 -mprefixed-addr is on for -mpcrel.
1703 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
1705 2019-06-11 Jakub Jelinek <jakub@redhat.com>
1708 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
1711 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
1713 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
1715 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
1717 PR c++/90449 - add -Winaccessible-base option.
1718 * doc/invoke.texi (Winaccessible-base): Document.
1720 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
1722 PR tree-optimization/62041
1723 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
1725 2019-06-11 Jason Merrill <jason@redhat.com>
1727 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
1728 * tree.c (get_tree_code_name): Likewise.
1729 * print-tree.c (print_node): Only briefly print a node with an
1732 2019-06-11 Jakub Jelinek <jakub@redhat.com>
1735 * trans-mem.c (tm_memopt_compute_available): Add assertion
1736 that blocks is not empty. Formatting fix.
1738 2019-06-11 Martin Liska <mliska@suse.cz>
1741 * hash-table.h: Extend create_gcc, add one parameter
1742 that is passed into hash_table::hash_table.
1744 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
1746 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
1748 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
1749 Emit clobber also for non-sse operations.
1750 (ix86_split_fp_absneg_operator): New function.
1751 * config/i386/i386.md (SSEMODEF): New mode iterator.
1752 (ssevecmodef): New mode attribute.
1753 (<code>tf2): Use absneg code iterator.
1754 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
1755 Add three-operand AVX alternatives.
1756 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
1757 Use absneg code iterator and X87MODEF mode iterator.
1758 (absneg fp_reg non-sse splitter): Call absneg code iterator
1759 and X87MODEF mode iterator.
1760 (absneg general_reg non-sse splitter): Use absneg code iterator
1761 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
1762 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
1763 code iterator. Add three-operand AVX alternative.
1764 (absneg sse_reg splitter): Use absneg code iterator
1765 and SSEMODEF mode iterator. Handle AVX operands.
1766 (absneg fp_reg splitter): Use absneg code iterator
1767 and MODEF mode iterator.
1768 (absneg general_reg splitter): Merge splitters using MODEF mode
1769 iterator. Use absneg code iterator. Call
1770 ix86_split_fp_absneg_operator.
1771 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
1772 Do not enable for non-sse modes before reload.
1775 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
1776 ssevecmodef mode attribute instaed of CSGNVMODE.
1777 (copysign<mode>3_const): Ditto.
1778 (copysign<mode>3_var): Ditto.
1779 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
1780 Use absneg code iterator. Simplify code using std::swap.
1781 * config/i386/predicates.md (absneg_operator): Remove.
1783 2019-06-10 Martin Sebor <msebor@redhat.com>
1785 * gimple-fold.c (get_range_strlen): Update comment that didn't
1786 make it into r267503 or related commits.
1788 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
1790 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
1791 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
1793 2019-06-10 Jakub Jelinek <jakub@redhat.com>
1795 * tree.def (OMP_SCAN): New tree code.
1796 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
1797 OMP_CLAUSE_EXCLUSIVE.
1798 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
1799 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
1800 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
1801 OMP_CLAUSE_{IN,EX}CLUSIVE.
1802 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
1803 * tree-nested.c (convert_nonlocal_reference_stmt,
1804 convert_local_reference_stmt, convert_gimple_call): Handle
1806 * tree-pretty-print.c (dump_omp_clause): Handle
1807 OMP_CLAUSE_{IN,EX}CLUSIVE.
1808 (dump_generic_node): Handle OMP_SCAN.
1809 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
1810 * gimple.h (gomp_scan): New type.
1811 (is_a_helper <gomp_scan *>::test,
1812 is_a_helper <const gomp_scan *>::test): New templates.
1813 (gimple_build_omp_scan): Declare.
1814 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
1815 gimple_omp_scan_set_clauses): New inline functions.
1816 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
1817 * gimple.c (gimple_build_omp_scan): New function.
1818 (gimple_copy): Handle GIMPLE_OMP_SCAN.
1819 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
1820 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
1821 GIMPLE_OMP_TASKGROUP.
1822 (dump_gimple_omp_scan): New function.
1823 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
1824 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
1825 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
1826 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
1827 (is_gimple_stmt): Handle OMP_SCAN.
1828 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
1829 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
1830 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
1831 mentioned in nested #pragma omp scan. Handle
1832 OMP_CLAUSE_{IN,EX}CLUSIVE.
1833 (gimplify_expr): Handle OMP_SCAN.
1834 * omp-low.c (check_omp_nesting_restrictions): For parent context,
1835 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
1837 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
1840 2019-06-10 Martin Liska <mliska@suse.cz>
1842 * ipa-cp.c (ignore_edge_p): New function.
1843 (build_toporder_info): Use it.
1844 * ipa-inline.c (ignore_edge_p): New function.
1845 (inline_small_functions): Use it.
1846 * ipa-pure-const.c (ignore_edge_for_nothrow):
1847 Verify opt_for_fn for caller and callee.
1848 (ignore_edge_for_pure_const): Likewise.
1849 * ipa-reference.c (ignore_edge_p): Extend to check
1851 * ipa-utils.c (searchc): Refactor.
1852 * ipa-utils.h: Fix coding style.
1854 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
1856 * config/arc/arc.c (arc_rtx_costs): Update costs.
1858 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
1860 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
1861 (arc_split_ior): Likewise.
1862 (arc_check_mov_const): Likewise.
1863 (arc_split_mov_const): Likewise.
1864 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
1865 (arc_rtx_costs): Replace check Crr with Cax constraint.
1866 (prepare_move_operands): Cleanup, remove unused code.
1867 (arc_split_ior): New function.
1868 (arc_check_ior_const): Likewise.
1869 (arc_split_mov_const): Likewise.
1870 (arc_check_mov_const): Likewise.
1871 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
1872 in define_insn_and_split pattern.
1874 (mulsi3_v2): Add new matching variant.
1875 (andsi3_i): Cleanup pattern.
1876 (rotrsi3_cnt1): Update pattern.
1877 (rotrsi3_cnt8): New pattern.
1878 (ashlsi2_cnt8): Likewise.
1879 (ashlsi2_cnt16): Likewise.
1880 * config/arc/constraints.md (C0p): Update constraint.
1885 2019-06-10 Martin Liska <mliska@suse.cz>
1887 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
1888 Update coding style.
1889 (sem_item_optimizer::dump_cong_classes):
1890 Print how many items are in a non-singular class. Improve
1893 2019-06-10 Martin Liska <mliska@suse.cz>
1895 * value-prof.c (dump_histogram_value): Change dump format.
1896 (gimple_mod_subtract_transform): Remove legacy comment.
1898 2019-06-10 Martin Liska <mliska@suse.cz>
1900 * value-prof.c (dump_histogram_value): Print histogram values
1903 2019-06-10 Martin Liska <mliska@suse.cz>
1905 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
1906 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
1907 * ipa-profile.c (ipa_profile_generate_summary):
1908 Use get_most_common_single_value.
1909 * tree-profile.c (gimple_init_gcov_profiler):
1910 Instrument with __gcov_one_value_profiler_v2
1911 and __gcov_indirect_call_profiler_v4.
1912 * value-prof.c (dump_histogram_value):
1913 Print all values for HIST_TYPE_SINGLE_VALUE.
1914 (stream_out_histogram_value): Update assert for
1916 (stream_in_histogram_value): Set number of
1917 counters for HIST_TYPE_SINGLE_VALUE.
1918 (get_most_common_single_value): New.
1919 (gimple_divmod_fixed_value_transform):
1920 Use get_most_common_single_value.
1921 (gimple_ic_transform): Likewise.
1922 (gimple_stringops_transform): Likewise.
1923 (gimple_find_values_to_profile): Set number
1924 of counters for HIST_TYPE_SINGLE_VALUE.
1925 * value-prof.h (get_most_common_single_value):
1928 2019-06-10 Martin Liska <mliska@suse.cz>
1930 * hash-map.h: Pass default value to hash_table ctor.
1931 * hash-table.h: Add default value to call of a ctor.
1933 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
1935 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
1936 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
1938 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
1941 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
1942 Call pa_output_function_label.
1943 (TARGET_ASM_FUNCTION_PROLOGUE): define.
1944 * config/pa/pa-protos.h (pa_output_function_label): Declare.
1945 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
1947 (pa_linux_output_function_prologue): Declare.
1948 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
1949 (pa_output_function_label): New.
1950 (pa_output_function_prologue): Revise to use pa_output_function_label.
1951 (pa_linux_output_function_prologue): New.
1952 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
1954 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
1956 * tree-vrp.h (value_range_base::intersect): New.
1957 (value_range::intersect_helper): Move from here...
1958 (value_range_base::intersect_helper): ...to here.
1959 * tree-vrp.c (value_range::intersect_helper): Rename to...
1960 (value_range_base::intersect_helper): ...this, and rewrite to
1961 return a value instead of modifying THIS in place.
1962 Also, move equivalence handling...
1963 (value_range::intersect): ...here, while calling intersect_helper.
1964 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
1966 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
1968 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
1970 2019-06-07 Jakub Jelinek <jakub@redhat.com>
1972 * Makefile.in (genprogerr): Add condmd.
1973 (genprog): Remove it here.
1975 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
1977 * doc/invoke.texi (AMD GCN Options): Add gfx906.
1979 2019-06-07 Richard Biener <rguenther@suse.de>
1982 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
1983 that appear after user labels.
1985 2019-06-07 Martin Liska <mliska@suse.cz>
1987 * cselib.c (cselib_init): Disable hash table
1989 * hash-set.h: Pass new default argument to m_table.
1990 * hash-table.c: Add global variable with hash table
1992 * hash-table.h (Allocator>::hash_table): Add new argument
1994 (hashtab_chk_error): New.
1995 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
1996 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
1997 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
1999 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
2001 * common.opt (flto-odr-type-merging): Ignore.
2002 * invoke.texi (-flto-odr-type-merging): Remove.
2003 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
2004 (can_be_vtable_hashed_p): Remove.
2005 (hash_odr_vtable): Remove.
2006 (odr_vtable_hasher::hash): Remove.
2007 (types_same_for_odr): Remove.
2008 (types_odr_comparable): Remove.
2009 (odr_vtable_hasher::equal): Remove.
2010 (odr_vtable_hash_type, odr_vtable_hash): Remove.
2011 (add_type_duplicate): Do not synchronize vtable and name hashtables.
2012 (get_odr_type): Do not use vtable hash.
2013 (dump_odr_type): Remove commented out code.
2014 (build_type_inheritance_graph): Do not allocate vtable hash.
2015 (rebuild_type_inheritance_graph): Do not delete vtable hash.
2016 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
2017 (odr_type_p): Likewise.
2018 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
2021 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
2023 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
2024 immediately after same_types_for_tbaa_p returns -1 and continue
2025 looking for possible exact match; if matching types are arrays
2026 watch for partial overlaps.
2027 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
2028 (indirect_refs_may_alias_p): Do type based disambiguation first;
2031 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
2033 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
2035 2019-06-07 Martin Liska <mliska@suse.cz>
2037 * doc/invoke.texi: Remove param.
2038 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
2040 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
2041 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
2042 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
2043 * profile.c (instrument_values): Remove
2044 HIST_TYPE_INDIR_CALL_TOPN.
2045 * tree-profile.c (init_ic_make_global_vars):
2046 Always build __gcov_indirect_call only.
2047 (gimple_init_gcov_profiler): Remove usage
2048 of PARAM_INDIR_CALL_TOPN_PROFILE.
2049 (gimple_gen_ic_profiler): Likewise.
2050 * value-prof.c (dump_histogram_value): Likewise.
2051 (stream_in_histogram_value): Likewise.
2052 (gimple_indirect_call_to_profile): Likewise.
2053 (gimple_find_values_to_profile): Likewise.
2054 * value-prof.h (enum hist_type): Likewise.
2056 2019-06-07 Martin Liska <mliska@suse.cz>
2058 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
2061 2019-06-07 Martin Liska <mliska@suse.cz>
2063 PR tree-optimization/78902
2064 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
2065 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
2066 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
2067 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
2068 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
2069 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
2070 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
2071 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
2072 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
2073 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
2074 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
2075 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
2076 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
2078 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
2079 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
2080 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
2081 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
2082 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
2083 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
2084 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
2085 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
2086 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
2087 warn_unused_result attribute.
2088 (BUILT_IN_STRDUP): Likewise.
2089 (BUILT_IN_STRNDUP): Likewise.
2090 (BUILT_IN_ALLOCA): Likewise.
2091 (BUILT_IN_CALLOC): Likewise.
2092 (BUILT_IN_MALLOC): Likewise.
2093 (BUILT_IN_REALLOC): Likewise.
2095 2019-06-06 Jim Wilson <jimw@sifive.com>
2098 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
2099 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
2100 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
2102 2019-06-06 Martin Sebor <msebor@redhat.com>
2104 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
2105 (handle_builtin_malloc): Remove trailing spaces.
2106 (handle_builtin_memset): Same.
2107 (handle_builtin_memcmp): Same.
2108 (compute_string_length): Same.
2109 (determine_min_objsize): Same.
2110 (handle_builtin_string_cmp): Same.
2111 (handle_char_store): Same. Break up excessively long line.
2113 2019-06-06 Martin Jambor <mjambor@suse.cz>
2115 * tree-sra.c (build_reconstructed_reference): Drop the alignment
2118 2019-06-06 Martin Jambor <mjambor@suse.cz>
2120 * tree-sra.c (struct access): New field grp_same_access_path.
2121 (dump_access): Dump it.
2122 (build_reconstructed_reference): New function.
2123 (build_ref_for_model): Use it if possible.
2124 (path_comparable_for_same_access): New function.
2125 (same_access_path_p): Likewise.
2126 (sort_and_splice_var_accesses): Set the new flag.
2127 (analyze_access_subtree): Likewise.
2128 (propagate_subaccesses_across_link): Propagate zero value of the new
2129 flag down the access tree.
2131 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
2133 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
2134 * config/gcn/gcn.opt (gpu_type): Add gfx906.
2135 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
2136 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
2139 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2141 PR tree-optimization/90332
2142 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
2143 Handle VALS containing two vectors.
2144 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
2146 (@aarch64_combinez<mode>): ... This.
2147 (*aarch64_combinez_be<mode>): Rename to...
2148 (@aarch64_combinez_be<mode>): ... This.
2149 (vec_init<mode><Vhalf>): New define_expand.
2150 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
2152 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2154 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
2155 library functions only when not optimizing for size.
2156 (ashlsi3): Likewise.
2157 (ashrhi3): Likewise.
2158 (ashrsi3): Likewise.
2159 (lshrhi3): Likewise.
2160 (lshrsi3): Likewise.
2162 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
2164 PR rtl-optimization/88751
2165 * ira.c (ira): Use the number of the actually referenced registers
2166 when calculating the threshold.
2168 2019-06-06 Jakub Jelinek <jakub@redhat.com>
2170 * configure: Regenerate.
2172 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2174 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
2175 register if it is in memory, so the shift can be emulated with a rotate
2177 (ashrhi3): Likewise.
2178 (lshrhi3): Likewise.
2180 2019-06-06 Martin Liska <mliska@suse.cz>
2182 PR tree-optimization/87954
2183 * match.pd: Simplify mult where both arguments are 0 or 1.
2185 2019-06-06 Richard Biener <rguenther@suse.de>
2187 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
2188 put equivalences on UNDEFINED ranges.
2189 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
2190 Make sure to drop defs of stmts added during simplification
2193 2019-06-06 Richard Biener <rguenther@suse.de>
2195 * tree-ssa-structalias.c: Include tree-cfg.h.
2196 (make_heapvar): Do not make heap vars artificial.
2197 (find_func_aliases_for_builtin_call): Handle stack allocation
2199 (find_func_aliases): Delay processing of simple enough returns
2201 (set_uids_in_ptset): Adjust.
2202 (find_what_var_points_to): Likewise.
2203 (solve_constraints): Do not dump points-to sets here.
2204 (compute_points_to_sets): Post-process return statements,
2205 amending the escaped solution. Dump points-to sets afterwards.
2206 (ipa_pta_execute): Dump points-to sets.
2208 2019-06-06 Martin Liska <mliska@suse.cz>
2211 * doc/install.texi: Fix HTML headers and
2212 titles for 'Installing GCC' pages.
2214 2019-06-06 Martin Liska <mliska@suse.cz>
2216 * ipa-icf-gimple.h (dump_message_1): Remove.
2217 (dump_message): Likewise.
2218 (return_false_with_message_1): Print also file.
2219 (return_false_with_msg): Likewise.
2220 (return_with_result): Likewise.
2221 (return_with_debug): Likewise.
2222 * ipa-icf.c (sem_function::equals_private): Remove call
2225 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
2227 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
2228 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
2229 memory operand for it.
2230 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
2232 2019-06-05 Martin Sebor <msebor@redhat.com>
2234 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
2235 Adjust quoting and hyphenation.
2236 * convert.c (convert_to_real_1): Same.
2237 * gcc.c (driver_wrong_lang_callback): Same.
2238 (driver::handle_unrecognized_options): Same.
2239 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
2240 * opts-common.c (cmdline_handle_error): Same.
2241 (read_cmdline_option): Same.
2242 * opts-global.c (complain_wrong_lang): Same.
2243 (print_ignored_options): Same.
2244 (handle_common_deferred_options): Same.
2245 * pretty-print.h: Same.
2246 * print-rtl.c (debug_bb_n_slim): Same.
2247 * sched-rgn.c (make_pass_sched_fusion): Same.
2248 * tree-cfg.c (verify_gimple_assign_unary): Same.
2249 (verify_gimple_label): Same.
2250 * tree-ssa-operands.c (verify_ssa_operands): Same.
2251 * varasm.c (do_assemble_alias): Same.
2252 (assemble_alias): Same.
2254 2019-06-05 Richard Henderson <rth@twiddle.net>
2256 * config/alpha/alpha.c (direct_return): Move down after
2257 struct machine_function definition; use saved frame_size;
2259 (struct machine_function): Add sa_mask, sa_size, frame_size.
2260 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
2261 (alpha_compute_frame_layout): ... new function.
2262 (TARGET_COMPUTE_FRAME_LAYOUT): New.
2263 (alpha_initial_elimination_offset): Use saved sa_size.
2264 (alpha_vms_initial_elimination_offset): Likewise.
2265 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
2266 (alpha_expand_prologue): Use saved frame data. Merge integer
2267 and fp register save loops.
2268 (alpha_expand_epilogue): Likewise.
2269 (alpha_start_function): Use saved frame data.
2270 * config/alpha/alpha-protos.h (direct_return): Update.
2271 (alpha_sa_size): Remove.
2273 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
2275 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
2276 multiplication by a power-of-two value.
2277 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
2278 and turn the modulo operation into a masking operation.
2280 2019-06-05 Jakub Jelinek <jakub@redhat.com>
2283 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
2284 with VOIDmode inner operands.
2286 2019-06-05 Richard Biener <rguenther@suse.de>
2289 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
2290 turn an expression graph into a tree.
2292 2019-06-05 Jakub Jelinek <jakub@redhat.com>
2294 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
2296 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
2297 treat it like explicit monotonic schedule modifier.
2298 (expand_omp_for): Initialize has_lastprivate_conditional.
2299 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
2302 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
2303 references, lookup in in hash map MEM_REF operand instead of the
2305 (lower_omp_1): When looking for lastprivate conditional assignments,
2306 handle MEM_REFs with REFERENCE_TYPE operands.
2308 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
2309 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
2310 and references a VLA. Handle references to non-VLAs if is_simd
2311 all privatization clauses like reductions.
2312 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
2313 If omp_is_reference, use always omp simd arrays and set
2314 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
2315 fails, emit reference initialization.
2317 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
2320 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
2321 _mm_mask_fpclass_sd_mask): New intrinsics.
2322 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
2323 * config/i386/i386-builtin.def
2324 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
2326 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
2327 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
2328 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
2329 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
2330 case QI_FTYPE_V2SF_INT): Ditto.
2331 * config/i386/sse.md
2332 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
2333 Extended to insnstructions with mask operands.
2335 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
2337 * config/rs6000/constraints.md (define_register_constraint "wp"):
2339 (define_register_constraint "wq"): Delete.
2340 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
2341 (rs6000_init_hard_regno_mode_ok): Adjust.
2342 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
2343 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
2344 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
2345 (define_mode_attr VSa): Delete.
2346 (define_mode_attr VSisa): New.
2347 (rest of file): Adjust.
2348 * doc/md.texi (Machine Constraints): Adjust.
2350 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
2352 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
2353 (define_attr "enabled"): Handle those new isa values.
2355 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
2357 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
2358 (define_mode_attr VSr5): Delete.
2359 (define_mode_attr VStype_sqrt): Delete.
2360 (define_mode_iterator VSX_SPDP): Delete.
2361 (define_mode_attr VS_spdp_res): Delete.
2362 (define_mode_attr VS_spdp_insn): Delete.
2363 (define_mode_attr VS_spdp_type): Delete.
2364 (*vsx_sqrt<mode>2): Adjust.
2365 (vsx_<VS_spdp_insn>): Delete, split to...
2366 (vsx_xscvdpsp): ... this. New. And...
2367 (vsx_xvcvspdp): ... this. New. And...
2368 (vsx_xvcvdpsp): ... this. New.
2370 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
2372 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
2374 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
2375 (rest of file): Adjust.
2377 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
2379 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
2380 (vsx_extract_<mode>_var): Ditto.
2382 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
2384 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
2387 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
2389 * config/rs6000/constraints.md (define_register_constraint "ww"):
2391 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
2392 (rs6000_init_hard_regno_mode_ok): Adjust.
2393 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
2394 RS6000_CONSTRAINT_ww.
2395 * config/rs6000/rs6000.md: Adjust.
2396 * config/rs6000/vsx.md: Adjust.
2397 * doc/md.texi (Machine Constraints): Adjust.
2399 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
2401 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
2402 (define_mode_attr sd): New.
2403 (define_mode_attr s): New.
2404 (define_mode_attr Ftrad): Delete.
2405 (define_mode_attr Fvsx): Delete.
2406 (define_mode_attr Fs): Delete.
2407 (rest of file): Use the new mode attributes.
2408 * config.rs6000/vsx.md: Use the new mode attributes.
2410 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
2412 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
2415 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
2417 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
2418 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
2419 used with VSX_B, VSX_D, or VSX_F, with just "wa".
2421 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
2424 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
2425 C++ with strict ANSI requirements.
2427 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
2429 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
2430 computations when step is 1.
2432 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
2434 * config/rs6000/constraints.md (define_register_constraint "wf"):
2436 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
2437 (rs6000_init_hard_regno_mode_ok): Adjust.
2438 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
2439 RS6000_CONSTRAINT_wf.
2440 * config/rs6000/rs6000.md: Adjust.
2441 * config/rs6000/vsx.md: Adjust.
2442 * doc/md.texi (Machine Constraints): Adjust.
2444 2019-06-04 Andrew Pinski <apinski@marvell.com>
2446 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
2449 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
2451 * config/rs6000/constraints.md (define_register_constraint "wd"):
2453 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
2454 (rs6000_init_hard_regno_mode_ok): Adjust.
2455 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
2456 RS6000_CONSTRAINT_wd.
2457 * config/rs6000/rs6000.md: Adjust.
2458 * config/rs6000/vsx.md: Adjust.
2459 * doc/md.texi (Machine Constraints): Adjust.
2461 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
2463 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
2464 (rest of file): Adjust.
2466 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
2468 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
2469 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
2470 (vsx_splat_<mode>_reg): Adjust.
2472 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
2474 * config/rs6000/constraints.md (define_register_constraint "ws"):
2476 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
2477 (rs6000_init_hard_regno_mode_ok): Adjust.
2478 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
2479 RS6000_CONSTRAINT_ws.
2480 * config/rs6000/rs6000.md: Adjust.
2481 * config/rs6000/vsx.md: Adjust.
2482 * doc/md.texi (Machine Constraints): Adjust.
2484 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
2486 * config/rs6000/constraints.md (define_register_constraint "wv"):
2488 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
2489 (rs6000_init_hard_regno_mode_ok): Adjust.
2490 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
2491 RS6000_CONSTRAINT_wv.
2492 * config/rs6000/rs6000.md: Adjust.
2493 * config/rs6000/vsx.md: Adjust.
2494 * doc/md.texi (Machine Constraints): Adjust.
2496 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
2498 * config/rs6000/constraints.md (define_register_constraint "wi"):
2500 (define_register_constraint "wt"): Delete.
2501 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
2502 (rs6000_init_hard_regno_mode_ok): Adjust.
2503 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
2504 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
2505 * config/rs6000/rs6000.md: Adjust.
2506 * config/rs6000/vsx.md: Adjust.
2507 * doc/md.texi (Machine Constraints): Adjust.
2509 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
2511 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
2513 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
2514 default_elf_asm_output_external.
2516 2019-06-04 Martin Liska <mliska@suse.cz>
2518 * ipa-icf.c (INCLUDE_LIST): Remove.
2519 (sem_item_optimizer::execute): Remove call to init_wpa.
2520 * ipa-icf.h (init_wpa): Remove.
2522 2019-06-04 Jakub Jelinek <jakub@redhat.com>
2524 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
2525 conditional on combined for simd.
2526 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
2528 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
2529 constructs, don't remove lastprivate_conditional_map, but instead set
2530 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
2531 to parent construct temporaries.
2532 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
2533 like !ctx->lastprivate_conditional_map.
2534 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
2535 use up->outer context instead of up.
2536 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
2537 gimple_omp_for_combined_p.
2538 (expand_omp_for_static_nochunk): Likewise.
2539 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
2540 probably moved over into expand_omp_for_generic rather than being copied
2543 2019-06-04 Martin Liska <mliska@suse.cz>
2545 * value-prof.c (dump_histogram_value): Fix typo.
2546 (gimple_mod_subtract_transform): Likewise.
2548 2019-06-04 Richard Biener <rguenther@suse.de>
2551 * tree-chrec.c (chrec_contains_symbols): Add to visited.
2552 (tree_contains_chrecs): Likewise.
2553 (chrec_contains_symbols_defined_in_loop): Move here and avoid
2554 exponential behaivor from ...
2555 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
2557 (expression_expensive_p): Avoid exponential behavior and compute
2558 expanded size, rejecting any expansion.
2559 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
2560 (idx_contains_abnormal_ssa_name_p): Likewise.
2561 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
2562 (contains_abnormal_ssa_name_p): Simplify and use
2563 walk_tree_without_duplicates.
2565 2019-06-04 Richard Biener <rguenther@suse.de>
2567 PR tree-optimization/90738
2569 2019-06-03 Richard Biener <rguenther@suse.de>
2571 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
2572 full reference tree and record in ref->ref.
2573 (vn_reference_lookup_3): Pass in original ref to
2574 ao_ref_init_from_vn_reference.
2575 (vn_reference_lookup): Likewise.
2576 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
2577 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
2578 Handle non-decl bases in the original reference.
2580 2019-06-04 Martin Liska <mliska@suse.cz>
2582 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
2583 number of references.
2584 (sem_item_optimizer::do_congruence_step):
2585 (sem_item_optimizer::worklist_push): Dump how references
2587 (sem_item_optimizer::worklist_pop): Use heap.
2588 (sem_item_optimizer::process_cong_reduction): Likewise.
2589 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
2591 2019-06-04 Martin Liska <mliska@suse.cz>
2593 * ipa-icf.h (struct sem_usage_pair_hash): New.
2594 (sem_usage_pair_hash::hash): Likewise.
2595 (sem_usage_pair_hash::equal): Likewise.
2596 (struct sem_usage_hash): Likewise.
2597 * ipa-icf.c (sem_item::sem_item): Initialize
2598 referenced_by_count.
2599 (sem_item::add_reference): Register a reference
2600 in ref_map and not in target->usages.
2601 (sem_item::setup): Remove initialization of
2603 (sem_item::~sem_item): Remove usage of dead vectors.
2604 (sem_item::dump): Remove dump of references.
2605 (sem_item_optimizer::sem_item_optimizer): Initialize
2607 (sem_item_optimizer::read_section): Remove useless
2609 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
2610 (sem_item_optimizer::build_graph): Pass m_references
2612 (sem_item_optimizer::verify_classes): Remove usage of dead
2614 (sem_item_optimizer::traverse_congruence_split): Return true
2615 when a class is split.
2616 (sem_item_optimizer::do_congruence_step_for_index): Use
2617 hash_map for look up of (sem_item *, index). That brings
2618 significant speed up.
2619 (sem_item_optimizer::do_congruence_step): Return true
2620 when a split is done.
2621 (congruence_class::is_class_used): Use referenced_by_count.
2623 2019-06-04 Alan Modra <amodra@gmail.com>
2626 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
2629 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
2631 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
2632 * config/rs6000/rs6000.c (direct_move_p): Adjust.
2633 (rs6000_secondary_reload_simple_move): Adjust.
2634 (rs6000_opt_masks): Neuter the "mfpgpr" option.
2635 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
2636 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
2639 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
2640 (floatunssi<mode>2_lfiwzx): Adjust.
2641 (fix_trunc<mode>si2_stfiwx): Adjust.
2642 (fixuns_trunc<mode>si2_stfiwx): Adjust.
2643 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
2644 (mfpgpr): Mark as deprecated.
2645 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
2646 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
2647 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
2649 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
2651 * config/rs6000/constraints.md (define_register_constraint "wg"):
2653 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
2654 RS6000_CONSTRAINT_wg.
2655 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
2656 (rs6000_init_hard_regno_mode_ok): Adjust.
2657 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
2658 Delete "wg" alternatives.
2659 * doc/md.texi (Machine Constraints): Adjust.
2661 2019-06-03 Alan Modra <amodra@gmail.com>
2663 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
2664 (get_uncond_jump_length): Assert length less than INT_MAX and
2667 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
2670 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
2672 (expand_builtin_nonlocal_goto): Likewise.
2674 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
2676 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
2677 (aarch64_asm_output_external): Declare.
2678 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
2679 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
2680 (aarch64_asm_output_alias): New.
2681 (aarch64_asm_output_external): New.
2682 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
2683 (ASM_OUTPUT_EXTERNAL): Define.
2685 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
2686 * tree-vrp.h (value_range_base::nonzero_p): New.
2687 (value_range_base::set_nonnull): Rename to...
2688 (value_range_base::set_nonzero): ...this.
2689 (value_range_base::set_null): Rename to...
2690 (value_range_base::set_zero): ...this.
2691 (value_range::set_nonnull): Remove.
2692 (value_range::set_null): Remove.
2693 * tree-vrp.c (range_is_null): Remove.
2694 (range_is_nonnull): Remove.
2695 (extract_range_from_binary_expr): Use value_range_base::*zero_p
2696 instead of range_is_*null.
2697 (extract_range_from_unary_expr): Same.
2698 (value_range_base::set_nonnull): Rename to...
2699 (value_range_base::set_nonzero): ...this.
2700 (value_range::set_nonnull): Remove.
2701 (value_range_base::set_null): Rename to...
2702 (value_range_base::set_zero): ...this.
2703 (value_range::set_null): Remove.
2704 (extract_range_from_binary_expr): Rename set_*null uses to
2706 (extract_range_from_unary_expr): Same.
2707 (union_helper): Same.
2708 * vr-values.c (get_value_range): Use set_*zero instead of
2710 (vr_values::extract_range_from_binary_expr): Same.
2711 (vr_values::extract_range_basic): Same.
2713 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
2716 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
2718 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2720 * config/aarch64/iterators.md (MAX_OPP): New code attr.
2721 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Rename to...
2722 (aarch64_<su>abd<mode>_3): ... This.
2723 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
2725 2019-06-03 Richard Biener <rguenther@suse.de>
2727 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
2728 full reference tree and record in ref->ref.
2729 (vn_reference_lookup_3): Pass in original ref to
2730 ao_ref_init_from_vn_reference.
2731 (vn_reference_lookup): Likewise.
2732 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
2733 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
2734 Handle non-decl bases in the original reference.
2736 2019-06-03 Martin Liska <mliska@suse.cz>
2738 * doc/generic.texi: Remove Java Trees.
2740 2019-06-03 Martin Liska <mliska@suse.cz>
2742 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
2743 returns 0 when operands are equal.
2745 2019-06-03 Richard Biener <rguenther@suse.de>
2747 PR tree-optimization/90716
2748 * tree-loop-distribution.c (destroy_loop): Process blocks in
2751 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2754 * vector-builder.h (vector_builder::count_dups): New method.
2755 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
2757 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
2758 (vec_init<mode><Vel>): New pattern.
2759 * config/aarch64/aarch64.c (emit_insr): New function.
2760 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
2761 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
2762 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
2763 (aarch64_sve_expand_vector_init): Define two overloaded functions.
2765 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
2767 PR tree-optimization/90681
2768 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
2769 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
2770 special case for SLP, but fail on non-groupped loads.
2772 2019-06-03 Martin Liska <mliska@suse.cz>
2774 * cfg.c (debug): Use TDF_DETAILS for debug and
2775 print edge info only once.
2777 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
2780 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
2782 2019-06-01 Martin Sebor <msebor@redhat.com>
2785 * tree-pretty-print.c (dump_generic_node): Add parentheses.
2787 2019-05-31 Jan Hubicka <jh@suse.cz>
2789 * alias.c: Include ipa-utils.h.
2790 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
2791 * ipa-devirt.c (prevailing_odr_type): New.
2792 * ipa-utils.h (previaling_odr_type): Declare.
2794 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
2795 Hongtao Liu <hongtao.liu@intel.com>
2798 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
2799 NOTE_INSN_DELETED_LABEL check.
2801 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
2802 Robert Suchanek <robert.suchanek@mips.com>
2804 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
2805 and 3rd operands of the fmadd/fmsub/maddv builtin.
2807 2019-05-31 Jakub Jelinek <jakub@redhat.com>
2809 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
2810 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
2811 on OMP_SIMD if not nested inside of worksharing loop that also has
2812 lastprivate conditional clause for the same decl.
2813 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
2814 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
2816 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
2818 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
2820 (lower_lastprivate_clauses): Likewise.
2821 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
2822 calling lower_rec_input_clauses.
2823 (lower_omp_for): Likewise.
2824 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
2825 clause on simd construct.
2826 * omp-expand.c (expand_omp_simd): Initialize cond_var if
2827 OMP_CLAUSE__CONDTEMP_ clause is present.
2829 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
2832 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
2835 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
2836 TEX_D32, TEX_D64 or TEX_D128.
2838 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
2840 * match.pd (~(vec?cst1:cst2)): New transformation.
2842 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
2844 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
2845 ((size_t)(A /[ex] B) CMP C): New transformation.
2847 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
2849 * doc/md.texi: Document define_insn_and_rewrite.
2850 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
2851 * gensupport.c (queue_elem): Update comment.
2852 (replace_operands_with_dups): New function.
2853 (gen_rewrite_sequence): Likewise.
2854 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
2855 * read-rtl.c (apply_subst_iterator): Likewise.
2856 (add_condition_to_rtx, named_rtx_p): Likewise.
2857 (rtx_reader::read_rtx_operand): Likewise.
2858 * config/aarch64/aarch64-sve.md
2859 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
2860 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
2861 define_insn_and_rewrite.
2862 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
2863 Remove separate define_split.
2865 2019-05-31 Jan Hubicka <jh@suse.cz>
2867 * tree-ssa-alias.c (type_has_components_p): New function.
2868 (aliasing_component_refs_p): Use it.
2870 2019-05-31 Martin Liska <mliska@suse.cz>
2872 * gdbhooks.py: Add const_tree to TreePrinter.
2874 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
2877 * common.opt (feliminate-unused-debug-symbols): Enable by default.
2878 * doc/invoke.texi (Debugging Options): Document new default of
2879 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
2881 2019-05-31 Jakub Jelinek <jakub@redhat.com>
2883 PR tree-optimization/90671
2884 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
2885 template_block used to be empty on the first call, don't use
2886 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
2887 seq with bb_seq and set it with set_bb_seq.
2889 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
2891 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
2893 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
2894 Michael Meissner <meissner@linux.ibm.com>
2896 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
2897 (prefixed_mem_operand): Likewise.
2898 (non_prefixed_mem_operand): Likewise.
2899 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
2901 * config/rs6000/rs6000.c (print_operand_address): Handle
2902 PC-relative addresses.
2903 (mode_supports_prefixed_address_p): New function.
2904 (rs6000_prefixed_address): New function.
2905 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
2906 (SYMBOL_REF_PCREL_P): Likewise.
2908 2019-05-30 Jakub Jelinek <jakub@redhat.com>
2910 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
2911 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
2912 (gimplify_omp_for): If worksharing loop with lastprivate conditional
2913 is nested inside of parallel region, add _condtemp_ clause to both.
2914 * tree-nested.c (convert_nonlocal_omp_clauses,
2915 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
2917 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
2919 * omp-general.c (omp_extract_for_data): Compute it.
2920 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
2921 (lower_rec_input_clauses): Likewise.
2922 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
2923 clause is already present, just add one further one after it.
2924 (lower_lastprivate_clauses): Handle cond_ptr with array type.
2925 (lower_send_shared_vars): Clear _condtemp_ vars.
2926 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
2927 or section or taskgroup.
2928 * omp-expand.c (determine_parallel_type): Disallow combining only if
2929 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
2930 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
2931 (expand_omp_for_generic, expand_omp_for_static_nochunk,
2932 expand_omp_for_static_chunk, expand_omp_for): Use
2933 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
2934 determine if a special set of API routines are needed and if condtemp
2935 needs to be initialized, while always initialize cond_var if
2936 fd->lastprivate_conditional is non-zero.
2938 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
2939 Michael Meissner <meissner@linux.ibm.com>
2941 * config/rs6000/constraints.md (eI): New constraint.
2942 * config/rs6000/predicates.md (cint34_operand): New predicate.
2943 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
2944 (SIGNED_34BIT_OFFSET_P): Likewise.
2945 * doc/md.texi (eI): Document constraint.
2947 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
2949 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
2951 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
2952 Michael Meissner <meissner@linux.ibm.com>
2954 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
2955 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
2956 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
2957 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
2958 (OTHER_FUTURE_MASKS): Likewise.
2959 (POWERPC_MASKS): Likewise.
2960 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
2961 specified without -mprefixed-addr or -mcpu=future. Error if
2962 -mprefixed-addr is specified without -mcpu=future.
2963 (rs6000_opt_masks): Add entry for prefixed-addr.
2964 * rs6000.opt (mprefixed-addr): New option.
2966 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
2968 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
2969 cfun->is_thunk check.
2971 2019-05-30 Jakub Jelinek <jakub@redhat.com>
2973 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
2976 2019-05-30 Martin Liska <mliska@suse.cz>
2978 * gdbinit.in: Fix 'ptc' command. Add trt
2979 that prints TREE_TYPE($).
2981 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
2982 Alan Modra <amodra@gmail.com>
2984 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
2986 (rs6000_indirect_call_template_1): ...and here.
2987 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
2988 plt16_ha, plt16_lo, mtctr indirect calls. Use
2990 (rs6000_decl_ok_for_sibcall): New function.
2991 (rs6000_function_ok_for_sibcall): Refactor.
2992 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
2993 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
2994 when pcrel. Reorganize.
2995 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
2996 * rs6000.h (rs6000_pltseq_enum): New enum.
2997 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
2998 (*pltseq_tocsave): Use rs6000_pltseq_enum.
2999 (*pltseq_plt16_ha): Likewise.
3000 (*pltseq_plt16_lo): Likewise.
3001 (*pltseq_mtctr): Likewise.
3002 (*pltseq_plt_pcrel): New insn.
3003 (*call_local_aix): Handle @notoc calls.
3004 (*call_value_local_aix): Likewise.
3005 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
3006 (*call_value_nonlocal_aix): Likewise.
3007 (*call_indirect_pcrel): New insn.
3008 (*call_value_indirect_pcrel): Likewise.
3011 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
3013 * config/i386/sse.md (*save_multiple<mode>): Rename from
3014 save_multiple<mode>.
3015 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
3016 (*restore_multiple_and_return<mode>): Rename from
3017 restore_multiple_and_return<mode>.
3018 (*restore_multiple_leave_return<mode>): Rename from
3019 restore_multiple_leave_return<mode>.
3021 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
3023 * config.gcc (rx-*-linux*): New target.
3024 * config/rx/elf.opt: New file.
3025 * config/rx/linux.h: Likewise.
3026 * config/rx/t-linux: Likewise.
3027 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
3029 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
3030 (ASM_APP_OFF): Likewise.
3031 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
3034 2019-05-29 Jan Hubicka <jh@suse.cz>
3036 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
3037 variants are pointer equivalent.
3039 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
3041 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
3042 * config/aarch64/aarch64-sve2.md: New file.
3043 (<u>avg<mode>3_floor): New pattern.
3044 (<u>avg<mode>3_ceil): Likewise.
3045 (*<sur>h<addsub><mode>): Likewise.
3046 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
3047 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
3049 2019-05-29 Jakub Jelinek <jakub@redhat.com>
3052 * optc-save-gen.awk: In cl_optimization_print, use correct condition
3053 for var_opt_string printing. In cl_optimization_print_diff, print
3054 (null) instead of invoking undefined behavior if one of the
3055 var_opt_string pointers is NULL and use && instead of first || in the
3056 guarding condition. For var_target_other options, handle const char *
3057 target variables similarly to const char * optimize node variables.
3059 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
3061 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
3062 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
3063 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
3064 Add autib1716 and pacib1716 initialisation.
3065 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
3066 for autib1716 and pacib1716.
3067 * config/aarch64/aarch64-protos.h (aarch64_key_type,
3068 aarch64_post_cfi_startproc): Define.
3069 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
3070 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
3071 aarch64_handle_pac_ret_protection): Set default sign key to A.
3072 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
3073 aarch64_expand_prologue): Add check for b-key.
3074 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
3075 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
3076 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
3077 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
3078 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
3079 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
3080 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
3081 * config/aarch64/aarch64.md (do_return): Add check for b-key.
3082 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
3083 pauth_hint_num_a with pauth_hint_num.
3084 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
3085 pauth_hint_num_a with pauth_hint_num.
3086 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
3087 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
3088 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
3089 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
3090 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
3091 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
3092 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
3093 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
3094 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
3095 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
3096 UNSPEC_AUTIA1716 respectively.
3097 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to pauth_hint_num
3098 and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP, UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
3099 * doc/invoke.texi (-mbranch-protection): Add b-key type.
3100 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
3101 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
3103 2019-05-29 Jakub Jelinek <jakub@redhat.com>
3105 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
3106 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
3107 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
3108 explicit clause on combined parallel into implicit shared clause.
3109 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
3110 and firstprivate if the decl has one too from combined parallel to
3111 the worksharing construct.
3113 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
3114 Michael Meissner <meissner@linux.ibm.com>
3116 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
3118 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
3120 * rtl.h (LABEL_REF_P): New #define.
3122 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
3124 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
3126 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
3128 * internal-fn.c: Marked mask_load_direct as vectorizable.
3129 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
3130 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
3131 combined even if masks different with allow_slp_p param.
3132 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
3133 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
3134 dissolve SLP-only vectorizable groups when SLP has been discarded.
3135 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
3136 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
3138 (vect_build_slp_tree_1): Fixed comment typo.
3139 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
3140 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
3142 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
3144 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
3146 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3148 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
3149 Remove obsolete use_thunk reference.
3150 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
3151 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
3152 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
3153 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
3154 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
3155 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
3156 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
3157 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
3158 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
3160 2019-05-28 Nathan Sidwell <nathan@acm.org>
3162 * tree.h (IDENTIFIER_ANON_P): New.
3163 (anon_aggrname_format, anon_aggname_p): Don't declare.
3164 (make_anon_name): Declare.
3165 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
3166 (hash_tree): Likewise.
3167 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
3168 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
3169 (anon_cnt, make_anon_name): New.
3171 2019-05-28 Martin Liska <mliska@suse.cz>
3174 * opts-global.c (decode_options): Print help for all
3175 help_option_arguments.
3176 * opts.c (print_help): Add new argument.
3177 (common_handle_option): Remember all values into
3178 help_option_arguments.
3179 * opts.h (print_help): Add new argument.
3181 2019-05-28 Martin Liska <mliska@suse.cz>
3184 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
3185 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
3186 (func_checker::compare_bb): Call compare_loops.
3188 2019-05-27 Jakub Jelinek <jakub@redhat.com>
3190 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
3191 on sections construct.
3192 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
3194 (lower_omp_sections): Handle lastprivate conditional.
3195 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
3196 lastprivate_conditional_map.
3197 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
3199 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
3200 critical, taskgroup and section regions when looking for a region
3201 with non-NULL lastprivate_conditional_map.
3203 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
3205 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
3206 (*ix86_gen_sub3): Ditto.
3207 (*ix86_gen_sub3_carry): Ditto.
3208 (*ix86_gen_one_cmpl2): Ditto.
3209 (*ix86_gen_andsp): Ditto.
3210 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
3211 (gen_and2_insn): New static function.
3212 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
3213 Use gen_add3_insn instead of ix86_gen_add3.
3214 (ix86_expand_split_stack_prologue): Use gen_add2_insn
3215 instead of ix86_gen_add3.
3216 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
3217 Use gen_sub3_insn instead of ix86_gen_sub3.
3218 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
3219 instead of ix86_gen_add3.
3220 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
3221 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
3222 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
3223 * config/i386/i386-options.c (ix86_option_override_internal):
3224 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
3225 ix86_gen_one_cmpl2 and ix86_gen_andsp.
3227 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
3229 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
3230 and DW_OP_GNU_const_index opcodes.
3232 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
3234 * config/i386/i386.h (STACK_SIZE_MODE): Define.
3236 2019-05-27 Richard Biener <rguenther@suse.de>
3238 PR tree-optimization/90637
3239 * tree-ssa-sink.c (statement_sink_location): Honor the
3240 computed sink location for single-uses.
3242 2019-05-27 Richard Biener <rguenther@suse.de>
3245 * match.pd (vec_perm): Avoid clobbering op0 when not generating
3248 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
3250 * config/i386/i386.md (@sub<mode>3_carry): Rename
3251 from sub<mode>3_carry.
3252 (@leave_<mode>): New expander.
3253 (*leave): Rename from leave.
3254 (*leave_rex64): Rename from leave_rex64.
3255 (@monitorx_<mode>): Rename from monitorx_<mode>.
3256 (@clzero_<mode>): Rename from clzero_<mode>.
3257 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
3258 from sse3_monitor_<mode>.
3259 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
3260 (*ix86_gen_leave): Ditto.
3261 (*ix86_gen_monitor): Ditto.
3262 (*ix86_gen_monitorx): Ditto.
3263 (*ix86_gen_clzero): Ditto.
3264 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
3265 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
3266 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
3267 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
3268 Use gen_sse3_monitor instead of ix86_gen_monitor.
3269 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
3270 instead of ix86_gen_monitorx.
3271 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
3272 instead of ix86_gen_clzero.
3273 * config/i386/i386-options.c (ix86_option_override_internal):
3274 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
3275 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
3277 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
3279 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
3280 Rename from tls_global_dynamic_64_<mode>.
3281 (@tls_local_dynamic_base_64_<mode>): Rename from
3282 tls_local_dynamic_base_64_<mode>.
3283 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
3284 Remove indirect function.
3285 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
3286 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
3287 instead of ix86_gen_tls_global_dynamic_64.
3288 Use gen_tls_local_dynamic_base_64 instead of
3289 ix86_gen_tls_local_dynamic_base_64.
3290 * config/i386/i386-options.c (ix86_option_override_internal):
3291 Do not initialize ix86_gen_tls_global_dynamic_64 and
3292 ix86_gen_tls_local_dynamic_base_64.
3294 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
3296 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
3297 Rename from pro_epilogue_adjust_stack_<mode>_add.
3298 (@pro_epilogue_adjust_stack_sub_<mode>)
3299 Rename from pro_epilogue_adjust_stack_<mode>_sub.
3300 (@allocate_stack_worker_probe_<mode>):
3301 Rename from allocate_stack_worker_probe_<mode>.
3302 (allocate_stack): Use gen_allocate_stack_worker_probe.
3303 (probe_stack): Use gen_probe_stack_1.
3304 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
3305 (@adjust_stack_and_probe_<mode>): Rename from
3306 adjust_stack_and_probe<mode>.
3307 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
3308 (stack_protect_set): Use gen_stack_protect_set_1.
3309 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
3310 (stack_protect_test): Use gen_stack_protect_test_1.
3311 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
3312 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
3313 Remove indirect function.
3314 (*ix86_gen_adjust_stack_and_probe): Ditto.
3315 (*ix86_gen_probe_stack_range): Ditto.
3316 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
3317 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
3318 (ix86_adjust_stack_and_probe_stack_clash): Use
3319 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
3320 (ix86_adjust_stack_and_probe): Ditto.
3321 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
3322 of ix86_gen_probe_stack_range.
3323 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
3324 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
3325 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
3326 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
3327 CODE_FOR_stack_protect_test_{si,di}.
3328 * config/i386/i386-options.c (ix86_option_override_internal):
3329 Do not initialize ix86_gen_allocate_stack_worker,
3330 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
3332 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
3334 * doc/invoke.texi (Link Options): Many editorial changes around
3337 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3339 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
3340 pre-Solaris 11 referene and most Studio compiler details.
3342 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
3345 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
3346 DImode to SImode in floating-point registers on 64-bit target.
3347 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
3348 register_operand in xmpyu patterns.
3350 2019-05-24 Jakub Jelinek <jakub@redhat.com>
3352 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
3353 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
3354 OMP_CLAUSE__REDUCTEMP_.
3355 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
3356 OMP_CLAUSE__CONDTEMP_.
3357 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
3358 * tree-pretty-print.c (dump_omp_clause): Likewise.
3359 * tree-nested.c (convert_nonlocal_omp_clauses,
3360 convert_local_omp_clauses): Likewise.
3361 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
3362 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
3363 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
3365 (gimplify_omp_for): Warn and disable conditional modifier from
3366 lastprivate on loop iterators.
3367 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
3369 * omp-general.c (omp_extract_for_data): Initialize it.
3370 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
3372 (delete_omp_context): Delete it.
3373 (lower_lastprivate_conditional_clauses): New function.
3374 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
3375 handle lastprivate conditional clauses.
3376 (lower_reduction_clauses): Add CLIST argument, emit it into
3377 the critical section if any.
3378 (lower_omp_sections): Adjust lower_lastprivate_clauses and
3379 lower_reduction_clauses callers.
3380 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
3381 to lower_lastprivate_clauses.
3382 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
3383 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
3384 clist into a critical section if not emitted there already by
3385 lower_reduction_clauses.
3386 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
3388 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
3389 conditional variables.
3390 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
3392 (expand_omp_for_generic, expand_omp_for_static_nochunk,
3393 expand_omp_for_static_chunk): Handle lastprivate conditional.
3394 (expand_omp_for): Handle fd.lastprivate_conditional like
3397 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
3399 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
3400 kernel does not exit cleanly.
3401 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
3403 2019-05-24 Jason Merrill <jason@redhat.com>
3406 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
3408 2019-05-24 Richard Biener <rguenther@suse.de>
3411 * tree-loop-distribution.c (struct partition): Add location
3413 (partition_alloc): Initialize all fields.
3414 (generate_memset_builtin): Use the location recorded in the
3415 partition for the generated call.
3416 (generate_memcpy_builtin): Likewise.
3417 (classify_partition): Record the location of a single store
3418 as location for the partition.
3420 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
3422 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
3425 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
3428 * common/config/aarch64/aarch64-common.c
3429 (aarch64_rewrite_selected_cpu): Change local temporary variable
3430 type from unsigned long to uint64_t.
3431 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
3432 aarch64_get_extension_string_for_isa_flags): Change declaration to
3433 match new definition by replacing unsigned long with uint64_t.
3435 2019-05-24 Jakub Jelinek <jakub@redhat.com>
3438 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
3439 gen_attr_type just once instead of 4-7 times. Formatting fixes.
3440 Handle stack_protect_test_<mode> codegen similarly to corresponding
3443 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
3445 * config/i386/darwin.h: Reject -mfentry*.
3446 * doc/sourcebuild.texi: Document mfentry target support.
3448 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
3450 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
3451 Rename to rs6000_global_entry_point_prologue_needed_p. Return
3452 false for PC-relative functions.
3453 (rs6000_output_function_prologue): Change called function name to
3454 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
3455 name,1" for PC-relative functions.
3456 (rs6000_elf_declare_function_name): Change called function name to
3457 rs6000_global_entry_point_prologue_needed_p.
3459 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
3462 * config/i386/i386.c (gen_rtx_cost):
3463 Use ix86_tune_cost instead of ix86_cost.
3465 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
3466 Michael Meissner <meissner@linux.ibm.com>
3467 Segher Boessenkool <segher@kernel.crashing.org>
3469 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
3471 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
3472 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
3473 (rs6000_fndecl_pcrel_p): Likewise.
3474 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
3475 error if -mpcrel is requested without -mcpu=future.
3476 (rs6000_opt_masks): Add entry for pcrel.
3477 (rs6000_fndecl_pcrel_p): New function.
3478 (rs6000_pcrel_p): Likewise.
3479 * config/rs6000/rs6000.opt (mpcrel): New option.
3480 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
3482 2019-05-23 Jan Hubicka <jh@suse.cz>
3483 Martin Liska <mliska@suse.cz>
3485 PR tree-optimization/90576
3486 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
3488 (aliasing_component_refs_p): Fix three way size compare conditional;
3489 give up earlier in case we can not decide on equivalence.
3491 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
3492 Michael Meissner <meissner@linux.ibm.com>
3493 Segher Boessenkool <segher@kernel.crashing.org>
3495 * config.gcc: Add future cpu.
3496 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
3497 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
3499 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
3500 (RS6000_CPU): New instantiation for future cpu.
3501 * config/rs6000/rs6000-opts.h (enum processor_type): Add
3503 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
3504 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
3505 * config/rs6000/rs6000-tables.opt: Regenerate.
3506 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
3507 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
3508 (rs6000_machine_from_flags): Handle future cpu.
3509 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
3510 PROCESSOR_POWER9 for now.
3511 (rs6000_adjust_cost): Likewise.
3512 (rs6000_issue_rate): Likewise.
3513 (rs6000_register_move_cost): Likewise.
3514 (rs6000_opt_masks): Add entry for future.
3515 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
3516 (MASK_FUTURE): New #define.
3517 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
3518 * config/rs6000/rs6000.opt (mfuture): New target option.
3519 * doc/invoke.texi (mcpu): Add future cpu.
3521 2019-05-23 Martin Liska <mliska@suse.cz>
3524 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
3525 operation points to a temporary (pointed via tree_to_wide_ref)
3526 that is out of scope after the &.
3528 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
3531 * doc/extend.texi (Function Names): Add missing word.
3533 2019-05-23 Richard Biener <rguenther@suse.de>
3535 PR tree-optimization/88440
3536 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
3538 * tree-loop-distribution.c (generate_memset_builtin): Fold the
3540 (generate_memcpy_builtin): Likewise.
3541 (distribute_loop): Pass in whether to only distribute patterns.
3542 (prepare_perfect_loop_nest): Also allow size optimization.
3543 (pass_loop_distribution::execute): When optimizing a loop
3544 nest for size allow pattern replacement.
3546 2019-05-23 Jakub Jelinek <jakub@redhat.com>
3549 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
3552 2019-05-23 Martin Liska <mliska@suse.cz>
3555 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
3556 expression similarly to gimplify_decl_expr.
3558 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3560 * cse.c (cse_dump_path): s/dump_file/f.
3562 2019-05-22 David Malcolm <dmalcolm@redhat.com>
3565 * diagnostic-format-json.cc: Include "selftest.h".
3566 (json_from_expanded_location): Only add "file" key for non-NULL
3568 (json_from_location_range): Don't add "start" and "finish"
3569 children if they are UNKNOWN_LOCATION.
3570 (selftest::test_unknown_location): New selftest.
3571 (selftest::test_bad_endpoints): New selftest.
3572 (selftest::diagnostic_format_json_cc_tests): New function.
3573 * json.cc (json::object::get): New function.
3574 (selftest::test_object_get): New selftest.
3575 (selftest::json_cc_tests): Call it.
3576 * json.h (json::object::get): New decl.
3577 * selftest-run-tests.c (selftest::run_tests): Call
3578 selftest::diagnostic_format_json_cc_tests.
3579 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
3582 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
3583 Andrew Stubbs <amd@codesourcery.com>
3585 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
3586 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
3587 (kernel): Rename to...
3588 (main_kernel): ... this.
3589 (load_image): Load _init_array and _fini_array kernels.
3590 (run): Add argument for kernel to run.
3591 (main): Run init_array_kernel before main_kernel, and
3592 fini_array_kernel after.
3593 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
3594 amdgpu_hsa_kernel attribute on functions.
3595 (gcn_disable_constructors): Delete.
3596 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
3597 * config/gcn/crt0.c (size_t): Define.
3598 (_init_array, _fini_array): New.
3599 (__preinit_array_start, __preinit_array_end,
3600 __init_array_start, __init_array_end,
3601 __fini_array_start, __fini_array_end): Declare weak references.
3603 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
3605 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
3607 2019-05-22 Jason Merrill <jason@redhat.com>
3609 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
3611 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
3614 * config/i386/i386-options.c (ix86_init_machine_status): Set
3615 stack_frame_required to true.
3616 * config/i386/i386.c (ix86_get_frame_size): New function.
3617 (ix86_frame_pointer_required): Replace get_frame_size with
3618 ix86_get_frame_size.
3619 (ix86_compute_frame_layout): Likewise.
3620 (ix86_find_max_used_stack_alignment): Changed to void. Set
3621 stack_frame_required.
3622 (ix86_finalize_stack_frame_flags): Always call
3623 ix86_find_max_used_stack_alignment. Replace get_frame_size with
3624 ix86_get_frame_size.
3625 * config/i386/i386.h (machine_function): Add stack_frame_required.
3627 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
3629 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
3631 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
3633 * common/config/aarch64/aarch64-common.c
3634 (struct aarch64_option_extension, struct processor_name_to_arch,
3635 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
3636 aarch64_contains_opt,
3637 aarch64_get_extension_string_for_isa_flags): Change type of
3638 variables storing flags to uint64_t.
3639 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
3640 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
3641 * config/aarch64/aarch64.c (struct processor,
3642 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
3643 aarch64_validate_march, aarch64_override_options,
3644 aarch64_option_print, aarch64_handle_attr_isa_flags,
3645 aarch64_declare_function_name, aarch64_start_file): Make flag
3647 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
3648 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
3649 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
3650 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
3651 * config/aarch64/driver-aarch64.c
3652 (struct aarch64_arch_extension, struct aarch64_core_data,
3653 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
3654 flag variables uint64_t.
3655 * doc/invoke.texi: Add documentation for new arguments.
3657 2019-05-22 Richard Biener <rguenther@suse.de>
3659 * alias.c (ao_ref_from_mem): Move stack-slot sharing
3661 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
3663 2019-05-22 Martin Liska <mliska@suse.cz>
3666 * doc/extend.texi: Document the change.
3668 2019-05-22 Richard Biener <rguenther@suse.de>
3670 PR tree-optimization/90450
3671 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
3672 (mem_ref_hasher::equal): Check it.
3673 (mem_ref_alloc): Initialize it.
3674 (gather_mem_refs_stmt): Set it.
3676 2019-05-22 Richard Biener <rguenther@suse.de>
3678 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
3680 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
3683 2019-05-22 Alan Modra <amodra@gmail.com>
3685 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
3686 (ASM_CPU_SPEC): Conditionally add -many.
3687 * config/rs6000/rs6000.c (rs6000_machine): New static var.
3688 (rs6000_machine_from_flags, emit_asm_machine): New functions..
3689 (rs6000_file_start): ..extracted from here, and modified to
3691 (rs6000_output_function_prologue): Emit .machine as necessary.
3692 * testsuite/gcc.target/powerpc/ppc32-abi-dfp-1.c: Don't use
3694 * testsuite/gcc.dg/vect/O3-pr70130.c: Disable default options
3695 added by check_vect_support_and_set_flags.
3696 * testsuite/gcc.dg/vect/pr48765.c: Likewise.
3697 * testsuite/gfortran.dg/vect/pr45714-b.f: Likewise.
3699 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
3702 * ira-lives.c (process_bb_node_lives): Consider defs
3703 for a call insn to be die before the call, not after.
3705 * function.c (assign_parm_setup_block): Raise alignment of
3706 stacked parameter only for STRICT_ALIGNMENT targets.
3708 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
3710 * config/rs6000/constraints.md (define_register_constraint "wz"):
3712 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
3713 RS6000_CONSTRAINT_wz.
3714 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
3715 (rs6000_init_hard_regno_mode_ok): Adjust.
3716 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
3717 * doc/md.texi (Machine Constraints): Adjust.
3719 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
3721 * config/rs6000/constraints.md (define_register_constraint "wl"):
3723 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
3724 RS6000_CONSTRAINT_wl.
3725 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
3726 (rs6000_init_hard_regno_mode_ok): Adjust.
3727 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
3728 * doc/md.texi (Machine Constraints): Adjust.
3730 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
3732 * config/rs6000/constraints.md (define_register_constraint "wm"):
3734 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
3735 RS6000_CONSTRAINT_wm.
3736 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
3737 (rs6000_init_hard_regno_mode_ok): Adjust.
3738 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
3739 * doc/md.texi (Machine Constraints): Adjust.
3741 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
3743 * config/rs6000/constraints.md (define_register_constraint "wk"):
3745 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
3746 RS6000_CONSTRAINT_wk.
3747 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
3748 (rs6000_init_hard_regno_mode_ok): Adjust.
3749 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
3750 * doc/md.texi (Machine Constraints): Adjust.
3752 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
3754 * config/rs6000/constraints.md (define_register_constraint "wj"):
3756 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
3757 RS6000_CONSTRAINT_wj.
3758 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
3759 (rs6000_init_hard_regno_mode_ok): Adjust.
3760 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
3762 * config/rs6000/vsx.md: Ditto.
3763 * doc/md.texi (Machine Constraints): Adjust.
3765 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
3767 * config/rs6000/constraints.md (define_register_constraint "wh"):
3769 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
3770 RS6000_CONSTRAINT_wh.
3771 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
3772 (rs6000_init_hard_regno_mode_ok): Adjust.
3773 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
3774 * doc/md.texi (Machine Constraints): Adjust.
3776 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
3779 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
3780 Avoid calling gen_lowpart with CONST operand.
3782 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
3784 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
3785 field template_last_to_copy.
3786 (ssa_create_duplicates): Set it, and use it. Attempt to
3787 preserve more debug stmts.
3789 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
3791 * config/i386/sse.md (VF1_AVX2): New mode iterator.
3792 (signbit<mode>2): New expander
3794 2019-05-21 James Clarke <jrtc27@jrtc27.com>
3797 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
3798 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
3800 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
3802 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
3803 %ebx and %ecx bafore calling cpuid with leaf 1 or
3804 non-constant leaf argument.
3806 2019-05-21 Alan Modra <amodra@gmail.com>
3809 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
3810 power9 direct move cost.
3811 * testsuite/gcc.target/powerpc/fold-vec-splats-floatdouble.c:
3812 Correct comments and rename functions to suit parameters.
3814 2019-05-21 Richard Biener <rguenther@suse.de>
3817 * fold-const.c (fold_read_from_vector): New function.
3818 * fold-const.h (fold_read_from_vector): Declare.
3819 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
3820 single-element insert permutations. Canonicalize selector
3821 further and fix issue with last commit.
3823 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
3825 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
3826 parameter with default value false to declaration.
3827 (split_edges_for_insertion): New inline function. Wrapper for
3828 split_critical_edges with for_edge_insertion_p = true.
3829 * tree-cfg.c (split_critical_edges): Don't split non-critical
3830 edges if for_edge_insertion_p is false. Fix whitespace.
3831 * tree-ssa-pre.c (pass_pre::execute): Call
3832 split_edges_for_insertion instead of split_critical_edges.
3833 * gcc/tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
3834 * gcc/tree-ssa-sink.c (pass_sink_code::execute): Ditto.
3835 (pass_data_sink_code): Update function name in the comment.
3837 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
3839 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
3840 around is_value_included_in that knows how to handle BIT_AND_EXPR.
3841 (is_pred_expr_subset_of): Use the new function. Handle more cases where
3842 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
3845 2019-05-21 Martin Liska <mliska@suse.cz>
3847 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
3849 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
3850 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
3852 * config/rs6000/rs6000.c (rs6000_option_override_internal):
3854 (rs6000_function_arg): Likewise.
3855 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
3856 (rs6000_expand_ternop_builtin): Use interval syntax.
3857 (get_element_number): Likewise.
3858 (altivec_expand_builtin): Likewise.
3859 (rs6000_get_function_versions_dispatcher): Quote target_clones.
3863 2019-05-20 Jakub Jelinek <jakub@redhat.com>
3867 * function.h (struct function): Add calls_eh_return member.
3868 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
3869 gimplifying __builtin_eh_return call.
3870 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
3872 (expand_call_inline): Or in src_cfun->calls_eh_return into
3873 dst_cfun->calls_eh_return.
3874 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
3875 cfun->calls_eh_return.
3876 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
3877 * lto-streamer-out.c (output_struct_function_base): Write
3880 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
3882 PR rtl-optimization/43147
3883 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
3884 IX86_BUILTIN_SHUFPD.
3886 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
3888 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
3889 (refs_may_alias_p_1): ... here; update stats.
3890 (refs_may_alias_p): Do not update stats here.
3892 2019-05-20 Richard Biener <rguenther@suse.de>
3894 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
3895 doesn't produce pointers.
3896 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
3897 the first operand points to.
3899 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
3901 * tree-ssa-alias.c (compare_sizes): New function.
3902 (sompare_type_sizes): New function
3903 (aliasing_component_refs_p): Use it.
3904 (indirect_ref_may_alias_decl_p): Likewise.
3906 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3908 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
3910 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3912 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
3913 (LIBLSAN_EARLY_SPEC): Likewise.
3914 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
3916 2019-05-20 Martin Liska <mliska@suse.cz>
3918 * config/i386/i386.c (ix86_libc_has_fast_function):
3919 Add ATTRIBUTE_UNUSED for the argument.
3921 2019-05-20 Richard Biener <rguenther@suse.de>
3923 * gimple-match-head.c: Include vec-perm-indices.h.
3924 * generic-match-head.c: Likewise.
3925 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
3927 * fold-const.c (fold_vec_perm): Export.
3928 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
3929 (match.pd): ...here.
3931 2019-05-20 Jakub Jelinek <jakub@redhat.com>
3933 * cfgloop.h (struct loop): Add simdlen member.
3934 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
3935 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
3936 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
3937 as new argument to autovectorize_vector_sizes target hook. If
3938 loop->simdlen, pick up vector size where the vectorization factor
3939 is equal to loop->simd, and if there is none, fall back to the first
3941 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
3943 * omp-low.c (omp_clause_aligned_alignment): Likewise.
3944 * omp-general.c (omp_max_vf): Likewise.
3945 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
3946 * tree-vect-slp.c (vect_slp_bb): Likewise.
3947 * target.def (autovectorize_vector_sizes): Add ALL argument and
3949 * doc/tm.texi: Adjust documentation.
3950 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
3951 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
3952 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
3954 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
3955 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
3956 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
3957 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
3958 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
3959 preferred vector size is not 512-bit or 256-bit, just put those
3960 unpreferred ones last.
3962 2019-05-20 Martin Liska <mliska@suse.cz>
3964 * targhooks.c (default_libc_has_fast_function): New function.
3965 * targhooks.h (default_libc_has_fast_function): Likewise.
3967 2019-05-20 Martin Liska <mliska@suse.cz>
3970 * builtins.c (expand_builtin_memory_copy_args): When having a
3971 target with fast mempcpy implementation do now use memcpy.
3972 * config/i386/i386.c (ix86_libc_has_fast_function): New.
3973 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
3974 * doc/tm.texi: Likewise.
3975 * doc/tm.texi.in: Likewise.
3977 * expr.c (emit_block_move_hints): Add 2 new arguments.
3978 * expr.h (emit_block_move_hints): Bail out when libcall
3979 to memcpy would be used.
3981 2019-05-20 Martin Liska <mliska@suse.cz>
3983 * profile-count.c: Add vertical spacing in order
3984 to separate functions.
3985 * profile-count.h: Likewise.
3987 2019-05-20 Martin Liska <mliska@suse.cz>
3989 * profile-count.h: Do not use full qualified
3991 * profile-count.c (profile_count::to_frequency): Likewise.
3993 2019-05-20 Martin Liska <mliska@suse.cz>
3995 * profile-count.h (enum profile_quality): Use capital letters
3996 for enum value names. Use the adjusted names.
3997 * profile-count.c: Use the adjusted names.
3999 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
4001 * config/rs6000/constraints.md (define_register_constraint "wH"):
4003 (define_register_constraint "wI"): Delete.
4004 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
4005 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
4006 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
4007 (rs6000_init_hard_regno_mode_ok): Adjust.
4008 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
4009 resp. "d", or with "wa" as appropriate, all with "p8v".
4010 * config/rs6000/vsx.md: Ditto.
4011 * doc/md.texi (Machine Constraints): Adjust.
4013 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
4015 * config/rs6000/constraints.md (define_register_constraint "wy"):
4017 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
4018 RS6000_CONSTRAINT_wy.
4019 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
4020 (rs6000_init_hard_regno_mode_ok): Adjust.
4021 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
4022 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
4023 (define_mode_attr Fisa): New.
4024 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
4025 * doc/md.texi (Machine Constraints): Adjust.
4027 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
4029 * config/rs6000/constraints.md (define_register_constraint "wu"):
4031 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
4032 RS6000_CONSTRAINT_wu.
4033 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
4034 (rs6000_init_hard_regno_mode_ok): Adjust.
4035 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
4037 (define_mode_attr Fa): Delete.
4038 * config/rs6000/vsx.md: Ditto.
4039 * doc/md.texi (Machine Constraints): Adjust.
4041 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
4043 * config/rs6000/constraints.md (define_register_constraint "wJ"):
4045 (define_register_constraint "wK"): Delete.
4046 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
4047 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
4048 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
4049 (rs6000_init_hard_regno_mode_ok): Adjust.
4050 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
4051 Replace "wK" constraint by "wH" with "p9v".
4052 * config/rs6000/vsx.md: Ditto.
4053 * doc/md.texi (Machine Constraints): Adjust.
4055 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
4057 * config/rs6000/constraints.md (define_register_constraint "wb"):
4059 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
4060 RS6000_CONSTRAINT_wb.
4061 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
4062 (rs6000_init_hard_regno_mode_ok): Adjust.
4063 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
4064 * config/rs6000/vsx.md: Ditto.
4065 * doc/md.texi (Machine Constraints): Adjust.
4067 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
4069 * config/rs6000/constraints.md (define_register_constraint "wo"):
4071 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
4072 RS6000_CONSTRAINT_wo.
4073 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
4074 (rs6000_init_hard_regno_mode_ok): Adjust.
4075 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
4076 * config/rs6000/altivec.md: Ditto.
4077 * doc/md.texi (Machine Constraints): Adjust.
4079 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
4081 * config/darwin-c.c (darwin_register_objc_includes): Do not
4082 prepend the sysroot when building gnu-runtime header search
4085 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
4087 * config/darwin.c (darwin_file_end): Use switch_to_section ()
4088 instead of direct output of the asm.
4090 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
4092 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
4093 argument to be type bool (was int before).
4094 (rs6000_emit_epilogue): Simplify some code. Declare some variables
4095 at first use. Use type bool for some variables. Fix a theoretical
4096 eh_return bug for svr4.
4098 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
4100 * config/rs6000/rs6000.md (isa): New attribute.
4101 (enabled): New attribute.
4103 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
4105 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
4106 assemble_start_function and assemble_end_function.
4108 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
4111 * omp-general.c (oacc_verify_routine_clauses): Change formal
4112 parameters. Add checking if already marked with an OpenACC
4113 'routine' directive. Adjust all users.
4116 * omp-general.c (oacc_build_routine_dims): Move some of its
4118 (oacc_verify_routine_clauses): ... this new function.
4119 * omp-general.h (oacc_verify_routine_clauses): New prototype.
4121 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
4123 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
4124 formating of picbase labels to match other ports.
4126 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
4128 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
4129 in the generated code.
4131 2019-05-16 Martin Sebor <msebor@redhat.com>
4133 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
4134 identifiers, keywords, operators, and types in diagnostics. Correct
4135 quoting, spelling, and sentence capitalization issues.
4136 (expand_builtin_atomic_is_lock_free): Same.
4137 (fold_builtin_next_arg): Same.
4138 * cfgexpand.c (expand_one_var): Same.
4139 (tree_conflicts_with_clobbers_p): Same.
4140 (expand_asm_stmt): Same.
4141 (verify_loop_structure): Same.
4142 * cgraphunit.c (process_function_and_variable_attributes): Same.
4143 * collect-utils.c (collect_execute): Same.
4144 * collect2.c (maybe_run_lto_and_relink): Same.
4145 (is_lto_object_file): Same.
4146 (scan_prog_file): Same.
4147 * convert.c (convert_to_real_1): Same.
4148 * dwarf2out.c (dwarf2out_begin_prologue): Same.
4149 * except.c (verify_eh_tree): Same.
4150 * gcc.c (execute): Same.
4151 (eval_spec_function): Same.
4152 (run_attempt): Same.
4153 (driver::set_up_specs): Same.
4154 (compare_debug_auxbase_opt_spec_function): Same.
4155 * gcov-tool.c (unlink_gcda_file): Same.
4158 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
4159 * gimplify.c (gimplify_asm_expr): Same.
4160 (gimplify_adjust_omp_clauses): Same.
4161 * hsa-gen.c (gen_hsa_addr_insns): Same.
4162 (gen_hsa_insns_for_load): Same.
4163 (gen_hsa_cmp_insn_from_gimple): Same.
4164 (gen_hsa_insns_for_operation_assignment): Same.
4165 (gen_get_level): Same.
4166 (gen_hsa_alloca): Same.
4167 (omp_simple_builtin::generate): Same.
4168 (gen_hsa_atomic_for_builtin): Same.
4169 (gen_hsa_insns_for_call): Same.
4170 * input.c (dump_location_info): Same.
4171 * ipa-devirt.c (compare_virtual_tables): Same.
4172 * ira.c (ira_setup_eliminable_regset): Same.
4173 * lra-assigns.c (lra_assign): Same.
4174 * lra-constraints.c (lra_constraints): Same.
4175 * lto-streamer-in.c (lto_input_mode_table): Same.
4176 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
4177 (merge_and_complain): Same.
4178 (compile_offload_image): Same.
4179 (compile_images_for_offload_targets): Same.
4180 (debug_objcopy): Same.
4183 * opts.c (print_specific_help): Same.
4184 (parse_no_sanitize_attribute): Same.
4186 (handle_param): Same.
4187 * plugin.c (add_new_plugin): Same.
4188 (parse_plugin_arg_opt): Same.
4189 (try_init_one_plugin): Same.
4190 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
4191 operators, and types in diagnostics. Correct quoting and spelling
4193 * read-rtl-function.c (parse_edge_flag_token): Same.
4194 (function_reader::parse_enum_value): Same.
4195 * reg-stack.c (check_asm_stack_operands): Same.
4196 * regcprop.c (validate_value_data): Same.
4197 * sched-rgn.c (make_pass_sched_fusion): Same.
4198 * stmt.c (check_unique_operand_names): Same.
4199 * targhooks.c (default_target_option_pragma_parse): Same.
4200 * tlink.c (recompile_files): Same.
4201 * toplev.c (process_options): Same.
4203 * trans-mem.c (diagnose_tm_1): Same.
4204 (ipa_tm_scan_irr_block): Same.
4205 (ipa_tm_diagnose_transaction): Same.
4206 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
4207 format a tree code name in a diagnostic.
4208 (verify_types_in_gimple_min_lval): Same.
4209 (verify_types_in_gimple_reference): Same.
4210 (verify_gimple_call): Same.
4211 (verify_gimple_assign_unary): Same.
4212 (verify_gimple_assign_binary): Same.
4213 (verify_gimple_assign_ternary): Same.
4214 (verify_gimple_assign_single): Same.
4215 (verify_gimple_switch): Same.
4216 (verify_gimple_label): Same.
4217 (verify_gimple_phi): Same.
4218 (verify_gimple_in_seq): Same.
4219 (verify_eh_throw_stmt_node): Same.
4220 (collect_subblocks): Same.
4221 (gimple_verify_flow_info): Same.
4222 (do_warn_unused_result): Same.
4223 * tree-inline.c (expand_call_inline): Same.
4224 * tree-into-ssa.c (update_ssa): Same.
4225 * tree.c (tree_int_cst_elt_check_failed): Same.
4226 (tree_vec_elt_check_failed): Same.
4227 (omp_clause_operand_check_failed): Same.
4228 (verify_type_variant): Same.
4229 (verify_type): Same.
4230 * value-prof.c (verify_histograms): Same.
4231 * varasm.c (assemble_start_function): Same.
4233 2019-05-16 Martin Sebor <msebor@redhat.com>
4235 * config/i386/i386-expand.c (get_element_number): Quote keywords
4236 and other internal names in diagnostics. Adjust other diagnostic
4237 formatting issues noted by -Wformat-diag.
4238 * config/i386/i386-features.c
4239 (ix86_mangle_function_version_assembler_name): Same.
4240 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
4241 * config/i386/i386.c (ix86_function_type_abi): Same.
4242 (ix86_function_ms_hook_prologue): Same.
4243 (classify_argument): Same.
4244 (ix86_expand_prologue): Same.
4245 (ix86_md_asm_adjust): Same.
4246 (ix86_memmodel_check): Same.
4248 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
4250 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
4251 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
4254 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
4257 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
4258 intrinsics without SSE/SSE2/SSSE3.
4259 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
4261 (*mmx_uavgv8qi3): Likewise.
4263 2019-05-17 Richard Biener <rguenther@suse.de>
4265 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
4266 VEC_PERM_EXPR as __VEC_PERM with -gimple.
4268 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
4270 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
4271 vec_sldw insn pattern.
4273 2019-05-17 Richard Biener <rguenther@suse.de>
4275 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
4277 2019-05-17 Martin Liska <mliska@suse.cz>
4280 * toplev.c (output_stack_usage): With LTO and sanitizer it
4281 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
4282 has no file location.
4284 2019-05-16 Jakub Jelinek <jakub@redhat.com>
4287 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
4288 sz0 is equal to sz1, instead return false in that case.
4290 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
4291 has non-constant expression, force sctx.lane and use two
4292 argument IFN_GOMP_SIMD_LANE instead of single argument.
4293 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
4294 two argument IFN_GOMP_SIMD_LANE without lhs.
4295 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
4297 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
4299 (LOOP_REQUIRES_VERSIONING): Or in
4300 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
4301 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
4303 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
4304 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
4305 from simd if clause if needed.
4307 2019-05-16 Richard Biener <rguenther@suse.de>
4309 * tree-affine.c (expr_to_aff_combination): New function split
4311 (tree_to_aff_combination): ... here.
4312 (aff_combination_expand): Avoid building a GENERIC tree.
4314 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
4316 * cgraphunit.c (cgraph_node::expand_thunk): Remove
4317 assemble_start_function and assemble_end_function calls.
4318 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
4319 assemble_start_function and assemble_end_function.
4320 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
4321 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
4322 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
4323 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
4324 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
4325 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
4326 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
4327 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
4328 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
4329 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
4330 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
4331 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
4333 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
4334 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
4335 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
4336 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
4337 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
4338 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
4339 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
4340 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
4341 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
4342 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
4343 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
4344 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
4345 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
4346 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
4348 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
4349 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
4350 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
4352 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
4354 * tree-ssa-alias.c (alias_stats): Add
4355 aliasing_component_refs_p_may_alias and
4356 aliasing_component_refs_p_no_alias.
4357 (dump_alias_stats): Print aliasing_component_refs_p stats.
4358 (aliasing_component_refs_p): Update stats.
4360 2019-05-16 Martin Liska <mliska@suse.cz>
4363 * multiple_target.c (expand_target_clones): Do not allow
4364 target_clones being used with a symbol that is an alias.
4366 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
4368 PR tree-optimization/90394
4369 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
4370 positives rather than ICE for cases where (code2 == NE_EXPR
4371 && code1 == BIT_AND_EXPR).
4373 2019-05-16 Jakub Jelinek <jakub@redhat.com>
4376 * tree-core.h (struct tree_decl_common): Document
4377 decl_nonshareable_flag for PARM_DECLs.
4378 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
4379 * calls.c (expand_call): Don't try tail call if caller
4380 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
4381 passed on the stack and callee needs to pass any arguments on the
4383 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
4384 else if instead of series of mutually exclusive ifs. Handle
4385 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
4386 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
4388 * lto-streamer.h (LTO_major_version): Bump to 9.
4390 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
4392 PR tree-optimization/90106
4393 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
4394 new parameter as new internal function call, also move it to new
4396 (use_internal_fn): Pass internal function call to
4397 shrink_wrap_one_built_in_call_with_conds.
4399 2019-05-15 Jakub Jelinek <jakub@redhat.com>
4401 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
4403 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
4404 safelen_int and set loop->dont_vectorize.
4406 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
4409 * config/i386/i386-builtin.def: Enable MMX intrinsics with
4411 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
4413 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
4414 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
4415 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
4418 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
4421 * config/i386/mmx.md (*vec_dupv2sf): Changed to
4422 define_insn_and_split to support SSE emulation.
4423 (*vec_extractv2sf_0): Likewise.
4424 (*vec_extractv2sf_1): Likewise.
4425 (*vec_extractv2si_0): Likewise.
4426 (*vec_extractv2si_1): Likewise.
4427 (*vec_extractv2si_zext_mem): Likewise.
4428 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
4429 (vec_extractv2sf_1 splitter): Likewise.
4430 (vec_extractv2sfsf): Likewise.
4431 (vec_setv2si): Likewise.
4432 (vec_extractv2si_1 splitter): Likewise.
4433 (vec_extractv2sisi): Likewise.
4434 (vec_setv4hi): Likewise.
4435 (vec_extractv4hihi): Likewise.
4436 (vec_setv8qi): Likewise.
4437 (vec_extractv8qiqi): Likewise.
4438 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
4439 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
4440 (vec_extractv2sisi): Likewise.
4441 (vec_extractv4hihi): Likewise.
4442 (vec_extractv8qiqi): Likewise.
4443 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
4444 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
4445 (vec_initv2sisi): Likewise.
4446 (vec_initv4hihi): Likewise.
4447 (vec_initv8qiqi): Likewise.
4448 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
4449 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
4450 (vec_setv4hi): Likewise.
4451 (vec_setv8qi): Likewise.
4453 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
4456 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
4457 TARGET_MMX_WITH_SSE.
4458 (MMXMODE:*mov<mode>_internal): Likewise.
4459 (MMXMODE:movmisalign<mode>): Likewise.
4461 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
4464 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
4465 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
4466 (sse2_cvtpd2pi): Ditto.
4467 (sse2_cvttpd2pi): Ditto.
4468 (*vec_concatv2sf_sse4_1): Ditto.
4469 (*vec_concatv2sf_sse): Ditto.
4470 (*vec_concatv2si_sse4_1): Ditto.
4471 (*vec_concatv2si): Ditto.
4472 (*vec_concatv4si_0): Ditto.
4473 (*vec_concatv2di_0): Ditto.
4475 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
4478 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
4480 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
4483 * config/i386/sse.md (ssse3_palignrdi): Changed to
4484 define_insn_and_split to support SSE emulation.
4486 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
4489 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
4491 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
4494 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
4495 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
4498 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
4501 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
4502 or TARGET_MMX_WITH_SSE.
4503 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
4505 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
4508 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
4510 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
4513 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
4514 Changed to define_insn_and_split to support SSE emulation.
4516 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
4519 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
4520 Changed to define_insn_and_split to support SSE emulation.
4522 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
4525 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
4526 (*mmx_<emms>): This.
4527 (mmx_<emms>): New expander.
4529 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
4532 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
4534 (*sse2_umulv1siv1di3): Add SSE2 emulation.
4536 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
4539 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
4541 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
4544 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
4546 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
4549 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
4550 TARGET_MMX_WITH_SSE.
4551 (*mmx_uavgv4hi3): Add SSE emulation.
4553 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
4556 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
4557 and TARGET_MMX_WITH_SSE.
4558 (*mmx_uavgv8qi3): Add SSE emulation.
4560 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
4563 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
4564 maskmovdqu for __MMX_WITH_SSE__.
4566 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
4569 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
4570 TARGET_MMX and TARGET_MMX_WITH_SSE.
4571 (*mmx_umulv4hi3_highpart): Add SSE emulation.
4573 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
4576 * config/i386/mmx.md (mmx_pmovmskb): Changed to
4577 define_insn_and_split to support SSE emulation.
4579 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
4582 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
4583 and TARGET_MMX_WITH_SSE.
4584 (mmx_<code>v8qi3): Likewise.
4585 (smaxmin:<code>v4hi3): New.
4586 (umaxmin:<code>v8qi3): Likewise.
4587 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
4588 (umaxmin:*mmx_<code>v8qi3): Likewise.
4590 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
4593 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
4594 TARGET_MMX_WITH_SSE.
4595 (*mmx_pinsrw): Add SSE emulation.
4597 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
4600 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
4602 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
4605 * config/i386/sse.md (sse_cvtpi2ps): Changed to
4606 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
4609 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
4612 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
4613 (sse_cvttps2pi): Likewise.
4615 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
4618 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
4619 TARGET_MMX_WITH_SSE.
4620 (mmx_pshufw_1): Add SSE emulation.
4621 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
4622 TARGET_MMX_WITH_SSE to support SSE emulation.
4624 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
4627 * config/i386/constraints.md (Yw): New constraint.
4628 * config/i386/mmx.md (*vec_dupv2si): Changed to
4629 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
4630 support SSE emulation.
4632 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
4635 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
4636 TARGET_MMX_WITH_SSE.
4637 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
4639 (mmx_gt<mode>3): Likewise.
4641 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
4644 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
4645 TARGET_MMX_WITH_SSE. Add SSE support.
4647 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
4650 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
4651 TARGET_MMX_WITH_SSE.
4652 (any_logic:<code><mode>3): New.
4653 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
4656 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
4659 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
4660 TARGET_MMX_WITH_SSE. Add SSE emulation.
4661 (mmx_<shift_insn><mode>3): Likewise.
4663 (<shift_insn><mode>3): Likewise.
4665 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
4668 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
4669 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
4671 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
4674 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
4675 TARGET_MMX_WITH_SSE.
4676 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
4679 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
4682 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
4683 TARGET_MMX_WITH_SSE.
4685 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
4688 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
4691 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
4692 (plusminus:mmx_<plusminus_insn><mode>3): Check
4693 TARGET_MMX_WITH_SSE.
4694 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
4695 (<plusminus_insn><mode>3): New.
4696 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
4697 (*mmx_<plusminus_insn><mode>3): Likewise.
4699 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
4702 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
4703 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
4705 * config/i386/mmx.m (mmx_punpckhbw): Changed to
4706 define_insn_and_split to support SSE emulation.
4707 (mmx_punpcklbw): Likewise.
4708 (mmx_punpckhwd): Likewise.
4709 (mmx_punpcklwd): Likewise.
4710 (mmx_punpckhdq): Likewise.
4711 (mmx_punpckldq): Likewise.
4713 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
4714 Uros Bizjak <ubizjak@gmail.com>
4717 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
4719 (ix86_split_mmx_pack): Likewise.
4720 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
4722 (ix86_split_mmx_pack): Likewise.
4723 * config/i386/i386.md (mmx_isa): New.
4724 (enabled): Also check mmx_isa.
4725 * config/i386/mmx.md (any_s_truncate): New code iterator.
4726 (s_trunsuffix): New code attr.
4727 (mmx_packsswb): Removed.
4728 (mmx_packssdw): Likewise.
4729 (mmx_packuswb): Likewise.
4730 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
4731 MMX packsswb/packuswb with SSE2.
4732 (mmx_packssdw): Likewise.
4733 * config/i386/predicates.md (register_mmxmem_operand): New.
4735 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
4738 * config/i386/i386-c.c (ix86_target_macros_internal): Define
4739 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
4740 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
4741 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
4742 (ix86_vector_mode_supported_p): Likewise.
4743 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
4745 2019-05-15 Martin Liska <mliska@suse.cz>
4748 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
4751 2019-05-15 Richard Biener <rguenther@suse.de>
4753 * tree-into-ssa.c (pass_build_ssa::execute): Run
4754 update_address_taken before going into SSA.
4756 2019-05-15 Richard Biener <rguenther@suse.de>
4758 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
4759 as __BIT_FIELD_REF with type with -gimple.
4761 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
4763 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
4764 semantically equivalent branches (left over after prior refactorings).
4766 2019-05-15 Richard Biener <rguenther@suse.de>
4768 PR tree-optimization/88828
4769 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
4772 2019-05-14 Richard Biener <rguenther@suse.de>
4774 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
4775 as __VIEW_CONVERT with -gimple.
4777 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
4780 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
4783 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
4785 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
4786 define_split to become a define_insn_and_split.
4788 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
4790 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
4792 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
4793 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
4794 (sibcall_epilogue): Adjust.
4797 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4799 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
4800 to unsupported ones.
4801 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
4802 * config.host: Likewise.
4803 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
4804 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
4805 __svr4__]: Remove "brand" fallback.
4806 [!KSTAT_DATA_STRING]: Remove.
4807 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
4809 (comdat_group): Likewise.
4810 (set_have_as_tls): Likewise.
4811 (gcc_cv_target_dl_iterate_phdr): Likewise.
4812 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
4813 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
4814 * configure: Regenerate.
4815 * doc/install.texi: Simplify Solaris target triplets.
4816 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
4817 (Specific, *-*-solaris2*): Document Solaris 10 removal.
4818 Remove Solaris 10 references.
4819 Remove obsolete Solaris bug reference.
4820 (Specific, sparc-sun-solaris2.10): Remove.
4822 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
4824 * config/i386/i386.md (any_div): New code iterator.
4825 (paired_mod): New code attribute.
4826 (sgnprefix): Handle DIV and UDIV RTXes.
4828 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
4829 and udivmod<mode>4 patterns using any_div code iterator.
4830 (divmod splitters): Macroize splitters using any_div code iterator.
4831 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
4832 (*udivmodsi4_pow2_zext_2): Ditto.
4833 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
4834 and *udivmod<mode>4_noext patterns using any_div code iterator.
4835 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
4836 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
4837 patterns using any_div code iterator.
4838 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
4839 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
4840 patterns using any_div code iterator.
4841 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
4842 udivmodhiqi3 patterns using any_extend code iterator.
4844 2019-05-14 Richard Biener <rguenther@suse.de>
4845 H.J. Lu <hongjiu.lu@intel.com>
4847 PR tree-optimization/88828
4848 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
4849 permuting in a single non-constant element not extracted
4852 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
4854 * internal-fn.def (SIGNBIT): New.
4855 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
4857 (signbitv4sf2): Likewise.
4859 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
4862 * config/mips/mips.c (mips_split_move): Skip forward SRC into
4863 next insn when the SRC reg is dead.
4865 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
4867 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
4868 (alloc_cand_and_find_basis): Ditto.
4869 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
4870 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
4871 (create_add_imm_cand, slsr_process_cast): Ditto.
4872 (slsr_process_copy, replace_mult_candidate): Ditto.
4873 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
4874 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
4875 (pass_strength_reduction::execute): Init the first NULL element.
4877 2019-05-13 Nathan Sidwell <nathan@acm.org>
4879 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
4880 (run_attempt): Reformat line break.
4882 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
4885 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
4886 data registers in sibcall epilogues.
4887 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
4889 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
4892 * configure.ac (--enable-frame-pointer):
4893 Disable by default for cygwin and mingw.
4894 * configure: Regenerate.
4896 2019-05-13 Nathan Sidwell <nathan@acm.org>
4898 * dwarf2out.c (breakout_comdat_types): Move comment to correct
4900 (const_ok_for_output_1): Balance parens around #if/#else/#endif
4901 (gen_member_die): Move abstract origin check earlier. Only VARs
4902 can be static_inline_p. Simplify splicing control flow.
4904 2019-05-13 Richard Biener <rguenther@suse.de>
4906 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
4908 (vect_build_slp_tree_1): Likewise.
4910 2019-05-13 Richard Biener <rguenther@suse.de>
4912 PR tree-optimization/90402
4913 * tree-if-conv.c (tree_if_conversion): Value number only
4914 the loop body by making the latch an exit of the region
4916 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
4918 (do_rpo_vn): Deal with multiple edges into the entry block
4919 that are not backedges inside the region by skipping PHIs
4922 2019-05-13 Richard Biener <rguenther@suse.de>
4924 PR tree-optimization/90316
4925 * tree-ssa-pre.c (insert_aux): Fold into ...
4926 (insert): ... this function. Use a RPO walk to reduce the
4927 number of required iterations.
4929 2019-05-13 Martin Liska <mliska@suse.cz>
4931 PR tree-optimization/90416
4932 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
4933 string instead of passing the second part as va_arg argument.
4935 2019-05-13 Martin Liska <mliska@suse.cz>
4937 PR gcov-profile/90380
4938 * gcov.c (handle_cycle): Do not support zero cycle count,
4939 it should not be possible.
4940 (path_contains_zero_cycle_arc): New function.
4941 (circuit): Ignore zero cycle arc counts.
4943 2019-05-13 Martin Liska <mliska@suse.cz>
4945 PR gcov-profile/90380
4946 * gcov.c (enum loop_type): Remove the enum and
4948 (handle_cycle): Assert that we should not reach
4950 (circuit): Use loop_found instead of a tri-state loop_type.
4951 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
4954 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
4957 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
4958 (ix86_output_indirect_branch_via_reg): Use output mechanism
4959 accounting for __USER_LABEL_PREFIX__.
4960 (ix86_output_indirect_branch_via_push): Likewise.
4961 (ix86_output_function_return): Likewise.
4962 (ix86_output_indirect_function_return): Likewise.
4964 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
4966 * doc/md.texi: Document use of code attributes in rtx patterns.
4967 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
4968 * read-rtl.c (find_code): Split out search loops into...
4969 (maybe_find_code): ...this new function.
4970 (check_code_iterator): Make the error message more informative.
4971 (check_code_attribute): New function.
4972 (rtx_reader::rtx_alloc_for_name): Likewise.
4973 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
4974 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
4975 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
4976 <max_opp> directly as an rtx code instead of via a match_operator.
4977 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
4978 (<su>abd<mode>_3): Update accordingly.
4980 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
4982 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
4983 is given, print the state of the EH "save world" computation for
4986 2019-05-11 Jakub Jelinek <jakub@redhat.com>
4989 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
4990 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
4992 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
4994 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
4995 Use pinsrd for TARGET_SSE4_1.
4996 * config/i386/sse.md (movdi_to_sse): Ditto.
4998 2019-05-10 Richard Biener <rguenther@suse.de>
5000 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
5001 (do_rpo_vn): Initialize next_value_id.
5003 2019-05-10 Martin Liska <mliska@suse.cz>
5005 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
5008 2019-05-10 Jakub Jelinek <jakub@redhat.com>
5010 PR tree-optimization/90385
5011 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
5012 arguments of the exit phis.
5015 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
5016 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
5018 (copy_tree_body_r): Likewise.
5019 (copy_fn): Set id.do_not_fold to true.
5021 2019-05-10 Martin Liska <mliska@suse.cz>
5023 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
5024 Reapply changes from r269790.
5026 2019-05-10 Martin Liska <mliska@suse.cz>
5029 * doc/invoke.texi: New params.
5030 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
5031 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
5032 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
5034 * tree-switch-conversion.h (struct jump_table_cluster):
5037 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
5039 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
5041 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
5043 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
5045 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
5047 PR rtl-optimization/88879
5048 * sel-sched.c (sel_target_adjust_priority): Remove assert.
5050 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
5053 * config/arm/arm.c (callee_saved_reg_p): Move before
5054 thumb_find_work_register.
5055 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
5056 thumb_find_work_register. Only call df_get_live_out once.
5057 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
5058 (thumb_find_work_register): Use
5059 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
5060 algorithms to locate a spare call clobbered reg.
5062 2019-05-09 Martin Liska <mliska@suse.cz>
5064 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
5065 and MAX_EXPR in GIMPLE FE format.
5067 2019-05-09 Martin Liska <mliska@suse.cz>
5069 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
5070 * gimple-pretty-print.c (dump_gimple_bb_header):
5072 (pp_cfg_jump): Dump edge probability.
5073 * profile-count.c (profile_quality_as_string): Simplify
5074 with a static array.
5075 (parse_profile_quality): New function.
5076 (profile_count::dump): Simplify with a static array.
5077 (profile_count::from_gcov_type): Add new argument.
5078 * profile-count.h (parse_profile_quality): Likewise.
5079 * predict.h (set_hot_bb_threshold): New.
5080 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
5082 * predict.c (get_hot_bb_threshold): Set from the new param.
5083 (set_hot_bb_threshold): New.
5085 2019-05-09 Richard Biener <rguenther@suse.de>
5087 PR tree-optimization/90395
5088 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
5089 rewrite vector stores that throw internally.
5091 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
5093 * cif-code.def (CHKP): Remove.
5096 * configure.ac (--enable-frame-pointer): Disable by default for
5098 * configure: Regenerate.
5100 2019-05-09 Alan Modra <amodra@gmail.com>
5103 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
5104 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
5105 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
5106 cost for general <-> vsx when direct moves are available.
5107 Cost union classes at minimal cost for any reg in the class.
5108 Correct calculation for moves between vsx, float, and altivec.
5109 Don't return a low cost for moves between special regs. Don't
5110 use hard coded register numbers.
5111 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
5112 (rs6000_ira_change_pseudo_allocno_class): New function.
5113 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
5114 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
5116 (movsi_internal1): Don't disparage vector alternatives.
5117 (mov<mode>_internal): Likewise, excepting alternative that
5119 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
5120 we <- b alternative.
5122 2019-05-08 Jakub Jelinek <jakub@redhat.com>
5125 PR tree-optimization/89060
5126 * tree-ssa-live.h (live_vars_map): New typedef.
5127 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
5128 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
5129 (struct compute_live_vars_data): New type.
5130 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
5131 live_vars_at_stmt, destroy_live_vars): New functions.
5132 * tree-tailcall.c: Include tree-ssa-live.h.
5133 (live_vars, live_vars_vec): New global variables.
5134 (find_tail_calls): Perform variable life analysis before punting.
5135 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
5136 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
5138 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
5139 Perform variable life analysis to select variables that really need
5141 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
5142 instead set id->eh_landing_pad_dest and assert it is the same.
5143 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
5145 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
5146 Richard Earnshaw <rearnsha@arm.com>
5149 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
5151 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
5152 (thumb1_compute_save_core_reg_mask): Don't force a spare work
5153 register if both the epilogue and prologue can use call-clobbered
5155 (thumb1_unexpanded_epilogue): Use
5156 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
5157 picking temporaries for restoring high regs to match that of the
5158 prologue where possible.
5159 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
5160 the list of work registers. Detect if the return address is still live
5161 at the end of the prologue and avoid using it for a work register if so.
5162 If the return address is not live, add LR to the list of pushable regs
5163 after the first pass.
5165 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
5167 PR tree-optimization/90078
5168 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
5169 (INFTY): Increase the value for infinite cost.
5170 (struct comp_cost): Promote type of members to int64_t.
5171 (infinite_cost): Don't set complexity in initialization.
5172 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
5173 overflows to infinite_cost.
5174 (adjust_setup_cost): Promote type of parameter and cost computation
5176 (struct ainc_cost_data, struct iv_ca): Promote type of member to
5178 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
5179 cost computation to int64_t.
5180 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
5181 int64_t's format specifier in dump.
5183 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
5185 PR tree-optimization/90240
5186 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
5187 with respect to scaling factor pre-computed for each basic block.
5188 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
5189 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
5190 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
5191 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
5192 live range for array of loop's basic blocks. Cleanup aux field of
5193 loop's basic blocks.
5195 2019-05-08 Jakub Jelinek <jakub@redhat.com>
5197 PR tree-optimization/90356
5198 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
5200 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
5202 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
5203 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
5204 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
5205 (ix86_handle_option): Handle -mavx512bf16.
5206 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
5208 * config/i386/avx512bf16vlintrin.h: New.
5209 * config/i386/avx512bf16intrin.h: New.
5210 * config/i386/cpuid.h (bit_AVX512BF16): New.
5211 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
5212 * config/i386/i386-builtin-types.def: Add new types.
5213 * config/i386/i386-builtin.def: Add new builtins.
5214 * config/i386/i386-c.c (ix86_target_macros_internal): Define
5216 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
5217 (ix86_option_override_internal): Handle BF16.
5218 (ix86_valid_target_attribute_inner_p): Ditto.
5219 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
5220 * config/i386/i386-builtin.c (enum processor_features): Add
5222 (static const _isa_names_table isa_names_table): Ditto.
5223 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
5224 (PTA_AVX512BF16): Ditto.
5225 * config/i386/i386.opt: Add -mavx512bf16.
5226 * config/i386/immintrin.h: Include avx512bf16intrin.h
5227 and avx512bf16vlintrin.h.
5228 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
5229 avx512f_cvtneps2bf16_<mode><mask_name>,
5230 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
5231 * config/i386/subst.md (mask_half): Add new subst.
5232 * doc/invoke.texi: Document -mavx512bf16.
5234 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
5236 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
5238 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
5239 (rs6000_debug_legitimize_reload_address): Delete.
5240 (rs6000_legitimize_reload_address_ptr): Delete.
5241 (rs6000_option_override_internal): Adjust.
5242 (mem_operand_gpr): Adjust comment.
5243 (legitimate_lo_sum_address_p): Ditto.
5244 (rs6000_legitimize_reload_address): Delete.
5245 (rs6000_debug_legitimize_reload_address): Delete.
5246 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
5248 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
5251 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
5252 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
5253 to compute vector element selector for both constant and variable
5256 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
5258 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
5259 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
5260 ashrdi3_cvt using SWI48 mode iterator.
5262 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
5264 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
5265 (aarch64_<su>abd<mode>_3): Likewise.
5266 (*aarch64_<su>abd<mode>_3): New define_insn.
5267 (<sur>sad<vsi2qi>): New define_expand.
5268 * config/aarch64/iterators.md: Added MAX_OPP attribute.
5269 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
5270 (build_vect_cond_expr): Likewise.
5272 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
5274 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
5275 clobbers outside of accessible_reg_set.
5276 * config/i386/i386.c (ix86_conditional_register_usage):
5277 Disable register sets by clearing corresponding bits in
5278 accessible_reg_set. Do not set corresponding bits in fixed_regs,
5279 call_used_regs and don't clear corresponding reg_names array members.
5281 2019-05-07 Richard Biener <rguenther@suse.de>
5283 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
5284 not specified still compute a comp_vectype for invariant
5287 2019-05-07 Richard Biener <rguenther@suse.de>
5289 PR tree-optimization/90316
5290 * tree-ssa-pre.c (translate_vuse_through_block): When
5291 same_valid is NULL do not bother to search for a virtual
5293 (phi_translate_1): When operands changed we cannot keep
5294 the same value-number so do not bother to ask whether
5295 that's possible from translate_vuse_through_block.
5297 2019-05-07 Martin Liska <mliska@suse.cz>
5299 * bitmap.c (bitmap_register): Come up with
5300 alloc_descriptor_max_uid and assign it for
5302 (register_overhead): Use get_descriptor as
5304 (release_overhead): New.
5305 (bitmap_elem_to_freelist): Call it.
5306 (bitmap_elt_clear_from): Likewise.
5307 (bitmap_obstack_free): Likewise.
5308 (bitmap_move): Sensitively release memory.
5309 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
5310 (bitmap_initialize): Initialize alloc_descriptor to zero.
5311 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
5313 2019-05-07 Richard Biener <rguenther@suse.de>
5315 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
5316 we build a SLP node. Remove max_size and limiting.
5317 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
5319 2019-05-07 Richard Biener <rguenther@suse.de>
5321 PR tree-optimization/90316
5322 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
5324 (walk_non_aliased_vuses): Take walking limit argument.
5325 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
5326 walking if it is reached instead of just counting.
5327 (get_continuation_for_phi): Likewise.
5328 (walk_non_aliased_vuses): Likewise, instead of leaving counter
5329 limiting to the callback.
5330 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
5331 (vn_reference_lookup_3): Likewise.
5332 (vn_reference_lookup_pieces): Likewise.
5333 (vn_reference_lookup): Likewise.
5334 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
5335 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
5336 (avail_exprs_stack::lookup_avail_expr): Likewise.
5338 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
5340 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
5341 for comparaible types in the second direction even if first one
5342 hits incomparable type.
5344 2019-05-07 Richard Biener <rguenther@suse.de>
5347 * lto-wrapper.c (debug_objcopy): Use the original filename
5348 including archive offset for the filename used for -save-temps.
5350 2019-05-07 Li Jia He <helijia@linux.ibm.com>
5352 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
5355 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
5356 Hongtao Liu <hongtao.liu@intel.com>
5360 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
5361 Modified, original implementation isn't correct.
5363 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
5365 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
5366 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
5367 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
5368 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
5369 (FRAME_POINTER_REGNUM): Change numbering.
5370 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
5371 (alt_reg_names): Adjust.
5372 (rs6000_conditional_register_usage): Don't mark hard register 64 as
5374 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
5375 (DWARF_FRAME_REGISTERS): Delete.
5376 (DWARF2_FRAME_REG_OUT): Fix whitespace.
5377 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
5379 (REG_ALLOC_ORDER): Adjust.
5380 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
5381 (REG_CLASS_CONTENTS): Adjust.
5382 (RETURN_ADDR_RTX): Change comment.
5383 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
5385 (REGISTER_NAMES): Adjust.
5386 (ADDITIONAL_REGISTER_NAMES): Adjust.
5387 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
5389 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
5391 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
5393 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
5394 (DWARF_FRAME_REGISTERS): Adjust.
5395 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
5397 (REG_ALLOC_ORDER): Adjust.
5398 (enum reg_class): Delete SPR_REGS.
5399 (REG_CLASS_NAMES): Delete SPR_REGS.
5400 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
5401 (REGISTER_NAMES): Adjust.
5402 (ADDITIONAL_REGISTER_NAMES): Adjust.
5403 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
5404 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
5405 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
5406 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
5407 (htm_spr_regno): Delete.
5408 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
5410 (rs6000_dbx_register_number): Adjust.
5412 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
5414 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
5416 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
5418 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
5419 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
5421 2019-05-06 Jakub Jelinek <jakub@redhat.com>
5423 PR tree-optimization/88709
5424 PR tree-optimization/90271
5425 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
5426 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
5427 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
5429 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
5430 of the store merging group is larger than
5431 PARAM_STORE_MERGING_MAX_SIZE parameter.
5432 (split_group): Add bzero_first argument. If set, always emit first
5433 the first store which must be = {} of the whole area and then for the
5434 rest of the stores consider all zero bytes as paddings.
5435 (imm_store_chain_info::output_merged_store): Check if first store
5436 is = {} of the whole area and if yes, determine which setting of
5437 bzero_first for split_group gives smaller number of stores. Adjust
5438 split_group callers.
5439 (lhs_valid_for_store_merging_p): Allow decls.
5440 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
5442 (pass_store_merging::process_store): Likewise.
5444 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
5447 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
5448 handling of V1TImode.
5450 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
5453 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
5454 and enable_frame_pointer ...
5455 * configure.ac: ... here. Update help strings for
5456 --enable-frame-pointer.
5457 * configure: Regenerate.
5458 * config/i386/i386-options.c (ix86_option_override_internal): Remove
5459 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
5460 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
5461 (USE_X86_64_FRAME_POINTER): Ditto.
5463 2019-05-06 Martin Liska <mliska@suse.cz>
5465 * config.gcc: Append to target_gtfiles and fix indentation.
5467 2019-05-06 Richard Biener <rguenther@suse.de>
5469 PR tree-optimization/90358
5470 * tree-vect-stmts.c (get_group_load_store_type): Properly
5471 detect unused upper half of load.
5472 (vectorizable_load): Likewise.
5474 2019-05-06 Richard Biener <rguenther@suse.de>
5476 PR tree-optimization/88828
5477 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
5478 (simplify_vector_constructor): ...here. Handle constants in
5481 2019-05-06 Richard Biener <rguenther@suse.de>
5483 PR tree-optimization/90328
5484 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
5485 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
5486 is valid in the loop nest before using it.
5487 (initialize_data_dependence_relation): Adjust.
5488 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
5489 loop as loop-nest to dr_may_alias_p.
5491 2019-05-06 Richard Biener <rguenther@suse.de>
5493 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
5495 2019-05-06 Richard Biener <rguenther@suse.de>
5497 PR tree-optimization/90316
5498 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
5499 compute target on demand.
5500 (get_continuation_for_phi): Remove code walking stmts to
5501 get to a target virtual operand which could end up being
5504 2019-05-06 Martin Liska <mliska@suse.cz>
5507 * config/i386/i386-options.c (ix86_option_override_internal): Error only
5508 when -mabi is selected to a non-default version.
5510 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
5511 Martin Liska <mliska@suse.cz>
5513 * Makefile.in: Add lto-dump.texi.
5514 * cgraph.h: Add new functions get_visibility_string and
5515 get_symtab_type_string.
5516 * doc/gcc.texi: Include lto-dump section.
5517 * doc/lto-dump.texi: New file.
5518 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
5519 (parse_dump_option): Factor out this function.
5520 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
5521 (parse_dump_option): Export the function.
5522 * symtab.c (symtab_node::get_visibility_string): New function.
5523 (symtab_node::get_symtab_type_string): Likewise.
5525 2019-05-06 Martin Liska <mliska@suse.cz>
5527 * config/i386/i386-builtins.c: New file.
5528 * config/i386/i386-builtins.h: New file.
5529 * config/i386/i386-expand.c: New file.
5530 * config/i386/i386-expand.h: New file.
5531 * config/i386/i386-features.c: New file.
5532 * config/i386/i386-features.h: New file.
5533 * config/i386/i386-options.c: New file.
5534 * config/i386/i386-options.h: New file.
5535 * config.gcc: Add new files into extra_objs and
5537 * config/i386/i386.c: Split content of the file
5538 into newly introduced files.
5539 * config/i386/i386.h: Declare common variables
5541 * config/i386/t-i386: Define dependencies for new files.
5543 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
5546 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
5547 Restrict 'all' variant to 32-bit configurations.
5548 (unaligned_loadhiu): Likewise.
5549 (unaligned_storehi): Likewise.
5550 (unaligned_storesi): Likewise.
5551 (unaligned_loadhis): Disable when compiling for thumb1.
5553 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
5555 PR tree-optimization/90269
5556 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
5559 2019-05-03 Martin Liska <mliska@suse.cz>
5561 * hash-map.h: Add is_empty function.
5562 * hash-set.h: Likewise.
5563 * hash-table.h: Likewise.
5564 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
5565 elements () == 0 (and similar usages).
5566 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
5567 * gimplify.c (gimplify_bind_expr): Likewise.
5568 (gimplify_switch_expr): Likewise.
5569 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
5570 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
5571 * postreload-gcse.c (dump_hash_table): Likewise.
5572 (gcse_after_reload_main): Likewise.
5573 * predict.c (combine_predictions_for_bb): Likewise.
5574 * tree-parloops.c (reduction_phi): Likewise.
5575 (separate_decls_in_region): Likewise.
5576 (transform_to_exit_first_loop): Likewise.
5577 (gen_parallel_loop): Likewise.
5578 (gather_scalar_reductions): Likewise.
5579 (try_create_reduction_list): Likewise.
5580 * var-tracking.c (dump_vars): Likewise.
5581 (emit_notes_for_changes): Likewise.
5582 (vt_emit_notes): Likewise.
5584 2019-05-03 Richard Biener <rguenther@suse.de>
5586 PR tree-optimization/90316
5587 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
5590 2019-05-03 Richard Biener <rguenther@suse.de>
5592 * tree-vect-stmts.c (get_group_load_store_type): Avoid
5593 peeling for gaps by loading only lower halves of vectors
5595 (vectorizable_load): Likewise.
5597 2019-05-03 Richard Biener <rguenther@suse.de>
5600 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
5602 2019-05-03 Richard Biener <rguenther@suse.de>
5605 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
5606 Handle STRING_CST vs DECL or STRING_CST.
5608 2019-05-03 Richard Biener <rguenther@suse.de>
5610 PR tree-optimization/88963
5611 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
5612 vector loads feeding only BIT_FIELD_REFs to component
5613 loads. Rewrite stores fed by CONSTRUCTORs to component
5616 2019-05-03 Jakub Jelinek <jakub@redhat.com>
5618 * opts.h (finish_options): Remove lang_mask argument.
5619 (print_help, help_option_argument): Declare.
5620 * opts.c (print_help): Remove forward declaration, no longer static.
5621 (finish_options): Remove lang_mask argument, don't call print_help
5623 * opts-global.c (decode_options): Adjust finish_option caller, call
5626 PR tree-optimization/90303
5627 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
5628 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
5630 2019-05-03 Richard Biener <rguenther@suse.de>
5632 PR tree-optimization/89698
5633 * gimple-fold.c (canonicalize_constructor_val): Early out
5634 for constants, handle unfolded INTEGER_CSTs as they appear in
5635 C++ virtual table ctors.
5637 2019-05-03 Richard Biener <rguenther@suse.de>
5639 * passes.c (execute_function_todo): Remove dead code.
5641 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
5643 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
5644 the internal register number, for any "real" register.
5646 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
5648 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
5649 correct numbers for TFHAR, TFIAR, TEXASR.
5651 2019-05-02 Richard Biener <rguenther@suse.de>
5653 PR tree-optimization/89653
5654 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
5655 update-address-taken before the pass.
5656 * passes.def (pass_tree_loop_init): Put comment before it.
5658 2019-05-02 Richard Biener <rguenther@suse.de>
5660 PR tree-optimization/89509
5661 * tree-ssa-structalias.c (compute_dependence_clique): Look
5662 at the first subvar when determining whether it is restrict.
5664 2019-05-02 Richard Biener <rguenther@suse.de>
5666 PR tree-optimization/90273
5667 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
5668 useless debug stmts.
5670 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
5672 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
5674 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
5676 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
5677 VEC_COND_EXPR be inserted to emulate a conditional internal function.
5678 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
5679 (vectorizable_reduction): Use the functions above to vectorize in a
5680 fully masked loop codes that don't have a conditional internal
5683 2019-05-02 Martin Liska <mliska@suse.cz>
5685 * cgraphclones.c: Call valid_attribute_p with 1 for
5687 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
5688 it's for target attribute.
5689 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
5690 Add new boolean argument.
5691 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
5693 (ix86_valid_target_attribute_tree): Pass target_clone_attr
5694 to ix86_valid_target_attribute_inner_p.
5695 (ix86_valid_target_attribute_p): Pass flags argument to
5696 ix86_valid_target_attribute_inner_p.
5697 (get_builtin_code_for_version): Use 0 as it's target attribute.
5699 2019-05-02 Martin Liska <mliska@suse.cz>
5701 * gcc.c (process_command): Add dummy file only
5703 * opts-global.c (decode_options): Pass lang_mask.
5704 * opts.c (print_help): New function.
5705 (finish_options): Print --help if help_option_argument
5707 (common_handle_option): Factor out content of OPT__help_
5709 * opts.h (finish_options): Add new argument.
5711 2019-05-02 Martin Liska <mliska@suse.cz>
5714 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
5715 With -minline-all-stringops use inline expansion using 4B loop.
5716 * doc/invoke.texi: Document the change of
5717 -minline-all-stringops.
5719 2019-05-01 Jeff Law <law@redhat.com>
5721 PR tree-optimization/88797
5722 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
5723 PHI feeds a conditional on the RHS of an assignment.
5725 2019-04-30 Andrew Waterman <andrew@sifive.com>
5726 Jim Wilson <jimw@sifive.com>
5728 * config/riscv/constraints.md (L): New.
5729 * config/riscv/predicates.md (lui_operand): New.
5730 (sfb_alu_operand): New.
5731 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
5732 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
5733 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
5734 * config/riscv/risc.md (type): Add sfb_alu.
5735 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
5736 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
5737 (branch_zero<mode>): Delete.
5739 (mov<GPR:mode><X:mode>cc): Likewise.
5740 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
5742 2019-04-30 Nathan Sidwell <nathan@acm.org>
5744 * tree.h (MARK_TS_EXP): New.
5746 2019-04-30 Martin Liska <mliska@suse.cz>
5748 * opts.c (enable_warning_as_error): Provide hints
5749 for unknown options.
5751 2019-04-30 Martin Liska <mliska@suse.cz>
5754 * doc/invoke.texi: Add missing dash for gas-locview-support
5755 and gno-as-locview-support.
5757 2019-04-30 Jakub Jelinek <jakub@redhat.com>
5760 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
5761 whitespace at the start of target attribute string.
5763 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5766 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
5767 Define __ARM_FEATURE_ATOMICS.
5769 2019-04-30 Martin Liska <mliska@suse.cz>
5771 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
5772 into built_in_function enum. Remove code for endp == 2 and
5773 use BUILT_IN_* constants.
5774 (gimple_fold_builtin): Call the function with fcode.
5776 2019-04-30 Martin Liska <mliska@suse.cz>
5778 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
5779 DECL_FUNCTION_CODE into ix86_builtins enum before
5780 the switch statement.
5782 2019-04-30 Jakub Jelinek <jakub@redhat.com>
5784 PR tree-optimization/89475
5785 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
5788 2019-04-30 Martin Liska <mliska@suse.cz>
5790 PR translation/90274
5791 * opts.c (print_filtered_help): Wrap string in _(...).
5793 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
5795 PR tree-optimization/90240
5797 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
5799 PR tree-optimization/90078
5800 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
5801 checks for infinite_cost overflow.
5803 2019-04-29 Jeff Law <law@redhat.com>
5805 * passes.def: Move -Wrestrict pass after copy propagation.
5807 2019-04-29 Maya Rashish <coypu@sdf.org>
5809 * config.gcc (default_gnu_indirect_function): Default to yes
5810 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
5811 sparc*-*-netbsd*, x86_64-*-netbsd*.
5813 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
5815 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
5816 where cond2 is NE_EXPR.
5817 (is_value_included_in): Update comment.
5819 2019-04-29 Richard Biener <rguenther@suse.de>
5821 PR tree-optimization/90278
5822 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
5823 EH on comparison simplification.
5825 2019-04-29 Jason Merrill <jason@redhat.com>
5827 PR c++/82081 - tail call optimization breaks noexcept
5828 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
5829 nothrow function to a might-throw function into a tail call.
5831 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
5833 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
5834 (DDR_INNER_LOOP): Likewise.
5835 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
5836 (initialize_data_dependence_relation): Likewise.
5837 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
5839 2019-04-29 Jakub Jelinek <jakub@redhat.com>
5841 PR rtl-optimization/90257
5842 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
5846 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
5850 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
5853 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
5856 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
5858 * lra-spills.c (lra_final_code_change): Remove useless move insns.
5860 2019-04-29 Richard Biener <rguenther@suse.de>
5862 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
5865 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
5867 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
5868 varasm.h, and netbsd-protos.h.
5870 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
5873 * config/i386/i386-protos.h (ix86_data_alignment): Change
5874 the second argument type to unsigned int.
5875 * config/i386/i386.c (ix86_data_alignment): Change "align"
5876 argument type to unsigned int.
5878 2019-04-27 Martin Liska <mliska@suse.cz>
5881 * opt-suggestions.c (option_proposer::build_option_suggestions):
5882 When get_valid_option_values returns empty values, add the
5883 misspelling candidate.
5885 2019-04-26 Jim Wilson <jimw@sifive.com>
5887 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
5889 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
5890 Pass orig_mode to riscv_build_integer.
5891 (riscv_split_integer): Pass mode to riscv_move_integer.
5892 (riscv_legitimize_const_move): Likewise.
5893 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
5894 promoted_mode. Replace force_reg call with code to load constant into
5895 promoted reg and then subreg it for the store.
5896 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
5899 2018-04-26 Eugene Sharygin <eush@ispras.ru>
5901 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
5904 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
5906 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
5907 commentary about the encoding of precision.
5909 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
5911 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
5912 * config/i386/t-freebsd64: New file.
5913 * config.gcc: Add the t-freebsd64 for multilib support.
5915 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
5917 * doc/extend.texi (vector_size): Add missing comma after @xref.
5919 2019-04-25 Jakub Jelinek <jakub@redhat.com>
5921 * BASE-VER: Set to 10.0.0.
5923 2019-04-25 Richard Biener <rguenther@suse.de>
5926 * gimplify.c (gimplify_expr): Avoid turning a lvalue
5927 VIEW_CONVERT_EXPR into one operating on an rvalue.
5929 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
5932 * config/i386/i386.c (feature_priority): Moved to file scope.
5933 (processor_features): Likewise.
5934 (processor_model): Likewise.
5935 (_arch_names_table): Likewise.
5936 (arch_names_table): Likewise.
5937 (_feature_list): Removed.
5938 (feature_list): Likewise.
5939 (_isa_names_table): Moved to file scope. Add priority.
5940 (isa_names_table): Likewise.
5941 (get_builtin_code_for_version): Replace feature_list with
5942 isa_names_table. Update error message for P_ZERO priority.
5944 2019-04-25 Richard Biener <rguenther@suse.de>
5946 * tree-pass.h (make_pass_phi_only_cprop): Remove.
5947 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
5949 2019-04-24 Jeff Law <law@redhat.com>
5951 PR tree-optimization/90037
5952 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
5953 * passes.def: Replace all instance of phi-only cprop with the
5954 lattice propagator. Move propagation pass from after erroneous
5955 path isolation to before erroneous path isolation.
5956 * tree-ssa-phionlycprop.c: Remove.
5958 2019-04-24 Richard Biener <rguenther@suse.de>
5961 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
5962 by size and BITS_PER_UNIT on poly-wide-ints.
5964 2019-04-25 Richard Biener <rguenther@suse.de>
5967 * match.pd: Add pattern to simplify view-conversion of an
5970 2019-04-24 Clement Chigot <clement.chigot@atos.net>
5972 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
5973 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
5974 for Go on 32 bit AIX.
5975 * config/rs6000/aix72.h: Likewise.
5977 2019-04-24 Jakub Jelinek <jakub@redhat.com>
5980 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
5981 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
5983 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
5986 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
5987 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
5988 for restored hard frame pointer.
5989 (s390_sched_dependencies_evaluation): Implement new target hook.
5990 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
5992 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
5994 * config/arc/arc-options.def: Fix typos and spelling mistakes.
5995 * config/arc/arc.c (arc_init): Cleanup warning message.
5996 (arc_override_options): Likewise.
5998 2019-04-24 Jakub Jelinek <jakub@redhat.com>
6001 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
6002 a register if both if_true and if_false are MEMs.
6004 PR tree-optimization/90208
6005 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
6006 after labels of new_bb, not before them.
6008 PR tree-optimization/90211
6009 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
6010 which are not SSA_NAMEs.
6012 2018-04-23 Sudakshina Das <sudi.das@arm.com>
6014 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
6016 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
6018 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
6020 PR rtl-optimization/87979
6021 * modulo-sched.c (sms_schedule): Start ii value "mii" should
6024 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
6026 PR rtl-optimization/84032
6027 * modulo-sched.c (ps_insn_find_column): Change condition so that
6028 branch will always be the last insn in a row inside partial
6031 2019-04-23 Richard Biener <rguenther@suse.de>
6034 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
6035 dest_single_pred_p argument.
6036 (remove_forwarder_block): Adjust.
6037 (remove_forwarder_block_with_phi): Likewise.
6039 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6040 Bernd Edlinger <bernd.edlinger@hotmail.de>
6041 Jakub Jelinek <jakub@redhat.com>
6044 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
6045 if used with general-regs-only.
6046 (arm_conditional_register_usage): Don't add non-general regs if
6048 (arm_valid_target_attribute_rec): Handle general-regs-only.
6049 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
6051 (TARGET_HARD_FLOAT_SUB): Define.
6052 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
6053 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
6054 (TARGET_REALLY_IWMMXT2): Likewise.
6055 * config/arm/arm.opt: Add -mgeneral-regs-only.
6056 * doc/extend.texi: Document ARM general-regs-only target.
6057 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
6059 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
6061 PR tree-optimization/90078
6062 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
6063 checks for infinite_cost overflow.
6065 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
6067 PR tree-optimization/90021
6068 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
6069 and check univariate against it.
6070 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
6071 * tree-data-ref.c (add_other_self_distances): Pass new argument.
6073 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
6077 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
6080 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
6083 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
6085 * lra-spills.c (lra_final_code_change): Remove useless move insns.
6087 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
6089 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
6090 names using operand format, rather than hard-wired.
6091 (speculation_barrier): Likewise.
6093 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
6095 PR tree-optimization/88055
6096 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
6097 (gen_one_condition): Use it if !HONOR_NANS.
6099 2019-04-19 Jakub Jelinek <jakub@redhat.com>
6102 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
6103 assign_temp instead of gen_reg_rtx.
6105 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
6107 PR translation/90118
6108 * config/aarch64/aarch64.c (aarch64_override_options_internal):
6109 Add missing space before %<.
6111 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
6113 PR rtl-optimization/87871
6114 * ira-lives.c (make_object_dead): Don't add conflicts to
6115 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
6117 2019-04-18 Martin Sebor <msebor@redhat.com>
6120 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
6121 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
6122 assuming type size fits in SHWI.
6124 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
6127 * ipa-inline.c (flatten_function): New parameter UPDATE.
6128 (ipa_inline, early_inliner): Use it.
6130 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
6132 * fold-const.c (int_const_binop): Return early on failure.
6134 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
6137 * combine.c (force_int_to_mode): Cast the argument rather than
6138 the result of known_alignment.
6139 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
6141 2019-04-18 Richard Biener <rguenther@suse.de>
6144 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
6146 (remove_forwarder_block): ... here.
6147 (remove_forwarder_block_with_phi): Also move debug stmts here.
6149 2019-04-18 Jakub Jelinek <jakub@redhat.com>
6151 PR translation/79183
6152 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
6153 inform where appropriate.
6155 2019-04-18 Richard Biener <rguenther@suse.de>
6157 * tree.c (get_qualified_type): Put found type variants at the
6158 head of the variant list.
6160 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
6162 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
6164 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
6167 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
6168 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
6169 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
6170 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
6171 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
6173 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
6175 * ira-conflicts.c (print_allocno_conflicts): Always print something,
6176 even for allocno's with no conflicts.
6177 (print_conflicts): Print an extra newline.
6179 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
6181 * auto-inc-dec.c (attempt_change): Set the alignment of the
6182 temporary memory to that of the original.
6184 2019-04-17 Joao Moreira <jmoreira@suse.de>
6186 * targhooks.c (default_print_patchable_function_entry): Emit
6187 __patchable_function_entries section with writable flags to allow
6188 relocation resolution.
6190 2019-04-17 Jonny Grant <jg@jguk.org>
6192 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
6194 2019-04-17 Jakub Jelinek <jakub@redhat.com>
6197 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
6200 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
6202 * config/arc/arc.c (arc_init): Format diagnostic string.
6203 (arc_override_options): Likewise.
6204 (check_if_valid_regno_const): Likewise.
6205 (arc_reorg): Likewise.
6207 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
6210 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
6212 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
6214 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
6215 (*movdi_update1): Use Pmode.
6216 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
6217 (movdi_<mode>_update_stack): Rename to ...
6218 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
6220 (*movsi_update1): Use Pmode.
6221 (*movsi_update2): Use Pmode.
6222 (movsi_update): Rename to ...
6223 (movsi_<mode>_update): ... this. Use Pmode.
6224 (movsi_update_stack): Fix condition.
6225 (*movhi_update1): Use Pmode. Fix argument to
6226 avoiding_indexed_address_p.
6227 (*movhi_update2): Ditto.
6228 (*movhi_update3): Ditto.
6229 (*movhi_update4): Ditto.
6230 (*movqi_update1): Ditto.
6231 (*movqi_update2): Ditto.
6232 (*movqi_update3): Ditto.
6233 (*movsf_update1, *movdf_update1): Merge, rename to...
6234 (*mov<mode>_update1): This. Use Pmode. Fix argument to
6235 avoiding_indexed_address_p. Add "size" attribute.
6236 (*movsf_update2, *movdf_update2): Merge, rename to...
6237 (*mov<mode>_update2): This. Ditto.
6238 (*movsf_update3): Use Pmode. Fix argument to
6239 avoiding_indexed_address_p.
6240 (*movsf_update4): Ditto.
6241 (allocate_stack): Simplify condition. Adjust pattern names.
6243 2019-04-17 Jakub Jelinek <jakub@redhat.com>
6246 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
6247 whitespace at the start of target attribute string.
6249 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
6252 * config/rs6000/power9.md: Add store forwarding bypass.
6254 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
6257 * valtrack.c (dead_debug_insert_temp): Reset debug references
6258 to the return value of a call being removed.
6260 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
6262 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
6263 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
6264 implement target hook.
6265 (arc_memory_move_cost): New function.
6266 (TARGET_REGISTER_MOVE_COST): Define.
6267 (TARGET_MEMORY_MOVE_COST): Likewise.
6268 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
6269 (MEMORY_MOVE_COST): Likewise.
6271 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
6273 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
6274 (sibcall_value_insn): Likewise.
6275 * config/arc/constraints.md (Rs5): Remove.
6277 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
6279 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
6280 for last two fake registers.
6281 (arc_conditional_register_usage): Make sure fake frame and arg
6282 pointer regs are in general regs class.
6283 (FRAME_POINTER_MASK): Remove.
6284 (RETURN_ADDR_MASK): Remove.
6285 (arc_must_save_register): Use hard frame regnum.
6286 (frame_restore_reg): Use hard_frame_pointer_rtx.
6287 (arc_save_callee_saves): Likewise.
6288 (arc_restore_callee_saves): Likewise.
6289 (arc_save_callee_enter): Likewise.
6290 (arc_restore_callee_leave): Likewise.
6291 (arc_save_callee_milli): Likewise.
6292 (arc_eh_return_address_location): Likewise.
6293 (arc_check_multi): Use hard frame regnum.
6294 (arc_can_eliminate): Likewise.
6295 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
6296 for register allocator.
6297 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
6298 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
6299 (FRAME_POINTER_REGNUM): Change it to a fake register.
6300 (HARD_FRAME_POINTER_REGNUM): Defined.
6301 (ARG_POINTER_REGNUM): Change it to a new fake register.
6302 (ELIMINABLE_REGS): Update.
6303 (REGISTER_NAMES): Update names.
6304 * config/arc/arc.md (LP_START): Remove.
6306 (shift_si3_loop): Update pattern.
6308 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
6310 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
6311 to avoid delay slot scheduling.
6312 (arc_must_save_register): Don't save SP.
6313 * config/arc/arc.md (stack_tie): Remove.
6314 (UNSPEC_ARC_STKTIE): Likewise.
6316 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
6317 Shiva Chen <shiva0217@gmail.com>
6319 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
6320 code gen with large shift amount.
6322 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
6324 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
6327 2019-04-16 Jakub Jelinek <jakub@redhat.com>
6330 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
6331 print -m64/-mx32/-m32 if it is true.
6332 (ix86_debug_options, ix86_function_specific_print): Pass true as
6333 ADD_ABI_P to ix86_target_string.
6334 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
6335 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
6336 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
6338 PR rtl-optimization/90082
6339 * dce.c (can_delete_call): New function.
6340 (deletable_insn_p, mark_insn): Use it.
6342 PR tree-optimization/90090
6343 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
6345 (is_division_by_square): Likewise. Formatting fix.
6347 2019-04-16 Richard Biener <rguenther@suse.de>
6349 PR tree-optimization/56049
6350 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
6351 equality check if alias-set zero will prevail.
6353 2019-04-15 Jeff Law <law@redhat.com>
6355 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
6356 size and alignment as unsigned.
6358 2019-04-15 Richard Biener <rguenther@suse.de>
6361 * tree-loop-distribution.c (destroy_loop): Preserve correct
6364 2019-04-15 Richard Biener <rguenther@suse.de>
6366 PR tree-optimization/90071
6367 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
6368 abnormal operands from def stmts.
6370 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
6372 PR rtl-optimization/89794
6373 * combine.c (count_auto_inc): New function.
6374 (try_combine): Count how many auto_inc expressions there were in the
6375 original instructions. Ensure we have the same number in the new
6376 instructions. Remove the code that tried to ensure auto_inc side
6377 effects on i1 and i0 are not lost.
6379 2019-04-15 Richard Biener <rguenther@suse.de>
6382 * tree.h (auto_var_p): Declare.
6383 * tree.c (auto_var_p): New function, split out from ...
6384 (auto_var_in_fn_p): ... here.
6385 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
6387 (new_var_info): Initialize it.
6388 (set_uids_in_ptset): Also set the shadow variable uid if required.
6389 (ipa_pta_execute): Postprocess points-to solutions assigning
6390 shadow variable uids for locals that may reach their containing
6391 function recursively.
6392 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
6393 assert but instead check whether the points-to solution is
6396 2019-04-15 Martin Jambor <mjambor@suse.cz>
6399 * cgraph.c (clone_of_p): Loop over clone chain for each step in
6402 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
6404 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
6406 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
6407 Kito Cheng <kito.cheng@gmail.com>
6408 Shiva Chen <shiva0217@gmail.com>
6410 * config/nds32/nds32-md-auxiliary.c
6411 (nds32_legitimize_pic_address): Use new PIC pattern.
6412 (nds32_legitimize_tls_address): Use new TLS pattern.
6413 (nds32_output_symrel): New.
6414 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
6415 (nds32_alloc_relax_group_id): Ditto.
6416 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
6417 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
6419 (nds32_group_tls_insn): Ditto.
6420 (nds32_group_float_insns): Ditto.
6421 * config/nds32/nds32.md (tls_le): New.
6424 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
6426 * configure: Add nds32 target for dwarf2 debug_line checking.
6427 * configure.ac: Regenerated.
6429 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
6432 * ipa-devirt.c (skip_in_fields_list_p): New.
6433 (odr_types_equivalent_p): Use it.
6435 2019-04-13 Jakub Jelinek <jakub@redhat.com>
6438 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
6439 instead of strncmp when checking for thumb and arm. Formatting fixes.
6441 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
6443 * doc/install.texi: Document --with-target-system-zlib.
6445 2019-04-12 Martin Sebor <msebor@redhat.com>
6451 * targhooks.c (default_vector_alignment): Avoid assuming
6452 argument fits in SHWI.
6453 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
6455 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
6457 2019-04-12 Jakub Jelinek <jakub@redhat.com>
6459 PR rtl-optimization/89965
6460 * dce.c: Include rtl-iter.h.
6461 (struct check_argument_load_data): New type.
6462 (check_argument_load): New function.
6463 (find_call_stack_args): Check for loads from stack slots still tracked
6464 in sp_bytes and punt if any is found.
6466 * config/mips/loongson-mmiintrin.h: Fix up #error message.
6468 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
6470 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
6471 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
6473 2019-04-12 Martin Liska <mliska@suse.cz>
6476 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
6478 (separate_attrs): Handle multiple 'default's.
6479 (expand_target_clones): Rework error handling code.
6481 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
6484 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
6485 mode of vector rather than mode of destination for move instruction.
6486 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
6487 Use QI inner mode with V16QI vector mode.
6489 2019-04-12 Jakub Jelinek <jakub@redhat.com>
6492 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
6493 "invalid %%t operand" in output_operand_lossage message.
6495 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
6497 * config/s390/predicates.md (permute_pattern_operand): New
6499 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
6500 operand for the permute pattern.
6501 ("*vec_perm<mode>"): New insn definition.
6502 ("bswap<mode>"): Generate the permute pattern operand in the
6503 expander and perform the operand reloads for pre arch13 level
6505 ("*bswap<mode>_emu"): Rename to ...
6506 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
6507 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
6508 Add the USE operand for the permute pattern.
6509 ("*vec_set_bswap_vec<mode>"): Likewise.
6511 2019-04-12 Jakub Jelinek <jakub@redhat.com>
6514 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
6515 and gcc_unreachable if it fails, just call tree_to_uhwi which
6516 verifies that too. Test TREE_CHAIN instead of list_length > 1.
6517 Start warning message with a lower-case letter. Formatting fixes.
6519 PR rtl-optimization/90026
6520 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
6521 successors, look for BARRIERs inside of the whole BB_FOOTER chain
6522 rather than just at the start of it. If e->src BB_FOOTER is not NULL
6523 in cfglayout mode, use emit_barrier_after_bb.
6525 2018-04-11 Steve Ellcey <sellcey@marvell.com>
6527 PR rtl-optimization/87763
6528 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
6531 2019-04-11 Tom de Vries <tdevries@suse.de>
6533 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
6534 max macro using statement expression.
6536 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
6538 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
6539 * xcoffout.c (xcoff_private_rodata_section_name): Define.
6540 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
6541 read_only_private_data_section using xcoff_private_rodata_section_name.
6542 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
6544 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
6547 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
6549 2019-04-11 Jakub Jelinek <jakub@redhat.com>
6551 PR rtl-optimization/89965
6552 * dce.c (sp_based_mem_offset): New function.
6553 (find_call_stack_args): Use sp_based_mem_offset.
6555 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
6557 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
6559 2019-04-11 Richard Biener <rguenther@suse.de>
6561 PR tree-optimization/90020
6562 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
6563 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
6564 * tree-ssa-pre.c (compute_avail): Use it to not put
6565 possibly trapping references after a call that might not
6566 return into EXP_GEN.
6567 * gcse.c (compute_hash_table_work): Do not elide
6568 marking a block containing a call if the call might not
6571 2019-04-11 Richard Biener <rguenther@suse.de>
6573 PR tree-optimization/90018
6574 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
6575 Test both SLP and interleaving variants.
6577 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
6579 * config/s390/8561.md: New file.
6580 * config/s390/driver-native.c (s390_host_detect_local_cpu):
6581 Add arch13 cpu model.
6582 * config/s390/s390-opts.h (enum processor_type): Likewise.
6583 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
6584 (s390_get_unit_mask): Likewise.
6585 (s390_is_fpd): Likewise.
6586 (s390_is_fxd): Likewise.
6587 * config/s390/s390.h (s390_tune_attr): Likewise.
6588 * config/s390/s390.md: Include arch13 pipeline description.
6589 * config/s390/s390.opt: Add arch13.
6591 2018-04-10 Steve Ellcey <sellcey@marvell.com>
6593 PR rtl-optimization/87763
6594 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
6596 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
6598 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
6600 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
6601 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
6602 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
6603 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
6605 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
6607 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
6608 "Although" in -fipa-icf documentation.
6610 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
6611 of using multiple -g options.
6613 2019-04-10 Martin Liska <mliska@suse.cz>
6615 PR gcov-profile/89959
6616 * doc/gcov.texi: Make documentation of -x option
6619 2019-04-10 Richard Biener <rguenther@suse.de>
6621 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
6623 (DR_GROUP_SAME_DR_STMT): Remove.
6624 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
6625 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
6626 replace with assert.
6627 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
6628 (vect_record_grouped_load_vectors): Remove unreachable code.
6630 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
6633 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
6634 obsolete reference to N.
6636 2019-04-10 Jakub Jelinek <jakub@redhat.com>
6639 * expr.c (store_expr): Set properly size on the MEM passed to
6643 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
6644 with strlen in between hostsz-3 and hostsz-1 inclusive when no
6645 translation is needed, and when translation is needed, only append
6646 ... if the string length is hostsz or more bytes long. Avoid using
6649 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
6652 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
6653 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
6655 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
6656 differences directly.
6657 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
6659 2019-04-09 Jakub Jelinek <jakub@redhat.com>
6661 PR translation/90011
6662 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
6664 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
6666 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
6667 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
6668 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
6669 trailing space from -gsplit-dwarf diagnostics.
6671 PR tree-optimization/89998
6672 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
6673 instead of integer_type_node if possible, don't add ranges if return
6674 type is not compatible with int.
6675 * gimple-fold.c (gimple_fold_builtin_sprintf,
6676 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
6679 2019-04-09 Martin Liska <mliska@suse.cz>
6681 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
6682 * doc/install.texi: Document the new config.
6684 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
6686 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
6687 use gimple_expr_type for load and store calls. Skip over the
6688 condition argument in a conditional internal function.
6689 Protect use of TREE_INT_CST_LOW.
6691 2019-04-09 Jakub Jelinek <jakub@redhat.com>
6694 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
6695 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
6696 trailing period from it too.
6698 2019-04-08 wu yuan <wuyuan5@huawei.com>
6700 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
6701 * config/aarch64/aarch64.md : Add "tsv110.md"
6702 * config/aarch64/tsv110.md: New file.
6704 2019-04-08 Richard Biener <rguenther@suse.de>
6706 PR tree-optimization/90006
6707 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
6710 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
6713 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
6715 (fma_root_node): Likewise.
6716 (func_fma_steering): Likewise.
6718 2019-04-08 Jakub Jelinek <jakub@redhat.com>
6720 PR rtl-optimization/89865
6721 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
6723 PR rtl-optimization/89865
6724 * config/i386/i386.md
6725 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
6726 numbers not to clash with the additional operands[4].
6727 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
6728 with extra register copy in the middle.
6730 2019-04-08 Martin Liska <mliska@suse.cz>
6732 PR gcov-profile/89961
6733 * doc/gcov.texi: Document data_file.
6734 * gcov.c (generate_results): Add data_info into JSON output.
6736 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
6738 PR tree-optimization/89725
6739 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
6740 loop's chrec as invariant symbol.
6741 * tree-chrec.h (chrec_contains_symbols): New parameter.
6742 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
6743 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
6744 function of loops not in DDR's loop_nest.
6745 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
6747 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
6750 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
6753 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
6756 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
6757 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
6759 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
6761 * sched-deps.c (sched_macro_fuse_insns): Check return value of
6762 targetm.fixed_condition_code_regs.
6764 2019-04-05 Richard Biener <rguenther@suse.de>
6768 * tree-cfgcleanup.c (remove_forwarder_block): Always move
6769 debug bind stmts but reset them if they are not valid at the
6772 2019-04-05 Martin Liska <mliska@suse.cz>
6774 PR translation/89936
6775 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
6776 order to wrap keywords or arguments.
6777 * collect2.c (main): Likewise.
6778 (scan_prog_file): Likewise.
6779 (scan_libraries): Likewise.
6780 * common/config/riscv/riscv-common.c
6781 (riscv_subset_list::parsing_subset_version): Likewise.
6782 (riscv_subset_list::parse_std_ext): Likewise.
6783 * config/aarch64/aarch64.c (aarch64_override_options_internal):
6785 * config/arm/arm.c (arm_option_override): Likewise.
6786 * config/cris/cris.c (cris_print_operand): Likewise.
6787 * config/darwin-c.c (darwin_pragma_options): Likewise.
6788 (darwin_pragma_unused): Likewise.
6789 (darwin_pragma_ms_struct): Likewise.
6790 * config/ft32/ft32.c (ft32_print_operand): Likewise.
6791 * config/i386/i386.c (print_reg): Likewise.
6792 (ix86_print_operand): Likewise.
6793 * config/i386/xm-djgpp.h: Likewise.
6794 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
6795 * config/m32c/m32c.c (m32c_option_override): Likewise.
6796 * config/msp430/msp430.c (msp430_option_override): Likewise.
6797 * config/nds32/nds32.c (nds32_option_override): Likewise.
6798 * config/nvptx/mkoffload.c (main): Likewise.
6799 * config/rx/rx.c (rx_print_operand): Likewise.
6800 (valid_psw_flag): Likewise.
6801 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
6802 (vms_pragma_nomember_alignment): Likewise.
6803 (vms_pragma_extern_model): Likewise.
6804 * lto-wrapper.c (compile_offload_image): Likewise.
6805 * omp-offload.c (oacc_parse_default_dims): Likewise.
6806 * symtab.c (symtab_node::verify_base): Likewise.
6807 * tlink.c (recompile_files): Likewise.
6808 (start_tweaking): Likewise.
6809 * tree-profile.c (parse_profile_filter): Likewise.
6811 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
6813 PR tree-optimization/89956
6814 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
6815 multiple negates of the same value.
6817 2019-04-04 Martin Sebor <msebor@redhat.com>
6821 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
6822 have the same precision since the function crashes otherwise.
6823 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
6824 has non-zero arguments.
6826 2019-04-04 Martin Sebor <msebor@redhat.com>
6829 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
6830 out if the number of arguments is less than expected.
6832 2019-04-04 Jeff Law <law@redhat.com>
6834 PR rtl-optimization/89399
6835 * ree.c (combine_set_extension): Use single_set rather than
6836 digging into PATTERN for items on the candidate list.
6837 (combine_reaching_defs): Likewise.
6839 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
6841 PR rtl-optimization/46590
6842 * loop-invariant.c (find_defs): Move df_remove_problem and
6843 df_process_deferred_rescans to move_invariants.
6844 Move df_live_add_problem and df_live_set_all_dirty calls
6846 (move_invariants): Likewise.
6847 (move_loop_invariants): Likewise, making the df_live calls
6848 conditional on -O. Remove the problem again if we added it
6851 2019-04-03 qing zhao <qing.zhao@oracle.com>
6853 PR tree-optimization/89730
6854 * ipa-inline.c (can_inline_edge_p): Delete the checking for
6855 -flive-patching=inline-only-static.
6856 (can_inline_edge_by_limits_p): Add the checking for
6857 -flive-patching=inline-only-static and grant always_inline
6858 even when -flive-patching=inline-only-static is specified.
6860 2019-04-03 Jeff Law <law@redhat.com>
6862 PR rtl-optimization/81025
6863 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
6865 2019-04-03 Richard Biener <rguenther@suse.de>
6867 PR tree-optimization/84101
6868 * tree-vect-stmts.c: Include explow.h for hard_function_value,
6869 regs.h for hard_regno_nregs.
6870 (cfun_returns): New helper.
6871 (vect_model_store_cost): When vectorizing a store to a decl
6872 we return and the function ABI returns in a multi-reg location
6873 account for the possible spilling that will happen.
6875 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
6877 * config/s390/s390.c (s390_legitimate_address_p): Reject long
6878 displacement addresses for vector mode operands.
6880 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
6882 * config/arc/arc.c (GMASK_LEN): Define.
6883 (arc_restore_callee_saves): Restore first blink when
6886 2019-04-03 Sudakshina Das <sudi.das@arm.com>
6888 * doc/extend.texi: Add deprecated comment on sign-return-address
6889 function attribute and add mbranch-protection.
6890 * doc/invoke.texi: Add bti to the options for mbranch-protection.
6892 2019-04-03 Richard Biener <rguenther@suse.de>
6895 * lto-wrapper.c (run_gcc): Avoid implicit rules making
6896 the all target phony.
6898 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
6902 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
6903 Return false for variable DImode shifts.
6904 (dimode_scalar_chain::compute_convert_gain): Do not handle
6905 register count operand in variable DImode shifts.
6906 (dimode_scalar_chain::make_vector_copies): Remove support to copy
6907 count argument of a variable shift instruction to a vector register.
6908 (dimode_scalar_chain::convert_reg): Remove support to convert
6909 count argument of a variable shift instruction.
6911 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
6913 PR rtl-optimization/84206
6914 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
6915 iterating over loop headers.
6917 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
6919 PR rtl-optimization/85876
6920 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
6921 beyond the original fence.
6923 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
6925 * config.gcc: Mark spu* targets as deprecated/obsolete.
6927 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
6929 * config/s390/s390-builtin-types.def: New builtin function type
6930 definitions. Remove unused types.
6931 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
6932 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
6933 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
6934 overloaded builtins.
6935 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
6936 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
6937 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
6938 (vec_double, vec_signed, vec_unsigned): Define to use the new
6939 overloaded builtins.
6940 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
6943 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
6945 * config/s390/s390-builtin-types.def: New builtin function type
6947 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
6948 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
6949 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
6950 (s390_vstrszh, s390_vstrszf): New low-level builtins.
6951 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
6952 constant definitions.
6953 * config/s390/vecintrin.h (vec_search_string_cc)
6954 (vec_search_string_until_zero_cc): New builtin name definitions.
6955 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
6957 ("vec_vstrs<mode>"): New insn definition.
6959 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
6961 * config/s390/s390-builtin-types.def: Add new builtin function
6963 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
6964 New overloaded builtins.
6965 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
6967 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
6968 (UNSPEC_VEC_SLDBYTE): ... this.
6969 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
6970 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
6972 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
6973 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
6974 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
6976 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
6978 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
6979 New insn definition.
6980 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
6981 * config/s390/vector.md (V_HW_HSD): ... here.
6983 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
6985 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
6986 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
6987 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
6988 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
6989 New insn definitions.
6991 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
6993 * config/s390/s390-builtin-types.def: Add new builtin function type.
6994 * config/s390/s390-builtins.def: Add overloaded builtin
6995 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
6996 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
6997 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
6998 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
6999 ("eltswap<mode>"): New expander.
7000 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
7003 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
7005 * config/s390/s390-builtin-types.def: Add new builtin function types.
7006 * config/s390/s390-builtins.def: Add overloaded builtin
7007 s390_vec_revb. Add low-level builtins for vlbr and vstbr
7009 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
7010 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
7011 ("bswap<mode>"): New expander.
7012 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
7014 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
7016 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
7017 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
7018 vector builtin version number in __VEC__.
7020 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
7022 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
7024 (SFSI): New mode attribute.
7025 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
7026 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
7028 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
7029 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
7030 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
7031 ("floatsi<mode>2"): Add wcefb instruction.
7033 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
7035 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
7036 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
7038 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
7039 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
7040 support 32 bit fp-int conversions. Rename to ...
7041 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
7042 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
7043 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
7044 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
7047 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
7049 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
7050 if-then-else constructs if we can use the select instruction.
7051 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
7053 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
7055 * config/s390/s390.md ("*popcountdi_arch13_cc")
7056 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
7058 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
7059 Append _z196 to make it ...
7060 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
7061 ("popcounthi2_z196"): ... this.
7062 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
7063 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
7065 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
7067 * config/s390/s390.c (s390_canonicalize_comparison): Convert
7068 certain compares for arch13 in order to make use of the condition
7069 code result produced by the new instructions.
7070 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
7071 nxrk, and nxgrk instruction patterns.
7072 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
7073 (inv_no): Add new code iterator together with some attributes.
7074 ("*andc_split_<mode>"): Disable splitter for arch13.
7075 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
7076 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
7077 ("*<ANDOR:bitops_name>c<GPR:mode>")
7078 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
7079 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
7080 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
7081 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
7083 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
7085 * common/config/s390/s390-common.c (processor_flags_table): New
7087 * config.gcc: Support arch13 with the --with-arch= configure flag.
7088 * config/s390/driver-native.c (s390_host_detect_local_cpu):
7089 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
7090 * config/s390/s390.c (s390_get_sched_attrmask)
7091 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
7092 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
7093 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
7094 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
7095 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
7097 * config/s390/s390.opt: Support arch13 as processor type in
7098 command line options.
7100 2019-04-02 Martin Liska <mliska@suse.cz>
7102 PR translation/89912
7103 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
7104 Fix param description of graphite-max-arrays-per-scop.
7106 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
7108 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
7109 (ASAN_CC1_SPEC): Use it in 64-bit mode.
7110 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
7112 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
7114 PR rtl-optimization/85412
7115 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
7116 sel_sched_region_1, not after.
7118 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
7120 PR rtl-optimization/86928
7121 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
7122 compute_live if necessary.
7123 (sel_redirect_edge_and_branch): Likewise.
7125 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
7127 PR rtl-optimization/89865
7128 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
7129 register if it is a part of small class.
7131 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
7133 PR rtl-optimization/87273
7134 * sel-sched-ir.c (merge_fences): Remove assert.
7136 2019-04-01 Richard Biener <rguenther@suse.de>
7138 PR tree-optimization/46590
7139 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
7140 (dom_walker::m_reachability): Add in place of...
7141 (dom_walker::m_skip_unreachable_blocks): ...this.
7142 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
7143 Move complex initialization ...
7144 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
7145 lazily and initialize edge flags on each invocation.
7146 (dom_walker::bb_reachable): Use m_reachability.
7148 2019-04-01 Martin Liska <mliska@suse.cz>
7151 * opt-suggestions.c (option_proposer::build_option_suggestions):
7152 Add variant without any argument in order to provide better
7155 2019-04-01 Richard Biener <rguenther@suse.de>
7158 * gimple.c: Include langhooks.h.
7159 (gimple_get_alias_set): Treat enumeral types as the underlying
7162 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
7163 Eric Botcazou <ebotcazou@adacore.com>
7165 PR rtl-optimization/89862
7166 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
7167 that operates on the full registers for WORD_REGISTER_OPERATIONS
7170 2019-03-29 Jim Wilson <jimw@sifive.com>
7172 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
7173 Clear MASK_RVC and then set if C subset supported.
7175 2019-03-29 Jakub Jelinek <jakub@redhat.com>
7178 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
7179 non-addressable complit into its initializer if it is volatile.
7181 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
7183 * opts-common.c (integral_argument): Set errno properly in one case.
7185 2019-03-29 Martin Liska <mliska@suse.cz>
7187 * doc/invoke.texi: Remove -Wchkp from documentation.
7189 2019-03-29 Martin Liska <mliska@suse.cz>
7191 * dbgcnt.c (print_limit_reach): New function.
7194 2019-03-29 Martin Liska <mliska@suse.cz>
7196 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
7197 (dbg_cnt_process_opt): Parse first tokens aas
7198 dbg_cnt_process_single_pair is also using strtok.
7200 2019-03-29 Jakub Jelinek <jakub@redhat.com>
7202 PR rtl-optimization/87485
7203 * function.c (expand_function_end): Move stack_protect_epilogue
7204 before loading of return value into hard register(s).
7206 2019-03-28 Jakub Jelinek <jakub@redhat.com>
7209 * tree-inline.h (struct copy_body_data): Add
7210 dont_remap_vla_if_no_change flag.
7211 * tree-inline.c (remap_type_3, remap_type_2): New functions.
7212 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
7213 and remap_type_2 returns false.
7214 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
7215 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
7216 only from where it is copied to nested contexts.
7218 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
7221 * config/i386/i386.md (RMW operation with LEA peephole):
7222 Use LEAMODE mode attribute instead of SWI mode iterator for
7225 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
7228 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
7229 Also process XEXP (src, 0) of a shift insn.
7231 2019-03-28 David Malcolm <dmalcolm@redhat.com>
7234 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
7235 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
7237 2019-03-28 Jakub Jelinek <jakub@redhat.com>
7239 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
7241 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
7242 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
7243 immediately after first one with df_analyze in between, but rather
7244 process all bbs, queueing ones that need second pass in a worklist,
7245 df_analyze, process queued debug insn changes and if second pass is
7246 needed, process bbs from worklist, df_analyze, process queued debug
7249 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
7250 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
7251 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
7253 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
7256 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
7259 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
7262 * config/i386/i386.c (ix86_function_value_1): Call the newly added
7263 function for 32-bit MS_ABI.
7264 (function_value_ms_32): New function.
7266 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
7268 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
7269 (movdi): Call gen_movdi_symbol_save_scc.
7270 (gen_movdi_symbol_save_scc): New insn and split.
7272 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
7274 PR rtl-optimization/89313
7275 * function.c (matching_constraint_num): New static function.
7276 (match_asm_constraints_1): Use it. Fixup white space and comment.
7277 Don't replace inputs with non-matching constraints which conflict
7278 with early clobber outputs.
7280 2019-03-27 Jeff Law <law@redhat.com>
7283 PR rtl-optimization/87761
7284 PR rtl-optimization/89826
7285 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
7287 (pass_cprop_hardreg::execute): Call df_analyze after adding the
7288 note problem to get REG_DEAD/REG_UNUSED notes updated.
7290 2019-03-27 Richard Biener <rguenther@suse.de>
7292 PR tree-optimization/89463
7293 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
7294 queue edges to remove.
7295 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
7296 dead stmts. Delay edge removal until PHIs are removed to
7297 make debug-stmt creation not confused by seemingly degenerate
7300 2019-03-27 Alan Modra <amodra@gmail.com>
7302 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
7304 * config/rs6000/darwin.h: Likewise.
7305 * config/rs6000/rs6000.c: Likewise.
7307 2019-03-27 Alan Modra <amodra@gmail.com>
7309 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
7310 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
7312 2019-03-26 Andrew Waterman <andrew@sifive.com>
7313 Jim Wilson <jimw@sifive.com>
7315 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
7316 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
7317 (generic_idivdi, generic_fmul_single, generic_fmul_double)
7318 (generic_fdiv, generic_fsqrt): Add check for generic tune.
7319 (generic_alu): Add auipc to type list.
7320 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
7321 (riscv_microarchitecture): Declare.
7322 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
7323 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
7325 (riscv_microarchitecture): New.
7326 (sifive_7_tune_info): New.
7327 (riscv_cpu_info_table): Add microarchitecture value for rocket and
7328 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
7330 (riscv_store_data_bypass_p): New.
7331 (riscv_option_override): Set riscv_microarchitecture from
7332 cpu->microarchitecture.
7333 * config/riscv/riscv.md: Include sifive-7.md.
7336 (auipc<mode>): Change type to auipc.
7337 (restore_stack_nonlocal): New.
7338 * config/riscv/sifive-7.md: New.
7339 * doc/invoke.texi (RISC-V Options): Update mtune docs.
7341 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
7344 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
7345 Also process XEXP (src, 0) of a shift insn.
7347 2019-03-26 Richard Biener <rguenther@suse.de>
7349 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
7350 (copy_debug_stmt): Likewise.
7351 (expand_call_inline): Likewise.
7352 (copy_bb): Avoid redundant lookup & set of gimple_block.
7353 * gimple-low.c (lower_gimple_return): Likewise.
7354 (lower_builtin_setjmp): Likewise.
7356 2019-03-26 Jakub Jelinek <jakub@redhat.com>
7358 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
7359 is constant 0, turn into static const data member initialized to false.
7360 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
7361 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
7363 2019-03-26 Jason Merrill <jason@redhat.com>
7364 Jakub Jelinek <jakub@redhat.com>
7366 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
7368 (mem_alloc_description::release_object_overhead): Fix comment typos.
7369 * hash-table.h (hash_table::~hash_table): Call
7370 release_instance_overhead only if m_entries is non-NULL, otherwise
7371 call unregister_descriptor.
7373 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
7375 PR tree-optimization/81740
7376 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
7377 In case of outer loop vectorization, check for backward dependence
7378 at the inner loop if outer loop dependence is reversed.
7380 2019-03-26 Alan Modra <amodra@gmail.com>
7382 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
7383 rs6000_vector_mem init. Correct wI and wJ comment.
7385 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
7387 PR rtl-optimization/88347
7388 PR rtl-optimization/88423
7389 * sched-deps.c (sched_analyze_insn): Take into account that for
7390 tablejumps the barrier appears after a label and a jump_table_data.
7392 2019-03-25 Martin Sebor <msebor@redhat.com>
7395 * c-common.c (check_user_alignment): Rename local. Correct maximum
7396 alignment in diagnostic. Avoid assuming argument fits in SHWI,
7397 convert it to UHWI when it fits.
7399 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
7402 * dwarf2out.c (premark_used_variables): New function.
7403 (prune_unused_types_walk): Do not mark not premarked external
7405 (prune_unused_types): Call premark_used_variables.
7407 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
7409 PR rtl-optimization/89676
7410 * lra-constraints.c (curr_insn_transform): Do match reload for
7411 early clobbers when the match was successful only for different
7414 2019-03-25 Martin Sebor <msebor@redhat.com>
7416 * doc/extend.texi (Common Type Attributes): Document vector_size.
7417 (Common Variable Attributes): Mention size constraint. Correct
7419 (Vector Extensions): Use @dfn when defining bas type. Clarify
7420 base type and size constraints.
7422 2019-03-25 Richard Biener <rguenther@suse.de>
7424 PR tree-optimization/89789
7425 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
7426 changes from non-undefined back to undefined.
7428 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
7430 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
7431 heap string and a gc string, but since this variable is unknown to
7432 ggc the gc string might get reused and corrupted. Fixed by always
7433 using a heap string.
7435 2019-03-25 Richard Biener <rguenther@suse.de>
7437 PR tree-optimization/89779
7438 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
7439 to remove IV defs, delay actual removal.
7440 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
7441 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
7442 very end, properly also reset loop control IV information.
7444 2019-03-25 Richard Biener <rguenther@suse.de>
7446 PR tree-optimization/89802
7447 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
7448 move EH data to folded stmt.
7450 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
7452 * config/s390/s390-builtin-types.def: Remove few unused types and
7453 fix sort order for others.
7455 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
7457 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
7458 expected and found types with -mdebug during builtin matching.
7460 2019-03-25 Richard Biener <rguenther@suse.de>
7463 * fold-const.c (operand_equal_p): Revert last change with
7466 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
7468 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
7469 notes for the result of the __tls_get_addr calls.
7470 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
7472 2019-03-24 Jeff Law <law@redhat.com>
7474 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
7476 PR rtl-optimization/87761
7477 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
7478 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
7480 (pass_cprop_hardreg::execute): Add df note problem and defer insn
7481 rescans. Reprocess blocks as needed, calling df_analyze before
7482 reprocessing. Always call df_analyze before fixing up debug bind
7485 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
7487 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
7490 2019-03-22 Andrew Pinski <apinski@marvell.com>
7492 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
7493 attrribute for uxtw.
7495 2019-03-26 Jeff Law <law@redhat.com>
7497 PR rtl-optimization/87761
7498 * config/mips/mips-protos.h (mips_split_move): Add new argument.
7499 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
7500 (mips_split_move): Accept new INSN argument. Try to forward SRC
7501 into the next instruction.
7502 (mips_split_move_insn): Pass INSN through to mips_split_move.
7504 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
7506 PR rtl-optimization/89676
7507 * lra-constraints.c (curr_insn_transform): Do match reload for
7508 early clobbers even if the match was successful.
7510 2019-03-22 Jakub Jelinek <jakub@redhat.com>
7513 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
7515 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
7517 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
7519 2019-03-22 Jakub Jelinek <jakub@redhat.com>
7521 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
7522 <avx512>_fmsub_<mode>_mask3<round_name>,
7523 <avx512>_fnmadd_<mode>_mask3<round_name>,
7524 <avx512>_fnmsub_<mode>_mask3<round_name>,
7525 avx512f_vmfmadd_<mode>_mask3<round_name>,
7526 avx512f_vmfmsub_<mode>_mask3<round_name>,
7527 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
7528 instead of register_operand and %v instead of v for match_operand 1.
7529 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
7530 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
7531 <round_nimm_predicate> instead of register_operand and %v instead of v
7532 for match_operand 1.
7534 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
7535 <avx512>_fmadd_<mode>_mask3<round_name>,
7536 <avx512>_fmsub_<mode>_mask<round_name>,
7537 <avx512>_fmsub_<mode>_mask3<round_name>,
7538 <avx512>_fnmadd_<mode>_mask<round_name>,
7539 <avx512>_fnmadd_<mode>_mask3<round_name>,
7540 <avx512>_fnmsub_<mode>_mask<round_name>,
7541 <avx512>_fnmsub_<mode>_mask3<round_name>,
7542 <avx512>_fmaddsub_<mode>_mask<round_name>,
7543 <avx512>_fmaddsub_<mode>_mask3<round_name>,
7544 <avx512>_fmsubadd_<mode>_mask<round_name>,
7545 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
7546 <round_nimm_predicate> instead of nonimmediate_operand.
7547 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
7548 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
7549 Use register_operand instead of <round_nimm_predicate> for the
7550 operand that needs to match output.
7551 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
7552 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
7553 Likewise. Formatting fixes.
7556 * config/i386/i386.c (enum ix86_builtins): Remove
7557 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
7558 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
7559 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
7560 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
7561 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
7562 __builtin_ia32_vfmsubss3_mask3): New builtins.
7563 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
7564 avx512f_vmfmadd_<mode>_mask3<round_name>,
7565 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
7566 *avx512f_vmfmsub_<mode>_mask<round_name>,
7567 avx512f_vmfmsub_<mode>_mask3<round_name>,
7568 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
7569 *avx512f_vmfnmadd_<mode>_mask<round_name>,
7570 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
7571 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
7572 *avx512f_vmfnmsub_<mode>_mask<round_name>,
7573 avx512f_vmfnmsub_<mode>_mask3<round_name>,
7574 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
7575 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
7576 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
7577 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
7578 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
7579 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
7580 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
7581 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
7582 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
7583 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
7584 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
7585 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
7586 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
7587 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
7588 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
7589 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
7590 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
7591 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
7592 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
7593 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
7594 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
7595 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
7597 2019-03-21 Martin Sebor <msebor@redhat.com>
7599 PR tree-optimization/89350
7600 * builtins.c (compute_objsize): Also ignore offsets whose upper
7602 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
7603 (builtin_memref::builtin_memref): Initialize new member.
7604 Allow EXPR to be null.
7605 (builtin_memref::extend_offset_range): Replace local with a member.
7606 Avoid assuming pointer offsets are unsigned.
7607 (builtin_memref::set_base_and_offset): Determine base object
7608 before computing offset range.
7609 (builtin_access::builtin_access): Handle memset.
7610 (builtin_access::generic_overlap): Replace local with a member.
7611 (builtin_access::strcat_overlap): Same.
7612 (builtin_access::overlap): Same.
7613 (maybe_diag_overlap): Same.
7614 (maybe_diag_access_bounds): Same.
7615 (wrestrict_dom_walker::check_call): Handle memset.
7616 (check_bounds_or_overlap): Same.
7618 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
7619 Jakub Jelinek <jakub@redhat.com>
7622 * tree.c (fld_type_variant, fld_incomplete_type_of,
7623 fld_process_array_type): Call fld->pset.add and don't call
7624 add_tree_to_fld_list if it returns true.
7625 (free_lang_data_in_type): Similarly with self-recursive call. Purge
7626 non-marked types from TYPE_NEXT_VARIANT list.
7627 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
7629 2019-03-21 Jakub Jelinek <jakub@redhat.com>
7631 * hash-table.h (hash_table): Add Lazy template parameter defaulted
7632 to false, if true, don't alloc_entries during construction, but defer
7633 it to the first method that needs m_entries allocated.
7634 (hash_table::hash_table, hash_table::~hash_table,
7635 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
7636 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
7637 hash_table::clear_slot, hash_table::traverse_noresize,
7638 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
7639 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
7641 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
7642 NO_INSERT instead of find_with_hash.
7643 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
7644 hash_set::m_table): Add Lazy to template params of hash_table.
7645 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
7646 * attribs.c (test_attribute_exclusions): Likewise.
7647 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
7648 hash_set. Add tests for hash_set with Lazy = true.
7650 2019-03-21 Richard Biener <rguenther@suse.de>
7652 PR tree-optimization/89779
7653 * tree.c (tree_nop_conversion): Consolidate and fix defensive
7654 checks with respect to released SSA names now having error_mark_node
7656 * fold-const.c (operand_equal_p): Likewise.
7658 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
7661 * config/s390/s390.c (global_not_special_regno_p): Move to make it
7663 (s390_optimize_register_info): Use global_not_special_regno_p to
7664 check for global regs.
7666 2019-03-20 Jakub Jelinek <jakub@redhat.com>
7669 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
7670 update this_alternative nor this_alternative_set.
7672 2019-03-19 Jim Wilson <jimw@sifive.com>
7675 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
7676 align, size, offset. Use them to handle a BLKmode reference. Update
7678 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
7680 2019-03-19 Jakub Jelinek <jakub@redhat.com>
7682 PR rtl-optimization/89768
7683 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
7685 (unroll_loop_runtime_iterations): Likewise.
7687 2019-03-19 Martin Sebor <msebor@redhat.com>
7689 PR tree-optimization/89644
7690 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
7691 rather than endptr as an indicator of nul-termination.
7693 PR tree-optimization/89644
7694 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
7695 arrays in determining sequence sizes in strncpy and stpncpy.
7697 2019-03-19 Martin Liska <mliska@suse.cz>
7700 * predict.c (combine_predictions_for_bb): Empty likely_edges and
7701 unlikely_edges if there's an edge that belongs to both these sets.
7703 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
7706 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
7707 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
7708 go via a stack temporary.
7710 2019-03-19 Jakub Jelinek <jakub@redhat.com>
7713 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
7714 instead of gen_rtx_SUBREG.
7715 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
7717 2019-03-19 Richard Biener <rguenther@suse.de>
7720 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
7722 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
7726 * tree.c (free_lang_data_in_decl): Do not free context of C++
7729 2019-03-19 Jakub Jelinek <jakub@redhat.com>
7732 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
7733 subs for the first alternative except when operands[3] is 1.
7736 * gimplify.c (gimplify_asm_expr): For output argument with
7737 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
7740 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
7742 PR rtl-optimization/89753
7743 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
7744 explicit unrolling factor even more robust.
7746 2019-03-19 Jakub Jelinek <jakub@redhat.com>
7749 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
7750 compensation use x2 += 1 instead of x2 -= -1 and when honoring
7751 signed zeros, do another copysign after the compensation.
7753 2019-03-18 Martin Sebor <msebor@redhat.com>
7755 PR tree-optimization/89720
7756 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
7757 more conservatively, the same as anti-range.
7759 2019-03-18 Richard Biener <rguenther@suse.de>
7762 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
7763 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
7764 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
7765 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
7767 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
7769 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
7770 Extend queue to 1024 entries.
7771 Add "consumed" field.
7772 (gomp_print_output): Remove print_index parameter.
7773 Add final parameter.
7774 Change limit to unsigned.
7775 Use consumed field to implement circular buffer.
7776 Detect interrupted print in final pass.
7777 Flush output at the end.
7778 (run): Update gomp_print_output usage.
7779 (main): Initialize kernargs->output_data.consumed.
7781 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
7783 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
7784 calculation of the minimum number of scalar iterations for
7785 fully-predicated loops.
7787 2019-03-18 Martin Jambor <mjambor@suse.cz>
7789 PR tree-optimization/89546
7790 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
7791 any propagation to its children took place.
7793 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
7796 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
7797 parameter, and make use of it.
7798 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
7800 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
7802 * config/arc/arc.opt (mcode-density-frame): Get the inital value
7803 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
7804 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
7805 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
7806 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
7807 match what the ops is doing.
7808 (push_multi_fp_blink): Likewise.
7809 * config/arc/arc.c (arc_override_options): Enable enter/leave when
7810 compiling for size and elf target.
7811 (arc_save_callee_enter): Adjust note to match what enter/leave
7814 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
7816 * config/arc/arc.md (tst_movb): Fix constraint.
7818 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
7820 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
7822 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
7824 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
7825 * config/arc/arc.c (arc_conditional_register_usage): Remove all
7826 reg_alloc_order references.
7827 (size_alloc_order): Define.
7828 (arc_adjust_reg_alloc_order): New function.
7829 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
7831 (ADJUST_REG_ALLOC_ORDER): Define.
7832 (HONOR_REG_ALLOC_ORDER): Likewise.
7834 2019-03-18 Richard Biener <rguenther@suse.de>
7837 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
7838 loads and stores a bit more.
7840 2019-03-18 Richard Biener <rguenther@suse.de>
7843 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
7844 load pessimization to stores as well.
7846 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
7849 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
7850 successor, use NULL as its av set.
7852 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
7854 PR rtl-optimization/89721
7855 * lra-constraints (invariant_p): Return false if side_effects_p holds.
7857 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
7860 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
7861 When handling vec_extract, use modular arithmetic to allow
7862 constant selectors greater than vector length.
7863 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
7864 V1TImode vectors to have constant selector values greater than 0.
7865 Use modular arithmetic to compute vector index.
7866 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
7867 index for in-memory vectors. Correct code generation for
7868 in-register vectors.
7869 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
7872 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
7876 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
7879 2019-03-15 Jakub Jelinek <jakub@redhat.com>
7882 * tree.c (inchash::add_expr): Strip any location wrappers.
7883 * fold-const.c (operand_equal_p): Move stripping of location wrapper
7884 after hash verification.
7887 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
7888 SIGN_EXTEND and ZERO_EXTEND.
7890 2019-03-14 Jason Merrill <jason@redhat.com>
7891 Jakub Jelinek <jakub@redhat.com>
7893 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
7894 than if is_empty (*slot).
7895 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
7896 existing elt and for elt removal.
7897 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
7898 of already removed elt.
7900 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
7903 * config/i386/i386.c (remove_partial_avx_dependency): Handle
7906 2019-03-14 Martin Liska <mliska@suse.cz>
7909 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
7911 2019-03-14 Richard Biener <rguenther@suse.de>
7914 * config/i386/i386.c (make_resolver_func): Properly set
7915 DECL_CONTEXT on the RESULT_DECL.
7916 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
7918 2019-03-14 Richard Biener <rguenther@suse.de>
7920 * gimple-pretty-print.c: Include cfgloop.h.
7921 (dump_gimple_phi): Adjust.
7922 (dump_gimple_bb_header): Dump loop header for GIMPLE.
7923 (pp_cfg_jump): Adjust.
7924 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
7925 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
7926 (lower_phi_internal_fn): Remove.
7927 (verify_gimple_call): Remove IFN_PHI special-casing.
7928 (dump_function_to_file): Dump IL state.
7929 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
7930 done to deal with PHI nodes being present in non-SSA state.
7932 2019-03-14 Jakub Jelinek <jakub@redhat.com>
7935 * multiple_target.c (create_dispatcher_calls): Change
7936 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
7937 In the node->iterate_referring loop, push *ref rather than ref, call
7938 ref->remove_reference () and always pass 0 to iterate_referring.
7940 PR rtl-optimization/89679
7941 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
7942 would contain a paradoxical SUBREG.
7944 2019-03-14 Richard Biener <rguenther@suse.de>
7946 PR tree-optimization/89710
7947 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
7950 2019-03-14 Martin Liska <mliska@suse.cz>
7952 * coverage.c (coverage_begin_function): Stream also
7954 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
7955 documentation about function declaration location.
7956 * gcov-dump.c (tag_function): Print whole range
7957 of function declaration.
7958 * gcov.c (struct function_info): Add end_column field.
7959 (function_info::function_info): Initialize it.
7960 (output_json_intermediate_file): Output {start,end}_column
7962 (read_graph_file): Read end_column.
7964 2019-03-14 Richard Biener <rguenther@suse.de>
7967 * fold-const.c (operand_equal_p): For INDIRECT_REF check
7968 that the access types are similar.
7970 2019-03-14 Jakub Jelinek <jakub@redhat.com>
7972 PR tree-optimization/89703
7973 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
7974 aren't compatible also with builtin_decl_explicit. Check pure
7975 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
7976 and BUILT_IN_STPNCPY{,_CHK}.
7978 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
7981 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
7982 addr32 prefix to VSIB address for X32.
7983 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
7985 (*avx512pf_gatherpf<mode>df_mask): Likewise.
7986 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
7987 (*avx512pf_scatterpf<mode>df_mask): Likewise.
7988 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
7989 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
7990 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
7991 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
7992 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
7993 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
7994 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
7995 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
7996 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
7997 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
7998 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
7999 (*avx512f_scatterdi<mode>): Likewise.
8001 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
8004 * lra-constraints.c (inherit_in_ebb): Update
8005 potential_reload_hard_regs along with live_hard_regs.
8007 2019-03-13 Jakub Jelinek <jakub@redhat.com>
8010 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
8012 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
8014 2019-03-13 Martin Sebor <msebor@redhat.com>
8016 PR tree-optimization/89662
8017 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
8020 2019-03-13 Richard Biener <rguenther@suse.de>
8023 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
8024 throw FP expressions at tree-affine.
8026 2019-03-14 Richard Biener <rguenther@suse.de>
8028 * tree-pretty-print.c (dump_generic_node): For -gimple properly
8029 dump negative integer constants using _Literal (type) -num.
8031 2019-03-13 Jakub Jelinek <jakub@redhat.com>
8033 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
8034 nonlocal_value member.
8037 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
8038 (ipa_simd_modify_function_body): Handle PHIs.
8040 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
8042 * config/s390/s390.c (s390_option_override_internal): Use more
8043 aggressive inlining parameters.
8045 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
8047 * config/s390/3906.md: New file.
8048 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
8049 (LONGRUNNING_THRESHOLD): Remove.
8050 (MAX_SCHED_MIX_SCORE): Decrease.
8051 (MAX_SCHED_MIX_DISTANCE): Decrease.
8052 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
8053 (struct s390_sched_state): New struct to hold scheduling state.
8054 (S390_SCHED_STATE_NORMAL): Remove.
8055 (S390_SCHED_STATE_CRACKED): Remove.
8056 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
8057 (s390_get_sched_attrmask): Use new attribute.
8058 (s390_get_unit_mask): Use new units.
8059 (s390_is_fpd): New function.
8060 (s390_is_fxd): New function.
8061 (s390_is_longrunning): New function.
8062 (s390_sched_score): Use new functions.
8063 (s390_sched_reorder): Likewise.
8064 (s390_sched_variable_issue): Rework and use new functions.
8065 (s390_sched_init): Use new functions.
8066 * config/s390/s390.h (s390_tune_attr): Add z14.
8067 * config/s390/s390.md: Add z14.
8069 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
8071 * config/s390/2964.md: Update pipeline description.
8072 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
8073 (LONGRUNNING_THRESHOLD): Remove.
8074 (LATENCY_FACTOR): Remove.
8075 (s390_get_unit_mask): Add unit.
8076 (s390_sched_score): Use fxd/fpd.
8077 (s390_sched_variable_issue): Use fxd/fpd.
8079 2019-03-12 Martin Liska <mliska@suse.cz>
8081 * config/i386/i386.c: Reword an error message.
8083 2019-03-12 Martin Jambor <mjambor@suse.cz>
8085 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
8086 terminate with newline.
8088 2019-03-12 Jakub Jelinek <jakub@redhat.com>
8091 * config/s390/s390.md (tabort): Use %wd instead of
8092 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
8093 letters and periods.
8094 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
8095 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
8099 * builtins.c (expand_builtin_int_roundingfn,
8100 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
8101 gcc_unreachable if validate_arglist fails.
8103 2019-03-12 Richard Biener <rguenther@suse.de>
8105 PR tree-optimization/89664
8106 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
8107 free the occurance tree after the early out.
8109 2019-03-11 Jakub Jelinek <jakub@redhat.com>
8113 * vr-values.c (vr_values::update_value_range): If
8114 old_vr->varying_p (), don't update it, make new_vr also VARYING
8117 2019-03-11 Martin Liska <mliska@suse.cz>
8119 * config/aarch64/aarch64.c (aarch64_override_options_internal):
8120 Fix double string quoting.
8122 2019-03-11 Martin Liska <mliska@suse.cz>
8124 * collect-utils.c (collect_wait): Wrap apostrophes
8125 in gcc internal format with %'.
8126 * collect2.c (main): Likewise.
8127 (scan_prog_file): Likewise.
8128 (scan_libraries): Likewise.
8129 * config/i386/i386.c (ix86_expand_call): Likewise.
8130 (ix86_handle_interrupt_attribute): Likewise.
8131 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
8132 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
8133 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
8134 * lto-wrapper.c (find_crtoffloadtable): Likewise.
8135 * symtab.c (symtab_node::verify_base): Likewise.
8136 * tree-cfg.c (verify_gimple_label): Likewise.
8137 * tree.c (verify_type_variant): Likewise.
8139 2019-03-11 Martin Liska <mliska@suse.cz>
8141 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
8142 in a string format message and fix GNU coding style.
8143 (expand_builtin_set_thread_pointer): Likewise.
8144 * common/config/aarch64/aarch64-common.c
8145 (aarch64_rewrite_selected_cpu): Likewise.
8146 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
8147 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
8148 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
8149 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
8150 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
8151 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
8152 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
8153 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
8154 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
8155 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
8157 * common/config/riscv/riscv-common.c
8158 (riscv_subset_list::parsing_subset_version): Likewise.
8159 (riscv_subset_list::parse_std_ext): Likewise.
8160 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
8161 (riscv_subset_list::parse): Likewise.
8162 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
8163 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
8164 (aarch64_override_options_internal): Likewise.
8165 (aarch64_validate_mcpu): Likewise.
8166 (aarch64_validate_march): Likewise.
8167 (aarch64_validate_mtune): Likewise.
8168 (aarch64_override_options): Likewise.
8169 * config/alpha/alpha.c (alpha_option_override): Likewise.
8170 * config/arc/arc.c (arc_init): Likewise.
8171 (parse_mrgf_banked_regs_option): Likewise.
8172 (arc_override_options): Likewise.
8173 (arc_expand_builtin_aligned): Likewise.
8174 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
8175 (arm_expand_builtin): Likewise.
8176 * config/arm/arm.c (arm_option_check_internal): Likewise.
8177 (arm_configure_build_target): Likewise.
8178 (arm_option_override): Likewise.
8179 (arm_options_perform_arch_sanity_checks): Likewise.
8180 (arm_handle_cmse_nonsecure_entry): Likewise.
8181 (arm_handle_cmse_nonsecure_call): Likewise.
8182 (arm_tls_referenced_p): Likewise.
8183 (thumb1_expand_prologue): Likewise.
8184 * config/avr/avr.c (avr_option_override): Likewise.
8185 * config/bfin/bfin.c (bfin_option_override): Likewise.
8186 * config/c6x/c6x.c (c6x_option_override): Likewise.
8187 * config/cr16/cr16.c (cr16_override_options): Likewise.
8188 * config/cris/cris.c (cris_option_override): Likewise.
8189 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
8190 * config/darwin-c.c (macosx_version_as_macro): Likewise.
8191 * config/darwin.c (darwin_override_options): Likewise.
8192 * config/frv/frv.c (frv_expand_builtin): Likewise.
8193 * config/h8300/h8300.c (h8300_option_override): Likewise.
8194 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
8195 (ix86_option_override_internal): Likewise.
8196 (warn_once_call_ms2sysv_xlogues): Likewise.
8197 (ix86_expand_prologue): Likewise.
8198 (split_stack_prologue_scratch_regno): Likewise.
8199 (ix86_warn_parameter_passing_abi): Likewise.
8200 * config/ia64/ia64.c (fix_range): Likewise.
8201 * config/m68k/m68k.c (m68k_option_override): Likewise.
8202 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
8203 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
8204 (mips_set_compression_mode): Likewise.
8205 * config/mmix/mmix.c (mmix_option_override): Likewise.
8206 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
8207 * config/msp430/msp430.c (msp430_option_override): Likewise.
8208 * config/nds32/nds32.c (nds32_option_override): Likewise.
8209 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
8210 (nios2_option_override): Likewise.
8211 (nios2_expand_custom_builtin): Likewise.
8212 * config/nvptx/mkoffload.c (main): Likewise.
8213 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
8214 * config/pa/pa.c (fix_range): Likewise.
8215 (pa_option_override): Likewise.
8216 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
8217 (riscv_option_override): Likewise.
8218 * config/rl78/rl78.c (rl78_option_override): Likewise.
8219 * config/rs6000/aix61.h: Likewise.
8220 * config/rs6000/aix71.h: Likewise.
8221 * config/rs6000/aix72.h: Likewise.
8222 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
8223 * config/rs6000/freebsd64.h: Likewise.
8224 * config/rs6000/linux64.h: Likewise.
8225 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
8226 (rs6000_expand_zeroop_builtin): Likewise.
8227 (rs6000_expand_mtfsb_builtin): Likewise.
8228 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
8229 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
8230 (rs6000_invalid_builtin): Likewise.
8231 (rs6000_expand_split_stack_prologue): Likewise.
8232 * config/rs6000/rtems.h: Likewise.
8233 * config/rx/rx.c (valid_psw_flag): Likewise.
8234 (rx_expand_builtin): Likewise.
8235 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
8236 * config/s390/s390.c (s390_expand_builtin): Likewise.
8237 (s390_function_profiler): Likewise.
8238 (s390_option_override_internal): Likewise.
8239 (s390_option_override): Likewise.
8240 * config/sh/sh.c (sh_option_override): Likewise.
8241 (sh_builtin_saveregs): Likewise.
8242 (sh_fix_range): Likewise.
8243 * config/sh/vxworks.h: Likewise.
8244 * config/sparc/sparc.c (sparc_option_override): Likewise.
8245 * config/spu/spu.c (spu_option_override): Likewise.
8246 (fix_range): Likewise.
8247 * config/visium/visium.c (visium_option_override): Likewise.
8248 (visium_handle_interrupt_attr): Likewise.
8249 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
8250 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
8251 (dbg_cnt_process_opt): Likewise.
8252 * dwarf2out.c (output_dwarf_version): Likewise.
8253 * except.c (expand_eh_return): Likewise.
8254 * gcc.c (defined): Likewise.
8255 (driver_handle_option): Likewise.
8256 (process_command): Likewise.
8257 (compare_files): Likewise.
8258 (driver::prepare_infiles): Likewise.
8259 (driver::do_spec_on_infiles): Likewise.
8260 (driver::maybe_run_linker): Likewise.
8261 * omp-offload.c (oacc_parse_default_dims): Likewise.
8262 * opts-global.c (handle_common_deferred_options): Likewise.
8263 * opts.c (parse_sanitizer_options): Likewise.
8264 (common_handle_option): Likewise.
8265 (enable_warning_as_error): Likewise.
8266 * passes.c (enable_disable_pass): Likewise.
8267 * plugin.c (parse_plugin_arg_opt): Likewise.
8268 (default_plugin_dir_name): Likewise.
8269 * targhooks.c (default_expand_builtin_saveregs): Likewise.
8270 (default_pch_valid_p): Likewise.
8271 * toplev.c (init_asm_output): Likewise.
8272 (process_options): Likewise.
8273 (toplev::run_self_tests): Likewise.
8274 * tree-cfg.c (verify_gimple_call): Likewise.
8275 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
8276 (tree_inlinable_function_p): Likewise.
8277 * var-tracking.c (vt_find_locations): Likewise.
8279 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
8281 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
8282 only on the else branch.
8284 2019-03-11 Martin Liska <mliska@suse.cz>
8286 * gcov.c (output_intermediate_json_line): Print function
8288 (output_json_intermediate_file): Add new argument.
8289 * doc/gcov.texi: Document the change.
8291 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
8293 PR rtl-optimization/89588
8294 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
8295 explicit unrolling factor more robust.
8297 2019-03-11 Richard Biener <rguenther@suse.de>
8299 PR tree-optimization/89649
8300 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
8301 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
8302 on the prolog and epilog loops.
8303 (vect_loop_versioning): Return copy of loop.
8304 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
8305 on the non-vectorized version of the loop.
8307 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
8310 * config/i386/sse.md (*vec_extractv2di_0_sse):
8311 Add (=r,x) alternative and corresponding splitter.
8313 2019-03-10 Martin Jambor <mjambor@suse.cz>
8315 PR tree-optimization/85762
8316 PR tree-optimization/87008
8317 PR tree-optimization/85459
8318 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
8319 it points to if there is a type changing MEM_REF. Adjust all callers.
8320 (build_accesses_from_assign): Disable total scalarization if
8321 contains_vce_or_bfcref_p returns true through the new parameter, for
8324 2019-03-09 Jakub Jelinek <jakub@redhat.com>
8327 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
8328 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
8331 * common.opt (fdiagnostics-show-labels,
8332 fdiagnostics-show-line-numbers, fdiagnostics-format=,
8333 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
8334 gas-locview-support, ginline-points, ginternal-reset-location-views):
8335 Terminate description text with a dot.
8336 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
8337 * config/mcore/mcore.opt (m210, m340): Likewise.
8338 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
8339 mnops=): Start description text with a capital letter.
8340 * config/arc/arc.opt (msize-level=): Likewise.
8341 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
8342 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
8344 * config/ft32/ft32.opt (msim): Likewise.
8345 (mft32b, mcompress): Likewise. Terminate description text with a dot.
8346 (mnodiv, mnopm): Terminate description text with a dot.
8347 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
8349 * config/i386/i386.opt (prefer_vector_width, instrument_return):
8351 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
8354 PR rtl-optimization/89634
8355 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
8356 are modified in BB_END (e->src) instruction.
8358 2019-03-08 David Malcolm <dmalcolm@redhat.com>
8361 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
8362 messages more amenable to translation, and improve wording.
8364 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
8366 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
8367 ud- and du-chains between phases.
8369 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
8372 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
8373 instead of POLY_INT_CST.
8375 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
8377 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
8380 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
8385 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
8386 (_mm_storeu_si64): Ditto.
8388 2019-03-08 Martin Liska <mliska@suse.cz>
8391 * config/i386/i386.c (ix86_option_override_internal): Disable
8392 jump tables when retpolines are used.
8394 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
8397 * ipa-split.c (execute_split_functions): Do not split
8398 'noinline' or 'section' function.
8400 2019-03-08 Jakub Jelinek <jakub@redhat.com>
8403 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
8404 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
8405 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
8408 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
8409 from diagnostics. Formatting fixes.
8412 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
8413 warn_odr diagnostics.
8416 * lra-constraints.c (process_alt_operands): Avoid one space before
8417 " at the end of line and another after " on another line in a string
8419 * attribs.c (handle_dll_attribute): Likewise.
8420 * config/avr/avr-devices.c (avr_texinfo): Likewise.
8422 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
8423 warning_at or inform messages in G_() if there is no ?:.
8425 PR tree-optimization/89550
8426 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
8427 returned true. Formatting fixes.
8428 (expand_builtin_strnlen): Formatting fixes.
8429 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
8430 if warning_at returned true.
8431 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
8433 2019-03-08 Richard Biener <rguenther@suse.de>
8436 * cfgloop.h (struct loop): Add owned_clique field.
8437 * cfgloopmanip.c (copy_loop_info): Copy it.
8438 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
8440 * tree-inline.c (copy_loops): Remap owned_clique.
8441 * lto-streamer-in.c (input_cfg): Stream owned_clique.
8442 * lto-streamer-out.c (output_cfg): Likewise.
8444 2019-03-08 Jakub Jelinek <jakub@redhat.com>
8447 * config/darwin.c: Include intl.h.
8448 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
8449 composing the message out of two separate parts.
8451 2019-03-07 Jakub Jelinek <jakub@redhat.com>
8454 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
8455 doesn't start with a capital letter and doesn't end with a dot.
8456 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
8457 with a capital letter.
8458 (ix86_mangle_function_version_assembler_name): Likewise.
8459 (ix86_generate_version_dispatcher_body): Likewise.
8460 (fold_builtin_cpu): Likewise.
8461 (get_builtin_code_for_version): Likewise. Remove extraneous space.
8462 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
8463 translators, wrap full type name in %qs.
8465 PR translation/79999
8466 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
8467 depend clause with source (or sink) modifier.
8468 * omp-expand.c (expand_omp_ordered_sink): Likewise.
8471 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
8472 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
8473 (avx512f_load<mode>_mask): New define_expand.
8474 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
8475 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
8476 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
8477 __builtin_ia32_movess_mask): New builtins.
8478 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
8479 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
8480 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
8481 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
8483 2019-03-07 Martin Jambor <mjambor@suse.cz>
8486 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
8487 for extern inline functions.
8489 2019-03-07 Martin Jambor <mjambor@suse.cz>
8492 * cgraph.h (cgraph_node): New inline method former_thunk_p.
8493 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
8494 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
8495 have multiple callees. At the end check if declarations match as
8496 opposed to cgraph_nodes.
8498 2019-03-07 Martin Liska <mliska@suse.cz>
8500 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
8501 which is equivalent to searching for this in clones chain.
8502 * symtab.c (symtab_node::verify_base): Similarly compare ASM
8503 names with a neighbour and special case first node in a chain.
8505 2019-01-25 Jason Merrill <jason@redhat.com>
8507 PR c++/80916 - spurious "static but not defined" warning.
8508 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
8509 for an internal symbol with DECL_EXTERNAL.
8511 2019-04-07 Richard Biener <rguenther@suse.de>
8514 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
8515 * tree-inline.c (copy_loops): Simplify.
8517 2019-03-07 Martin Liska <mliska@suse.cz>
8519 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
8521 2019-03-07 Richard Biener <rguenther@suse.de>
8523 PR tree-optimization/89595
8524 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
8525 stmt iterator as reference, take boolean output parameter to
8526 indicate whether the stmt was removed and thus the iterator
8528 (dom_opt_dom_walker::before_dom_children): Re-iterate over
8529 stmts created by folding.
8531 2019-03-07 Jakub Jelinek <jakub@redhat.com>
8534 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
8537 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
8539 PR rtl-optimization/88845
8540 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
8542 * lra.c (remove_scratches_1): New function.
8543 (remove_scratches): Use it.
8544 (lra_emit_move): Likewise.
8546 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
8548 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
8549 unaligned_access variable.
8550 * config/arc/arc.c (arc_override_options): Set unaligned access
8551 default on for HS CPUs.
8552 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
8554 2019-03-06 Martin Liska <mliska@suse.cz>
8556 PR gcov-profile/89577
8557 * doc/gcov.texi: Prefer to use --coverage.
8558 * doc/sourcebuild.texi: Likewise.
8560 2019-03-02 Jason Merrill <jason@redhat.com>
8562 PR c++/86485 - -Wmaybe-unused with empty class ?:
8563 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
8565 2019-03-05 Jakub Jelinek <jakub@redhat.com>
8568 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
8572 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
8573 exactly one argument.
8575 2019-03-05 Jakub Jelinek <jakub@redhat.com>
8576 Richard Sandiford <richard.sandiford@arm.com>
8578 PR tree-optimization/89570
8579 * match.pd (vec_cond into cond_op simplification): Don't use
8580 get_conditional_internal_fn, use as_internal_fn (cond_op).
8582 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
8585 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
8586 to decide when to split off a non-zero offset from a symbol.
8587 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
8588 in function symbols.
8590 2019-03-05 Richard Biener <rguenther@suse.de>
8592 PR tree-optimization/89594
8593 * tree-if-conv.c (pass_if_conversion::execute): Handle
8594 case where .LOOP_VECTORIZED_FUNCTION was removed.
8596 2019-03-05 Jakub Jelinek <jakub@redhat.com>
8599 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
8600 instead alloca it only when needed with the needed size.
8602 PR tree-optimization/89570
8603 * match.pd (vec_cond into cond_op simplification): Guard with
8604 vectorized_internal_fn_supported_p test and #if GIMPLE.
8606 PR tree-optimization/89566
8607 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
8608 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
8609 Punt if get_user_idx_format succeeds, but idx_format argument is
8610 not provided or doesn't have pointer type, or if idx_args is above
8611 number of provided arguments.
8613 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
8615 PR tree-optimization/89437
8616 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
8618 2019-03-04 Richard Biener <rguenther@suse.de>
8621 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
8624 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
8626 PR tree-optimization/89487
8627 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
8628 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
8629 (distribute_loop): Don't do runtime alias check if there is non-
8630 addressable data reference.
8631 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
8632 is a register variable.
8634 2019-03-02 Jakub Jelinek <jakub@redhat.com>
8637 * config/arm/arm.md (cmpsi2_addneg): Use
8638 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
8639 If operands[2] is 0 or INT_MIN, force use of subs.
8640 (*compare_scc splitter): Use gen_int_mode.
8641 (*negscc): Likewise.
8642 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
8644 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
8645 Monk Chiang <sh.chiang04@gmail.com>
8647 * common/config/riscv/riscv-common.c: Include sstream.
8648 (riscv_subset_list::to_string): New.
8649 (riscv_arch_str): Likewise.
8650 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
8652 * config/riscv/riscv-protos.h (riscv_arch_str): New.
8653 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
8654 (riscv_emit_attribute): New.
8655 (riscv_file_start): Emit attribute if needed.
8656 (riscv_option_override): Init riscv_emit_attribute_p.
8657 * config/riscv/riscv.opt (mriscv-attribute): New option.
8658 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
8660 * doc/install.texi: Document --with-riscv-attribute.
8661 * doc/invoke.texi: Document -mriscv-attribute.
8663 * common/config/riscv/riscv-common.c:
8664 Include config/riscv/riscv-protos.h.
8665 (INCLUDE_STRING): Defined.
8666 (RISCV_DONT_CARE_VERSION): Defined.
8667 (riscv_subset_t): Declare.
8668 (riscv_subset_t::riscv_subset_t): New.
8669 (riscv_subset_list): Declare.
8670 (riscv_subset_list::riscv_subset_list): New.
8671 (riscv_subset_list::~riscv_subset_list): Likewise.
8672 (riscv_subset_list::parsing_subset_version): Likewise.
8673 (riscv_subset_list::parse_std_ext): Likewise.
8674 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
8675 (riscv_subset_list::add): Likewise.
8676 (riscv_subset_list::lookup): Likewise.
8677 (riscv_subset_list::xlen): Likewise.
8678 (riscv_subset_list::parse): Likewise.
8679 (riscv_supported_std_ext): Likewise.
8680 (current_subset_list): Likewise.
8681 (riscv_parse_arch_string): Using riscv_subset_list::parse to
8684 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
8686 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
8687 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
8688 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
8690 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
8692 PR rtl-optimization/85899
8693 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
8694 fallthru edges leading to the exit block.
8696 2019-03-01 Tamar Christina <tamar.christina@arm.com>
8699 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
8700 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
8702 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
8704 PR tree-optimization/89535
8705 * tree-vect-stmts.c (vectorizable_call): Record the vector types
8706 for each operand. Calculate the fallback choice for mask operands
8707 and pass it to vect_get_vec_def_for_operand.
8709 2019-03-01 Richard Biener <rguenther@suse.de>
8712 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
8713 get virtual operands.
8714 (get_expr_operands): Handle CONST_DECL like other decls.
8716 2019-03-01 Jakub Jelinek <jakub@redhat.com>
8719 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
8720 on DECL_P and EXPR_P.
8722 2019-03-01 Richard Biener <rguenther@suse.de>
8725 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
8726 argument, defaulted to zero.
8727 * passes.c (execute_function_todo): Pass down SSA update flags
8728 to cleanup_tree_cfg.
8729 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
8730 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
8732 (cleanup_tree_cfg): Get and pass down SSA update flags.
8734 2019-03-01 Jakub Jelinek <jakub@redhat.com>
8737 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
8738 early_lto_debug argument.
8740 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
8742 PR tree-optimization/89536
8743 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
8744 only whether bit #0 of the value is 0 instead of the entire value.
8746 2019-02-28 Marek Polacek <polacek@redhat.com>
8748 PR c++/87068 - missing diagnostic with fallthrough statement.
8749 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
8750 at the end of a seq, save its location to walk_stmt_info.
8751 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
8754 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
8757 * tree.c (find_atomic_core_type): Move ahead in file.
8758 (check_base_type): Correctly compare alignments of atomic types.
8760 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
8763 * config/i386/i386.c (get_builtin_code_for_version): Identify
8764 Westmere from PCLMUL, instead of AES.
8766 2019-02-28 Jakub Jelinek <jakub@redhat.com>
8769 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
8770 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
8773 2019-02-28 Tamar Christina <tamar.christina@arm.com>
8776 * config/aarch64/aarch64-option-extensions.def: Document it.
8777 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
8780 2019-02-28 Jakub Jelinek <jakub@redhat.com>
8783 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
8784 builtins if they don't have a single scalar floating point argument.
8787 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
8789 PR rtl-optimization/89490
8790 * varasm.c (get_block_for_section): Bail out for mergeable sections.
8791 (default_use_anchors_for_symbol_p, output_object_block): Assert the
8792 block section is not mergeable.
8794 2019-02-27 Jakub Jelinek <jakub@redhat.com>
8797 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
8798 old define_insn to ...
8799 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
8800 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
8801 Rename old define_insn to ...
8802 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
8803 (thumb2_casesi_internal_pic): New define_expand. Rename old
8805 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
8806 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
8807 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
8809 2019-02-27 Richard Biener <rguenther@suse.de>
8812 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
8814 2019-02-27 Richard Biener <rguenther@suse.de>
8816 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
8819 2019-02-27 Richard Biener <rguenther@suse.de>
8822 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
8823 parameter, prefix section name with .gnu.debuglto_ if true.
8824 (dwarf2out_finish): Pass false to output_comdat_type_unit.
8825 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
8827 2019-02-27 Richard Biener <rguenther@suse.de>
8830 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
8831 rather than on use_debug_types, doing what output_die does.
8832 (value_format): Likewise.
8834 2019-02-27 Martin Jambor <mjambor@suse.cz>
8835 Martin Sebor <msebor@redhat.com>
8837 * doc/invoke.texi (Warning Options): Reword description of
8838 -Wno-absolute-value.
8840 2019-02-27 Jakub Jelinek <jakub@redhat.com>
8842 PR tree-optimization/89280
8843 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
8844 builtin_setjmp_setup_bb): New functions.
8845 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
8846 When visiting __builtin_setjmp_setup block, queue in special
8847 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
8848 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
8849 from visited after the loop if they don't have any visited successor
8852 2018-02-26 Steve Ellcey <sellcey@marvell.com>
8854 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
8856 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
8858 2019-02-26 Jakub Jelinek <jakub@redhat.com>
8861 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
8862 with types other than sizetype/ssizetype.
8864 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
8866 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
8867 (enum sparc_processor_type): ...this.
8868 (enum sparc_code_model_type): New enumeration type.
8869 (enum sparc_memory_model_type): Tweak comments.
8870 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
8872 (mcmodel): Use sparc_code_model enumeration and variable.
8873 (sparc_code_model): New enumeration.
8874 (mdebug): Add Undocumented marker.
8875 * config/sparc/sparc.h (enum cmodel): Delete.
8876 (sparc_cmodel): Likewise.
8877 (TARGET_CM_MEDLOW): Adjust to above renaming.
8878 (TARGET_CM_MEDMID): Likewise.
8879 (TARGET_CM_MEDANY): Likewise.
8880 (TARGET_CM_EMBMEDANY): Likewise.
8881 * config/sparc/sparc.c (sparc_cmodel): Delete.
8882 (sparc_option_override): Remove string/value mapping support for the
8883 code model. Move code and memory model support to after the handling
8884 of target flags. Do private machine setup last.
8885 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
8886 (sparc_legitimize_reload_address): Likewise.
8887 (sparc_output_mi_thunk): Likewise.
8888 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
8890 2019-02-26 Jakub Jelinek <jakub@redhat.com>
8892 PR tree-optimization/89500
8893 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
8894 (handle_builtin_strlen): Remove noncst_bound variable. Always
8895 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
8896 cst if the first cst bytes starting at x are known to be non-zero,
8897 even if the string is not zero terminated. Don't try to modify
8898 *si for strnlen. Update strlen_to_stridx only for strlen or if
8899 we can prove strnlen returns the same value as strlen would.
8901 2019-02-26 Martin Liska <mliska@suse.cz>
8903 * alloc-pool.h (struct pool_usage): Remove extra
8905 * bitmap.h (struct bitmap_usage): Likewise.
8906 * ggc-common.c (struct ggc_usage): Likewise.
8907 * mem-stats.h (struct mem_usage): Likewise.
8908 (mem_alloc_description::dump): Print dash lines
8909 here and repeat header at the end of a table report.
8910 It's then more readable.
8911 * tree-phinodes.c (phinodes_print_statistics): Make
8912 horizontal alignment.
8913 * tree-ssanames.c (ssanames_print_statistics): Likewise.
8914 * vec.c (struct vec_usage): Remove extra print_dash_line.
8915 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
8917 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
8919 * doc/extend.texi (__builtin_object_size):
8920 Use @pxref instead of @xref inside parenthesis.
8921 (__builtin_has_attribute): Add missing comma after @xref.
8922 (__builtin_object_size): Ditto.
8923 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
8924 * fortran/invoke.texi (-ffpe-trap): Use @var for every item
8927 2019-02-26 Jeff Law <law@redhat.com>
8929 PR rtl-optimization/87761
8930 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
8931 detect obviously dead insns and delete them.
8933 2019-02-26 Richard Biener <rguenther@suse.de>
8935 PR tree-optimization/89505
8936 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
8937 to handle restrict pointed-to vars with multiple subvars
8940 2019-02-26 Richard Biener <rguenther@suse.de>
8942 PR tree-optimization/89489
8943 * tree-parloops.c (create_loop_fn): Copy over last_clique.
8945 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
8947 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
8948 and move around comment.
8949 <BIT_AND_EXPR>: Likewise.
8950 <BIT_NOT_EXPR>: Add specific handling for boolean types.
8952 2019-02-26 Jakub Jelinek <jakub@redhat.com>
8955 * config/i386/i386.c (remove_partial_avx_dependency): Call
8956 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
8957 after changing possibly many instructions to use that pseudo. Fix up
8958 insertion of v4sf_const0 setter at the start of bb.
8960 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
8963 * doc/extend.texi (Variadic Pointer Args): New section.
8965 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
8966 Martin Sebor <msebor@gmail.com>
8968 * common.opt (Wattribute-alias): Likewise.
8969 * doc/invoke.texi (Option Summary): List general form of
8970 -Wattribute-alias=. List positive form of -Wmissing-attributes.
8971 (-Wmissing-attributes): Invert entry, rewrite and correct default.
8972 Add cross-references.
8973 (-Wattribute-alias): Rewrite and correct default. Mention
8974 considered attributes (same as for -Wmissing-attributes).
8976 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
8978 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
8979 (_mm_cvtpd_ps): Likewise.
8980 (_mm_cvttpd_epi32): Likewise.
8983 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
8984 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
8987 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
8989 2019-02-25 Tamar Christina <tamar.christina@arm.com>
8992 * common/config/aarch64/aarch64-common.c
8993 (struct aarch64_option_extension): Add is_synthetic.
8994 (all_extensions): Use it.
8995 (TARGET_OPTION_INIT_STRUCT): Define hook.
8996 (struct gcc_targetm_common): Moved to end.
8997 (all_extensions_by_on): New.
8998 (opt_ext_cmp, typedef opt_ext): New.
8999 (aarch64_option_init_struct): New.
9000 (aarch64_contains_opt): New.
9001 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
9002 * config/aarch64/aarch64-option-extensions.def
9003 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
9004 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
9005 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
9006 Set is_synthetic to false.
9007 (crypto): Set is_synthetic to true.
9008 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
9011 2019-02-25 Tamar Christina <tamar.christina@arm.com>
9013 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
9014 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
9015 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
9016 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
9017 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
9018 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
9019 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
9020 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
9022 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
9023 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
9024 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
9025 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
9026 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
9027 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
9028 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
9029 vfmlsl_laneq_high_f16): ... To this.
9030 * config/arm/neon.md: Update comments.
9032 2019-02-25 Tamar Christina <tamar.christina@arm.com>
9034 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
9035 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
9036 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
9037 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
9038 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
9039 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
9040 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
9041 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
9043 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
9044 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
9045 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
9046 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
9047 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
9048 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
9049 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
9050 vfmlslq_laneq_high_f16): ... To this.
9052 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
9054 PR rtl-optimization/86096
9055 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
9056 comparing mw_order values.
9058 2019-02-25 Jakub Jelinek <jakub@redhat.com>
9061 * config/arm/arm.md (*subsi3_carryin_const): Use
9062 arm_neg_immediate_operand predicate instead of
9063 arm_not_immediate_operand, "L" constraint instead of "K" and
9064 print it using %n2 instead of %B2.
9065 (*subsi3_carryin_const0): New define_insn.
9066 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
9067 instead of arm_not_operand and "I" constraint instead of "K" and
9068 print it using %n3 instead of %B2. Instead of using match_dup 2 add
9069 another match_operand and in the condition check that it is negation
9071 (*subsi3_carryin_compare_const0): New define_ins.
9072 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
9073 *subsi3_carryin_const.
9074 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
9075 split into *subsi3_carryin_compare_const0 if the highpart is zero.
9078 * config/arm.vfp.md (*negdf2_vfp): Use
9079 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
9080 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
9082 2019-02-24 Jakub Jelinek <jakub@redhat.com>
9084 PR rtl-optimization/89445
9085 * simplify-rtx.c (simplify_ternary_operation): Don't use
9086 simplify_merge_mask on operands that may trap.
9087 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
9088 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
9089 second operand is CONST_VECTOR, check if any element could be zero.
9090 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
9091 their operands can trap.
9093 2019-02-23 Martin Sebor <msebor@redhat.com>
9095 * gimple-ssa-sprintf.c (target_strtol): Rename...
9096 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
9097 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
9098 check for range error.
9100 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
9103 * opts-common.c (prune_options): Also prune joined switches
9104 with Negative and RejectNegative.
9105 * config/i386/i386.opt (march=): Add Negative(march=).
9106 (mtune=): Add Negative(mtune=).
9107 * doc/options.texi: Document Negative used together with Joined
9110 2019-02-22 Martin Sebor <msebor@redhat.com>
9112 * doc/extend.texi (Other Builtins): Add
9113 __builtin_is_constant_evaluated.
9115 2019-02-22 Richard Biener <rguenther@suse.de>
9117 PR tree-optimization/87609
9118 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
9120 2019-02-22 Jeff Law <law@redhat.com>
9122 PR rtl-optimization/87761
9123 * config/mips/mips.md: Add new combiner pattern to recognize
9124 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
9126 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
9129 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
9130 destination register in peepholes generating patterns for ADDS/SUBS.
9131 (add<mode>3_compare0,
9132 *addsi3_compare0_uxtw, add<mode>3_compareC,
9133 add<mode>3_compareV_imm, add<mode>3_compareV,
9134 *adds_<optab><ALLX:mode>_<GPI:mode>,
9135 *subs_<optab><ALLX:mode>_<GPI:mode>,
9136 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
9137 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
9138 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
9139 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
9140 sub<mode>3_compare1): Allow stack pointer for source register.
9141 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
9143 2019-02-22 Martin Sebor <msebor@redhat.com>
9145 PR tree-optimization/88993
9146 PR tree-optimization/88853
9147 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
9149 (sprintf_dom_walker::call_info::is_string_func): New helper.
9150 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
9151 for formatted string functions.
9152 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
9154 2019-02-22 Martin Sebor <msebor@redhat.com>
9157 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
9158 unreachable subexpressions.
9160 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
9161 Hongtao Liu <hongtao.liu@intel.com>
9162 Sunil K Pandey <sunil.k.pandey@intel.com>
9165 * config/i386/i386-passes.def: Add
9166 pass_remove_partial_avx_dependency.
9167 * config/i386/i386-protos.h
9168 (make_pass_remove_partial_avx_dependency): New.
9169 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
9171 (pass_data_remove_partial_avx_dependency): New.
9172 (pass_remove_partial_avx_dependency): Likewise.
9173 (make_pass_remove_partial_avx_dependency): Likewise.
9174 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
9175 (*extendsfdf2): Add avx_partial_xmm_update.
9176 (truncdfsf2): Likewise.
9177 (*float<SWI48:mode><MODEF:mode>2): Likewise.
9178 (SF/DF conversion splitters): Disabled for TARGET_AVX.
9180 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
9183 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
9186 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
9189 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
9190 (PTA_SKYLAKE): Add PTA_AES.
9191 (PTA_GOLDMONT): Likewise.
9193 2019-02-22 Sudakshina Das <sudi.das@arm.com>
9195 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
9196 instruction if enabled.
9197 (aarch64_override_options): Remove reference to return address key.
9199 2019-02-22 Richard Biener <rguenther@suse.de>
9201 PR tree-optimization/89440
9202 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
9203 not necessary assert.
9205 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
9208 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
9209 (oacc_replace_fn_attrib_attr): ... this new function.
9210 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
9211 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
9213 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9215 * config/arm/arm-cpus.in (ares): Rename to...
9216 (neoverse-n1): ... This. Add ares as alias.
9217 * config/arm/arm-tables.opt: Regenerate.
9218 * config/arm/arm-tune.md: Likewise.
9219 * doc/invoke.txt (ARM Options): Document neoverse-n1.
9221 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9223 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
9224 * config/aarch64/aarch64-tune.md: Regenerate.
9225 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
9227 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9229 * config/aarch64/aarch64.c (ares_tunings): Rename to...
9230 (neoversen1_tunings): ... This.
9231 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
9232 (neoverse-n1): New CPU.
9233 * config/aarch64/aarch64-tune.md: Regenerate.
9234 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
9236 2019-02-22 Richard Biener <rguenther@suse.de>
9239 * cfghooks.h (dependence_hash): New typedef.
9240 (struct copy_bb_data): New type.
9241 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
9242 (duplicate_block): Likewise.
9243 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
9244 (copy_bbs): Create and pass down copy_bb_data.
9245 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
9246 (rtl_duplicate_bb): Likewise.
9247 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
9248 remap dependence info.
9250 2019-02-22 Richard Biener <rguenther@suse.de>
9252 PR tree-optimization/87609
9253 * tree-core.h (tree_base): Document special clique values.
9254 * tree-inline.c (remap_dependence_clique): Do not use the
9255 special clique value of one.
9256 (maybe_set_dependence_info): Use clique one.
9257 (clear_dependence_clique): New callback.
9258 (compute_dependence_clique): Clear clique one from all refs
9259 before assigning it (again).
9261 2019-02-21 Martin Sebor <msebor@redhat.com>
9263 * doc/extend.texi (__clear_cache): Correct signature.
9265 2019-02-21 Ian Lance Taylor <iant@golang.org>
9268 * varasm.c (decode_addr_const): Call lookup_constant_def rather
9269 than output_constant_def.
9270 (add_constant_to_table): New static function.
9271 (output_constant_def): Call add_constant_to_table.
9272 (tree_output_constant_def): Likewise.
9274 2019-02-21 Jakub Jelinek <jakub@redhat.com>
9277 * builtins.c (fold_builtin_arith_overflow): If first two args are
9278 INTEGER_CSTs, set intres and ovfres to constants rather than calls
9281 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
9284 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
9285 error for -mindirect-branch/-mfunction-return with incompatible
9288 2019-02-21 Jakub Jelinek <jakub@redhat.com>
9291 * constraints.md (q): Remove.
9292 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
9295 2019-02-21 Martin Jambor <mjambor@suse.cz>
9298 * omp-general.c (omp_extract_for_data): Removed a duplicate call
9299 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
9300 (omp_adjust_for_condition): ...here. Added necessary parameters.
9301 * omp-general.h (omp_adjust_for_condition): Updated declaration.
9302 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
9303 proper values to new parameters of omp_adjust_for_condition.
9305 2019-02-20 Jakub Jelinek <jakub@redhat.com>
9308 * expr.c (expand_assignment): If result is a MEM, use change_address
9309 instead of simplify_gen_subreg.
9311 2019-02-20 Jakub Jelinek <jakub@redhat.com>
9312 David Malcolm <dmalcolm@redhat.com>
9315 * fold-const.c (decode_field_reference): Return NULL_TREE if
9316 lang_hooks.types.type_for_size returns NULL. Check it before
9317 overwriting *exp_. Use return NULL_TREE instead of return 0.
9319 2019-02-20 Jakub Jelinek <jakub@redhat.com>
9323 * toplev.c (do_compile): Double the emin/emax exponents to workaround
9326 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
9329 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
9330 TARGET_SSE in addition to TARGET_SSE_MATH.
9332 (ix86_excess_precision): Ditto.
9333 (ix86_float_exceptions_rounding_supported_p): Ditto.
9334 (use_rsqrt_p): Ditto.
9335 * config/i386/sse.md (rsqrt<mode>2): Ditto.
9337 2019-02-20 David Malcolm <dmalcolm@redhat.com>
9340 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
9341 linenum_arith_t when determining if two adjacent line spans are
9342 close enough to merge.
9343 (diagnostic_show_locus): Use linenum_arith_t when iterating over
9344 lines within each line_span.
9346 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
9349 * lra-constraints.c(uses_hard_regs_p): Fix handling of
9350 paradoxical SUBREGS.
9352 2019-02-20 Li Jia He <helijia@linux.ibm.com>
9355 * gcc/config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
9356 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
9357 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
9360 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
9362 * config/gcn/gcn.c (print_operand): Fix typo.
9364 2019-02-19 Richard Biener <rguenther@suse.de>
9367 * toplev.c (do_compile): Initialize mpfr's exponent range
9368 based on available float modes.
9370 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
9372 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
9373 as long as the epilogue isn't completed.
9375 2019-02-18 Martin Sebor <msebor@redhat.com>
9377 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
9378 __has_cpp_attribute, and __has_include.
9380 2019-02-18 Martin Sebor <msebor@redhat.com>
9382 * doc/invoke.texi (-Wreturn-type): Correct and expand.
9384 2019-02-18 Martin Sebor <msebor@redhat.com>
9387 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
9389 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
9391 2019-02-18 Richard Biener <rguenther@suse.de>
9393 PR tree-optimization/89296
9394 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
9395 of no-warning flag to cases that might emit the bogus warning.
9397 2019-02-18 Jakub Jelinek <jakub@redhat.com>
9400 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
9402 * config/arm/vfp.md (*movdi_vfp): Likewise.
9403 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
9404 "q" constraint for operands[0].
9407 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
9408 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
9409 pattern in a temporary buffer.
9410 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
9411 than 64-operands[2].
9414 * config/s390/s390.c (s390_indirect_branch_attrvalue,
9415 s390_indirect_branch_settings): Define unconditionally.
9416 (s390_set_current_function): Likewise, but guard the whole body except
9417 the s390_indirect_branch_settings call with
9418 #if S390_USE_TARGET_ATTRIBUTE.
9419 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
9421 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
9422 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
9423 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
9424 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
9425 HOST_WIDE_INT_1U instead of 1ULL.
9426 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
9427 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
9428 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
9429 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
9431 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
9434 2019-02-18 Martin Jambor <mjambor@suse.cz>
9436 PR tree-optimization/89209
9437 * tree-sra.c (create_access_replacement): New optional parameter
9438 reg_tree. Use it as a type if non-NULL and access type is not of
9440 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
9441 to create_access_replacement.
9442 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
9443 Check lacc is non-NULL before attempting to re-create it on the RHS.
9445 2019-02-18 Martin Liska <mliska@suse.cz>
9448 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
9450 (symbol_table::free_edge): Recycle m_summary_id.
9451 * cgraph.h (get_summary_id): New.
9452 (symbol_table::release_symbol): Set m_summary_id to -1
9454 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
9455 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
9456 function_summary to fast_function_summary.
9457 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
9458 * ipa-pure-const.c (class funct_state_summary_t):
9459 Switch from function_summary to fast_function_summary.
9460 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
9461 (class ipa_ref_opt_summary_t): Switch from function_summary
9462 to fast_function_summary.
9463 * symbol-summary.h (class function_summary_base): New class
9464 that is created from base of former function_summary.
9465 (function_summary_base::unregister_hooks): New.
9466 (class function_summary): Inherit from function_summary_base.
9467 (class call_summary_base): New class
9468 that is created from base of former call_summary.
9469 (class call_summary): Inherit from call_summary_base.
9470 (struct is_same): New.
9471 (class fast_function_summary): New summary class.
9472 (class fast_call_summary): New summary class.
9473 * vec.h (vec_safe_grow_cleared): New function.
9475 2019-02-18 Martin Liska <mliska@suse.cz>
9477 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
9478 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
9479 * doc/tm.texi: Document new target hook.
9480 * doc/tm.texi.in: Likewise.
9481 * target.def: Add new target macro.
9482 * gcc.c (find_fortran_preinclude_file): Do not search multilib
9485 2019-02-17 Alan Modra <amodra@gmail.com>
9488 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
9489 output reg on add insn.
9490 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
9492 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
9495 * config/i386/sse.md (ssedoublemode): Remove V4HI.
9496 (PMULHRSW): Likewise.
9497 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
9499 (ssse3_pmulhrswv4hi3): New expander.
9501 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
9503 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
9504 MMX. Add isa attribute.
9506 2019-02-16 Jakub Jelinek <jakub@redhat.com>
9508 PR rtl-optimization/66152
9509 * builtins.h (c_readstr): Declare.
9510 * builtins.c (c_readstr): Remove forward declaration. Add
9511 null_terminated_p argument, if false, read all bytes from the
9512 string instead of stopping after '\0'.
9513 * expr.c (string_cst_read_str): New function.
9514 (store_expr): Use string_cst_read_str instead of
9515 builtin_strncpy_read_str. Try to store by pieces the whole
9516 exp_len first, and only if that fails, split it up into
9517 store by pieces followed by clear_storage. Formatting fix.
9519 * config/i386/i386.md (*movqi_internal): Remove static from
9520 buf variable. Use output_asm_insn (buf, operands); return "";
9521 instead of return buf;.
9522 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
9523 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
9524 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
9526 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
9528 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
9529 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
9530 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
9531 (CC1_SPEC): Likewise.
9532 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
9534 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
9536 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
9537 the base address on 64-bit strict-alignment platforms.
9539 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
9541 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
9543 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
9545 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
9547 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
9549 PR rtl-optimization/88308
9550 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
9551 on copied instruction.
9553 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
9555 * final.c (insn_current_reference_address): Replace test on JUMP_P
9556 with test on jump_to_label_p.
9557 * config/visium/visium-passes.def: New file.
9558 * config/visium/t-visium (PASSES_EXTRA): Define.
9559 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
9560 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
9561 (TRAMPOLINE_ALIGNMENT): Define.
9562 * config/visium/visium.c (visium_option_override): Do not register
9563 the machine-specific reorg pass here.
9564 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
9566 (output_branch): Adjust threshold for long branch instruction.
9567 * config/visium/visium.md (cpu): Move around.
9568 (length): Adjust for the GR6.
9570 2019-02-15 Richard Biener <rguenther@suse.de>
9571 Jakub Jelinek <jakub@redhat.com>
9573 PR tree-optimization/89278
9574 * tree-loop-distribution.c: Include tree-eh.h.
9575 (generate_memset_builtin, generate_memcpy_builtin): Call
9576 rewrite_to_non_trapping_overflow on builtin->size before passing it
9577 to force_gimple_operand_gsi.
9579 2019-02-15 Jakub Jelinek <jakub@redhat.com>
9582 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
9584 * opth-gen.awk: Likewise.
9586 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
9588 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
9589 Enable MMX, SSE and SSE2 by default.
9590 * config/i386/i386.c (ix86_option_override_internal): Do not
9591 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
9593 2019-02-14 Jakub Jelinek <jakub@redhat.com>
9595 PR rtl-optimization/89354
9596 * combine.c (make_extraction): Punt if extraction_mode is narrower
9599 2019-02-14 Maya Rashish <coypu@sdf.org>
9601 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
9602 * config/netbsd-d.c: New file.
9603 * config/t-netbsd: Add netbsd-d.o
9605 2018-02-14 Steve Ellcey <sellcey@marvell.com>
9607 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
9608 affects_type_identity to true for aarch64_vector_pcs.
9609 (aarch64_comp_type_attributes): New function.
9610 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
9612 2019-02-14 Tamar Christina <tamar.christina@arm.com>
9615 * config/arm/iterators.md (ANY64): Add V4HF.
9617 2019-02-14 Martin Liska <mliska@suse.cz>
9619 PR rtl-optimization/89242
9620 * dce.c (delete_unmarked_insns): Call free_dominance_info we
9621 process a transformation.
9623 2019-02-14 Jakub Jelinek <jakub@redhat.com>
9625 PR tree-optimization/89314
9626 * fold-const.c (fold_binary_loc): Cast strlen argument to
9627 const char * before dereferencing it. Formatting fixes.
9630 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
9632 2019-02-13 Ian Lance Taylor <iant@golang.org>
9634 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
9635 and set current index for other optimizations.
9637 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
9639 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
9640 nonimmediate_operand as operand 2 predicate.
9641 (vec_set<VF2_512_256:mode>_0): Ditto.
9642 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
9643 (*vec_concatv2si): Remove alternative 2.
9644 (*vec_concatv4si_0): Use vm constraint for alternative 0.
9645 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
9646 (vec_concatv2di): Split alternatives 4,5,6 to ...
9647 (*vec_concatv2di_0) ... new pattern.
9649 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
9652 * config/arm/arm.c (ldm_stm_operation_p) Set
9653 addr_reg_in_reglist correctly for first register.
9654 (load_multiple_sequence): Remove dead base check.
9655 (gen_ldm_seq): Correctly set write_back for Thumb-1.
9657 2019-02-13 Tamar Christina <tamar.christina@arm.com>
9660 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
9661 Expose as @aarch64_pred_mov.
9662 * config/aarch64/aarch64.c (aarch64_classify_address):
9663 Use expand_insn which legitimizes operands.
9665 2019-02-13 Martin Liska <mliska@suse.cz>
9667 * builtins.h (expand_builtin_with_bounds): Remove declaration.
9668 * calls.c (struct arg_data): Remove special_slot, pointer_arg
9669 and pointer_offset fields.
9670 (initialize_argument_information): Remove usage of dead
9672 * cgraph.h (struct cgraph_thunk_info): Remove
9673 add_pointer_bounds_args.
9674 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
9676 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
9678 * config/i386/i386.c (ix86_function_arg_advance): Remove
9680 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
9681 (def_builtin): Remove usage of dead
9683 (ix86_add_new_builtins): Likewise.
9684 * ipa-fnsummary.c (compute_fn_summary): Likewise.
9685 * ipa-icf.c (sem_function::equals_wpa): Likewise.
9686 (sem_function::init): Likewise.
9687 (sem_variable::merge): Likewise.
9688 * ipa-visibility.c (function_and_variable_visibility): Likewise.
9689 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
9690 * lto-cgraph.c (lto_output_node): Likewise.
9691 (lto_output_varpool_node): Likewise.
9692 (input_node): Likewise.
9693 (input_varpool_node): Likewise.
9694 * lto-streamer-out.c (lto_output): Likewise.
9695 * tree-inline.c (expand_call_inline): Remove usage of
9697 * tree-inline.h (struct copy_body_data): Likewise.
9698 * varpool.c (varpool_node::dump): Likewise.
9700 2019-02-13 Jakub Jelinek <jakub@redhat.com>
9703 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
9704 into pt->vars_contains_escaped_heap instead of setting
9705 pt->vars_contains_escaped_heap to it.
9708 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
9709 INTVAL (size), compare it to GET_MODE_MASK instead of
9710 1 << GET_MODE_BITSIZE.
9713 * config/i386/predicates.md (x86_64_immediate_operand): Allow
9714 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
9717 2019-02-13 Martin Liska <mliska@suse.cz>
9720 * cfgrtl.c (remove_barriers_from_footer): New function.
9721 (try_redirect_by_replacing_jump): Use it.
9722 (cfg_layout_redirect_edge_and_branch): Likewise.
9724 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
9726 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
9727 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
9728 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
9729 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
9730 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
9731 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
9733 * config/rs6000/rs6000.c (builtin_function_type)
9734 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
9735 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
9736 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
9737 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
9738 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
9740 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
9742 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
9743 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
9745 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
9748 * config/i386/i386.md (*movoi_internal_avx): Revert revision
9749 268678 and revision 268657.
9750 (*movti_internal): Likewise.
9752 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
9755 * config/s390/s390.c (s390_decompose_address): Update comment.
9756 (s390_check_qrst_address): Reject invalid address forms after
9759 2019-02-12 Martin Liska <mliska@suse.cz>
9762 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
9763 we need default values of funct_state for a function that
9766 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
9768 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
9769 the object to pick the size of stores on strict-alignment platforms.
9771 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
9772 (*movdi_insn_sp32): Likewise.
9773 (*movdi_insn_sp64): Likewise.
9775 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
9778 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
9779 types that needs constructiong.
9780 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
9782 2019-02-12 Richard Biener <rguenther@suse.de>
9784 PR tree-optimization/89253
9785 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
9788 2019-02-11 David Malcolm <dmalcolm@redhat.com>
9791 * input.c (selftest::test_line_offset_overflow): New selftest.
9792 (selftest::input_c_tests): Call it.
9794 2019-02-11 Martin Sebor <msebor@redhat.com>
9796 PR tree-optimization/88771
9797 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
9798 when -Wstringop-overflow is set.
9799 (builtin_memref::builtin_memref): Adjust excessive upper bound
9800 only when lower bound is not excessive.
9801 (maybe_diag_overlap): Detect and diagnose excessive bounds via
9802 -Wstringop-ovefflow.
9803 (maybe_diag_offset_bounds): Rename...
9804 (maybe_diag_access_bounds): ...to this.
9805 (check_bounds_or_overlap): Adjust for name change above.
9807 2019-02-11 Martin Sebor <msebor@redhat.com>
9810 * builtins.c (max_object_size): Move from here...
9811 * builtins.h (max_object_size): ...and here...
9812 * tree.c (max_object_size): ...to here...
9813 * tree.h (max_object_size): ...and here.
9815 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
9817 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
9818 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
9819 for correct semantics.
9821 2019-02-11 Alan Modra <amodra@gmail.com>
9823 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
9824 -mlongcall and -mpltseq.
9825 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
9826 (RS/6000 and PowerPC Options <-mpltseq>): Document.
9827 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
9828 * config/rs6000/sysv4.opt (mpltseq): New option.
9829 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
9830 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
9831 support is lacking. Don't allow -mpltseq with -mbss-plt.
9832 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
9833 -mpltseq given for ELFv1.
9834 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
9835 Only use UNSPEC_PLTSEQ for inline PLT calls.
9836 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
9837 use UNSPEC_PLTSEQ for inline PLT calls.
9838 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
9839 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
9840 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
9841 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
9842 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
9843 (pltseq_mtctr_<mode>): Likewise.
9845 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9847 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
9849 * configure: Regenerate.
9851 2019-02-11 Jakub Jelinek <jakub@redhat.com>
9854 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
9857 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
9859 * function.c (assign_parm_setup_block): Use the stored
9860 size, not the passed size, when allocating stack-space,
9861 also for a parameter with alignment larger than
9862 MAX_SUPPORTED_STACK_ALIGNMENT.
9864 2019-02-11 Martin Liska <mliska@suse.cz>
9867 * ipa-cp.c (build_toporder_info): Remove usage of a param.
9868 * ipa-inline.c (inline_small_functions): Likewise.
9869 * ipa-pure-const.c (propagate_pure_const): Likewise.
9870 (propagate_nothrow): Likewise.
9871 * ipa-reference.c (propagate): Likewise.
9872 * ipa-utils.c (struct searchc_env): Remove unused field.
9873 (searchc): Always search across AVAIL_INTERPOSABLE.
9874 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
9875 the only called IPA pure const can properly not propagate
9876 across interposable boundary.
9877 * ipa-utils.h (ipa_reduced_postorder): Remove param.
9879 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
9881 * config/nds32/nds32.md (call_internal, call_value_internal,
9882 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
9884 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
9886 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
9889 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
9891 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
9894 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
9896 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
9898 2019-02-10 Jakub Jelinek <jakub@redhat.com>
9900 PR tree-optimization/89268
9901 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
9902 if preds is non-NULL.
9904 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
9907 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
9910 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
9912 * config/nds32/nds32.md (trap): New pattern.
9914 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
9916 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
9919 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
9921 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
9924 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
9926 * ipa-visibility.c (localize_node): Also do not localize
9927 LDPR_PREVAILING_DEF_IRONLY_EXP.
9929 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
9932 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
9933 instead of type_with_linkage.
9935 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
9938 * params.def (uninlined-function-insns, uninlined-function-time,
9939 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
9940 bound so we don't get overflows.
9942 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
9944 * config/rs6000/rs6000-string.c (expand_compare_loop,
9945 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
9948 2019-02-09 Jakub Jelinek <jakub@redhat.com>
9951 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
9952 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
9953 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
9955 2019-02-09 Alan Modra <amodra@gmail.com>
9958 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
9959 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
9962 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
9965 * lra-constraints.c (process_alt_operands): Don't increase reject
9966 for memory when offset memory is required.
9968 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
9970 * config/s390/vector.md: Implement vector copysign.
9972 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
9974 * expr.c (expand_constructor): Correct indentations.
9976 2019-02-08 Richard Biener <rguenther@suse.de>
9978 PR tree-optimization/89247
9979 * tree-if-conv.c: Include tree-cfgcleanup.h.
9980 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
9981 (tree_if_conversion): Pass through predicate vector.
9982 (pass_if_conversion::execute): Do CFG cleanup and SSA update
9983 inline, see if any if-converted loops we refrece in
9984 LOOP_VECTORIZED calls vanished and fixup.
9985 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
9987 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
9989 * config/s390/constraints.md (jdd): New constraint.
9991 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
9994 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
9995 upper 16 vector registers without TARGET_AVX512VL.
9996 (*movti_internal): Likewise.
9998 2019-02-08 Jakub Jelinek <jakub@redhat.com>
10000 PR rtl-optimization/89234
10001 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
10002 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
10003 (copy_reg_eh_region_note_backward): Likewise.
10005 2019-02-08 Richard Biener <rguenther@suse.de>
10007 PR middle-end/89223
10008 * tree-data-ref.c (initialize_matrix_A): Fail if constant
10009 doesn't fit in HWI.
10010 (analyze_subscript_affine_affine): Handle failure from
10011 initialize_matrix_A.
10013 2019-02-08 Jakub Jelinek <jakub@redhat.com>
10015 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
10018 2019-02-07 David Malcolm <dmalcolm@redhat.com>
10020 PR tree-optimization/86637
10021 PR tree-optimization/89235
10022 * tree-vect-loop.c (optimize_mask_stores): Add an
10023 auto_purge_vect_location sentinel to ensure that vect_location is
10025 * tree-vectorizer.c
10026 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
10027 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
10028 to ensure that vect_location is purged on exit.
10029 (pass_slp_vectorize::execute): Likewise, replacing the manual
10031 * tree-vectorizer.h (class auto_purge_vect_location): New class.
10033 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10035 * config/aarch64/iterators.md (max_opp): New code_attr.
10036 (USMAX): New code iterator.
10037 * config/aarch64/predicates.md (aarch64_smin): New predicate.
10038 (aarch64_smax): Likewise.
10039 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
10040 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
10043 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
10046 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
10047 for TARGET_AVX512VL.
10048 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
10050 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
10052 * config/s390/s390-builtin-types.def: Add new types.
10053 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
10054 (s390_vec_xlw4): Make the memory operand into a const pointer.
10055 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
10057 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
10058 a new vector type with the alignment of the scalar memory operand.
10060 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
10061 Jakub Jelinek <jakub@redhat.com>
10064 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
10065 arm_count_ldrdstrd_insns): New declarations.
10066 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
10068 (valid_operands_ldrd_strd): New function.
10069 (arm_count_ldrdstrd_insns): New function.
10070 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
10071 sets instead of single DImode set and define new insns to match this.
10073 2019-02-07 Tamar Christina <tamar.christina@arm.com>
10075 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
10076 Make it a C initializer.
10078 2019-02-07 Tamar Christina <tamar.christina@arm.com>
10081 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
10083 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10085 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
10086 Use neon_dot<q> for type.
10087 (neon_<sup>dot_lane<vsi2qi>): Likewise.
10089 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10091 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
10092 Use neon_dot<q> for type.
10093 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
10094 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
10096 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
10098 PR rtl-optimization/89225
10099 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
10102 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
10104 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
10105 after restoring registers saved to allocate the frame on Windows.
10107 2019-02-06 Richard Biener <rguenther@suse.de>
10109 PR tree-optimization/89182
10110 * graphite.h (cached_scalar_evolution_in_region): Declare.
10111 * graphite.c (struct seir_cache_key): New.
10112 (struct sese_scev_hash): Likewise.
10113 (seir_cache): New global.
10114 (cached_scalar_evolution_in_region): New function.
10115 (graphite_transform_loops): Allocate and release seir_cache.
10116 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
10117 cached_scalar_evolution_in_region.
10118 * graphite-scop-detection.c (scop_detection::can_represent_loop):
10120 (scop_detection::graphite_can_represent_expr: Use
10121 cached_scalar_evolution_in_region.
10122 (scop_detection::stmt_simple_for_scop_p): Likewise.
10123 (find_params_in_bb): Likewise.
10124 (gather_bbs::before_dom_children): Likewise.
10125 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
10126 (add_loop_constraints): Likewise.
10128 2019-02-06 Jakub Jelinek <jakub@redhat.com>
10130 PR middle-end/89210
10131 * fold-const-call.c (fold_const_vec_convert): Pass true as last
10132 operand to new_unary_operation only if both element types are integral
10133 and it isn't a widening conversion. Return NULL_TREE if
10134 new_unary_operation failed.
10136 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
10139 * config/s390/s390.md: Remove load and test FP splitter.
10141 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
10144 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
10145 expand_compare_loop, expand_block_compare_gpr,
10146 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
10147 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
10148 #include "profile-count.h" and "predict.h" for types and functions
10149 needed to work with REG_BR_PROB notes.
10151 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
10154 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
10155 for the long branch case.
10157 2019-02-05 Jakub Jelinek <jakub@redhat.com>
10160 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
10161 can throw, non-call exceptions are enabled and we can't delete
10162 dead exceptions or alter cfg. Set must_clean if
10163 delete_insn_and_edges returns true, don't set it blindly for calls.
10164 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
10166 PR rtl-optimization/89195
10167 * combine.c (make_extraction): For MEMs, don't extract bytes outside
10168 of the original MEM.
10170 2019-02-05 Martin Liska <mliska@suse.cz>
10172 PR gcov-profile/89000
10173 * gcov.c (function_summary): Remove argument.
10174 (file_summary): New function.
10175 (print_usage): Replace tabs with spaces.
10176 (generate_results): Use new function file_summary.
10178 2019-02-05 Jakub Jelinek <jakub@redhat.com>
10181 * optabs.c (prepare_cmp_insn): Pass x and y to
10182 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
10184 2019-02-05 Richard Biener <rguenther@suse.de>
10186 PR middle-end/89150
10187 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
10188 (struct bitmap_element): Drop chain_prev so we properly recurse on
10189 the prev member, supporting tree views.
10190 (struct bitmap_head): GTY skip the obstack member.
10192 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
10195 * doc/extend.texi (Vector Extensions): Add an example of using vector
10196 types together with x86 intrinsics.
10198 2019-02-04 Alan Modra <amodra@gmail.com>
10200 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
10201 str[] size to 160, and comment.
10203 2019-02-04 Alan Modra <amodra@gmail.com>
10205 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
10206 (rs6000_pltseq_template): Guard output of TLS markers with
10207 TARGET_TLS_MARKERS.
10208 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
10209 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
10210 to use inline PLT sequences.
10211 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
10212 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
10213 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
10215 2019-02-04 Martin Liska <mliska@suse.cz>
10218 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
10219 out when ipa_fn_summaries does not contain entry for callee.
10221 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
10223 * config/sparc/sparc.h: Remove superfluous blank lines.
10224 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
10225 (got_register_rtx): ...this.
10226 (sparc_got): Adjust to above renaming.
10227 (sparc_tls_got): Likewise.
10228 (sparc_delegitimize_address): Likewise.
10229 (sparc_output_mi_thunk): Likewise.
10230 (sparc_init_pic_reg): Likewise.
10231 (save_local_or_in_reg_p): Fix test on the GOT register.
10232 (USE_HIDDEN_LINKONCE): Move around.
10233 (get_pc_thunk_name): Likewise.
10234 (gen_load_pcrel_sym): Likewise.
10235 (load_got_register): Likewise.
10237 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
10239 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
10240 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
10242 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
10244 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
10245 into consideration.
10247 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
10249 * config.gcc (with_nds32_lib, glibc):
10250 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
10251 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
10252 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
10254 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
10257 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
10258 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
10259 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
10260 (*rcpsf2_sse): Ditto.
10261 (*rsqrtsf2_sse): Ditto.
10262 (sse4_1_round<mode<2): Ditto.
10264 2019-02-03 Richard Biener <rguenther@suse.de>
10267 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
10270 2019-02-02 Jakub Jelinek <jakub@redhat.com>
10272 PR middle-end/87887
10273 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
10274 Punt with warning on aggregate return or argument types. Ignore
10275 type/mode checking for uniform arguments.
10277 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
10279 * combine.c (try_combine): Do not print "Can't combine" messages unless
10280 printing failed combination attempts.
10282 2019-02-01 Martin Jambor <mjambor@suse.cz>
10285 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
10286 segment and global segment variables before making them static.
10288 2019-02-01 Martin Jambor <mjambor@suse.cz>
10290 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
10291 missed optimization dump with dump_enabled_p.
10293 2019-02-01 Richard Biener <rguenther@suse.de>
10295 PR middle-end/88597
10296 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
10297 the instantiate cache.
10298 (instantiate_scev_binary): Elide second operand procesing
10299 if equal to the first.
10300 * tree-chrec.c (chrec_contains_symbols): Add visited set.
10301 (chrec_contains_undetermined): Likewise.
10302 (tree_contains_chrecs): Likewise.
10304 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
10306 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
10308 2019-02-01 Jakub Jelinek <jakub@redhat.com>
10310 PR tree-optimization/89143
10311 * wide-int-range.h (wide_int_range_absu): Declare.
10312 * wide-int-range.cc (wide_int_range_absu): New function.
10313 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
10315 PR tree-optimization/88107
10316 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
10317 instead of assertion that eh_region_outermost is non-NULL, if it
10318 is NULL, set *ALL to true and return NULL.
10319 (move_sese_region_to_fn): Adjust caller, if all is set, call
10320 duplicate_eh_regions with NULL region.
10322 2019-02-01 Richard Biener <rguenth@suse.de>
10324 PR rtl-optimization/88593
10325 * mode-switching.c (optimize_mode_switching): Free dominators before
10326 calling cleanup_cfg.
10328 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
10330 PR tree-optimization/88932
10331 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
10333 2019-01-31 Jakub Jelinek <jakub@redhat.com>
10335 PR middle-end/89137
10336 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
10337 bogus clang warning.
10339 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
10342 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
10343 alternative to avoid partial SSE register stall for TARGET_AVX.
10344 (truncdfsf2): Ditto.
10345 (sse4_1_round<mode>2): Ditto.
10347 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
10349 PR tree-optimization/89008
10350 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
10351 process anything of the form X * 0.
10353 2019-01-31 Richard Biener <rguenther@suse.de>
10355 PR tree-optimization/89135
10356 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
10357 with abnormal preds.
10359 2019-01-31 Jakub Jelinek <jakub@redhat.com>
10362 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
10363 always_inline callees into no_sanitize_address callers.
10365 2019-01-31 Richard Biener <rguenther@suse.de>
10367 PR rtl-optimization/89115
10368 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
10370 2019-01-30 Martin Sebor <msebor@redhat.com>
10373 * doc/extend.texi (cast to a union): Correct and expand.
10375 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
10377 PR rtl-optimization/87246
10378 * lra-constraints.c (simplify_operand_subreg): Reload memory
10379 in subreg if the address became invalid.
10381 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
10384 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
10385 Disable for little-endian.
10387 2019-01-30 Richard Biener <rguenther@suse.de>
10389 PR rtl-optimization/89115
10390 * opts.c (default_options_optimization): Reduce
10391 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
10392 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
10395 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
10397 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
10398 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
10399 type of vector element when vec_extract is implemented by direct
10402 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
10404 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
10406 2019-01-30 Richard Biener <rguenther@suse.de>
10408 PR tree-optimization/89111
10409 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
10410 canonicalization to appropriately sized access types.
10412 2019-01-30 Jakub Jelinek <jakub@redhat.com>
10415 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
10416 for arguments to functions that are TU-local and shouldn't be
10417 referenced by assembly.
10419 2019-01-30 Ulrich Drepper <drepper@redhat.com>
10421 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
10424 2019-01-29 Martin Sebor <msebor@redhat.com>
10427 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
10429 2019-01-29 Jakub Jelinek <jakub@redhat.com>
10433 * omp-simd-clone.c (simd_clone_clauses_extract)
10434 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
10435 OMP_CLAUSE_ALIGNED_ALIGNMENT.
10437 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
10439 * config.gcc: Force .init_array for ARC.
10441 2019-01-29 Richard Biener <rguenther@suse.de>
10444 * dwarf2out.c (collect_skeleton_dies): New helper.
10445 (copy_decls_for_unworthy_types): Call it.
10446 (build_abbrev_table): Assert we do not try to replace
10447 DW_AT_signature refs with local refs.
10449 2019-01-28 Jakub Jelinek <jakub@redhat.com>
10451 PR middle-end/89002
10452 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
10453 for lastprivate/linear IV, push gimplify context around gimplify_assign
10454 and, if it needed any temporaries, pop it into a gimple bind around the
10457 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
10459 * common.opt (-Wattribute-alias): Remove "no-" from name.
10460 Make -Wattribute-alias command line option and
10461 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
10463 2019-01-28 Jakub Jelinek <jakub@redhat.com>
10466 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
10467 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
10469 (bmi2): Add missing @opindex.
10470 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
10471 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
10472 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
10473 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
10474 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
10475 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
10476 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
10477 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
10478 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
10479 xsavec, xsaveopt and xsaves options.
10481 2019-01-28 Richard Biener <rguenther@suse.de>
10484 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
10487 2019-01-28 Richard Biener <rguenther@suse.de>
10489 PR tree-optimization/88739
10490 * tree-cfg.c (verify_types_in_gimple_reference): Verify
10491 BIT_FIELD_REFs only are applied to mode-precision operands
10492 when they are integral.
10493 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
10494 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
10495 BIT_FIELD_REFs of non-mode-precision integral operands.
10497 2019-01-27 Jakub Jelinek <jakub@redhat.com>
10500 * config/i386/sse.md
10501 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
10502 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
10503 first constants in pairs are multiples of 2. Formatting fixes.
10504 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
10505 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
10506 first constants in each quadruple are multiples of 4. Formatting fixes.
10508 2019-01-26 Martin Jambor <mjambor@suse.cz>
10511 * tree-inline.c: Include tree-cfgcleanup.h.
10512 (delete_unreachable_blocks_update_callgraph): Move...
10513 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
10514 ...here, make externally visible, make second argument bool, adjust
10516 * tree-cfgcleanup.c: Include cgraph.h.
10517 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
10519 * ipa-prop.c: Include tree-cfgcleanup.h.
10520 (ipcp_transform_function): Call
10521 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
10523 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
10525 PR rtl-optimization/88846
10526 * ira.c (process_set_for_memref_referenced_p): New.
10527 (memref_referenced_p): Add new param. Use
10528 process_set_for_memref_referenced_p. Add new switch cases.
10529 (memref_used_between_p): Pass new arg to memref_referenced_p.
10531 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
10534 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
10535 argument ABI_BREAK. Set to true if the calculated alignment has
10536 changed in gcc-9. Check bit-fields for their base type alignment.
10537 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
10538 (aarch64_function_arg_boundary): Likewise.
10539 (aarch64_gimplify_va_arg_expr): Likewise.
10541 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
10543 PR middle-end/89037
10544 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
10545 instead of accessing TREE_INT_CST_ELT directly.
10547 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
10549 * doc/sourcebuild.texi (Environment attributes): Add fenv and
10550 fenv_exceptions description.
10552 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
10554 PR rtl-optimization/87763
10555 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
10556 Allow SUBREG when matching CC_NZmode compare.
10558 2019-01-25 Richard Biener <rguenther@suse.de>
10560 PR tree-optimization/89049
10561 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
10562 Look at the pattern stmt to determine if the stmt is vectorized.
10564 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
10566 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
10567 (pred_mov<mode>): Handle all-register forms using both a new
10568 alternative and a split.
10570 2019-01-25 Richard Biener <rguenther@suse.de>
10572 PR tree-optimization/86865
10573 * graphite-scop-detection.c (scop_detection::can_represent_loop):
10574 Reject non-do-while loops.
10576 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
10578 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
10579 * config/rs6000/constraints.md (Q constraint): Use REG_P.
10580 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
10581 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
10582 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
10583 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
10584 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
10585 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
10586 vlogical_operand, gpc_reg_operand, int_reg_operand,
10587 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
10588 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
10589 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
10590 (save_world_operation, restore_world_operation, lmw_operation,
10591 stmw_operation): Use MEM_P and REG_P.
10592 (tie_operand): Use MEM_P.
10593 (vrsave_operation, crsave_operation): Use REG_P.
10594 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
10595 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
10596 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
10597 (call_operand): Use HARD_REGISTER_P.
10598 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
10600 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
10601 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
10602 quad_aligned_load_p, replace_swapped_aligned_store,
10603 recombine_lvx_pattern, replace_swapped_aligned_load,
10604 recombine_stvx_pattern): Use MEM_P.
10605 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
10606 Use MEM_P and SYMBOL_REF_P.
10607 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
10608 (insn_is_swappable_p): Use REG_P and MEM_P.
10609 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
10610 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
10612 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
10613 Use CONST_DOUBLE_P.
10614 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
10616 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
10617 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
10618 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
10619 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
10621 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
10622 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
10623 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
10624 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
10625 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
10626 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
10627 rs6000_split_logical_di): Use CONST_INT_P.
10628 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
10629 REG_P and SYMBOL_REF_P.
10630 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
10631 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
10632 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
10633 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
10634 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
10635 (small_data_operand, print_operand_address): Use CONST_INT_P and
10637 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
10638 (rs6000_init_hard_regno_mode_ok, direct_move_p):
10639 Use HARD_REGISTER_NUM_P.
10640 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
10641 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
10642 SUBREG_P and SYMBOL_REF_P.
10643 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
10644 and HARD_REGISTER_NUM_P.
10645 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
10647 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
10648 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
10650 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
10651 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
10652 find_addr_reg): Use REG_P.
10653 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
10654 (rs6000_emit_le_vsx_move): Use SUBREG_P.
10655 (offsettable_ok_by_alignment, constant_pool_expr_p,
10656 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
10657 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
10658 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
10659 rs6000_assemble_integer, create_TOC_reference,
10660 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
10661 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
10662 (rs6000_split_vec_extract_var): Use reg_or_subregno.
10663 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
10664 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
10665 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
10666 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
10667 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
10668 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
10669 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
10670 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
10671 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
10672 and cbranch<mode>4): Use CONST_INT_P.
10673 (multiple define_splits): Use REG_P and SUBREG_P.
10674 (define_expands call, call_value): Use MEM_P.
10675 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
10676 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
10677 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
10678 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
10679 and HARD_REGISTER_NUM_P.
10680 (multiple define_splits): Use HARD_REGISTER_NUM_P.
10682 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
10684 PR rtl-optimization/88948
10685 * rtl.h (prepare_copy_insn): New prototype.
10686 * gcse.c (prepare_copy_insn): New function, split out from
10687 process_insert_insn.
10688 (process_insert_insn): Use prepare_copy_insn.
10689 * store-motion.c (replace_store_insn): Use prepare_copy_insn
10690 instead of gen_move_insn.
10692 2019-01-24 Jakub Jelinek <jakub@redhat.com>
10695 * config/i386/i386.c (ix86_pic_register_p): Return true for
10696 UNSPEC_SET_GOT too.
10698 PR tree-optimization/88964
10699 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
10700 punt if HONOR_SNANS (chrec).
10702 PR middle-end/89015
10703 * tree-nested.c (convert_nonlocal_reference_stmt,
10704 convert_local_reference_stmt, convert_tramp_reference_stmt,
10705 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
10706 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
10707 or GIMPLE_OMP_TASK.
10709 PR tree-optimization/89027
10710 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
10711 for "omp simd array" variables.
10713 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
10716 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
10717 force the alignment of m_val.
10719 2019-01-24 Richard Biener <rguenther@suse.de>
10722 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
10723 When in "legacy" debug mode make sure to reset self-origins.
10725 2019-01-24 Martin Liska <mliska@suse.cz>
10727 PR gcov-profile/88994
10728 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
10729 result will be always smaller or equal to the original.
10730 * gcov.c (mangle_name): Fix else branch where we should
10731 also copy to PTR and shift the pointer.
10733 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
10735 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
10736 * vr-values.c (find_case_label_ranges): Fix a comment typo.
10738 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
10740 * common/config/i386/i386-common.c
10741 (OPTION_MASK_ISA_ENQCMD_SET,
10742 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
10743 (ix86_handle_option): Handle -menqcmd.
10744 * config.gcc (enqcmdintrin.h): New header file.
10745 * config/i386/cpuid.h (bit_ENQCMD): New bit.
10746 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
10748 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
10750 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
10751 __builtin_ia32_enqcmds): New builtins.
10752 * config/i386/i386-c.c (__ENQCMD__): New macro.
10753 * config/i386/i386-option.c (ix86_target_string): Add
10755 (ix86_valid_target_attribute_inner_p): Likewise.
10756 * config/i386/i386-expand.c
10757 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
10758 IX86_BUILTIN_ENQCMDS.
10759 * config/i386/i386.h (TARGET_ENQCMD): New.
10760 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
10761 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
10762 (movdir64b_<mode>): Parameterize to enable share expansion code
10763 with ENQCMD in function ix86_expand_builtin.
10764 * config/i386/i386.opt: Add -menqcmd.
10765 * config/i386/immintrin.h: Include enqcmdintrin.h.
10766 * config/i386/enqcmdintrin.h: New intrinsic file.
10767 * doc/invoke.texi: Add -menqcmd.
10769 2019-01-23 Bin Cheng <bin.cheng@arm.com>
10770 Steve Ellcey <sellcey@marvell.com>
10773 * recog.c (address_operand): Return false on wrong mode for address.
10774 (constrain_operands): Check for mode with 'p' constraint.
10776 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
10779 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
10780 Disparage MMX alternative.
10781 (sse2_cvtpd2pi): Ditto.
10782 (sse2_cvttpd2pi): Ditto.
10784 2019-01-23 David Malcolm <dmalcolm@redhat.com>
10787 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
10788 use-after-free of the result of
10789 aarch64_get_extension_string_for_isa_flags.
10791 2019-01-23 Jakub Jelinek <jakub@redhat.com>
10794 * doc/extend.texi: Document break and continue behavior in
10795 statement expressions.
10797 2019-01-23 Richard Biener <rguenther@suse.de>
10799 PR tree-optimization/89008
10800 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
10801 not leave another stray operand.
10803 2019-01-23 Jakub Jelinek <jakub@redhat.com>
10805 * BASE-VER: Bump to 9.0.1.
10807 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
10809 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
10810 thunk that returns by reference, use the type of the return object
10811 of the thunk instead of that of the alias to build the dereference.
10813 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
10815 * config/arc/atomic.md: Add operand to DMB instruction.
10817 2019-01-23 Jakub Jelinek <jakub@redhat.com>
10819 PR tree-optimization/88964
10820 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
10821 build_zero_cst instead of build_int_cst. Return false for loop
10822 invariants which honor signed zeros.
10824 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
10826 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
10828 2019-01-22 Jakub Jelinek <jakub@redhat.com>
10831 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
10832 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
10833 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
10835 PR middle-end/88968
10836 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
10837 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
10840 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
10841 Disable for little endian.
10843 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
10846 * config/arm/arm.c (arm_needs_double_word_align): Check
10847 DECL_BIT_FIELD_TYPE.
10849 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
10850 H.J. Lu <hongjiu.lu@intel.com>
10853 * config/i386/i386-builtin.def: Add mask2 to all builtin
10854 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
10856 * config/i386/i386.c (BDESC): Add mask2 to the definition.
10857 (BDESC_FIRST): Likewise.
10858 (define_builtin): Add an argument for mask2. Updated to handle
10859 both ix86_isa_flags and ix86_isa_flags2.
10860 (define_builtin_const): Likewise.
10861 (define_builtin_pure): Likewise.
10862 (define_builtin2): Deleted.
10863 (define_builtin_const2): Likewise.
10864 (builtin_description): Add a member, mask2.
10865 (bdesc_*): Add mask2 to builtin initializations.
10866 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
10867 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
10869 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
10871 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
10874 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
10877 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
10880 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
10881 alignment is dominated by a bitfield with 64-bit aligned base type.
10882 (arm_function_arg): Emit a warning if the alignment has changed since
10883 earlier GCC releases.
10884 (arm_function_arg_boundary): Likewise.
10885 (arm_setup_incoming_varargs): Likewise.
10887 2019-01-22 Richard Biener <rguenther@suse.de>
10889 PR tree-optimization/88862
10890 * graphite-scop-detection.c
10891 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
10893 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
10895 * doc/extend.tex (AMD GCN Function Attributes): New section.
10896 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
10897 * doc/invoke.texi (AMD GCN Options): New section.
10898 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
10900 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
10902 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
10903 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
10905 2019-01-22 Jakub Jelinek <jakub@redhat.com>
10907 PR tree-optimization/88044
10908 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
10909 is false in the first iteration, but !every_iteration, return false
10910 instead of true with niter->niter zero.
10912 PR rtl-optimization/88904
10913 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
10914 any nonequal registers before processing BB_END (b).
10917 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
10919 (expand_binop_directly, expand_doubleword_clz,
10920 expand_doubleword_popcount, expand_ctz, expand_ffs,
10921 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
10923 PR rtl-optimization/49429
10925 PR rtl-optimization/86334
10927 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
10928 addressable from here...
10929 (emit_block_op_via_libcall): ... to here.
10931 2019-01-22 Richard Biener <rguenther@suse.de>
10933 * tree-vect-loop.c (vect_analyze_loop_operations): Use
10934 auto_vec for cost vector to fix memleak.
10935 (vectorize_fold_left_reduction): Properly gather SLP defs.
10936 (vectorizable_comparison): Do not swap operands to properly
10939 2019-01-22 Alan Modra <amodra@gmail.com>
10942 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
10943 stays a reg. Allow a const_int.
10944 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
10945 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
10946 (IS_NOMARK_TLSGETADDR): Define.
10947 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
10948 (rs6000_output_tlsargs): New function.
10949 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
10950 __tls_get_addr call takes an arg.
10951 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
10952 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
10954 (call_value_nonlocal_sysv): ..or here, delete split.
10955 (tls_gdld_nomark): Delete.
10956 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
10957 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
10958 (call_value_nonlocal_sysv): Likewise.
10959 (call_value_nonlocal_sysv_secure): Likewise.
10960 (call_value_nonlocal_aix): Likewise.
10961 (call_value_indirect_aix): Likewise.
10962 (call_value_indirect_elfv2): Likewise.
10963 (call_value_local32, call_value_local64): Disable for no-mark tls.
10964 (call_value_local_aix): Likewise.
10966 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
10969 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
10970 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
10972 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
10974 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
10975 string contents as hash_map keys.
10977 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
10980 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
10981 for rvalue context. Handle rvalues correctly. Use min_align_of_type
10982 instead of TYPE_ALIGN.
10983 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
10984 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
10985 pointer from TYPE_STUB_DECL.
10987 2019-01-21 Richard Biener <rguenther@suse.de>
10989 PR tree-optimization/88934
10990 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
10991 at the possibly non-constant operand.
10992 (vect_get_constant_vectors): Adjust.
10994 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
10997 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
10998 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
10999 instead of _X86INTRIN_H_INCLUDED.
11000 * onfig/i386/clwbintrin.h: Likewise.
11001 * config/i386/pkuintrin.h: Likewise.
11002 * config/i386/prfchwintrin.h: Likewise.
11003 * config/i386/rdseedintrin.h: Likewise.
11004 * config/i386/wbnoinvdintrin.h: Likewise.
11005 * config/i386/xsavecintrin.h: Likewise.
11006 * config/i386/xsavesintrin.h: Likewise.
11007 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
11008 * config/i386/xsaveintrin.h: Likewise.
11009 * config/i386/xsaveoptintrin.h: Likewise.
11010 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
11011 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
11012 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
11013 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
11014 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
11015 * config/i386/immintrin.h: Here.
11017 2019-01-20 Martin Jambor <mjambor@suse.cz>
11020 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
11021 with aa_walk_budget.
11022 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
11023 aa_walk_budget_p parameter.
11024 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
11025 walk. Updated all callers.
11026 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
11027 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
11029 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
11030 parameter info. Extract info from fbi. Pass fbi to recursive calls
11031 and to unmodified_parm.
11032 (phi_result_unknown_predicate): New parameter fbi, removed parameter
11033 info, updated call to will_be_nonconstant_expr_predicate.
11034 (param_change_prob): New parameter fbi, limit AA walking.
11035 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
11036 calls to various above functions.
11037 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
11038 parameter. Use it to limit AA walking.
11039 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
11040 fbi, limit AA walk.
11041 (detect_type_change): New parameter fbi, pass it on to
11042 detect_type_change_from_memory_writes.
11043 (detect_type_change_ssa): Likewise.
11044 (aa_overwalked): Removed.
11045 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
11046 accordingly, adjust to the neew AA limiting scheme.
11047 (parm_ref_data_preserved_p): Likewise.
11048 (ipa_compute_jump_functions_for_edge): Adjust call to
11050 (ipa_analyze_call_uses): Likewise.
11051 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
11052 (ipa_analyze_node): Initialize aa_walk_budget.
11053 (ipcp_transform_function): Likewise.
11054 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
11055 to get_dynamic_type.
11057 2019-01-19 Jakub Jelinek <jakub@redhat.com>
11059 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
11060 outside of #if CHECKING_P code.
11062 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
11064 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
11065 New function, split out from...
11066 (loop_versioning::analyze_stride): ...here.
11067 (loop_versioning::find_per_loop_multiplication): Use gassign.
11068 (loop_versioning::analyze_term_using_scevs): Return a success code.
11069 (loop_versioning::analyze_arbitrary_term): New function.
11070 (loop_versioning::analyze_address_fragment): Use
11071 analyze_arbitrary_term if all else fails.
11073 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
11076 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
11079 2019-01-18 Richard Biener <rguenther@suse.de>
11081 PR tree-optimization/88903
11082 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
11083 scalar stmts a SLP shift amount is composed of when detecting
11086 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
11089 * config/arm/arm-cpus.in (mp): New feature.
11090 (sec): New feature.
11091 (fgroup ARMv7ve): Add mp and sec features.
11092 (arch armv7-a): Add options to allow mp and sec extensions.
11093 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
11094 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
11095 extenstions to the base architecture.
11096 (cpu cortex-a8): Add sec extension to the base architecture.
11097 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
11098 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
11099 variants down to the base v7-a varaint.
11100 * config/arm/t-multilib (v7_a_arch_variants): New variable.
11101 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
11102 of permitted extensions for -march=armv7-a and for
11103 -mcpu=generic-armv7-a.
11105 2019-01-18 Martin Liska <mliska@suse.cz>
11107 * params.def: Fix comment.
11108 * tree-profile.c (gimple_init_gcov_profiler): Bump function
11110 (gimple_gen_ic_func_profiler): Likewise.
11112 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11114 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
11115 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
11116 and put in error checks for stack protector guard options.
11117 (aarch64_stack_protect_guard): New.
11118 (TARGET_STACK_PROTECT_GUARD): Define.
11119 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
11120 (reg_stack_protect_address<mode>): New.
11121 (stack_protect_set): Adjust for SSP_GLOBAL.
11122 (stack_protect_test): Likewise.
11123 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
11124 (-mstack-protector-guard): Likewise.
11125 (-mstack-protector-guard-offset): Likewise.
11127 2019-01-18 Jakub Jelinek <jakub@redhat.com>
11129 PR tree-optimization/86214
11130 * tree-inline.h (struct copy_body_data): Add
11131 add_clobbers_to_eh_landing_pads member.
11132 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
11133 (copy_edges_for_bb): Call it if EH edge destination is <
11134 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
11135 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
11136 if flag_stack_reuse != SR_NONE and clear it afterwards.
11138 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
11141 * doc/install.texi (with-multilib-list): Document for aarch64.
11143 2019-01-18 Jakub Jelinek <jakub@redhat.com>
11146 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
11147 (("..."))) with ("...").
11149 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
11151 * doc/extend.texi (Built-in Functions for Memory Model Aware
11152 Atomic Operations): Document atomic fetch and nand.
11154 2019-01-18 Martin Liska <mliska@suse.cz>
11155 Richard Biener <rguenther@suse.de>
11157 PR middle-end/88587
11158 * cgraph.h (create_version_clone_with_body): Add new argument
11160 * cgraphclones.c (cgraph_node::create_version_clone): Add
11161 DECL_ATTRIBUTES to a newly created decl. And call
11162 valid_attribute_p so that proper cl_target_optimization_node
11163 is set for the newly created declaration.
11164 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
11166 (expand_target_clones): Do not call valid_attribute_p, it must
11168 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
11171 2019-01-17 Jakub Jelinek <jakub@redhat.com>
11174 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
11175 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
11176 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
11178 2019-01-17 Martin Sebor <msebor@redhat.com>
11180 PR middle-end/88273
11181 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
11182 Handle anti-ranges the same as no range at all.
11184 2018-01-17 Steve Ellcey <sellcey@cavium.com>
11186 * config/aarch64/aarch64.c (cgraph.h): New include.
11187 (intl.h): New include.
11188 (supported_simd_type): New function.
11189 (currently_supported_simd_type): Ditto.
11190 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
11191 (aarch64_simd_clone_adjust): Ditto.
11192 (aarch64_simd_clone_usable): Ditto.
11193 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
11194 (TARGET_SIMD_CLONE_ADJUST): Ditto.
11195 (TARGET_SIMD_CLONE_USABLE): Ditto.
11196 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
11197 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
11200 2019-01-17 Martin Sebor <msebor@redhat.com>
11202 PR tree-optimization/88800
11203 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
11204 NO_WARNING bit here. Avoid folding out-of-bounds calls.
11205 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
11206 redundant argument. Add new argument and issue diagnostics under
11207 its control. Detect out-of-bounds access even with warnings
11209 (check_bounds_or_overlap): Change return type. Add argument.
11210 (wrestrict_dom_walker::check_call): Adjust.
11211 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
11212 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
11213 check_bounds_or_overlap's return value.
11214 (handle_builtin_stxncpy): Same.
11215 (handle_builtin_strcat): Same.
11217 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
11218 Kwok Cheung Yeung <kcy@codesourcery.com>
11219 Julian Brown <julian@codesourcery.com>
11220 Tom de Vries <tom@codesourcery.com>
11222 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
11224 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
11226 * doc/sourcebuild.texi: Document dg-require-effective-target
11227 llvm_binutils and offload_gcn.
11229 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
11230 Kwok Cheung Yeung <kcy@codesourcery.com>
11231 Julian Brown <julian@codesourcery.com>
11232 Tom de Vries <tom@codesourcery.com>
11234 * doc/sourcebuild.texi: Document dg-required-effective-target
11237 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
11238 Kwok Cheung Yeung <kcy@codesourcery.com>
11239 Julian Brown <julian@codesourcery.com>
11240 Tom de Vries <tom@codesourcery.com>
11241 Jan Hubicka <hubicka@ucw.cz>
11242 Martin Jambor <mjambor@suse.cz>
11244 * config.gcc: Add amdgcn*-*-amdhsa configuration.
11245 * configure.ac: Check for dlopen.
11246 * configure: Regenerate.
11248 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
11249 Kwok Cheung Yeung <kcy@codesourcery.com>
11250 Julian Brown <julian@codesourcery.com>
11251 Tom de Vries <tom@codesourcery.com>
11252 Jan Hubicka <hubicka@ucw.cz>
11253 Martin Jambor <mjambor@suse.cz>
11255 * common/config/gcn/gcn-common.c: New file.
11256 * config/gcn/driver-gcn.c: New file.
11257 * config/gcn/gcn-builtins.def: New file.
11258 * config/gcn/gcn-hsa.h: New file.
11259 * config/gcn/gcn-modes.def: New file.
11260 * config/gcn/gcn-opts.h: New file.
11261 * config/gcn/gcn-passes.def: New file.
11262 * config/gcn/gcn-protos.h: New file.
11263 * config/gcn/gcn-run.c: New file.
11264 * config/gcn/gcn-tree.c: New file.
11265 * config/gcn/gcn.c: New file.
11266 * config/gcn/gcn.h: New file.
11267 * config/gcn/gcn.opt: New file.
11268 * config/gcn/t-gcn-hsa: New file.
11270 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
11271 Kwok Cheung Yeung <kcy@codesourcery.com>
11272 Julian Brown <julian@codesourcery.com>
11273 Tom de Vries <tom@codesourcery.com>
11274 Jan Hubicka <hubicka@ucw.cz>
11275 Martin Jambor <mjambor@suse.cz>
11277 * config/gcn/constraints.md: New file.
11278 * config/gcn/gcn-valu.md: New file.
11279 * config/gcn/gcn.md: New file.
11280 * config/gcn/predicates.md: New file.
11282 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
11284 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
11285 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
11286 (stmt_uses_0_or_null_in_undefined_way): Likewise.
11287 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
11289 2019-01-17 Tamar Christina <tamar.christina@arm.com>
11292 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
11293 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
11294 it and document registers.
11296 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11298 * config/aarch64/aarch64.c (ares_tunings): Define.
11299 * config/aarch64/aarch64-cores.def (ares): Use the above.
11301 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
11305 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
11307 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
11308 (_mm512_fixupimm_round_pd): Update parameters and builtin.
11309 (_mm512_maskz_fixupimm_round_pd): Ditto.
11310 (_mm512_fixupimm_round_ps): Ditto.
11311 (_mm512_maskz_fixupimm_round_ps): Ditto.
11312 (_mm_fixupimm_round_sd): Ditto.
11313 (_mm_maskz_fixupimm_round_sd): Ditto.
11314 (_mm_fixupimm_round_ss): Ditto.
11315 (_mm_maskz_fixupimm_round_ss): Ditto.
11316 (_mm512_fixupimm_pd): Ditto.
11317 (_mm512_maskz_fixupimm_pd): Ditto.
11318 (_mm512_fixupimm_ps): Ditto.
11319 (_mm512_maskz_fixupimm_ps): Ditto.
11320 (_mm_fixupimm_sd): Ditto.
11321 (_mm_maskz_fixupimm_sd): Ditto.
11322 (_mm_fixupimm_ss): Ditto.
11323 (_mm_maskz_fixupimm_ss): Ditto.
11324 (_mm512_mask_fixupimm_round_pd): Update builtin.
11325 (_mm512_mask_fixupimm_round_ps): Ditto.
11326 (_mm_mask_fixupimm_round_sd): Ditto.
11327 (_mm_mask_fixupimm_round_ss): Ditto.
11328 (_mm512_mask_fixupimm_pd): Ditto.
11329 (_mm512_mask_fixupimm_ps): Ditto.
11330 (_mm_mask_fixupimm_sd): Ditto.
11331 (_mm_mask_fixupimm_ss): Ditto.
11332 * config/i386/avx512vlintrin.h:
11333 (_mm256_fixupimm_pd): Update parameters and builtin.
11334 (_mm256_maskz_fixupimm_pd): Ditto.
11335 (_mm256_fixupimm_ps): Ditto.
11336 (_mm256_maskz_fixupimm_ps): Ditto.
11337 (_mm_fixupimm_pd): Ditto.
11338 (_mm_maskz_fixupimm_pd): Ditto.
11339 (_mm_fixupimm_ps): Ditto.
11340 (_mm_maskz_fixupimm_ps): Ditto.
11341 (_mm256_mask_fixupimm_pd): Update builtin.
11342 (_mm256_mask_fixupimm_ps): Ditto.
11343 (_mm_mask_fixupimm_pd): Ditto.
11344 (_mm_mask_fixupimm_ps): Ditto.
11345 * config/i386/i386-builtin-types.def: Add new types and remove useless ones.
11346 * config/i386/i386-builtin.def: Update builtin definitions.
11347 * config/i386/i386.c: Handle new builtin types and remove useless ones.
11348 * config/i386/sse.md: Update VFIXUPIMM* patterns.
11349 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
11350 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
11351 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
11352 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
11353 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
11354 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
11355 * config/i386/subst.md:
11356 (round_saeonly_sd_mask_operand4): Add new subst_attr.
11357 (round_saeonly_sd_mask_op4): Ditto.
11358 (round_saeonly_expand_operand5): Ditto.
11359 (round_saeonly_expand): Update.
11361 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
11365 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
11367 * config/i386/sse.md: Combine VFIXUPIMM* patterns
11368 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
11369 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
11370 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
11371 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
11372 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
11373 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
11375 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
11379 2018-12-15 Jakub Jelinek <jakub@redhat.com>
11382 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
11383 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
11384 instead of UNSPEC_FIXUPIMM.
11386 2019-01-17 Richard Biener <rguenther@suse.de>
11389 * dwarf2out.c (want_pubnames): Never generate pubnames sections
11390 and friends for the LTO part of debug info.
11392 2019-01-17 Jakub Jelinek <jakub@redhat.com>
11394 PR tree-optimization/86214
11395 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
11398 PR rtl-optimization/88870
11399 * dce.c (deletable_insn_p): Never delete const/pure calls that can
11400 throw if we can't alter the cfg or delete dead exceptions.
11401 (mark_insn): Don't call find_call_stack_args for such calls.
11403 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
11405 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
11406 prototypes for vec_st.
11407 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
11408 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
11409 mainly on signed/unsigned long long and double.
11411 2019-01-16 David Malcolm <dmalcolm@redhat.com>
11414 * combine.c (delete_noop_moves): Convert to "bool" return,
11415 returning true if any edges are eliminated.
11416 (combine_instructions): Also return true if delete_noop_moves
11419 2019-01-16 Tamar Christina <tamar.christina@arm.com>
11421 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
11422 correct max nunits for endian swap.
11423 (aarch64_expand_fcmla_builtin): Correct subreg code.
11424 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
11425 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
11428 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
11430 * config/alpha/alpha.c (alpha_gimplify_va_arg):
11431 Handle split indirect COMPLEX_TYPE arguments.
11433 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
11436 * config/aarch64/aarch64-modes.def: Add comment about how the carry
11437 bit is set by add and compare.
11438 (CC_ADC): New CC_MODE.
11439 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
11440 to cache the code and mode of X. Adjust the shape of a CC_Cmode
11441 comparison. Add detection for CC_ADCmode.
11442 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
11444 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
11445 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
11446 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
11447 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
11448 to eliminate the need for zero-extending the operands.
11449 (add<mode>3_compareC_imm): Delete. Merge into ...
11450 (add<mode>3_compareC): ... this. Restructure the comparison to
11451 eliminate the need for zero-extending the operands.
11452 (add<mode>3_carryin): Use LTU for the overflow detection.
11453 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
11454 Reexpress comparison for overflow.
11455 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
11456 (add<mode>3_carryinC): Likewise.
11457 (add<mode>3_carryinV): Use LTU for carry between partials.
11458 * config/aarch64/predicates.md (aarch64_carry_operation): Update
11459 handling of CC_Cmode and add CC_ADCmode.
11460 (aarch64_borrow_operation): Likewise.
11462 2019-01-16 Tamar Christina <tamar.christina@arm.com>
11464 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): Remove patternmode.
11465 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
11466 * config/arm/neon.md (neon_vcmla_lane<rot><mode>, neon_vcmla_laneq<rot><mode>,
11467 neon_vcmlaq_lane<rot><mode>): Remove endianness conversion.
11469 2019-01-16 Martin Liska <mliska@suse.cz>
11471 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
11473 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
11475 * gcc.c (add_sysrooted_hdrs_prefix): New function.
11476 (path_prefix_reset): Move up in the source file.
11477 (find_fortran_preinclude_file): Make complex search for the
11478 fortran header files.
11480 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
11482 * godump.c (go_output_typedef): When outputting a typedef, refer
11483 to the underlying type by its name and not its structure.
11485 2019-01-15 David Malcolm <dmalcolm@redhat.com>
11488 * tree.c (build_function_type): Assert that arg_types is not
11491 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
11493 PR inline-asm/52813
11494 * doc/extend.texi: Document that listing the stack pointer in the
11495 clobber list of an asm is a deprecated feature.
11496 * common.opt (Wdeprecated): Moved from c-family/c.opt.
11497 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
11498 warning instead of an error for clobbers of the stack pointer.
11499 Add a note explaining why.
11501 2019-01-15 Richard Biener <rguenther@suse.de>
11504 * dwarf2out.c (gen_member_die): Do not generate inheritance
11507 2019-01-15 Richard Biener <rguenther@suse.de>
11509 PR tree-optimization/88855
11510 * tree-if-conv.c (combine_blocks): Collect
11511 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
11513 2019-01-15 Tom de Vries <tdevries@suse.de>
11516 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
11517 lhs == NULL_TREE for gang-level reduction.
11519 2019-01-15 Richard Biener <rguenther@suse.de>
11520 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11523 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
11524 return true if SSA_NAME is already marked in visited bitmap.
11525 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
11527 2019-01-15 Jakub Jelinek <jakub@redhat.com>
11529 PR tree-optimization/88775
11530 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
11531 equal == 0 equality pointer comparisons some more if compared in
11532 integral types and either one points to an automatic var and the
11533 other to a global, or we can prove at least one points to the middle
11534 or both point to start or both point to end.
11536 2019-01-14 Andi Kleen <ak@linux.intel.com>
11538 * Makefile.in: Lower autofdo sampling rate by 10x.
11539 * Makefile.tpl: Dito.
11541 2019-01-14 Tom Honermann <tom@honermann.net>
11543 * defaults.h: Define CHAR8_TYPE.
11545 2019-01-14 Martin Sebor <msebor@redhat.com>
11548 * doc/extend.texi (Darwin Format Checks): Clarify.
11550 2019-01-14 Richard Biener <rguenther@suse.de>
11552 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
11553 whether we are in (simplify ...) or (match ...) context.
11555 2019-01-14 Jakub Jelinek <jakub@redhat.com>
11557 PR rtl-optimization/88796
11558 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
11559 * cfgexpand.c (stack_protect_prologue): Initialize
11560 crtl->stack_protect_guard_decl.
11561 * function.c (stack_protect_epilogue): Use it instead of calling
11562 targetm.stack_protect_guard again.
11563 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
11564 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
11565 crtl->stack_protect_guard_decl.
11566 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
11567 on the returned MEM_EXPR.
11569 2019-01-12 Tom de Vries <tdevries@suse.de>
11571 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
11572 vector length using -fopenacc-dim.
11574 2019-01-12 Tom de Vries <tdevries@suse.de>
11576 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
11577 lengths into account.
11579 2019-01-12 Svante Signell <svante.signell@gmail.com>
11581 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
11582 (TARGET_CAN_SPLIT_STACK): Define.
11583 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
11585 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
11587 * params.def (inline-unit-growth): Set to 40.
11589 2019-01-12 Jakub Jelinek <jakub@redhat.com>
11591 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
11593 2019-01-12 Tom de Vries <tdevries@suse.de>
11595 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
11596 region calling vector-partitionable routine, set default_vector_length
11599 2019-01-12 Tom de Vries <tdevries@suse.de>
11601 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
11602 variable default_vector_length.
11604 2019-01-12 Tom de Vries <tdevries@suse.de>
11606 PR middle-end/88703
11607 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
11608 from oacc_default_dims, as oacc_validate_dims would do it, and apply
11611 2019-01-12 Tom de Vries <tdevries@suse.de>
11613 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
11614 (nvptx_goacc_validate_dims): Add used parameter.
11615 * doc/tm.texi: Regenerate.
11616 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
11617 argument to call to targetm.goacc.validate_dims.
11618 (default_goacc_validate_dims): Add used
11620 * target.def (validate_dims): Add used parameter in DEFHOOK.
11621 * targhooks.h (default_goacc_validate_dims): Add used parameter.
11623 2019-01-11 Jakub Jelinek <jakub@redhat.com>
11625 PR middle-end/85956
11627 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
11629 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
11630 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
11631 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
11632 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
11634 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
11636 PR rtl-optimization/87305
11638 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
11639 for little endian pseudos used as paradoxical subreg.
11641 2019-01-11 Jakub Jelinek <jakub@redhat.com>
11643 PR tree-optimization/88693
11644 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
11645 for STRING_CSTs that don't contain any NUL characters in the first
11646 TREE_STRING_LENGTH bytes.
11648 2019-01-11 Alan Modra <amodra@gmail.com>
11652 * genattrtab.c (min_fn): Don't translate values.
11653 (min_attr_value): Return INT_MAX when the value can't be calculated.
11654 Return minimum among any values that can be calculated.
11655 (max_attr_value): Adjust.
11657 2019-01-11 Jakub Jelinek <jakub@redhat.com>
11659 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
11661 2019-01-11 Steve Ellcey <sellcey@marvell.com>
11663 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
11664 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
11665 (aarch64_return_call_with_max_clobbers): New function.
11666 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
11667 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
11669 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
11670 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
11671 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
11672 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
11673 * cselib.c (cselib_process_insn): Add argument to
11674 targetm.hard_regno_call_part_clobbered call.
11675 * ira-conflicts.c (ira_build_conflicts): Ditto.
11676 * ira-costs.c (ira_tune_allocno_costs): Ditto.
11677 * lra-constraints.c (inherit_reload_reg): Ditto.
11678 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
11679 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
11680 argument. Call targetm.return_call_with_max_clobbers.
11681 Add argument to targetm.hard_regno_call_part_clobbered call.
11682 (calls_have_same_clobbers_p): New function.
11683 (process_bb_lives): Add call_insn and last_call_insn variables.
11684 Pass call_insn to check_pseudos_live_through_calls.
11685 Modify if stmt to check targetm.return_call_with_max_clobbers.
11686 Update setting of flush variable.
11687 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
11689 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
11690 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
11691 targetm.hard_regno_call_part_clobbered call.
11692 * reginfo.c (choose_hard_reg_mode): Ditto.
11693 * regrename.c (check_new_reg_p): Ditto.
11694 * reload.c (find_equiv_reg): Ditto.
11695 * reload1.c (emit_reload_insns): Ditto.
11696 * sched-deps.c (deps_analyze_insn): Ditto.
11697 * sel-sched.c (init_regs_for_mode): Ditto.
11698 (mark_unavailable_hard_regs): Ditto.
11699 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
11700 * target.def (hard_regno_call_part_clobbered): Add insn argument.
11701 (return_call_with_max_clobbers): New target function.
11702 * doc/tm.texi: Regenerate.
11703 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
11704 * hooks.c (hook_bool_uint_mode_false): Change to
11705 hook_bool_insn_uint_mode_false.
11706 * hooks.h (hook_bool_uint_mode_false): Ditto.
11708 2019-01-11 Steve Ellcey <sellcey@marvell.com>
11710 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
11711 (aarch64_remove_extra_call_preserved_regs): New function.
11712 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
11713 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
11714 * doc/tm.texi: Regenerate.
11715 * final.c (get_call_reg_set_usage): Call new hook.
11716 * target.def (remove_extra_call_preserved_regs): New hook.
11717 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
11718 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
11720 2019-01-11 Jakub Jelinek <jakub@redhat.com>
11723 * passes.c (finish_optimization_passes): Call print_combine_total_stats
11724 inside of pass_combine_1 dump rather than pass_profile_1.
11726 2019-01-11 Tom de Vries <tdevries@suse.de>
11728 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
11729 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
11730 (PTX_NUM_PER_WORKER_BARRIERS): Define.
11731 (nvptx_apply_dim_limits): Prevent vector_length 64 and
11734 2019-01-11 Tom de Vries <tdevries@suse.de>
11736 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
11738 2019-01-11 Jan Beulich <jbeulich@suse.com>
11740 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
11741 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
11742 sse2_cvtsi2sd): Add {l}.
11743 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
11746 2019-01-10 Jakub Jelinek <jakub@redhat.com>
11749 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
11751 (*float<floatunssuffix>v2div2sf2): New define_insn.
11752 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
11753 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
11754 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
11755 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
11756 match_operands with "const0_operand" "C".
11758 2019-01-10 Tamar Christina <tamar.christina@arm.com>
11760 * config/aarch64/aarch64-builtins.c
11761 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
11762 (aarch64_init_simd_builtins): ...Here
11764 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
11766 PR rtl-optimization/87305
11768 (setup_live_pseudos_and_spill_after_risky_transforms): Check
11769 allocation for big endian pseudos used as paradoxical subregs and
11770 spill them if it is wrong.
11771 * lra-constraints.c (lra_constraints): Add a comment.
11773 2019-01-10 Richard Biener <rguenther@suse.de>
11775 PR tree-optimization/88792
11776 * tree-ssa-pre.c (get_representative_for): Do not return a
11779 2019-01-10 Jakub Jelinek <jakub@redhat.com>
11781 PR middle-end/84877
11783 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
11784 (assign_parm_setup_block): Do the argument slot realignment here
11787 2019-01-10 Stefan Agner <stefan@agner.ch>
11790 * config/arm/arm.c (arm_option_override_internal): Force
11791 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
11793 2019-01-10 Jakub Jelinek <jakub@redhat.com>
11796 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
11799 2019-01-10 Tamar Christina <tamar.christina@arm.com>
11801 * config/arm/arm-builtins.c
11802 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
11803 (MAC_LANE_PAIR_QUALIFIERS): New.
11804 (arm_expand_builtin_args): Use it.
11805 (arm_expand_builtin_1): Likewise.
11806 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
11807 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
11808 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
11809 * config/arm/arm_neon.h:
11810 (vcadd_rot90_f16): New.
11811 (vcaddq_rot90_f16): New.
11812 (vcadd_rot270_f16): New.
11813 (vcaddq_rot270_f16): New.
11816 (vcmla_lane_f16): New.
11817 (vcmla_laneq_f16): New.
11818 (vcmlaq_lane_f16): New.
11819 (vcmlaq_laneq_f16): New.
11820 (vcmla_rot90_f16): New.
11821 (vcmlaq_rot90_f16): New.
11822 (vcmla_rot90_lane_f16): New.
11823 (vcmla_rot90_laneq_f16): New.
11824 (vcmlaq_rot90_lane_f16): New.
11825 (vcmlaq_rot90_laneq_f16): New.
11826 (vcmla_rot180_f16): New.
11827 (vcmlaq_rot180_f16): New.
11828 (vcmla_rot180_lane_f16): New.
11829 (vcmla_rot180_laneq_f16): New.
11830 (vcmlaq_rot180_lane_f16): New.
11831 (vcmlaq_rot180_laneq_f16): New.
11832 (vcmla_rot270_f16): New.
11833 (vcmlaq_rot270_f16): New.
11834 (vcmla_rot270_lane_f16): New.
11835 (vcmla_rot270_laneq_f16): New.
11836 (vcmlaq_rot270_lane_f16): New.
11837 (vcmlaq_rot270_laneq_f16): New.
11838 (vcadd_rot90_f32): New.
11839 (vcaddq_rot90_f32): New.
11840 (vcadd_rot270_f32): New.
11841 (vcaddq_rot270_f32): New.
11844 (vcmla_lane_f32): New.
11845 (vcmla_laneq_f32): New.
11846 (vcmlaq_lane_f32): New.
11847 (vcmlaq_laneq_f32): New.
11848 (vcmla_rot90_f32): New.
11849 (vcmlaq_rot90_f32): New.
11850 (vcmla_rot90_lane_f32): New.
11851 (vcmla_rot90_laneq_f32): New.
11852 (vcmlaq_rot90_lane_f32): New.
11853 (vcmlaq_rot90_laneq_f32): New.
11854 (vcmla_rot180_f32): New.
11855 (vcmlaq_rot180_f32): New.
11856 (vcmla_rot180_lane_f32): New.
11857 (vcmla_rot180_laneq_f32): New.
11858 (vcmlaq_rot180_lane_f32): New.
11859 (vcmlaq_rot180_laneq_f32): New.
11860 (vcmla_rot270_f32): New.
11861 (vcmlaq_rot270_f32): New.
11862 (vcmla_rot270_lane_f32): New.
11863 (vcmla_rot270_laneq_f32): New.
11864 (vcmlaq_rot270_lane_f32): New.
11865 (vcmlaq_rot270_laneq_f32): New.
11866 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
11867 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
11868 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
11869 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
11870 vcmlaq_lane270): New.
11871 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
11872 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
11873 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
11874 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
11875 (arm_option_reconfigure_globals): Use them.
11876 * config/arm/iterators.md (VDF, VQ_HSF): New.
11877 (VCADD, VCMLA): New.
11878 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
11879 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
11881 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
11882 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
11884 2019-01-10 Tamar Christina <tamar.christina@arm.com>
11886 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
11887 Add qualifier_lane_pair_index.
11888 (emit-rtl.h): Include.
11889 (TYPES_QUADOP_LANE_PAIR): New.
11890 (aarch64_simd_expand_args): Use it.
11891 (aarch64_simd_expand_builtin): Likewise.
11892 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
11894 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
11895 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
11896 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
11897 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
11898 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
11899 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
11900 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
11901 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
11902 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
11903 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
11904 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
11905 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
11906 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
11907 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
11908 Add __ARM_FEATURE_COMPLEX.
11909 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
11910 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
11911 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
11912 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
11913 fcmlaq_lane270): New.
11914 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
11915 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
11916 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
11917 * config/aarch64/arm_neon.h:
11918 (vcadd_rot90_f16): New.
11919 (vcaddq_rot90_f16): New.
11920 (vcadd_rot270_f16): New.
11921 (vcaddq_rot270_f16): New.
11924 (vcmla_lane_f16): New.
11925 (vcmla_laneq_f16): New.
11926 (vcmlaq_lane_f16): New.
11927 (vcmlaq_rot90_lane_f16): New.
11928 (vcmla_rot90_laneq_f16): New.
11929 (vcmla_rot90_lane_f16): New.
11930 (vcmlaq_rot90_f16): New.
11931 (vcmla_rot90_f16): New.
11932 (vcmlaq_laneq_f16): New.
11933 (vcmla_rot180_laneq_f16): New.
11934 (vcmla_rot180_lane_f16): New.
11935 (vcmlaq_rot180_f16): New.
11936 (vcmla_rot180_f16): New.
11937 (vcmlaq_rot90_laneq_f16): New.
11938 (vcmlaq_rot270_laneq_f16): New.
11939 (vcmlaq_rot270_lane_f16): New.
11940 (vcmla_rot270_laneq_f16): New.
11941 (vcmlaq_rot270_f16): New.
11942 (vcmla_rot270_f16): New.
11943 (vcmlaq_rot180_laneq_f16): New.
11944 (vcmlaq_rot180_lane_f16): New.
11945 (vcmla_rot270_lane_f16): New.
11946 (vcadd_rot90_f32): New.
11947 (vcaddq_rot90_f32): New.
11948 (vcaddq_rot90_f64): New.
11949 (vcadd_rot270_f32): New.
11950 (vcaddq_rot270_f32): New.
11951 (vcaddq_rot270_f64): New.
11955 (vcmla_lane_f32): New.
11956 (vcmla_laneq_f32): New.
11957 (vcmlaq_lane_f32): New.
11958 (vcmlaq_laneq_f32): New.
11959 (vcmla_rot90_f32): New.
11960 (vcmlaq_rot90_f32): New.
11961 (vcmlaq_rot90_f64): New.
11962 (vcmla_rot90_lane_f32): New.
11963 (vcmla_rot90_laneq_f32): New.
11964 (vcmlaq_rot90_lane_f32): New.
11965 (vcmlaq_rot90_laneq_f32): New.
11966 (vcmla_rot180_f32): New.
11967 (vcmlaq_rot180_f32): New.
11968 (vcmlaq_rot180_f64): New.
11969 (vcmla_rot180_lane_f32): New.
11970 (vcmla_rot180_laneq_f32): New.
11971 (vcmlaq_rot180_lane_f32): New.
11972 (vcmlaq_rot180_laneq_f32): New.
11973 (vcmla_rot270_f32): New.
11974 (vcmlaq_rot270_f32): New.
11975 (vcmlaq_rot270_f64): New.
11976 (vcmla_rot270_lane_f32): New.
11977 (vcmla_rot270_laneq_f32): New.
11978 (vcmlaq_rot270_lane_f32): New.
11979 (vcmlaq_rot270_laneq_f32): New.
11980 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
11981 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
11982 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
11983 (FCADD, FCMLA): New.
11985 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
11987 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
11991 * config/pa/pa.c: Change "can not" to "cannot".
11992 * gimple-ssa-evrp-analyze.c: Likewise.
11993 * ipa-icf.c: Likewise.
11994 * ipa-polymorphic-call.c: Likewise.
11995 * ipa-pure-const.c: Likewise.
11996 * lra-constraints.c: Likewise.
11997 * lra-remat.c: Likewise.
11998 * reload1.c: Likewise.
11999 * reorg.c: Likewise.
12000 * tree-ssa-uninit.c: Likewise.
12002 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
12006 * Makefile.in: Mechanically replace "can not" with "cannot".
12007 * alias.c: Likewise.
12008 * builtins.c: Likewise.
12009 * calls.c: Likewise.
12010 * cgraph.c: Likewise.
12011 * cgraph.h: Likewise.
12012 * cgraphclones.c: Likewise.
12013 * cgraphunit.c: Likewise.
12014 * combine-stack-adj.c: Likewise.
12015 * combine.c: Likewise.
12016 * common/config/i386/i386-common.c: Likewise.
12017 * config/aarch64/aarch64.c: Likewise.
12018 * config/alpha/sync.md: Likewise.
12019 * config/arc/arc.c: Likewise.
12020 * config/arc/predicates.md: Likewise.
12021 * config/arm/arm-c.c: Likewise.
12022 * config/arm/arm.c: Likewise.
12023 * config/arm/arm.h: Likewise.
12024 * config/arm/arm.md: Likewise.
12025 * config/arm/cortex-r4f.md: Likewise.
12026 * config/csky/csky.c: Likewise.
12027 * config/csky/csky.h: Likewise.
12028 * config/darwin-f.c: Likewise.
12029 * config/epiphany/epiphany.md: Likewise.
12030 * config/i386/i386.c: Likewise.
12031 * config/i386/sol2.h: Likewise.
12032 * config/m68k/m68k.c: Likewise.
12033 * config/mcore/mcore.h: Likewise.
12034 * config/microblaze/microblaze.md: Likewise.
12035 * config/mips/20kc.md: Likewise.
12036 * config/mips/sb1.md: Likewise.
12037 * config/nds32/nds32.c: Likewise.
12038 * config/nds32/predicates.md: Likewise.
12039 * config/pa/pa.c: Likewise.
12040 * config/rs6000/e300c2c3.md: Likewise.
12041 * config/rs6000/rs6000.c: Likewise.
12042 * config/s390/s390.h: Likewise.
12043 * config/sh/sh.c: Likewise.
12044 * config/sh/sh.md: Likewise.
12045 * config/spu/vmx2spu.h: Likewise.
12046 * cprop.c: Likewise.
12047 * dbxout.c: Likewise.
12048 * df-scan.c: Likewise.
12049 * doc/cfg.texi: Likewise.
12050 * doc/extend.texi: Likewise.
12051 * doc/fragments.texi: Likewise.
12052 * doc/gty.texi: Likewise.
12053 * doc/invoke.texi: Likewise.
12054 * doc/lto.texi: Likewise.
12055 * doc/md.texi: Likewise.
12056 * doc/objc.texi: Likewise.
12057 * doc/rtl.texi: Likewise.
12058 * doc/tm.texi: Likewise.
12060 * emit-rtl.c: Likewise.
12061 * emit-rtl.h: Likewise.
12062 * except.c: Likewise.
12063 * expmed.c: Likewise.
12064 * expr.c: Likewise.
12065 * fold-const.c: Likewise.
12066 * genautomata.c: Likewise.
12067 * gimple-fold.c: Likewise.
12068 * hard-reg-set.h: Likewise.
12069 * ifcvt.c: Likewise.
12070 * ipa-comdats.c: Likewise.
12071 * ipa-cp.c: Likewise.
12072 * ipa-devirt.c: Likewise.
12073 * ipa-fnsummary.c: Likewise.
12074 * ipa-icf.c: Likewise.
12075 * ipa-inline-transform.c: Likewise.
12076 * ipa-inline.c: Likewise.
12077 * ipa-polymorphic-call.c: Likewise.
12078 * ipa-profile.c: Likewise.
12079 * ipa-prop.c: Likewise.
12080 * ipa-pure-const.c: Likewise.
12081 * ipa-reference.c: Likewise.
12082 * ipa-split.c: Likewise.
12083 * ipa-visibility.c: Likewise.
12085 * ira-build.c: Likewise.
12086 * ira-color.c: Likewise.
12087 * ira-conflicts.c: Likewise.
12088 * ira-costs.c: Likewise.
12089 * ira-int.h: Likewise.
12090 * ira-lives.c: Likewise.
12093 * loop-invariant.c: Likewise.
12094 * loop-unroll.c: Likewise.
12095 * lower-subreg.c: Likewise.
12096 * lra-assigns.c: Likewise.
12097 * lra-constraints.c: Likewise.
12098 * lra-eliminations.c: Likewise.
12099 * lra-lives.c: Likewise.
12100 * lra-remat.c: Likewise.
12101 * lra-spills.c: Likewise.
12103 * lto-cgraph.c: Likewise.
12104 * lto-streamer-out.c: Likewise.
12105 * postreload-gcse.c: Likewise.
12106 * predict.c: Likewise.
12107 * profile-count.h: Likewise.
12108 * profile.c: Likewise.
12109 * recog.c: Likewise.
12111 * reload.c: Likewise.
12112 * reload1.c: Likewise.
12113 * reorg.c: Likewise.
12114 * resource.c: Likewise.
12115 * rtl.def: Likewise.
12117 * rtlanal.c: Likewise.
12118 * sched-deps.c: Likewise.
12119 * sched-ebb.c: Likewise.
12120 * sched-rgn.c: Likewise.
12121 * sel-sched-ir.c: Likewise.
12122 * sel-sched.c: Likewise.
12123 * shrink-wrap.c: Likewise.
12124 * simplify-rtx.c: Likewise.
12125 * symtab.c: Likewise.
12126 * target.def: Likewise.
12127 * toplev.c: Likewise.
12128 * tree-call-cdce.c: Likewise.
12129 * tree-cfg.c: Likewise.
12130 * tree-complex.c: Likewise.
12131 * tree-core.h: Likewise.
12132 * tree-eh.c: Likewise.
12133 * tree-inline.c: Likewise.
12134 * tree-loop-distribution.c: Likewise.
12135 * tree-nrv.c: Likewise.
12136 * tree-profile.c: Likewise.
12137 * tree-sra.c: Likewise.
12138 * tree-ssa-alias.c: Likewise.
12139 * tree-ssa-dce.c: Likewise.
12140 * tree-ssa-dom.c: Likewise.
12141 * tree-ssa-forwprop.c: Likewise.
12142 * tree-ssa-loop-im.c: Likewise.
12143 * tree-ssa-loop-ivcanon.c: Likewise.
12144 * tree-ssa-loop-ivopts.c: Likewise.
12145 * tree-ssa-loop-niter.c: Likewise.
12146 * tree-ssa-phionlycprop.c: Likewise.
12147 * tree-ssa-phiopt.c: Likewise.
12148 * tree-ssa-propagate.c: Likewise.
12149 * tree-ssa-threadedge.c: Likewise.
12150 * tree-ssa-threadupdate.c: Likewise.
12151 * tree-ssa-uninit.c: Likewise.
12152 * tree-ssanames.c: Likewise.
12153 * tree-streamer-out.c: Likewise.
12154 * tree.c: Likewise.
12155 * tree.h: Likewise.
12156 * vr-values.c: Likewise.
12158 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
12160 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
12161 (ix86_split_xorsign): Ditto.
12162 * config/i386/i386.c (ix86_expand_xorsign): New function.
12163 (ix86_split_xorsign): Ditto.
12164 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
12165 (xorsign<mode>3): New expander.
12166 (xorsign<mode>3_1): New insn_and_split pattern.
12167 * config/i386/sse.md (xorsign<mode>3): New expander.
12169 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
12171 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
12172 (*tablejump_sp64): Likewise.
12173 (*tablejump<P:mode>): ...this.
12174 (*call_address_sp32): Merge into...
12175 (*call_address_sp64): Likewise.
12176 (*call_address<P:mode>): ...this.
12177 (*call_symbolic_sp32): Merge into...
12178 (*call_symbolic_sp64): Likewise.
12179 (*call_symbolic<P:mode>): ...this.
12180 (call_value): Remove constraint and add predicate.
12181 (*call_value_address_sp32): Merge into...
12182 (*call_value_address_sp64): Likewise.
12183 (*call_value_address<P:mode>): ...this.
12184 (*call_value_symbolic_sp32): Merge into...
12185 (*call_value_symbolic_sp64): Likewise.
12186 (*call_value_symbolic<P:mode>): ...this.
12187 (*sibcall_symbolic_sp32): Merge into...
12188 (*sibcall_symbolic_sp64): Likewise.
12189 (*sibcall_symbolic<P:mode>): ...this.
12190 (sibcall_value): Remove constraint and add predicate.
12191 (*sibcall_value_symbolic_sp32): Merge into...
12192 (*sibcall_value_symbolic_sp64): Likewise.
12193 (*sibcall_value_symbolic<P:mode>): ...this.
12194 (window_save): Minor tweak.
12195 (*branch_sp32): Merge into...
12196 (*branch_sp64): Likewise.
12197 (*branch<P:mode>): ...this.
12199 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
12200 James Clarke <jrtc27@jrtc27.com>
12203 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
12204 consistently in TLS address generation and adjust code to the renaming
12205 of patterns. Mark calls to __tls_get_addr as const.
12206 * config/sparc/sparc.md (tgd_hi22): Turn into...
12207 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
12208 (tgd_lo10): Turn into...
12209 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
12210 (tgd_add32): Merge into...
12211 (tgd_add64): Likewise.
12212 (tgd_add<P:mode>): ...this and use Pmode throughout.
12213 (tldm_hi22): Turn into...
12214 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
12215 (tldm_lo10): Turn into...
12216 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
12217 (tldm_add32): Merge into...
12218 (tldm_add64): Likewise.
12219 (tldm_add<P:mode>): ...this and use Pmode throughout.
12220 (tldm_call32): Merge into...
12221 (tldm_call64): Likewise.
12222 (tldm_call<P:mode>): ...this and use Pmode throughout.
12223 (tldo_hix22): Turn into...
12224 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
12225 (tldo_lox10): Turn into...
12226 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
12227 (tldo_add32): Merge into...
12228 (tldo_add64): Likewise.
12229 (tldo_add<P:mode>): ...this and use Pmode throughout.
12230 (tie_hi22): Turn into...
12231 (tie_hi22<P:mode>): ...this and use Pmode throughout.
12232 (tie_lo10): Turn into...
12233 (tie_lo10<P:mode>): ...this and use Pmode throughout.
12234 (tie_ld64): Use DImode throughout.
12235 (tie_add32): Merge into...
12236 (tie_add64): Likewise.
12237 (tie_add<P:mode>): ...this and use Pmode throughout.
12238 (tle_hix22_sp32): Merge into...
12239 (tle_hix22_sp64): Likewise.
12240 (tle_hix22<P:mode>): ...this and use Pmode throughout.
12241 (tle_lox22_sp32): Merge into...
12242 (tle_lox22_sp64): Likewise.
12243 (tle_lox22<P:mode>): ...this and use Pmode throughout.
12244 (*tldo_ldub_sp32): Merge into...
12245 (*tldo_ldub_sp64): Likewise.
12246 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
12247 (*tldo_ldub1_sp32): Merge into...
12248 (*tldo_ldub1_sp64): Likewise.
12249 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
12250 (*tldo_ldub2_sp32): Merge into...
12251 (*tldo_ldub2_sp64): Likewise.
12252 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
12253 (*tldo_ldsb1_sp32): Merge into...
12254 (*tldo_ldsb1_sp64): Likewise.
12255 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
12256 (*tldo_ldsb2_sp32): Merge into...
12257 (*tldo_ldsb2_sp64): Likewise.
12258 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
12259 (*tldo_ldub3_sp64): Use DImode throughout.
12260 (*tldo_ldsb3_sp64): Likewise.
12261 (*tldo_lduh_sp32): Merge into...
12262 (*tldo_lduh_sp64): Likewise.
12263 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
12264 (*tldo_lduh1_sp32): Merge into...
12265 (*tldo_lduh1_sp64): Likewise.
12266 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
12267 (*tldo_ldsh1_sp32): Merge into...
12268 (*tldo_ldsh1_sp64): Likewise.
12269 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
12270 (*tldo_lduh2_sp64): Use DImode throughout.
12271 (*tldo_ldsh2_sp64): Likewise.
12272 (*tldo_lduw_sp32): Merge into...
12273 (*tldo_lduw_sp64): Likewise.
12274 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
12275 (*tldo_lduw1_sp64): Use DImode throughout.
12276 (*tldo_ldsw1_sp64): Likewise.
12277 (*tldo_ldx_sp64): Likewise.
12278 (*tldo_stb_sp32): Merge into...
12279 (*tldo_stb_sp64): Likewise.
12280 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
12281 (*tldo_sth_sp32): Merge into...
12282 (*tldo_sth_sp64): Likewise.
12283 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
12284 (*tldo_stw_sp32): Merge into...
12285 (*tldo_stw_sp64): Likewise.
12286 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
12287 (*tldo_stx_sp64): Use DImode throughout.
12289 2018-01-09 Sudakshina Das <sudi.das@arm.com>
12291 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
12292 check configure option to set BTI and Return Address Signing.
12293 * configure.ac: Add --enable-standard-branch-protection and
12294 --disable-standard-branch-protection.
12295 * configure: Regenerated.
12296 * doc/install.texi: Document the same.
12298 2018-01-09 Sudakshina Das <sudi.das@arm.com>
12299 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12301 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
12302 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
12303 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
12305 * config/aarch64/aarch64-bti-insert.c: New file.
12306 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
12308 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
12310 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
12311 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
12312 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
12313 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
12315 2018-01-09 Sudakshina Das <sudi.das@arm.com>
12317 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
12318 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
12319 Disable bti for -mbranch-protection=none.
12320 (aarch64_handle_standard_branch_protection): Enable bti for
12321 -mbranch-protection=standard.
12322 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
12323 -mbranch-protection.
12324 (aarch64_bti_enabled): Check if bti is enabled.
12325 * config/aarch64/aarch64.opt: Declare target variable.
12326 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
12328 2018-01-09 Sudakshina Das <sudi.das@arm.com>
12330 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
12331 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
12332 (aarch64_expand_epilogue): Likewise.
12333 (aarch64_output_mi_thunk): Likewise
12334 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
12335 TAILCALL_ADDR_REGS to x16 and x17.
12336 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
12338 2018-01-09 Sudakshina Das <sudi.das@arm.com>
12340 * config/aarch64/aarch64-option-extensions.def: Define
12341 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
12342 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
12343 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
12344 (AARCH64_FL_PREDRES): New.
12345 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
12346 AARCH64_FL_PREDRES by default.
12347 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
12349 2018-01-09 Sudakshina Das <sudi.das@arm.com>
12351 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
12353 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
12354 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
12355 * doc/invoke.texi: Document ARMv8.5-A.
12357 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
12359 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
12360 (xorsign<mode>3): Likewise.
12362 2019-01-09 Jelinek <jakub@redhat.com>
12364 PR middle-end/88758
12365 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
12366 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
12368 PR rtl-optimization/88331
12369 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
12370 not currently_expanding_to_rtl.
12372 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
12374 * doc/invoke.texi (-Os): Remove trailing spaces.
12375 (-finline-functions): Remove reference to -O2.
12377 2019-01-08 Jakub Jelinek <jakub@redhat.com>
12379 PR rtl-optimization/79593
12380 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
12382 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
12383 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
12385 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
12388 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
12392 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
12393 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
12395 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
12398 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
12399 ix86_avx_u128_mode_entry.
12401 2019-01-08 Martin Liska <mliska@suse.cz>
12403 PR tree-optimization/88753
12404 * tree-switch-conversion.c (switch_conversion::build_one_array):
12405 Come up with local variable constructor. Convert first to
12406 type of constructor values.
12408 2019-01-08 Richard Biener <rguenther@suse.de>
12410 PR tree-optimization/86554
12411 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
12412 rpo_avail): Move earlier.
12413 (visit_nary_op): When value-numbering to expressions
12414 with different overflow behavior make sure there's an
12415 available expression on the path.
12417 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
12419 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
12420 aarch64_parse_branch_protection,
12421 struct aarch64_branch_protect_type,
12422 aarch64_handle_no_branch_protection,
12423 aarch64_handle_standard_branch_protection,
12424 aarch64_validate_mbranch_protection,
12425 aarch64_handle_pac_ret_protection,
12426 aarch64_handle_attr_branch_protection,
12427 accepted_branch_protection_string,
12428 aarch64_pac_ret_subtypes,
12429 aarch64_branch_protect_types,
12430 aarch64_handle_pac_ret_leaf): Define.
12431 (aarch64_override_options_after_change_1, aarch64_override_options):
12432 Add check for accepted_branch_protection_string.
12433 (aarch64_option_save): Save accepted_branch_protection_string.
12434 (aarch64_option_restore): Save accepted_branch_protection_string.
12435 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
12436 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
12437 msign-return-address.
12438 * doc/invoke.texi: Add mbranch-protection.
12440 2019-01-08 Alan Modra <amodra@gmail.com>
12443 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
12444 Delete "unknownp" parameter. Adjust callers. Handle
12445 CONST_INT, PLUS, MINUS, and MULT.
12446 (attr_value_aligned): Renamed from or_attr_value.
12447 (min_attr_value): Return INT_MIN for unhandled rtl case..
12448 (min_fn): ..and translate to INT_MAX here.
12449 (write_length_unit_log): Modify to cope without "unknown".
12450 (write_attr_value): Handle IF_THEN_ELSE.
12452 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
12454 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
12455 optimization for masked stores.
12457 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
12459 PR middle-end/88567
12460 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
12461 output vector directly to duplicate_and_interleave instead of
12462 going through a temporary. Postpone insertion of ctor_seq to
12463 the end of the loop.
12465 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
12468 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
12469 unsigned_p. Handle signed and unsigned overflow correction as
12471 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
12473 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
12475 (add<mode>3_compareV_imm): Make this callable for expanding.
12476 (subv<GPI:mode>4): Use register_operand for operand 1. Use
12477 aarch64_plus_operand for operand 2.
12478 (subv<GPI:mode>_insn): New insn pattern.
12479 (subv<GPI:mode>_imm): Likewise.
12480 (negv<GPI:mode>3): New expand pattern.
12481 (negv<GPI:mode>_insn): New insn pattern.
12482 (negv<GPI:mode>_cmp_only): Likewise.
12483 (cmpv<GPI:mode>_insn): Likewise.
12484 (subvti4): Use register_operand for operand 1. Update call to
12485 aarch64_expand_subvti.
12486 (usubvti4): Likewise.
12487 (negvti3): New expand pattern.
12488 (negdi_carryout): New insn pattern.
12489 (negvdi_carryinV): New insn pattern.
12490 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
12491 version the named version.
12492 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
12494 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
12496 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
12498 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
12499 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
12500 (sub<mode>3_carryinCV): Delete.
12501 (sub<GPI:mode>3_carryinV): New expand pattern.
12502 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
12504 2019-01-07 Richard Biener <rguenther@suse.de>
12506 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
12507 of tree_operand_hash.
12509 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
12511 PR tree-optimization/88598
12512 * tree.h (single_nonzero_element): Declare.
12513 * tree.c (single_nonzero_element): New function.
12514 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
12515 if I is the only nonzero element of CST.
12517 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
12519 PR tree-optimization/88598
12520 * tree.h (initializer_each_zero_or_onep): Declare.
12521 * tree.c (initializer_each_zero_or_onep): New function.
12522 (signed_or_unsigned_type_for): Handle float types too.
12523 (unsigned_type_for, signed_type_for): Update comments accordingly.
12524 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
12525 x & { 0 or -1, 0 or -1, ... }.
12527 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
12529 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
12530 with x86_64-pc-linux-gnu.
12532 2019-01-07 Tom de Vries <tdevries@suse.de>
12535 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
12537 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
12540 2019-01-07 Jakub Jelinek <jakub@redhat.com>
12542 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
12543 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
12544 TARGET_AVX512F as condition.
12547 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
12548 const_not_ok_for_debug_p target hook.
12549 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
12550 on UNSPEC and subexpressions thereof if all subexpressions of the
12551 UNSPEC are CONSTANT_P.
12553 PR tree-optimization/88676
12554 * tree-ssa-phiopt.c (two_value_replacement): New function.
12555 (tree_ssa_phiopt_worker): Call it.
12558 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
12559 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
12562 * tree-vect-generic.c: Include insn-config.h and recog.h.
12563 (expand_vector_piecewise): Add defaulted ret_type argument,
12564 if non-NULL, use that in preference to type for the result type.
12565 (expand_vector_parallel): Formatting fix.
12566 (do_vec_conversion, do_vec_narrowing_conversion,
12567 expand_vector_conversion): New functions.
12568 (expand_vector_operations_1): Call expand_vector_conversion
12569 for VEC_CONVERT ifn calls.
12570 * internal-fn.def (VEC_CONVERT): New internal function.
12571 * internal-fn.c (expand_VEC_CONVERT): New function.
12572 * fold-const-call.c (fold_const_vec_convert): New function.
12573 (fold_const_call): Use it for CFN_VEC_CONVERT.
12574 * doc/extend.texi (__builtin_convertvector): Document.
12576 2019-01-07 Tom de Vries <tdevries@suse.de>
12578 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
12579 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
12580 vector_red_partition, vector_red_sym): New global variables.
12581 (nvptx_option_override): Initialize vector_red_sym.
12582 (nvptx_declare_function_name): Restore red_partition register.
12583 (nvptx_file_end): Emit code to declare the vector reduction variables.
12584 (nvptx_output_red_partition): New function.
12585 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
12586 large vector reductions.
12587 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
12588 (nvptx_init_builtins): Add VECTOR_ADDR.
12589 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
12590 Handle nvptx_expand_shared_addr.
12591 (nvptx_get_shared_red_addr): Add vector argument and handle large
12593 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
12595 (nvptx_goacc_reduction_init): Likewise.
12596 (nvptx_goacc_reduction_fini): Likewise.
12597 (nvptx_goacc_reduction_teardown): Likewise.
12598 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
12599 init,fini,teardown}.
12600 (nvptx_init_axis_predicate): Initialize vector_red_partition.
12601 (nvptx_set_current_function): Init vector_red_partition.
12602 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
12603 (nvptx_red_partition): New insn.
12604 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
12606 2019-01-07 Tom de Vries <tdevries@suse.de>
12609 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
12612 2019-01-07 Tom de Vries <tdevries@suse.de>
12614 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
12615 (nvptx_option_override): Init oacc_bcast_partition.
12616 (nvptx_init_oacc_workers): New function.
12617 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
12618 (nvptx_needs_shared_bcast): New function.
12619 (nvptx_find_par): Generalize to enable vectors to use shared-memory
12620 to propagate state.
12621 (nvptx_shared_propagate): Initialize vector bcast partition and
12622 synchronization state.
12623 (nvptx_single): Generalize to enable vectors to use shared-memory
12624 to propagate state.
12625 (nvptx_process_pars): Likewise.
12626 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
12627 * config/nvptx/nvptx.h (struct machine_function): Add
12628 bcast_partition and sync_bar members.
12630 2019-01-07 Tom de Vries <tdevries@suse.de>
12632 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
12633 (nvptx_apply_dim_limits): New function.
12634 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
12637 2019-01-07 Tom de Vries <tdevries@suse.de>
12639 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
12640 as late as possible.
12642 2019-01-07 Tom de Vries <tdevries@suse.de>
12644 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
12645 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
12646 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
12647 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
12648 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
12650 2019-01-07 Tom de Vries <tdevries@suse.de>
12652 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
12654 2019-01-07 Tom de Vries <tdevries@suse.de>
12656 * omp-offload.c (oacc_get_min_dim): New function.
12657 * omp-offload.h (oacc_get_min_dim): Declare.
12659 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
12662 * config/i386/i386.c (function_value_ms_64): Return small sturct in
12663 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
12665 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
12669 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
12671 * ipa-inline.c (edge_badness): Use inlined_time instead of
12672 inline_summaries->get.
12674 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
12676 * opts.c (enable_fdo_optimizations): Enable
12677 version-loops-for-strides, loop-interchange, unrol-and-jam
12678 and tree-loop-distribution.
12679 * invoke.texi: Document newly enabled options.
12681 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
12683 * doc/invoke.texi (max-inline-insns-small): New parameters.
12684 * ipa-inline.c (want_early_inline_function_p): simplify.
12685 (want_inline_small_function_p): Fix pasto from previous patch;
12686 use max-inline-insns-small bound.
12687 * params.def (max-inline-insns-small): New param.
12688 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
12689 variables correctly.
12691 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
12693 * doc/invoke.texi: Document max-inline-insns-size,
12694 uninlined-function-insns, uninlined-function-time,
12695 uninlined-thunk-insns and uninlined-thunk-time.
12696 * params.def: Add max-inline-insns-size,
12697 uninlined-function-insns, uninlined-function-time,
12698 uninlined-thunk-insns and uninlined-thunk-time.
12699 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
12701 * ipa-inline.c (can_inline_edge_by_limits_p,
12702 want_inline_small_function_p): Use new parameters.
12704 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
12706 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
12708 2019-01-05 Jakub Jelinek <jakub@redhat.com>
12710 PR middle-end/82564
12712 * expr.c (expand_assignment): For calls returning VLA structures
12713 if to_rtx is not a MEM, force it into a stack temporary.
12716 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
12717 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
12718 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
12719 subexpressions of both operands.
12720 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
12721 subrtxes are CONSTANT_P.
12722 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
12723 2018-11-09 changes.
12725 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
12727 * params.def (hot-bb-count-ws-permille): Set to 990.
12729 2019-01-04 Martin Sebor <msebor@redhat.com>
12732 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
12735 2019-01-04 Martin Sebor <msebor@redhat.com>
12738 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
12740 2019-01-04 Jakub Jelinek <jakub@redhat.com>
12742 * gdbinit.in: Turn off pagination for the skip commands, restore
12743 it to previous state afterwards.
12745 2019-01-04 Jakub Jelinek <jakub@redhat.com>
12748 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
12749 of GET_MODE (opN) as modes of the libcall arguments.
12751 2019-01-04 Jan Beulich <jbeulich@suse.com>
12753 * config/i386/sse.md
12754 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
12755 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
12756 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
12757 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
12758 avx512f_vmcmp<mode>3<round_saeonly_name>,
12759 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
12760 avx512f_maskcmp<mode>3,
12761 <avx512>_cvt<ssemodesuffix>2mask<mode>,
12762 <avx512>_cvt<ssemodesuffix>2mask<mode>,
12763 *<avx512>_cvtmask2<ssemodesuffix><mode>,
12764 *<avx512>_cvtmask2<ssemodesuffix><mode>,
12765 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
12766 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
12767 <avx512>_gt<mode>3<mask_scalar_merge_name>,
12768 <avx512>_gt<mode>3<mask_scalar_merge_name>,
12769 <avx512>_testm<mode>3<mask_scalar_merge_name>,
12770 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
12771 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
12772 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
12773 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
12774 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
12775 avx512cd_maskb_vec_dup<mode>,
12776 avx512cd_maskw_vec_dup<mode>,
12777 avx512dq_fpclass<mode><mask_scalar_merge_name>,
12778 avx512dq_vmfpclass<mode>,
12779 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
12782 2019-01-03 Martin Sebor <msebor@redhat.com>
12784 PR tree-optimization/88659
12785 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
12787 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
12789 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
12790 unaligned vsx and avoid lxvd2x/stxvd2x.
12791 (gen_lvx_v4si_move): New function.
12793 2019-01-03 Tom de Vries <tdevries@suse.de>
12795 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
12796 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
12798 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
12800 2019-01-03 Tom de Vries <tdevries@suse.de>
12802 * config/nvptx/nvptx.c (struct offload_attrs): New.
12803 (populate_offload_attrs): New function. Factor mask extraction out of
12804 nvptx_reorg. Add extraction of dimensions.
12805 (nvptx_reorg): Use populate_offload_attrs.
12807 2019-01-03 Tom de Vries <tdevries@suse.de>
12809 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
12810 cases for oacc_min_dims_p and routine_p. Add asserts for
12811 oacc_default_dims_p and offload_region_p.
12813 2019-01-03 Tom de Vries <tdevries@suse.de>
12815 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
12816 factored out of ...
12817 (nvptx_goacc_validate_dims): ... here.
12819 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
12821 PR tree-optimization/85574
12822 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
12824 (struct ssa_equip_hash_traits): Declare.
12825 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
12827 2019-01-03 Jakub Jelinek <jakub@redhat.com>
12830 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
12831 change it to qualified_type.
12833 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
12835 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
12836 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
12838 2019-01-02 Martin Sebor <msebor@redhat.com>
12839 Jeff Law <law@redhat.com>
12841 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
12842 (get_range_strlen_tree): Update appropriately.
12844 * gimple-fold.h (get_range_strlen): Drop unused last argument.
12846 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
12847 rather than set_range_info.
12848 * tree-ssa-strlen.c (set_strlen_range): Extracted from
12849 maybe_set_strlen_range. Handle potentially boundary crossing
12850 cases more conservatively.
12851 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
12852 Call set_strlen_range.
12853 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
12855 PR middle-end/88663
12856 * gimple-fold.c (get_range_strlen): Update prototype to no longer
12857 need the flexp argument.
12858 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
12859 from calls to get_range_strlen. Update comments. Just update
12860 VAL for an unterminated const char array and let the reset of the
12861 code handle it normally. No longer try to set *flexp. Adjust
12863 (get_range_strlen): Update for the new get_range_strlen API.
12864 (get_maxval_strlen): Similarly.
12865 (gimple_fold_builtin_strlen): Handle update meaning of return value
12866 from get_range_strlen.
12867 * gimple-ssa-sprintf.c (get_string_length): Update for the new
12868 get_range_strlen API.
12870 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
12873 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
12874 false at WPA time when body was removed.
12876 2019-01-02 Martin Liska <mliska@suse.cz>
12878 PR tree-optimization/88650
12879 * predict.c (set_even_probabilities): Calculate probability
12880 remainer only when really used.
12882 2019-01-02 Richard Biener <rguenther@suse.de>
12884 PR middle-end/88651
12885 * tree-data-ref.c (analyze_subscript_affine_affine): Use
12886 widest_ints when mangling max_stmt_execution results.
12888 2019-01-02 Richard Biener <rguenther@suse.de>
12890 PR tree-optimization/88621
12891 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
12892 bitfields when canoncalizing.
12894 2019-01-02 Richard Biener <rguenther@suse.de>
12897 * config/i386/x86-tune-costs.h (intel_cost): Adjust
12898 cost of cheap SSE instruction.
12900 2019-01-02 Richard Biener <rguenther@suse.de>
12903 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
12904 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
12906 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
12907 set after UIDs before splitting them.
12909 2019-01-01 Martin Sebor <msebor@redhat.com>
12910 Jeff Law <law@redhat.com>
12912 * gimple-fold.c (get_range_strlen_tree): Record if the computed
12913 length is optimistic. If it is, then arrange to compute the
12914 conservative length as well.
12916 * gimple-fold.h (get_range_strlen): Update prototype.
12917 * builtins.c (check_access): Update call to get_range_strlen to use
12918 c_strlen_data pointer. Change various variable accesses to instead
12919 pull data from the c_strlen_data structure.
12920 (check_strncat_sizes, expand_builtin_strncat): Likewise.
12921 * calls.c (maybe_warn_nonstring_arg): Likewise.
12922 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
12923 minimum length if maximum lengh is unknown.
12924 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
12925 that used c_strlen, it's no longer needed. Restructure slightly.
12926 (format_string): Set unlikely range appropriately.
12927 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
12929 (get_range_strlen): Accept c_strlen_data pointer for external
12930 call sites as well. Pass through to call to internal get_range_strlen.
12931 Adjust minlen, maxlen and maxbound as needed.
12932 (get_maxval_strlen): Update comments.
12933 (gimple_fold_builtin_strlen): Update call to get_range_strlen
12934 to use c_strlen_data pointer. Change variable accesses to instead
12935 use c_strlen_data data members.
12937 * gimple-fold.c (get_range_strlen): Update prototype.
12938 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
12939 local variables. Use pdata to return information to caller.
12940 Update calls to get_range_strlen. Update pdata->maxbound.
12941 (get_range_strlen -- static version): Similarly.
12942 (get_range_strlen -- extern version): Update for internal
12943 get_range_strlen API change. Convert to external data format.
12944 (get_maxval_strlen): Similarly.
12946 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
12948 * coverage.c (get_coverage_counts): Use current_function_decl.
12949 * profile.c (read_thunk_profile): New function.
12950 (branch_prob): Add THUNK parameter.
12951 * tree-profile.c (tree_profiling): Handle thunks.
12952 * value-prof.c (init_node_map): Handle thunks.
12953 * value-prof.h (branch_prob): Upate prototype.
12954 (read_thunk_profile): Declare.
12956 2019-01-01 Jakub Jelinek <jakub@redhat.com>
12958 Update copyright years.
12960 * gcc.c (process_command): Update copyright notice dates.
12961 * gcov-dump.c (print_version): Ditto.
12962 * gcov.c (print_version): Ditto.
12963 * gcov-tool.c (print_version): Ditto.
12964 * gengtype.c (create_file): Ditto.
12965 * doc/cpp.texi: Bump @copying's copyright year.
12966 * doc/cppinternals.texi: Ditto.
12967 * doc/gcc.texi: Ditto.
12968 * doc/gccint.texi: Ditto.
12969 * doc/gcov.texi: Ditto.
12970 * doc/install.texi: Ditto.
12971 * doc/invoke.texi: Ditto.
12973 Copyright (C) 2019 Free Software Foundation, Inc.
12975 Copying and distribution of this file, with or without modification,
12976 are permitted in any medium without royalty provided the copyright
12977 notice and this notice are preserved.