1 2019-07-04 Alexandre Oliva <oliva@adacore.com>
3 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
5 * expr.c (expand_expr_real_1): Reject it.
6 * gimplify.c (gimplify_expr): Gimplify it, within
8 * tree-dump.c (dequeue_and_dump): Dump it.
9 * tree-pretty-print.c (dump_generic_node): Likewise.
10 * tree.c (block_may_fallthru): Handle it.
11 * tree.def (EH_ELSE_EXPR): Introduce it.
12 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
13 with GIMPLE_EH_ELSE as try/finally/else.
15 2019-07-04 Richard Biener <rguenther@suse.de>
18 * tree-pass.h (execute_all_ipa_transforms): Add a flag
19 parameter whether to disable GC collection.
20 * passes.c (execute_one_ipa_transform_pass): Likewise, and
22 (execute_all_ipa_transforms): Likewise and pass it down.
23 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
24 collection from applying IPA transforms.
25 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
26 from applying IPA transforms.
28 2019-07-04 Richard Biener <rguenther@suse.de>
30 PR tree-optimization/90911
31 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
32 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
33 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
35 (vect_transform_loop): Scale scalar loop profile if needed.
36 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
37 the loop copy from if-conversion adjust edge probabilities
38 and scale the vectorized loop body profile, queue the scalar
39 profile for updating after peeling.
41 2019-07-04 Jan Hubicka <jh@suse.cz>
43 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
44 parameters; return early for must-alias.
45 (indirect_ref_may_alias_decl_p): Likewise; when establishing
46 outer types match, try nonoverlapping_component_refs
47 if must-alias is not obvious.
48 (indirect_refs_may_alias_p): Likewise.
49 (refs_may_alias_p_2): Likewise.
51 2019-07-04 Richard Biener <rguenther@suse.de>
53 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
55 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
57 (struct vn_walk_cb_data): New callback data struct.
58 (vn_reference_lookup_2): Adjust.
59 (vn_reference_lookup_3): Likewise.
60 (vn_reference_lookup_pieces): Likewise.
61 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
62 (visit_reference_op_load): Adjust.
64 2019-07-04 Jakub Jelinek <jakub@redhat.com>
66 PR tree-optimization/91063
67 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
68 stmt from stmts sequence before calling vect_init_vector_1.
71 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
74 * fwprop.c (reg_single_def_p): New function.
75 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
76 (forward_propagate_into): New parameter reg_prop_only
77 with default value false.
78 Propagate def's src into loop only if SET_SRC and SET_DEST
79 of def_set have single definitions.
80 Likewise if reg_prop_only is set to true.
81 (fwprop): New param fwprop_addr_p.
82 Integrate fwprop_addr into fwprop.
83 (fwprop_addr): Remove.
84 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
86 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
87 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
88 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
90 2019-07-04 Jakub Jelinek <jakub@redhat.com>
92 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
93 in worksharing loop scans.
95 PR tree-optimization/91074
96 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
99 PR rtl-optimization/90756
100 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
103 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
105 * config/aarch64/aarch64.md: Remove redundant constraints from
106 define_expand but keep some patterns untouched if they are
107 specially selected by TARGET_SECONDARY_RELOAD hook.
108 * config/aarch64/aarch64-sve.md: Likewise.
109 * config/aarch64/atomics.md: Remove redundant constraints from
111 * config/aarch64/aarch64-simd.md: Likewise.
113 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
115 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
116 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
117 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
119 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
122 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
124 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
125 (STARTFILE_SPEC): Split crt3 into a separate spec.
126 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
127 (DARWIN_CRT2_SPEC): New.
128 (DARWIN_CRT3_SPEC): New.
129 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
130 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
131 (DARWIN_CRT3_SPEC): New.
133 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
135 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
136 Change the RTL attribute "length" from "4" to "*" to allow the
137 length attribute to be adjusted automatically for prefixed load,
138 store, and add immediate instructions.
139 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
141 (extendsi<mode>2, EXTSI iterator): Likewise.
142 (movsi_internal1): Likewise.
143 (movsi_from_sf): Likewise.
144 (movdi_from_sf_zero_ext): Likewise.
145 (mov<mode>_internal): Likewise.
146 (movcc_internal1, QHI iterator): Likewise.
147 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
148 (movsf_from_si): Likewise.
149 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
150 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
151 (mov<mode>, FMOVE128 iterator): Likewise.
152 (movdi_internal64): Likewise.
153 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
155 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
156 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
157 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
158 (vsx_splat_v4sf): Likewise.
160 2019-07-03 Mark Wielaard <mark@klomp.org>
163 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
164 DW_AT_addr_base if there is actually a .debug_addr section with
166 (output_addr_table): Add DWARF5 table header generation here after
167 checking there are actually any addresses from...
168 (dwarf2out_finish): ...here.
169 * testsuite/g++.dg/pr90981.C: New test.
171 2019-07-03 Richard Biener <rguenther@suse.de>
174 * match.pd (vec_perm -> bit_insert): Fix element read from
177 2019-07-03 Martin Liska <mliska@suse.cz>
179 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
180 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
182 * generic-match-head.c: Include dbgcnt.h.
183 * gimple-match-head.c: Likewise.
185 2019-07-03 Martin Liska <mliska@suse.cz>
187 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
188 (GCOV_COUNTER_V_TOPN): New.
189 (GCOV_COUNTER_V_INDIR): Use _topn.
190 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
191 (GCOV_TOPN_VALUES): New.
192 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
193 (GCOV_TOPN_VALUES_COUNTERS): New.
194 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
196 (gimple_init_gcov_profiler): Rename variables from one_value
198 (gimple_gen_one_value_profiler): Remove.
199 (gimple_gen_topn_values_profiler): New function.
200 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
201 names instead of SINGLE_VALUE.
202 (stream_out_histogram_value): Likewise.
203 (stream_in_histogram_value): Likewise.
204 (get_most_common_single_value): Likewise.
205 (gimple_divmod_fixed_value_transform): Likewise.
206 (gimple_stringops_transform): Likewise.
207 (gimple_divmod_values_to_profile): Likewise.
208 (gimple_stringops_values_to_profile): Likewise.
209 (gimple_find_values_to_profile): Likewise.
210 * value-prof.h (enum hist_type): Rename to TOPN.
211 (gimple_gen_one_value_profiler): Remove.
212 (gimple_gen_topn_values_profiler): New.
214 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
216 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
217 if it has the DW_AT_data_member_location attribute.
219 2019-07-03 Richard Biener <rguenther@suse.de>
221 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
224 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
226 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
227 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
228 (tlsdesc_small_sve_<mode>): Likewise.
230 2019-07-03 Martin Liska <mliska@suse.cz>
232 * Makefile.in: Define ZSTD_LIB.
233 * common.opt: Adjust compression level
234 to support also zstd levels.
235 * config.in: Regenerate.
236 * configure: Likewise.
237 * configure.ac: Add --with-zstd and --with-zstd-include options
239 * doc/install.texi: Mention zstd dependency.
240 * gcc.c: Print supported LTO compression algorithms.
241 * lto-compress.c (lto_normalized_zstd_level): Likewise.
242 (lto_compression_zstd): Likewise.
243 (lto_uncompression_zstd): Likewise.
244 (lto_end_compression): Dispatch in between zlib and zstd.
245 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
246 (lto_uncompression_zlib): Make it static.
247 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
248 * lto-section-in.c (lto_get_section_data): Pass info
249 about used compression.
250 * lto-streamer-out.c: By default use zstd when possible.
251 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
252 (TV_IPA_LTO_COMPRESS): Likewise for compression.
254 2019-07-03 Martin Liska <mliska@suse.cz>
256 * lto-section-in.c (lto_get_section_data): Add "lto" section.
257 * lto-section-out.c (lto_destroy_simple_output_block): Never
258 compress LTO_section_lto section.
259 * lto-streamer-out.c (produce_asm): Do not set major_version
261 (lto_output_toplevel_asms): Likewise.
262 (produce_lto_section): New function.
263 (lto_output): Call produce_lto_section.
264 (lto_write_mode_table): Do not set major_version and
266 (produce_asm_for_decls): Likewise.
267 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
269 (struct lto_header): Remove.
270 (struct lto_section): New struct.
271 (struct lto_simple_header): Do not inherit from lto_header.
272 (struct lto_file_decl_data): Add lto_section_header field.
274 2019-07-03 Martin Liska <mliska@suse.cz>
276 * lra-eliminations.c (eliminate_regs_in_insn): Remove
278 * reg-stack.c (check_asm_stack_operands): Likewise.
279 * tree-ssa-structalias.c (create_function_info_for): Likewise.
280 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
281 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
284 2019-07-03 Martin Liska <mliska@suse.cz>
286 PR tree-optimization/90892
287 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
290 2019-07-03 Martin Liska <mliska@suse.cz>
293 * multiple_target.c (create_dispatcher_calls): Add to comdat
294 group only if set for ifunc.
296 2019-07-03 Martin Liska <mliska@suse.cz>
299 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
300 Define local_object_name in outer scope in order to handle
301 use-after-scope issue.
303 2019-07-03 Martin Liska <mliska@suse.cz>
305 * common.opt: Add fprofile-note.
306 * coverage.c (coverage_init): Append the option
308 * doc/invoke.texi: Document -fprofile-note.
310 2019-07-03 Jakub Jelinek <jakub@redhat.com>
312 PR tree-optimization/91033
313 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
314 vect_analyze_data_refs): Add bool * arguments.
315 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
316 if failure is due to scatter/gather, set *fatal to false if non-NULL.
317 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
318 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
319 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
320 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
321 vect_analyze_data_refs caller.
323 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
325 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
326 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
327 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
328 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
329 OMP_CLAUSE__SCANTEMP_ entry.
330 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
331 * tree-pretty-print.c (dump_omp_clause): Likewise.
332 * tree-nested.c (convert_nonlocal_omp_clauses,
333 convert_local_omp_clauses): Likewise.
334 * omp-general.h (struct omp_for_data): Add have_scantemp and
335 have_nonctrl_scantemp members.
336 * omp-general.c (omp_extract_for_data): Initialize them.
337 * omp-low.c (struct omp_context): Add scan_exclusive member.
338 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
339 result again with GF_OMP_FOR_KIND_MASK. Initialize also
341 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
342 of !ctx->scan_inclusive.
343 (lower_rec_input_clauses): Simplify gimplification of dtors using
344 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
345 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
346 loops. Don't add barrier for reduction_omp_orig_ref if
347 ctx->scan_??xclusive.
348 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
349 (lower_omp_scan): Use ctx->scan_exclusive instead
350 of !ctx->scan_inclusive. Handle worksharing loops with inscan
351 reductions. Use new_vard != new_var instead of repeated
352 omp_is_reference calls.
353 (omp_find_scan, lower_omp_for_scan): New functions.
354 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
356 * omp-expand.c (expand_omp_scantemp_alloc): New function.
357 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
358 and fd->have_scantemp.
360 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
361 on worksharing loop propagate it as shared clause to containing
364 * omp-expand.c (expand_omp_for_static_nochunk,
365 expand_omp_for_static_chunk): For nowait worksharing loop with
366 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
369 2019-07-02 Joern Rennecke <joern.rennecke@riscy-ip.com>
372 * testsuite/gcc.dg/plugin/start_unit_plugin.c: Register a root tab
373 to reference fake_var.
375 2019-07-02 qing zhao <qing.zhao@oracle.com>
377 PR preprocessor/90581
378 * doc/cppopts.texi: Add document for -fmax-include-depth.
379 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
381 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
383 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
384 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
385 (mmx_packssdw): Ditto.
386 (mmx_punpckhbw): Ditto.
387 (mmx_punpcklbw): Ditto.
388 (mmx_punpckhwd): Ditto.
389 (mmx_punpcklwd): Ditto.
390 (mmx_punpckhdq): Ditto.
391 (mmx_punpckldq): Ditto.
392 (*vec_dupv4hi): Ditto.
393 (*vec_dupv2si): Ditto.
394 (mmx_pmovmskb): Ditto.
395 * config/i386/sse.md (sse_cvtpi2ps): Use
396 TARGET_SSE2 && SSE_REG_P in split condition.
397 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
398 TARGET_SSSE3 && SSE_REGNO_P in split condition.
399 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
400 (ssse3_pshufbv8qi3): Ditto.
401 (ssse3_palignrdi): Ditto.
403 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
405 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
406 with inlined save and restore.
408 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
410 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
411 to be inserted on single successor edge of the entry block. Then call
412 commit_edge_insertions instead of inserting the instructions manually.
413 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
414 RTL expansion and rebuild jump labels chain.
416 2019-07-02 Richard Biener <rguenther@suse.de>
418 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
420 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
422 * tree.c (build_common_tree_nodes): Initialize them.
423 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
424 Make declarations comments.
425 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
426 chrec_known): Remove definitions.
427 (initialize_scalar_evolutions_analyzer): Remove.
428 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
429 * tree-streamer.c (preload_common_nodes): Do not preload
430 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
432 2019-07-02 Jan Hubicka <jh@suse.cz>
434 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
437 2019-07-02 Jan Hubicka <jh@suse.cz>
439 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
441 (nonoverlapping_component_refs_since_match_p): ... this one;
442 handle also non-decl bases; return -1 if search gave up.
443 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
444 nonoverlapping_component_refs_of_decl_p_no_alias to
445 nonoverlapping_component_refs_since_match_p_may_alias,
446 nonoverlapping_component_refs_since_match_p_no_alias.
447 (dump_alias_stats): Update dumping.
448 (aliasing_matching_component_refs_p): Break out from ...;
449 dispatch to nonoverlapping_component_refs_for_decl_p
450 and nonoverlapping_component_refs_since_match_p.
451 (aliasing_component_refs_p): ... here; call
452 nonoverlapping_component_refs_p in scenarios where we can not
453 precisely determine base match.
454 (decl_refs_may_alias_p): Use
455 nonoverlapping_component_refs_since_match_p.
456 (indirect_ref_may_alias_decl_p): Do not call
457 nonoverlapping_component_refs_p.
458 (indirect_refs_may_alias_p): Likewise.
460 2019-07-02 Jan Hubicka <jh@suse.cz>
462 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
463 to clobber of return value.
465 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
467 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
468 for is_neon_type instructions that have not already been categorized.
470 2019-07-02 Richard Biener <rguenther@suse.de>
472 PR tree-optimization/58483
473 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
474 for MEM_REF base hashing.
475 (equal_mem_array_ref_p): Likewise for base comparison.
477 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
479 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
481 (signbit<mode>2): Use that name. Simplify.
483 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
486 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
487 Tune heuristic from PR71016 to allow MIN / MAX.
488 * testsuite/gcc.dg/tree-ssa/pr66726-4.c: New testcase.
490 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
492 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
494 (abs<mode>2): Use that name. Simplify.
496 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
498 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
500 (neg<mode>2): Use that name. Simplify.
502 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
504 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
506 (abs<mode>2): Use that name. Simplify.
508 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
510 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
512 (neg<mode>2): Use that name. Simplify.
514 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
516 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
517 ("enabled" attribute): Handle sse_noavx isa attribute.
518 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
519 Use TARGET_SSE && SSE_REGNO_P in split condition.
520 (*vec_dupv2sf): Ditto.
522 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
524 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
526 (floatsi<mode>2): Use that name. Simplify.
528 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
530 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
532 (extenddf<mode>2_vsx): Make this a parameterized name.
533 (extenddf<mode>2): Use those names. Simplify.
535 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
537 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
539 (eh_return): Use that name. Simplify.
541 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
543 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
544 (doloop_end): Use that name. Simplify.
546 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
548 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
550 (indirect_jump): Use that name. Simplify.
552 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
554 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
556 (abs<mode>2): Use that name. Simplify.
558 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
560 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
562 (fix_trunc<mode>si2): Use that name. Simplify.
564 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
566 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
567 (allocate_stack): Use that name. Simplify.
569 2019-07-01 Martin Sebor <msebor@redhat.com>
572 * hash-map.h (hash_map::put): On insertion invoke element ctor.
573 (hash_map::get_or_insert): Same. Reformat comment.
574 * hash-set.h (hash_set::add): On insertion invoke element ctor.
575 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
576 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
577 * hash-table.h (hash_table::operator=): Prevent copy assignment.
578 (hash_table::hash_table (const hash_table&)): Use copy ctor
579 instead of assignment to copy elements.
581 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
582 John David Anglin <danglin@gcc.gnu.org>
585 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
586 using saved frame pointer.
588 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
591 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
592 Add frame clobber and schedule blockage.
594 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
596 * doc/invoke.texi (Link Options): Further editorial changes to
597 -flinker-output docs.
599 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
601 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
602 Load both operands of a PLUS into registers separately.
604 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
606 * config/s390/vector.md: Fix shift count operand printing.
608 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
610 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
612 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
614 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
615 Use recog_data to test for an output operand.
617 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
619 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
620 exclude any others that are disparaged or that are bound to need
622 (ira_get_dup_out_num): Expand comment.
624 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
626 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
627 constraint string for each operand/alternative combo. Only handle
628 '%' at the start of constraint strings, and look for it outside
631 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
633 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
634 alternative_mask instead of HARD_REG_SET to represent a
635 bitmask of alternatives.
636 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
637 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
639 2019-07-01 Martin Liska <mliska@suse.cz>
641 * edit-context.c (test_applying_fixits_unreadable_file): Do not
642 use () for a constructor call.
643 (test_applying_fixits_line_out_of_range): Likewise.
644 * ggc-page.c (alloc_page): Use (void *) for %p printf format
646 (free_page): Likewise.
648 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
650 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
651 parameter names to match usage (no functional change).
652 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
654 2019-07-01 Richard Biener <rguenther@suse.de>
656 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
658 (pass_fre::execute): Honor it.
659 * passes.def: Adjust pass_fre invocations to allow iterating,
660 add non-iterating pass_fre before late threading/dom.
662 2019-07-01 Richard Biener <rguenther@suse.de>
664 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
665 TARGET_MEM_REF handling to also handle address-taken ones.
667 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
669 * doc/sourcebuild.texi (Effective-Target Keywords, Other
670 hardware attributes): Document avx512vp2intersect.
672 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
674 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
675 (abs<mode>2): New expander.
676 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
677 Use CODE_FOR_ssse3_absv8qi2.
678 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
679 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
681 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
683 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
684 to sse, sse_noavx and avx. Update all uses.
686 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
688 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
689 (*mmx_<plusminus_insn><mode>3): Ditto.
690 (*mmx_mulv4hi3"): Ditto.
691 (*mmx_smulv4hi3_highpart): Ditto.
692 (*mmx_umulv4hi3_highpart): Ditto.
693 (*mmx_pmaddwd): Ditto.
694 (*sse2_umulv1siv1di3): Ditto.
695 (*mmx_<code>v4hi3): Ditto.
696 (*mmx_<code>v8qi3): Ditto.
697 (mmx_ashr<mode>3): Ditto.
698 ("mmx_<shift_insn><mode>3): Ditto.
699 (*mmx_eq<mode>3): Ditto.
700 (mmx_gt<mode>3): Ditto.
701 (mmx_andnot<mode>3): Ditto.
702 (*mmx_<code><mode>3): Ditto.
703 (*mmx_pinsrw): Ditto.
704 (*mmx_pextrw): Ditto.
705 (mmx_pshufw_1): Ditto.
706 (*mmx_uavgv8qi3): Ditto.
707 (*mmx_uavgv4hi3): Ditto.
708 ("mmx_psadbw): Ditto.
709 * config/i386/sse.md (sse_cvtps2pi): Ditto.
710 (sse_cvttps2pi): Ditto.
711 (ssse3_pmaddubsw): Ditto.
712 (*ssse3_pmulhrswv4hi3): Ditto.
713 (ssse3_psign<mode>3): Ditto.
715 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
717 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
718 adjustment for bit-fields to all aggregate types.
720 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
722 * config/rs6000/predicates.md (pcrel_address): Use
723 SYMBOL_REF_LOCAL_P to determine if a label is local.
724 (pcrel_external_address): New predicate.
725 (non_prefixed_mem_operand): Delete, predicate not used.
726 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
727 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
729 (SYMBOL_REF_PCREL_P): Likewise.
732 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
734 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
735 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
736 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
738 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
740 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
741 override on extra_headers.
743 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
745 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
746 * config/darwin-driver.c (darwin_default_min_version): Remove newline
748 (darwin_driver_init): Likewise.
750 2019-06-28 Jan Beulich <jbeulich@suse.com>
752 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
753 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
754 Eliminate redundant alternative.
756 2019-06-28 Jan Beulich <jbeulich@suse.com>
758 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
759 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
762 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
764 * config/arc/arc.c (arc_rtx_costs): All short instructions are
765 having a lower cost regardless of the speed option.
767 2019-06-28 Jan Beulich <jbeulich@suse.com>
769 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
770 vector_operand plus, on both alternatives, "Bm" constraint.
772 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
774 * config/arm/arm.md: Remove redundant constraints from
775 define_expand but leave reload_inm and reload_outm patterns
776 untouched since they need special constraints to work.
777 * config/arm/arm-fixed.md: Remove redundant constraints from
779 * config/arm/iwmmxt.md: Likewise.
780 * config/arm/neon.md: Likewise.
781 * config/arm/sync.md: Likewise.
782 * config/arm/thumb1.md: Likewise.
783 * config/arm/vec-common.md: Likewise.
785 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
787 * doc/install.texi: Document --disable-tm-clone-registry.
789 2019-06-27 Jakub Jelinek <jakub@redhat.com>
792 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
795 PR tree-optimization/91010
796 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
797 return true. Otherwise, don't call operand_equal_p if offset1 or
798 offset2 is NULL and just return false.
800 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
802 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
803 user-specified float mode choice for kernel mode code.
805 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
807 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
810 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
812 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
813 use longcall for 64b code.
815 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
817 * builtins.c (get_memory_rtx): Fix comment.
818 * optabs.def (movmem_optab): Change to cpymem_optab.
819 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
820 (emit_block_move_hints): Change movmem to cpymem.
821 * defaults.h: Change movmem to cpymem.
822 * targhooks.c (get_move_ratio): Change movmem to cpymem.
823 (default_use_by_pieces_infrastructure_p): Ditto.
824 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
825 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
827 * config/aarch64/aarch64.h: Change movmem to cpymem.
828 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
829 * config/alpha/alpha.h: Change movmem to cpymem in comment.
830 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
832 * config/arc/arc-protos.h: Change movmem to cpymem.
833 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
834 * config/arc/arc.h: Change movmem to cpymem in comment.
835 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
836 * config/arm/arm-protos.h: Change movmem to cpymem in names.
837 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
838 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
839 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
840 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
841 * config/avr/avr-protos.h: Change movmem to cpymem.
842 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
843 avr_out_movmem): Change movmem to cpymem.
844 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
845 Change movmem to cpymem.
846 * config/bfin/bfin-protos.h: Change movmem to cpymem.
847 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
848 Change movmem to cpymem.
849 * config/bfin/bfin.h: Change movmem to cpymem in comment.
850 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
851 * config/c6x/c6x-protos.h: Change movmem to cpymem.
852 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
853 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
854 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
855 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
856 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
857 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
858 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
859 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
860 expand_small_cpymem_or_setmem,
861 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
862 expand_set_or_cpymem_constant_prologue,
863 ix86_expand_set_or_cpymem): Change movmem to cpymem.
864 * config/i386/i386-protos.h: Change movmem to cpymem.
865 * config/i386/i386.h: Change movmem to cpymem in comment.
866 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
867 (setmem<mode>): Change expansion function name.
868 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
869 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
870 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
871 * config/m32c/m32c-protos.h: Change movmem to cpymem.
872 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
873 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
874 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
876 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
877 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
878 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
879 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
880 Change movmem to cpymem.
881 * config/mips/mips.h: Change movmem to cpymem.
882 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
883 * config/nds32/nds32-memory-manipulation.c
884 (nds32_expand_movmemsi_loop_unknown_size,
885 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
886 nds32_expand_movmemsi_unroll,
887 nds32_expand_movmemsi): Change movmem to cpymem.
888 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
889 * config/nds32/nds32-protos.h: Change movmem to cpymem.
890 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
891 (pa_adjust_insn_length): Change call to compute_movmem_length.
892 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
893 movmemdi, movmemdi_prereload,
894 movmemdi_postreload): Change movmem to cpymem.
895 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
896 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
897 * config/riscv/riscv.c: Change movmem to cpymem in comment.
898 * config/riscv/riscv.h: Change movmem to cpymem.
899 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
900 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
901 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
903 * config/s390/s390-protos.h: Change movmem to cpymem.
904 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
905 s390_expand_insv): Change movmem to cpymem.
906 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
907 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
908 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
909 * config/sparc/sparc.h: Change movmem to cpymem in comment.
910 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
911 for nonexistent function.
912 * config/vax/vax.h: Change movmem to cpymem in comment.
913 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
914 * config/visium/visium.h: Change movmem to cpymem in comment.
915 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
916 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
917 * doc/md.texi: Change movmem to cpymem and update description to match.
918 * doc/rtl.texi: Change movmem to cpymem.
919 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
920 * doc/tm.texi: Regenerate.
922 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
924 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
925 -fvariable-expansion-in-unroller by default.
926 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
929 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
932 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
933 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
935 * config.gcc(rs6000-*-*): Define target_gtfiles.
937 2019-06-27 Jan Hubicka <jh@suse.cz>
939 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
940 (add_type_duplicate): When odr hash is not allocated, to nothing.
941 (odr_based_tbaa_p): New function.
942 (set_type_canonical_for_odr_type): New function.
943 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
944 set_type_canonical_for_odr_type): New.
945 * tree.c (gimple_canonical_types_compatible_p): ODR types with
946 ODR based TBAA are not equivalent to non-ODR types.
948 2019-06-27 Martin Liska <mliska@suse.cz>
950 PR tree-optimization/90974
951 PR rtl-optimization/90975
952 PR rtl-optimization/90976
954 PR tree-optimization/91017
955 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
957 * lra.c (lra_set_insn_recog_data): Remove a leftover from
958 initial commit of IRA.
959 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
961 * tree-vect-loop.c (vect_create_epilog_for_reduction):
963 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
966 2019-06-27 Jakub Jelinek <jakub@redhat.com>
969 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
970 instead of register_operand for operands[1], add m to its constraints
971 if operands[2] uses "C" constraint. Ensure in condition that if
972 operands[2] is not 0, then operands[1] is not a MEM. For last two
973 alternatives, use unaligned loads instead of aligned if operands[1] is
976 2019-06-27 Martin Liska <mliska@suse.cz>
978 * asan.c (asan_emit_allocas_unpoison): Remove obviously
980 * bt-load.c (move_btr_def): Likewise.
981 * builtins.c (expand_builtin_apply_args_1): Likewise.
982 (expand_builtin_apply): Likewise.
983 * cfgexpand.c (expand_asm_stmt): Likewise.
984 (construct_init_block): Likewise.
985 * cfghooks.c (verify_flow_info): Likewise.
986 * cfgloopmanip.c (remove_path): Likewise.
987 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
988 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
989 * combine.c (simplify_if_then_else): Likewise.
990 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
991 (choose_basereg): Likewise.
992 (ix86_expand_prologue): Likewise.
993 (ix86_preferred_output_reload_class): Likewise.
994 * cselib.c (cselib_record_sets): Likewise.
995 * df-scan.c (df_scan_alloc): Likewise.
996 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
997 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
998 * emit-rtl.c (try_split): Likewise.
999 * graphite-scop-detection.c (assign_parameter_index_in_region): Likewise.
1000 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
1001 * ira-color.c (setup_profitable_hard_regs): Likewise.
1002 * ira.c (rtx_moveable_p): Likewise.
1003 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
1004 * read-rtl.c (read_subst_mapping): Likewise.
1005 * regrename.c (scan_rtx): Likewise.
1006 * reorg.c (fill_slots_from_thread): Likewise.
1007 * tree-inline.c (tree_function_versioning): Likewise.
1008 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
1009 * tree-ssa-sink.c (statement_sink_location): Likewise.
1010 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
1011 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
1012 (vect_create_epilog_for_reduction): Likewise.
1013 * tree.c (build_nonstandard_integer_type): Likewise.
1015 2019-06-27 Richard Biener <rguenther@suse.de>
1017 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
1019 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
1021 PR tree-optimization/89772
1022 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
1023 out-of-bound accesses checking.
1025 2019-06-27 Martin Liska <mliska@suse.cz>
1027 PR tree-optimization/91014
1028 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
1029 when LHS is NULL_TREE.
1031 2019-06-27 Martin Liska <mliska@suse.cz>
1033 * symbol-summary.h (traverse): Pass
1034 argument a to the call of callback.
1035 (gt_ggc_mx): Mark arguments as unused.
1036 (gt_pch_nx): Likewise.
1038 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
1041 * gcc/loop-iv.c (find_simple_exit): Call finite_loop_p to update
1044 2019-06-26 Jeff Law <law@redhat.com>
1046 PR tree-optimization/90883
1047 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
1048 (delete_dead_or_redundant_assignment): Likewise.
1050 PR tree-optimization/90883
1051 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
1052 * tree-ssa-dse.c: Update various comments to distinguish between
1053 dead and redundant stores.
1054 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
1055 (dse_optimize_redundant_stores): New function.
1056 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
1057 Distinguish between dead and redundant calls in dump output. All
1059 (delete_dead_or_redundant_assignment): Similarly for assignments.
1060 (dse_optimize_stmt): Handle _CHK variants. For statements which
1061 store 0 into multiple memory locations, try to prove a subsequent
1064 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
1067 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
1068 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
1070 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
1072 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
1073 (branch_islands): New extern.
1074 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
1075 * config/rs6000/rs6000.c: .. here.
1077 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
1079 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
1080 (powerpc*-*-*) ... to here.
1082 2019-06-26 Jeff Law <law@redhat.com>
1084 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
1085 memcpy, memmove and memset builtins.
1086 (maybe_trim_memstar_call): Likewise.
1088 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
1090 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
1092 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
1094 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
1096 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
1098 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
1100 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
1102 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
1105 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
1107 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
1109 2019-06-26 Richard Biener <rguenther@suse.de>
1112 * tree-inline.c (remap_ssa_name): Copy SSA range info.
1114 2019-06-26 Richard Biener <rguenther@suse.de>
1116 * lto-streamer.h (lto_bitmap_alloc): Remove.
1117 (lto_bitmap_free): Likewise.
1118 * lto-streamer.c (lto_bitmap_alloc): Remove.
1119 (lto_bitmap_free): Likewise.
1120 (lto_obstack): Likewise.
1121 (lto_obstack_initialized): Likewise.
1122 * lto-streamer-out.c (lto_output): Use own obstack for local
1123 bitmap, free it consistently.
1125 2019-06-26 Jakub Jelinek <jakub@redhat.com>
1128 * config/i386/sse.md
1129 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
1130 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
1131 insns if operands[2] is misaligned_operand.
1133 2019-06-26 Li Jia He <helijia@linux.ibm.com>
1135 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
1137 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
1140 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
1142 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
1144 2019-06-26 Martin Liska <mliska@suse.cz>
1146 PR tree-optimization/90973
1147 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
1148 epilogue_cost_vec instead of prologue_cost_vec for
1151 2019-06-26 Martin Liska <mliska@suse.cz>
1153 * bb-reorder.c (connect_better_edge_p): Add missing else
1154 statement in the middle of if-else statements.
1156 /home/marxin/Programming/gcc/gcc/bb-reorder.c:1031:2: warning: Value stored to 'is_better_edge' is never read
1157 is_better_edge = true;
1159 /home/marxin/Programming/gcc/gcc/bb-reorder.c:1034:2: warning: Value stored to 'is_better_edge' is never read
1160 is_better_edge = false;
1163 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
1164 H.J. Lu <hongjiu.lu@intel.com>
1165 Olga Makhotina <olga.makhotina@intel.com>
1167 * common/config/i386/i386-common.c
1168 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
1169 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
1170 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
1171 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
1172 (ix86_handle_option): Handle -mavx512vp2intersect.
1173 * config/i386/avx512vp2intersectintrin.h: New.
1174 * config/i386/avx512vp2intersectvlintrin.h: New.
1175 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
1176 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1178 * config/i386/i386-builtin-types.def: Add new types.
1179 * config/i386/i386-builtin.def: Add new builtins.
1180 * config/i386/i386-builtins.c: (enum processor_features): Add
1181 F_AVX512VP2INTERSECT.
1182 (static const _isa_names_table isa_names_table): Ditto.
1183 * config/i386/i386-c.c (ix86_target_macros_internal): Define
1184 __AVX512VP2INTERSECT__.
1185 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
1186 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
1187 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
1188 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
1189 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
1190 * config/i386/i386-options.c (ix86_target_string): Add
1191 -mavx512vp2intersect.
1192 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
1193 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
1194 P2HImode and P2QImode.
1195 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
1196 number for P2QImode and P2HImode.
1197 (ix86_regmode_natural_size): New function.
1198 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
1199 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
1200 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
1201 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
1202 * config/i386/i386.opt: Add -mavx512vp2intersect.
1203 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
1204 avx512vp2intersectvlintrin.h.
1205 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
1206 (define_mode_iterator VI48_AVX512VP2VL): New.
1207 (avx512vp2intersect_2intersect<mode>,
1208 avx512vp2intersect_2intersectv16si): New define_insn patterns.
1209 * config.gcc: Add avx512vp2intersectvlintrin.h and
1210 avx512vp2intersectintrin.h to extra_headers.
1211 * doc/invoke.texi: Document -mavx512vp2intersect.
1213 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
1215 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
1217 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
1219 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
1220 savres_routine_syms, savres_routine_name, morestack_ref,
1221 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
1222 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
1223 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
1224 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
1225 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
1226 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
1227 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
1228 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
1229 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
1230 get_stack_clash_protection_probe_interval,
1231 get_stack_clash_protection_guard_size,
1232 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
1233 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
1234 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
1235 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
1236 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
1237 gen_frame_mem_offset, rs6000_savres_routine_name,
1238 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
1239 ptr_regno_for_savres, rs6000_emit_savres_rtx,
1240 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
1241 rs6000_global_entry_point_prologue_needed_p,
1242 rs6000_get_separate_components, rs6000_components_for_bb,
1243 rs6000_disqualify_components, rs6000_emit_prologue_components,
1244 rs6000_emit_epilogue_components, rs6000_set_handled_components,
1245 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
1246 rs6000_output_savres_externs, rs6000_output_function_prologue,
1247 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
1248 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
1249 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
1250 rs6000_output_function_epilogue, gen_add3_const,
1251 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
1252 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
1254 (machine_function): Moved to rs6000.h.
1255 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
1257 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
1258 savres_routine_syms, savres_routine_name, morestack_ref,
1259 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
1260 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
1261 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
1262 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
1263 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
1264 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
1265 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
1266 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
1267 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
1268 get_stack_clash_protection_probe_interval,
1269 get_stack_clash_protection_guard_size,
1270 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
1271 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
1272 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
1273 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
1274 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
1275 gen_frame_mem_offset, rs6000_savres_routine_name,
1276 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
1277 ptr_regno_for_savres, rs6000_emit_savres_rtx,
1278 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
1279 rs6000_global_entry_point_prologue_needed_p,
1280 rs6000_get_separate_components, rs6000_components_for_bb,
1281 rs6000_disqualify_components, rs6000_emit_prologue_components,
1282 rs6000_emit_epilogue_components, rs6000_set_handled_components,
1283 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
1284 rs6000_output_savres_externs, rs6000_output_function_prologue,
1285 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
1286 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
1287 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
1288 rs6000_output_function_epilogue, gen_add3_const,
1289 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
1290 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
1291 to here from rs6000.c.
1292 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
1293 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
1294 quad_address_offset_p) Moved to here from rs6000.c.
1295 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
1296 * config/config.gcc: Add new source file rs6000-logue.c to garbage
1299 2019-06-25 Martin Liska <mliska@suse.cz>
1301 * hash-table.c (hashtab_chk_error): Move here from ...
1302 * hash-table.h (hashtab_chk_error): ... here.
1304 2019-06-25 Martin Liska <mliska@suse.cz>
1306 PR tree-optimization/90978
1307 * df-scan.c (df_update_entry_block_defs): Remove dead else
1309 (df_update_exit_block_uses): Likewise.
1311 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
1312 Andrew Stubbs <ams@codesourcery.com>
1314 * config.gcc (thread_file): Set to gcn for AMD GCN.
1315 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
1316 (TARGET_EMUTLS_VAR_INIT): New hook.
1318 2019-06-25 Martin Jambor <mjambor@suse.cz>
1321 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
1323 2019-06-25 Richard Biener <rguenther@suse.de>
1325 PR tree-optimization/90930
1326 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
1327 into parallel form in the last pass instance.
1329 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
1331 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
1332 (arc_legitimize_pic_address): Simplify and cleanup the function.
1333 (SYMBOLIC_CONST): Remove.
1334 (prepare_pic_move): Likewise.
1335 (prepare_move_operands): Handle complex mov cases here.
1336 (arc_legitimize_address_0): Remove call to
1337 arc_legitimize_pic_address.
1338 (arc_legitimize_address): Remove call to
1339 arc_legitimize_tls_address.
1340 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
1341 (movhi_insn): Likewise.
1343 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1345 * gcc/c-family/c-common.c (c_common_nodes_and_builtins): Define
1346 alternate "__intN__" name for "__intN" types.
1347 * gcc/c/c-parser.c (c_parse_init): Create keyword for "__intN__" type.
1348 * gcc/cp/lex.c (init_reswords): Likewise.
1349 * gcc/config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
1351 * gcc/cp/cp-tree.h (cp_decl_specifier_seq): New bitfield "int_n_alt".
1352 * gcc/c/c-decl.c (declspecs_add_type): Don't pedwarn about "__intN" ISO
1353 C incompatibility if alternate "__intN__" form is used.
1354 * gcc/cp/decl.c (grokdeclarator): Likewise.
1355 * gcc/cp/parser.c (cp_parser_simple_type_specifier): Set
1356 decl_specs->int_n_alt if "__intN__" form is used.
1357 * gcc/gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
1358 format of "__intN" types for UINTMAX_TYPE.
1359 * gcc/brig/brig-lang.c (brig_build_c_type_nodes): Accept "__intN__"
1360 format of "__intN" types for SIZE_TYPE.
1361 * gcc/lto/lto-lang.c (lto_build_c_type_nodes): Likewise.
1362 * gcc/stor-layout.c (initialize_sizetypes): Accept "__intN__"
1363 format of "__intN" types for SIZETYPE.
1364 * gcc/tree.c (build_common_tree_nodes): Accept "__intN__"
1365 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
1366 * gcc/doc/invoke.texi: Document that __intN__ disables pedantic
1369 2019-06-25 Jan Hubicka <jh@suse.cz>
1371 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
1372 base2_alias_set is non-zero before doing TBAA based disambiguation.
1374 2019-06-25 Martin Liska <mliska@suse.cz>
1376 PR tree-optimization/90973
1377 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
1378 of prologue and epilogue.
1380 2019-06-24 Jan Hubicka <jh@suse.cz>
1382 * ipa-utils.h (type_with_linkage_p): Verify that type is
1384 (odr_type_p): Remove extra return.
1385 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
1386 hash STRING_FLAG only for arrays and integers.
1387 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
1389 * tree-streamer-out.c (pack_ts_type_common_value_fields):
1391 * print-tree.c (print_node): Print cxx-odr-p
1393 * tree.c (need_assembler_name_p): Also check that type
1395 (verify_type_variant): Update verification of SRING_FLAG;
1396 also check CXX_ODR_P.
1397 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
1398 (TYPE_STRING_FLAG): Use it.
1399 (TYPE_CXX_ODR_P): New macro.
1400 * dwarf2out.c (gen_array_type_die): First check that type
1401 is an array and then test string flag.
1403 2019-06-24 Richard Biener <rguenther@suse.de>
1405 PR tree-optimization/90972
1406 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
1407 in common code, dealing with STRING_CST properly.
1409 2019-06-24 Richard Biener <rguenther@suse.de>
1411 PR tree-optimization/90930
1412 PR tree-optimization/90316
1413 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
1416 2019-06-24 Martin Sebor <msebor@redhat.com>
1418 * tree-pretty-print.h: Remove unnecessary punctuation characters
1420 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
1422 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
1424 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
1425 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
1426 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
1428 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
1430 * config/rs6000/darwin.h: Handle GCC target pragma.
1432 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
1434 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
1436 2019-06-22 Jeff Law <law@redhat.com>
1438 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
1440 2019-06-22 Jan Hubicka <jh@suse.cz>
1442 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
1443 give up on bitfields; continue searching for different refs
1446 2019-06-21 Jakub Jelinek <jakub@redhat.com>
1448 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
1449 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
1450 containing the offset as possible simd lane access. Look through
1451 widening conversion. Move the
1452 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
1454 2019-06-21 Richard Biener <rguenther@suse.de>
1456 PR tree-optimization/90930
1457 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
1458 flag on new stmts to avoid re-processing them.
1460 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
1462 PR c++/90875 - added -Wswitch-outside-range option
1463 * doc/invoke.texi (Wswitch-outside-range): Document.
1465 2019-06-21 Jeff Law <law@redhat.com>
1467 PR tree-optimization/90949
1468 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
1469 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
1471 2019-06-21 Richard Biener <rguenther@suse.de>
1474 * dwarf2out.c (prune_unused_types_walk): Always consider
1475 function-local extern declarations as used.
1477 2019-06-21 Richard Biener <rguenther@suse.de>
1479 PR tree-optimization/90913
1480 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
1481 the scalar variant of if-conversion versioning.
1483 2019-06-21 Jakub Jelinek <jakub@redhat.com>
1485 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
1486 create another "omp scan inscan exclusive" array if
1487 !ctx->scan_inclusive.
1488 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
1489 (lower_omp_scan): Likewise.
1490 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
1491 2-bit bitfield for simd_lane_access_p member.
1492 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
1493 aux == (void *)-4 as simd lane access.
1494 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
1495 comment with permutations to show the canonical permutation order.
1496 (vectorizable_scan_store): Handle exclusive scan.
1497 (vectorizable_store): Call vectorizable_scan_store even for
1498 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
1500 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
1501 "omp simd array" arrays with one byte elements.
1503 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
1505 * config/alpha/alpha.md (@unaligned_store<mode>):
1506 Rename from unaligned_store<mode>.
1507 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
1508 * config/alpha/sync.md (@load_locked_<mode>): Rename
1509 from load_locked_<mode>.
1510 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
1511 (@atomic_compare_and_swap<mode>_1): Rename
1512 from atomic_compare_and_swap<mode>_1.
1513 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
1514 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
1515 Use gen_reload_in_aligned and gen_unaligned_store.
1516 (emit_load_locked): Remove.
1517 (emit_store_conditional): Ditto.
1518 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
1519 (alpha_split_compare_and_swap): Ditto.
1520 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
1521 (alpha_split_compare_and_swap_12): Use gen_load_locked
1522 and gen_store_conditional.
1523 (alpha_split_atomic_exchange): Ditto.
1524 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
1525 (alpha_split_atomic_exchange_12): Use gen_load_locked
1526 and gen_store_conditional.
1528 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
1530 * config/aarch64/aarch64-errata.h: New file.
1531 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
1532 (CA53_ERR_843419_SPEC): Delete.
1533 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
1534 * config/aarch64/aarch64-linux.h: Likewise.
1535 * config/aarch64/aarch64-netbsd.h: Likewise.
1536 * config/aarch64/aarch64-freebsd.h: Likewise.
1538 2019-06-20 Marek Polacek <polacek@redhat.com>
1540 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
1542 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
1544 * config/rs6000/rs6000.md (isa attribute): Add support for
1545 for a future processor.
1547 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
1550 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
1551 standard scalar operation pattern for V2DF.
1552 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
1553 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
1554 (*ieee_<ieee_maxmin><mode>3): Likewise.
1555 (vec_setv2df_0): Likewise.
1557 2019-06-20 Jan Hubicka <jh@suse.cz>
1559 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
1560 parameter; it has no use in gimple memory model.
1561 (indirect_ref_may_alias_decl_p): Update.
1563 2019-06-20 Martin Liska <mliska@suse.cz>
1565 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
1568 2019-06-20 Jakub Jelinek <jakub@redhat.com>
1570 * tree-vect-stmts.c (enum scan_store_kind): New type.
1571 (scan_store_can_perm_p): Change last argument from int * to
1572 vec<enum scan_store_kind> *, record precisely which permutations
1573 need whole vector left shift or that plus VEC_COND_EXPR.
1574 (vectorizable_scan_store): Adjust caller, use whole vector left shift
1575 and additional VEC_COND_EXPR only for those iterations that need it.
1577 2019-06-20 Alexandre Oliva <oliva@adacore.com>
1579 * config.gcc: Fix ARM --with-fpu checking and error message.
1581 2019-06-19 Marek Polacek <polacek@redhat.com>
1583 PR c++/60364 - noreturn after first decl not diagnosed.
1584 * attribs.c (get_attribute_namespace): No longer static.
1585 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
1587 (attr_noreturn_exclusions): Make it extern.
1588 * attribs.h (get_attribute_namespace): Declare.
1589 * tree-inline.c (function_attribute_inlinable_p): Use
1592 2019-06-19 Martin Sebor <msebor@redhat.com>
1594 PR tree-optimization/90626
1595 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
1597 PR tree-optimization/90626
1598 * tree-ssa-strlen.c (strxcmp_unequal): New function.
1599 (handle_builtin_string_cmp): Call it.
1601 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
1603 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
1604 and DARWIN_NOPIE_SPEC.
1605 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
1606 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
1607 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
1608 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
1609 (DARWIN_EXPORT_DYNAMIC): Delete.
1610 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
1611 and pie options processing to darwin.h.
1612 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
1614 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
1616 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
1617 in computing the number of options to be moved.
1619 2019-06-19 Maya Rashish <coypu@sdf.org>
1621 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
1622 (CLEAR_INSN_CACHE) Use it.
1624 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
1626 * config/i386/i386.md (cmpstrnsi): Remove dead code.
1628 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
1631 * builtins.c (expand_builtin_setjmp_setup): Save
1632 hard_frame_pointer_rtx.
1633 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
1635 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
1637 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
1639 (remove_reg_equal_offset_note): Remove unused function.
1640 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
1642 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
1643 (arc_builtin_setjmp_frame_value): Remove function.
1644 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
1645 (avr_builtin_setjmp_frame_value): Remove function.
1646 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
1647 (ix86_builtin_setjmp_frame_value): Remove function.
1648 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
1649 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
1650 (sparc_builtin_setjmp_frame_value): Remove function.
1651 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
1652 (vax_builtin_setjmp_frame_value): Remove function.
1653 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
1654 pointer if has_nonlocal_label.
1656 2019-06-19 Jakub Jelinek <jakub@redhat.com>
1658 * doc/md.texi: Document vec_shl_<mode> pattern.
1659 * optabs.def (vec_shl_optab): New optab.
1660 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
1661 argument, if == vec_shl_optab, check for left whole vector shift
1662 pattern rather than right shift.
1663 (expand_vec_perm_const): Add vec_shl_optab support.
1664 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
1666 * tree-vect-generic.c (lower_vec_perm): Support permutations which
1667 can be handled by vec_shl_optab.
1668 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
1669 (check_scan_store): Use it.
1670 (vectorizable_scan_store): If target can't do normal permutations,
1671 try to use whole vector left shifts and if needed a VEC_COND_EXPR
1673 * config/i386/sse.md (vec_shl_<mode>): New expander.
1675 * omp-low.c (lower_rec_input_clauses): Handle references properly
1677 (lower_omp_scan): Likewise.
1679 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1681 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
1682 mem_mode is BLKmode.
1684 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
1687 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
1688 pointer adjustment for the case of no callee-saved registers and
1689 stack frame bigger than 128 bytes.
1691 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
1694 * omp-low.c (check_omp_nesting_restrictions): Handle
1695 GF_OMP_TARGET_KIND_OACC_DECLARE.
1697 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
1699 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
1700 (@add<mode>3_carry): Rename from add<mode>3_carry.
1701 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
1702 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
1703 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
1704 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
1705 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
1706 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
1707 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
1708 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
1709 (cmpstrnsi): Use gen_cmp_1.
1710 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
1711 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
1712 (@umonitor_<mode>): Rename from umonitor_<mode>.
1713 * config/i386/i386-expand.c (ix86_expand_copysign):
1714 Use gen_copysign3_const and gen_copysign3_var.
1715 (ix86_expand_xorsign): Use gen_xorsign3_1.
1716 (ix86_expand_branch): Use gen_sub3_carry_ccc,
1717 gen_sub3_carry_ccgz and gen_cmp1.
1718 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
1719 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
1720 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
1721 (ix86_split_lshr): Ditto.
1722 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
1724 2019-06-18 Jason Merrill <jason@redhat.com>
1726 * tree.c (build_constructor): Add MEM_STAT_DECL.
1728 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
1730 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
1731 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
1732 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
1733 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
1734 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
1735 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
1736 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
1737 Use CC_NZC instead of CC.
1738 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
1739 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
1740 (aarch64_print_operand): Handle E_CC_NZCmode.
1741 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
1742 of gen_set_clobber_cc.
1744 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
1746 * config/aarch64/aarch64-sve.md: Tabify file.
1748 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
1750 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
1751 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
1752 * config/aarch64/aarch64-sve.md: Use it.
1754 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
1756 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
1757 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
1758 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
1759 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
1760 (aarch64_expand_sve_vec_cmp_int): Use it.
1761 (aarch64_expand_sve_vec_cmp_float): Likewise.
1762 * config/aarch64/aarch64-sve.md: Likewise throughout.
1764 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
1765 Kugan Vivekanandarajah <kuganv@linaro.org>
1767 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
1768 (*cond_<optab><mode>_z): Fold into...
1769 (*cond_<optab><mode>_any): ...here. Also handle cases in which
1770 operand 4 can be tied to operand 0 (either inherently or via RA).
1772 2019-06-18 Richard Biener <rguenther@suse.de>
1775 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
1776 as if optimized away.
1778 2019-06-18 Tom de Vries <tdevries@suse.de>
1780 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
1781 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
1782 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
1784 (define_insn "@set_softstack_<mode>"): ... this.
1785 (define_insn "omp_simt_enter_<mode>"): Rename to ...
1786 (define_insn "@omp_simt_enter_<mode>"): ... this.
1787 (define_insn "omp_simt_exit_<mode>"): Rename to ...
1788 (define_insn "@omp_simt_exit_<mode>"): ... this.
1790 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
1792 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
1793 vf parameter. Restore the previous iv step of nscalars_step,
1794 but give it iv_type rather than compare_type. Tweak code order
1795 to match the comments.
1796 (vect_set_loop_condition_masked): Update accordingly.
1797 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
1798 for iv_precision. Tweak comment formatting.
1800 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
1802 * config/darwin.c: Strip trailing whitespace.
1804 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
1806 * config/darwin.c (darwin_emit_unwind_label): New default to false.
1807 (darwin_override_options): Set darwin_emit_unwind_label as needed.
1809 2019-06-18 Martin Jambor <mjambor@suse.cz>
1812 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
1813 caller does not have flag_ipa_cp set.
1815 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
1817 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
1818 from "*fold_left_plus_<mode>", updated operands order.
1819 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
1820 * internal-fn.c (mask_fold_left_direct): New define.
1821 (expand_mask_fold_left_optab_fn): Likewise.
1822 (direct_mask_fold_left_optab_supported_p): Likewise.
1823 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
1824 * optabs.def (mask_fold_left_plus_optab): New optab.
1825 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
1826 masked internal_fn for a reduction ifn.
1827 (vectorize_fold_left_reduction): Add support for masking reductions.
1829 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
1832 * target.def (predict_doloop_p): New hook.
1833 * targhooks.h (default_predict_doloop_p): New declaration.
1834 * targhooks.c (default_predict_doloop_p): New function.
1835 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
1836 * doc/tm.texi: Regenerate.
1837 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
1838 (TARGET_PREDICT_DOLOOP_P): New macro.
1839 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
1841 2019-06-17 Jakub Jelinek <jakub@redhat.com>
1843 * omp-low.c (struct omp_context): Add scan_inclusive field.
1844 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
1846 (struct omplow_simd_context): Add lastlane member.
1847 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
1848 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
1850 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
1851 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
1852 (lower_omp_scan): New function.
1853 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
1854 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
1855 check 3rd argument if present rather than 2nd.
1856 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
1857 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
1859 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
1860 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
1862 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
1863 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
1864 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
1866 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
1867 IFN_GOMP_SIMD_LANE argument.
1868 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
1869 encoded ->aux value.
1870 * tree-vect-stmts.c: Include attribs.h.
1871 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
1872 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
1874 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
1875 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
1877 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
1880 * config/i386/i386.md (*nabstf2_1): New insn pattern.
1881 (*nabs<mode>2_1): Ditto.
1882 (nabs sse-reg splitter): New splitter.
1883 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
1885 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
1888 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
1891 2019-06-17 Tom de Vries <tdevries@suse.de>
1893 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
1894 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
1895 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
1897 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
1899 (define_insn "omp_simt_enter_insn"): Rename to ...
1900 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
1901 match_operand 0, 1 and 2, as well as the unspec_volatile result.
1902 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
1903 gen_omp_simt_enter_si.
1904 (define_expand "omp_simt_exit"): New.
1905 (define_insn "omp_simt_exit"): Rename to ...
1906 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
1909 2019-06-17 Matthew Green <mrg@eterna.com.au>
1910 Maya Rashish <coypu@sdf.org>
1912 * config.gcc (aarch64*-*-netbsd*): New target.
1913 * config/aarch64/aarch64-netbsd.h: New file.
1914 * config/aarch64/t-aarch64-netbsd: Likewise.
1916 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
1918 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
1919 the access path from base to first VIEW_CONVERT_EXPR or
1922 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
1924 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
1925 access path on BIT_FIELD_REFs.
1927 2019-06-17 Martin Liska <mliska@suse.cz>
1930 * ipa-utils.h (odr_type_p): Remove dead code.
1932 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1934 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
1935 alternative Solaris 11.4 format.
1936 * configure: Regenerate.
1938 2019-06-17 Tom de Vries <tdevries@suse.de>
1940 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
1941 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
1943 (define_insn "call_value_insn"): Rename to ...
1944 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
1946 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
1949 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
1952 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
1953 frame clobbers and schedule block.
1954 (builtin_longjmp): Likewise.
1956 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1958 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
1959 describe how to perform MSPABI compliant 64-bit shift.
1960 * config/msp430/msp430.md (ashldi3): New define_expand.
1961 (ashrdi3): New define_expand.
1962 (lshrdi3): New define_expand.
1964 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1966 * doc/sourcebuild.texi: Document new effective target keyword
1969 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
1971 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
1972 indirect_refs_may_alias_p): Revert accidental commits.
1974 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
1975 at the end of structures.
1977 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
1979 * config/darwin.c (machopic_indirect_call_target): Use renamed
1980 darwin_picsymbol_stubs to decide on output.
1981 (darwin_override_options): Handle darwin_picsymbol_stubs.
1982 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
1983 (LD64_VERSION): Revise default.
1984 * config/darwin.opt: (mpic-symbol-stubs): New option.
1985 (darwin_picsymbol_stubs): New variable.
1986 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
1987 rename to TARGET_MACHO_PICSYM_STUBS.
1988 * config/i386/i386.c (output_pic_addr_const): Likewise.
1989 * config/i386/i386.h Likewise.
1990 * config/rs6000/darwin.h: Likewise.
1991 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
1992 darwin_picsymbol_stubs.
1994 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
1996 * config/darwin.opt (prebind, noprebind, seglinkedit,
1997 noseglinkedit): Add RejectNegative.
1999 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
2001 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
2002 in my previous patch.
2004 2019-06-16 Tom de Vries <tdevries@suse.de>
2006 PR tree-optimization/89376
2007 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
2009 2019-06-15 Maya Rashish <coypu@sdf.org>
2011 * doc/invoke.texi (Spec Files): Update location of the
2014 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
2016 * doc/extend.texi (Common Function Attributes): Clarify
2017 no_sanitize. Fix grammar.
2019 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
2021 * tree-ssa-alias.c (alias_stats): Add
2022 nonoverlapping_component_refs_p_may_alias,
2023 nonoverlapping_component_refs_p_no_alias,
2024 nonoverlapping_component_refs_of_decl_p_may_alias,
2025 nonoverlapping_component_refs_of_decl_p_no_alias.
2026 (dump_alias_stats): Dump them.
2027 (nonoverlapping_component_refs_of_decl_p): Add stats.
2028 (nonoverlapping_component_refs_p): Add stats; do not stop on first
2031 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
2033 * config/i386/i386.md (and<mode>3): Generate zero-extends for
2034 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
2036 (*anddi3_doubleword): Split before reload. Merge with
2037 anddi->zext pre-reload splitter.
2038 (*andndi3_doubleword): Split before reload.
2039 (*<code>di3_doubleword): Ditto.
2040 (*one_cmpldi2_doubleword): Ditto.
2042 2019-06-15 Jakub Jelinek <jakub@redhat.com>
2045 * gimplify.c: Include omp-offload.h and context.h.
2046 (gimplify_bind_expr): Add "omp declare target" attributes
2047 to static block scope variables inside of target region or target
2050 2019-06-15 Tom de Vries <tdevries@suse.de>
2052 PR tree-optimization/90009
2053 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
2054 Return NULL if bb contains IFN_UNIQUE.
2056 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
2058 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
2059 (un): New define_mode_attr.
2060 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
2061 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
2062 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
2064 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
2066 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
2068 * config/darwin.opt: Add RejectNegative where needed, reorder
2069 and add minimal functional descriptions.
2071 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
2073 PR rtl-optimization/90765
2074 * calls.c (update_stack_alignment_for_call): New function.
2075 (expand_call): Call update_stack_alignment_for_call when
2076 outgoing parameter is passed in the stack.
2077 (emit_library_call_value_1): Likewise.
2078 * function.c (locate_and_pad_parm): Don't update
2079 stack_alignment_needed and preferred_stack_boundary.
2081 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
2084 * config/i386/i386-features.c
2085 (dimode_scalar_chain::compute_convert_gain): Replace
2086 mmxsse_to_integer with sse_to_integer.
2087 * config/i386/i386.c (ix86_register_move_cost): Verify that
2088 moves between MMX and non-MMX units require secondary memory.
2089 Correct costs of moves between SSE and integer units.
2090 * config/i386/i386.h (processor_costs): Rename cost of moving
2091 SSE register to integer to sse_to_integer. Rename cost of
2093 2019-06-14 Matt Thomas <matt@3am-software.com>
2094 Matthew Green <mrg@eterna.com.au>
2095 Nick Hudson <skrll@netbsd.org>
2096 Maya Rashish <coypu@sdf.org>
2097 Richard Earnshaw <rearnsha@arm.com>
2099 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
2100 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
2101 * config/arm/netbsd-eabi.h: New file.
2102 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
2104 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
2105 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
2106 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
2107 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
2109 2019-06-14 Richard Biener <rguenther@suse.de>
2111 * tree-loop-distribution.c (classify_partition): Return
2112 whether a reduction appeared in all partitions and do not
2113 stop builtin detection because of this.
2114 (distribute_loop): Sort a non-builtin partition last if
2115 there's a reduction in all partitions and make sure the
2116 partition prevailing as last is not a builtin.
2118 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
2121 * ipa-prop.c (add_to_agg_contents_list): New function.
2122 (clobber_by_agg_contents_list_p): Likewise.
2123 (extract_mem_content): Likewise.
2124 (get_place_in_agg_contents_list): Delete.
2125 (determine_known_aggregate_parts): Renamed from
2126 determine_locally_known_aggregate_parts. New parameter
2129 2019-06-13 Martin Sebor <msebor@redhat.com>
2131 PR tree-optimization/90662
2132 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
2135 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
2138 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
2139 dbase is not TARGET_MEM_REF.
2141 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
2143 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
2145 (and<mode>3): Use gen_extend_insn instead of indirect functions.
2146 Do not generate DImode extends for 32bit targets.
2147 (and->zext post-reload splitter): Use gen_extend_insn
2148 instead of indirect functions.
2149 (anddi->zext pre-reload splitter): New.
2150 (*zext<mode>_doubleword_and): Remove.
2151 (*zext<mode>_doubleword): Ditto.
2152 (*zextsi_doubleword): Dittto.
2154 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
2156 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
2157 Use gen_sub3_insn instead of indirect function.
2158 (ix86_expand_ashl_const): Use gen_add2_insn instead of
2160 (ix86_adjust_counter): Ditto.
2162 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
2163 Lijia He <helijia@linux.ibm.com>
2165 PR tree-optimization/77820
2166 * tree-ssa-threadedge.c
2167 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
2169 (thread_across_edge): Add call to
2170 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
2172 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
2174 * config/darwin-driver.c (validate_macosx_version_min): New.
2175 (darwin_default_min_version): Cleanup and validate supplied version.
2176 (darwin_driver_init): Likewise and push cleaned version into opts.
2178 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
2180 PR tree-optimization/90869
2181 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
2182 converts in MEM_REF referencing decl rather than view converts
2183 from decl type to MEM_REF type.
2185 2019-06-13 Richard Biener <rguenther@suse.de>
2187 PR tree-optimization/90856
2188 * tree-sra.c (build_ref_for_model): Only use
2189 build_reconstructed_reference when address-spaces are the same.
2191 2019-06-13 Jakub Jelinek <jakub@redhat.com>
2193 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
2194 wrap ei variable name in the declaration in ()s.
2195 (nvptx_single): Actually use mode_label variable. Formatting fix.
2197 2019-06-13 Richard Biener <rguenther@suse.de>
2199 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
2200 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
2201 also return the condition stmt.
2202 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
2203 loop we can version and version that, reusing the loop version
2204 created by if-conversion instead of versioning again.
2206 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
2208 * gimple-loop-versioning.cc (prune_loop_conditions): Use
2210 * tree-vrp (value_range_base::may_contain_p): Call into
2212 (value_inside_range): Make private inside value_range_base class.
2213 Take min/max from *this.
2214 (range_includes_p): Remove.
2215 * tree-vrp.h (value_range_base): Add value_inside_range.
2216 (range_includes_p): Remove.
2217 (range_includes_zero_p): Call may_contain_p.
2218 * vr-values.c (compare_range_with_value): Same.
2220 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
2222 * doc/extend.texi (ARC Function Attributes): Update info.
2224 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
2226 PR tree-optimization/89713
2227 * doc/invoke.texi (-ffinite-loops): Document new option.
2228 * common.opt (-ffinite-loops): New option.
2229 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
2230 IFN_GOACC_LOOP calls as necessary.
2231 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
2233 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
2234 IFN_GOACC_LOOP call is not used.
2235 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
2237 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2240 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
2241 compare_type is not with Pmode size, we will create an IV with
2242 Pmode size with truncated use (i.e. converted to the correct type).
2243 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
2244 (vect_iv_limit_for_full_masking): New. Factored out of
2245 vect_set_loop_condition_masked.
2246 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
2247 (vect_iv_limit_for_full_masking): Declare.
2249 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2252 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
2253 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
2254 (get_alias_ptr_type_for_ptr_address): Likewise.
2255 (add_iv_candidate_for_use): Add scaled index candidate if useful.
2256 * tree-ssa-address.c (preferred_mem_scale_factor): New.
2257 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
2260 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2262 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
2264 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
2266 * common/config/pru/pru-common.c: New file.
2267 * config.gcc: Add PRU target.
2268 * config/pru/alu-zext.md: New file.
2269 * config/pru/constraints.md: New file.
2270 * config/pru/predicates.md: New file.
2271 * config/pru/pru-opts.h: New file.
2272 * config/pru/pru-passes.c: New file.
2273 * config/pru/pru-pragma.c: New file.
2274 * config/pru/pru-protos.h: New file.
2275 * config/pru/pru.c: New file.
2276 * config/pru/pru.h: New file.
2277 * config/pru/pru.md: New file.
2278 * config/pru/pru.opt: New file.
2279 * config/pru/t-pru: New file.
2280 * doc/extend.texi: Document PRU pragmas.
2281 * doc/invoke.texi: Document PRU-specific options.
2282 * doc/md.texi: Document PRU asm constraints.
2284 2019-06-12 Martin Sebor <msebor@redhat.com>
2287 * tree-pretty-print.c (dump_mem_ref): New function. Include
2288 MEM_REF type in output when different size than operand.
2289 (dump_generic_node): Move code to dump_mem_ref and call it.
2291 2019-06-12 Martin Sebor <msebor@redhat.com>
2293 PR tree-optimization/90662
2294 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
2297 2019-06-12 Tom de Vries <tdevries@suse.de>
2299 PR tree-optimization/90009
2300 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
2302 2019-06-12 Martin Liska <mliska@suse.cz>
2304 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
2306 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
2307 * mem-stats.h (mem_alloc_description::mem_alloc_description):
2308 Do not sanitize created maps.
2310 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
2312 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
2313 value_range::singleton_p.
2314 * tree-vrp.c (value_range_constant_singleton): Remove.
2315 * tree-vrp.h (value_range_constant_singleton): Remove.
2316 * vr-values.c (vr_values::singleton): Use
2317 value_range::singleton_p.
2319 2019-06-12 Jakub Jelinek <jakub@redhat.com>
2322 * cfgexpand.c (align_local_variable): Add really_expand argument,
2323 don't SET_DECL_ALIGN if it is false.
2324 (add_stack_var): Add really_expand argument, pass it through to
2325 align_local_variable.
2326 (expand_one_stack_var_1): Pass true as really_expand to
2327 align_local_variable.
2328 (expand_one_ssa_partition): Pass true as really_expand to
2330 (expand_one_var): Pass really_expand through to add_stack_var.
2332 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
2334 * config/arm/iterators.md (VABAL): New int iterator.
2335 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
2336 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S, UNSPEC_VABAL_U
2339 2019-06-12 Martin Liska <mliska@suse.cz>
2341 * value-prof.c (stream_out_histogram_value): Only first value
2344 2019-06-12 Jakub Jelinek <jakub@redhat.com>
2347 * symtab.c (symtab_node::set_section): Allow being called on aliases
2348 as long as they aren't analyzed yet.
2350 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
2352 * config/mips/mips.c (mips_final_postscan_insn): Modify call
2353 to `mips_set_text_contents_type' to indicate whether a
2354 non-debug insn follows.
2356 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
2358 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
2359 enabling -mpcrel by default.
2360 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
2361 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
2362 that the test against -mcpu=future is done first. Then test if
2363 -mprefixed-addr is on for -mpcrel.
2364 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
2366 2019-06-11 Jakub Jelinek <jakub@redhat.com>
2369 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
2372 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
2374 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
2376 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
2378 PR c++/90449 - add -Winaccessible-base option.
2379 * doc/invoke.texi (Winaccessible-base): Document.
2381 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
2383 PR tree-optimization/62041
2384 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
2386 2019-06-11 Jason Merrill <jason@redhat.com>
2388 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
2389 * tree.c (get_tree_code_name): Likewise.
2390 * print-tree.c (print_node): Only briefly print a node with an
2393 2019-06-11 Jakub Jelinek <jakub@redhat.com>
2396 * trans-mem.c (tm_memopt_compute_available): Add assertion
2397 that blocks is not empty. Formatting fix.
2399 2019-06-11 Martin Liska <mliska@suse.cz>
2402 * hash-table.h: Extend create_gcc, add one parameter
2403 that is passed into hash_table::hash_table.
2405 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
2407 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
2409 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
2410 Emit clobber also for non-sse operations.
2411 (ix86_split_fp_absneg_operator): New function.
2412 * config/i386/i386.md (SSEMODEF): New mode iterator.
2413 (ssevecmodef): New mode attribute.
2414 (<code>tf2): Use absneg code iterator.
2415 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
2416 Add three-operand AVX alternatives.
2417 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
2418 Use absneg code iterator and X87MODEF mode iterator.
2419 (absneg fp_reg non-sse splitter): Call absneg code iterator
2420 and X87MODEF mode iterator.
2421 (absneg general_reg non-sse splitter): Use absneg code iterator
2422 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
2423 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
2424 code iterator. Add three-operand AVX alternative.
2425 (absneg sse_reg splitter): Use absneg code iterator
2426 and SSEMODEF mode iterator. Handle AVX operands.
2427 (absneg fp_reg splitter): Use absneg code iterator
2428 and MODEF mode iterator.
2429 (absneg general_reg splitter): Merge splitters using MODEF mode
2430 iterator. Use absneg code iterator. Call
2431 ix86_split_fp_absneg_operator.
2432 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
2433 Do not enable for non-sse modes before reload.
2436 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
2437 ssevecmodef mode attribute instaed of CSGNVMODE.
2438 (copysign<mode>3_const): Ditto.
2439 (copysign<mode>3_var): Ditto.
2440 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
2441 Use absneg code iterator. Simplify code using std::swap.
2442 * config/i386/predicates.md (absneg_operator): Remove.
2444 2019-06-10 Martin Sebor <msebor@redhat.com>
2446 * gimple-fold.c (get_range_strlen): Update comment that didn't
2447 make it into r267503 or related commits.
2449 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
2451 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
2452 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
2454 2019-06-10 Jakub Jelinek <jakub@redhat.com>
2456 * tree.def (OMP_SCAN): New tree code.
2457 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
2458 OMP_CLAUSE_EXCLUSIVE.
2459 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
2460 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
2461 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
2462 OMP_CLAUSE_{IN,EX}CLUSIVE.
2463 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
2464 * tree-nested.c (convert_nonlocal_reference_stmt,
2465 convert_local_reference_stmt, convert_gimple_call): Handle
2467 * tree-pretty-print.c (dump_omp_clause): Handle
2468 OMP_CLAUSE_{IN,EX}CLUSIVE.
2469 (dump_generic_node): Handle OMP_SCAN.
2470 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
2471 * gimple.h (gomp_scan): New type.
2472 (is_a_helper <gomp_scan *>::test,
2473 is_a_helper <const gomp_scan *>::test): New templates.
2474 (gimple_build_omp_scan): Declare.
2475 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
2476 gimple_omp_scan_set_clauses): New inline functions.
2477 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
2478 * gimple.c (gimple_build_omp_scan): New function.
2479 (gimple_copy): Handle GIMPLE_OMP_SCAN.
2480 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
2481 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
2482 GIMPLE_OMP_TASKGROUP.
2483 (dump_gimple_omp_scan): New function.
2484 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
2485 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
2486 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
2487 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
2488 (is_gimple_stmt): Handle OMP_SCAN.
2489 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
2490 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
2491 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
2492 mentioned in nested #pragma omp scan. Handle
2493 OMP_CLAUSE_{IN,EX}CLUSIVE.
2494 (gimplify_expr): Handle OMP_SCAN.
2495 * omp-low.c (check_omp_nesting_restrictions): For parent context,
2496 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
2498 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
2501 2019-06-10 Martin Liska <mliska@suse.cz>
2503 * ipa-cp.c (ignore_edge_p): New function.
2504 (build_toporder_info): Use it.
2505 * ipa-inline.c (ignore_edge_p): New function.
2506 (inline_small_functions): Use it.
2507 * ipa-pure-const.c (ignore_edge_for_nothrow):
2508 Verify opt_for_fn for caller and callee.
2509 (ignore_edge_for_pure_const): Likewise.
2510 * ipa-reference.c (ignore_edge_p): Extend to check
2512 * ipa-utils.c (searchc): Refactor.
2513 * ipa-utils.h: Fix coding style.
2515 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
2517 * config/arc/arc.c (arc_rtx_costs): Update costs.
2519 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
2521 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
2522 (arc_split_ior): Likewise.
2523 (arc_check_mov_const): Likewise.
2524 (arc_split_mov_const): Likewise.
2525 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
2526 (arc_rtx_costs): Replace check Crr with Cax constraint.
2527 (prepare_move_operands): Cleanup, remove unused code.
2528 (arc_split_ior): New function.
2529 (arc_check_ior_const): Likewise.
2530 (arc_split_mov_const): Likewise.
2531 (arc_check_mov_const): Likewise.
2532 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
2533 in define_insn_and_split pattern.
2535 (mulsi3_v2): Add new matching variant.
2536 (andsi3_i): Cleanup pattern.
2537 (rotrsi3_cnt1): Update pattern.
2538 (rotrsi3_cnt8): New pattern.
2539 (ashlsi2_cnt8): Likewise.
2540 (ashlsi2_cnt16): Likewise.
2541 * config/arc/constraints.md (C0p): Update constraint.
2546 2019-06-10 Martin Liska <mliska@suse.cz>
2548 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
2549 Update coding style.
2550 (sem_item_optimizer::dump_cong_classes):
2551 Print how many items are in a non-singular class. Improve
2554 2019-06-10 Martin Liska <mliska@suse.cz>
2556 * value-prof.c (dump_histogram_value): Change dump format.
2557 (gimple_mod_subtract_transform): Remove legacy comment.
2559 2019-06-10 Martin Liska <mliska@suse.cz>
2561 * value-prof.c (dump_histogram_value): Print histogram values
2564 2019-06-10 Martin Liska <mliska@suse.cz>
2566 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
2567 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
2568 * ipa-profile.c (ipa_profile_generate_summary):
2569 Use get_most_common_single_value.
2570 * tree-profile.c (gimple_init_gcov_profiler):
2571 Instrument with __gcov_one_value_profiler_v2
2572 and __gcov_indirect_call_profiler_v4.
2573 * value-prof.c (dump_histogram_value):
2574 Print all values for HIST_TYPE_SINGLE_VALUE.
2575 (stream_out_histogram_value): Update assert for
2577 (stream_in_histogram_value): Set number of
2578 counters for HIST_TYPE_SINGLE_VALUE.
2579 (get_most_common_single_value): New.
2580 (gimple_divmod_fixed_value_transform):
2581 Use get_most_common_single_value.
2582 (gimple_ic_transform): Likewise.
2583 (gimple_stringops_transform): Likewise.
2584 (gimple_find_values_to_profile): Set number
2585 of counters for HIST_TYPE_SINGLE_VALUE.
2586 * value-prof.h (get_most_common_single_value):
2589 2019-06-10 Martin Liska <mliska@suse.cz>
2591 * hash-map.h: Pass default value to hash_table ctor.
2592 * hash-table.h: Add default value to call of a ctor.
2594 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
2596 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
2597 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
2599 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
2602 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
2603 Call pa_output_function_label.
2604 (TARGET_ASM_FUNCTION_PROLOGUE): define.
2605 * config/pa/pa-protos.h (pa_output_function_label): Declare.
2606 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
2608 (pa_linux_output_function_prologue): Declare.
2609 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
2610 (pa_output_function_label): New.
2611 (pa_output_function_prologue): Revise to use pa_output_function_label.
2612 (pa_linux_output_function_prologue): New.
2613 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
2615 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
2617 * tree-vrp.h (value_range_base::intersect): New.
2618 (value_range::intersect_helper): Move from here...
2619 (value_range_base::intersect_helper): ...to here.
2620 * tree-vrp.c (value_range::intersect_helper): Rename to...
2621 (value_range_base::intersect_helper): ...this, and rewrite to
2622 return a value instead of modifying THIS in place.
2623 Also, move equivalence handling...
2624 (value_range::intersect): ...here, while calling intersect_helper.
2625 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
2627 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
2629 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
2631 2019-06-07 Jakub Jelinek <jakub@redhat.com>
2633 * Makefile.in (genprogerr): Add condmd.
2634 (genprog): Remove it here.
2636 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
2638 * doc/invoke.texi (AMD GCN Options): Add gfx906.
2640 2019-06-07 Richard Biener <rguenther@suse.de>
2643 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
2644 that appear after user labels.
2646 2019-06-07 Martin Liska <mliska@suse.cz>
2648 * cselib.c (cselib_init): Disable hash table
2650 * hash-set.h: Pass new default argument to m_table.
2651 * hash-table.c: Add global variable with hash table
2653 * hash-table.h (Allocator>::hash_table): Add new argument
2655 (hashtab_chk_error): New.
2656 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
2657 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
2658 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
2660 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
2662 * common.opt (flto-odr-type-merging): Ignore.
2663 * invoke.texi (-flto-odr-type-merging): Remove.
2664 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
2665 (can_be_vtable_hashed_p): Remove.
2666 (hash_odr_vtable): Remove.
2667 (odr_vtable_hasher::hash): Remove.
2668 (types_same_for_odr): Remove.
2669 (types_odr_comparable): Remove.
2670 (odr_vtable_hasher::equal): Remove.
2671 (odr_vtable_hash_type, odr_vtable_hash): Remove.
2672 (add_type_duplicate): Do not synchronize vtable and name hashtables.
2673 (get_odr_type): Do not use vtable hash.
2674 (dump_odr_type): Remove commented out code.
2675 (build_type_inheritance_graph): Do not allocate vtable hash.
2676 (rebuild_type_inheritance_graph): Do not delete vtable hash.
2677 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
2678 (odr_type_p): Likewise.
2679 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
2682 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
2684 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
2685 immediately after same_types_for_tbaa_p returns -1 and continue
2686 looking for possible exact match; if matching types are arrays
2687 watch for partial overlaps.
2688 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
2689 (indirect_refs_may_alias_p): Do type based disambiguation first;
2692 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
2694 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
2696 2019-06-07 Martin Liska <mliska@suse.cz>
2698 * doc/invoke.texi: Remove param.
2699 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
2701 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
2702 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
2703 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
2704 * profile.c (instrument_values): Remove
2705 HIST_TYPE_INDIR_CALL_TOPN.
2706 * tree-profile.c (init_ic_make_global_vars):
2707 Always build __gcov_indirect_call only.
2708 (gimple_init_gcov_profiler): Remove usage
2709 of PARAM_INDIR_CALL_TOPN_PROFILE.
2710 (gimple_gen_ic_profiler): Likewise.
2711 * value-prof.c (dump_histogram_value): Likewise.
2712 (stream_in_histogram_value): Likewise.
2713 (gimple_indirect_call_to_profile): Likewise.
2714 (gimple_find_values_to_profile): Likewise.
2715 * value-prof.h (enum hist_type): Likewise.
2717 2019-06-07 Martin Liska <mliska@suse.cz>
2719 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
2722 2019-06-07 Martin Liska <mliska@suse.cz>
2724 PR tree-optimization/78902
2725 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
2726 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
2727 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
2728 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
2729 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
2730 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
2731 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
2732 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
2733 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
2734 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
2735 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
2736 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
2737 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
2739 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
2740 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
2741 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
2742 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
2743 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
2744 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
2745 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
2746 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
2747 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
2748 warn_unused_result attribute.
2749 (BUILT_IN_STRDUP): Likewise.
2750 (BUILT_IN_STRNDUP): Likewise.
2751 (BUILT_IN_ALLOCA): Likewise.
2752 (BUILT_IN_CALLOC): Likewise.
2753 (BUILT_IN_MALLOC): Likewise.
2754 (BUILT_IN_REALLOC): Likewise.
2756 2019-06-06 Jim Wilson <jimw@sifive.com>
2759 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
2760 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
2761 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
2763 2019-06-06 Martin Sebor <msebor@redhat.com>
2765 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
2766 (handle_builtin_malloc): Remove trailing spaces.
2767 (handle_builtin_memset): Same.
2768 (handle_builtin_memcmp): Same.
2769 (compute_string_length): Same.
2770 (determine_min_objsize): Same.
2771 (handle_builtin_string_cmp): Same.
2772 (handle_char_store): Same. Break up excessively long line.
2774 2019-06-06 Martin Jambor <mjambor@suse.cz>
2776 * tree-sra.c (build_reconstructed_reference): Drop the alignment
2779 2019-06-06 Martin Jambor <mjambor@suse.cz>
2781 * tree-sra.c (struct access): New field grp_same_access_path.
2782 (dump_access): Dump it.
2783 (build_reconstructed_reference): New function.
2784 (build_ref_for_model): Use it if possible.
2785 (path_comparable_for_same_access): New function.
2786 (same_access_path_p): Likewise.
2787 (sort_and_splice_var_accesses): Set the new flag.
2788 (analyze_access_subtree): Likewise.
2789 (propagate_subaccesses_across_link): Propagate zero value of the new
2790 flag down the access tree.
2792 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
2794 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
2795 * config/gcn/gcn.opt (gpu_type): Add gfx906.
2796 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
2797 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
2800 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2802 PR tree-optimization/90332
2803 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
2804 Handle VALS containing two vectors.
2805 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
2807 (@aarch64_combinez<mode>): ... This.
2808 (*aarch64_combinez_be<mode>): Rename to...
2809 (@aarch64_combinez_be<mode>): ... This.
2810 (vec_init<mode><Vhalf>): New define_expand.
2811 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
2813 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2815 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
2816 library functions only when not optimizing for size.
2817 (ashlsi3): Likewise.
2818 (ashrhi3): Likewise.
2819 (ashrsi3): Likewise.
2820 (lshrhi3): Likewise.
2821 (lshrsi3): Likewise.
2823 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
2825 PR rtl-optimization/88751
2826 * ira.c (ira): Use the number of the actually referenced registers
2827 when calculating the threshold.
2829 2019-06-06 Jakub Jelinek <jakub@redhat.com>
2831 * configure: Regenerate.
2833 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2835 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
2836 register if it is in memory, so the shift can be emulated with a rotate
2838 (ashrhi3): Likewise.
2839 (lshrhi3): Likewise.
2841 2019-06-06 Martin Liska <mliska@suse.cz>
2843 PR tree-optimization/87954
2844 * match.pd: Simplify mult where both arguments are 0 or 1.
2846 2019-06-06 Richard Biener <rguenther@suse.de>
2848 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
2849 put equivalences on UNDEFINED ranges.
2850 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
2851 Make sure to drop defs of stmts added during simplification
2854 2019-06-06 Richard Biener <rguenther@suse.de>
2856 * tree-ssa-structalias.c: Include tree-cfg.h.
2857 (make_heapvar): Do not make heap vars artificial.
2858 (find_func_aliases_for_builtin_call): Handle stack allocation
2860 (find_func_aliases): Delay processing of simple enough returns
2862 (set_uids_in_ptset): Adjust.
2863 (find_what_var_points_to): Likewise.
2864 (solve_constraints): Do not dump points-to sets here.
2865 (compute_points_to_sets): Post-process return statements,
2866 amending the escaped solution. Dump points-to sets afterwards.
2867 (ipa_pta_execute): Dump points-to sets.
2869 2019-06-06 Martin Liska <mliska@suse.cz>
2872 * doc/install.texi: Fix HTML headers and
2873 titles for 'Installing GCC' pages.
2875 2019-06-06 Martin Liska <mliska@suse.cz>
2877 * ipa-icf-gimple.h (dump_message_1): Remove.
2878 (dump_message): Likewise.
2879 (return_false_with_message_1): Print also file.
2880 (return_false_with_msg): Likewise.
2881 (return_with_result): Likewise.
2882 (return_with_debug): Likewise.
2883 * ipa-icf.c (sem_function::equals_private): Remove call
2886 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
2888 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
2889 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
2890 memory operand for it.
2891 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
2893 2019-06-05 Martin Sebor <msebor@redhat.com>
2895 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
2896 Adjust quoting and hyphenation.
2897 * convert.c (convert_to_real_1): Same.
2898 * gcc.c (driver_wrong_lang_callback): Same.
2899 (driver::handle_unrecognized_options): Same.
2900 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
2901 * opts-common.c (cmdline_handle_error): Same.
2902 (read_cmdline_option): Same.
2903 * opts-global.c (complain_wrong_lang): Same.
2904 (print_ignored_options): Same.
2905 (handle_common_deferred_options): Same.
2906 * pretty-print.h: Same.
2907 * print-rtl.c (debug_bb_n_slim): Same.
2908 * sched-rgn.c (make_pass_sched_fusion): Same.
2909 * tree-cfg.c (verify_gimple_assign_unary): Same.
2910 (verify_gimple_label): Same.
2911 * tree-ssa-operands.c (verify_ssa_operands): Same.
2912 * varasm.c (do_assemble_alias): Same.
2913 (assemble_alias): Same.
2915 2019-06-05 Richard Henderson <rth@twiddle.net>
2917 * config/alpha/alpha.c (direct_return): Move down after
2918 struct machine_function definition; use saved frame_size;
2920 (struct machine_function): Add sa_mask, sa_size, frame_size.
2921 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
2922 (alpha_compute_frame_layout): ... new function.
2923 (TARGET_COMPUTE_FRAME_LAYOUT): New.
2924 (alpha_initial_elimination_offset): Use saved sa_size.
2925 (alpha_vms_initial_elimination_offset): Likewise.
2926 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
2927 (alpha_expand_prologue): Use saved frame data. Merge integer
2928 and fp register save loops.
2929 (alpha_expand_epilogue): Likewise.
2930 (alpha_start_function): Use saved frame data.
2931 * config/alpha/alpha-protos.h (direct_return): Update.
2932 (alpha_sa_size): Remove.
2934 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
2936 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
2937 multiplication by a power-of-two value.
2938 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
2939 and turn the modulo operation into a masking operation.
2941 2019-06-05 Jakub Jelinek <jakub@redhat.com>
2944 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
2945 with VOIDmode inner operands.
2947 2019-06-05 Richard Biener <rguenther@suse.de>
2950 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
2951 turn an expression graph into a tree.
2953 2019-06-05 Jakub Jelinek <jakub@redhat.com>
2955 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
2957 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
2958 treat it like explicit monotonic schedule modifier.
2959 (expand_omp_for): Initialize has_lastprivate_conditional.
2960 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
2963 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
2964 references, lookup in in hash map MEM_REF operand instead of the
2966 (lower_omp_1): When looking for lastprivate conditional assignments,
2967 handle MEM_REFs with REFERENCE_TYPE operands.
2969 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
2970 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
2971 and references a VLA. Handle references to non-VLAs if is_simd
2972 all privatization clauses like reductions.
2973 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
2974 If omp_is_reference, use always omp simd arrays and set
2975 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
2976 fails, emit reference initialization.
2978 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
2981 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
2982 _mm_mask_fpclass_sd_mask): New intrinsics.
2983 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
2984 * config/i386/i386-builtin.def
2985 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
2987 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
2988 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
2989 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
2990 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
2991 case QI_FTYPE_V2SF_INT): Ditto.
2992 * config/i386/sse.md
2993 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
2994 Extended to insnstructions with mask operands.
2996 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
2998 * config/rs6000/constraints.md (define_register_constraint "wp"):
3000 (define_register_constraint "wq"): Delete.
3001 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
3002 (rs6000_init_hard_regno_mode_ok): Adjust.
3003 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
3004 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
3005 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
3006 (define_mode_attr VSa): Delete.
3007 (define_mode_attr VSisa): New.
3008 (rest of file): Adjust.
3009 * doc/md.texi (Machine Constraints): Adjust.
3011 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
3013 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
3014 (define_attr "enabled"): Handle those new isa values.
3016 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
3018 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
3019 (define_mode_attr VSr5): Delete.
3020 (define_mode_attr VStype_sqrt): Delete.
3021 (define_mode_iterator VSX_SPDP): Delete.
3022 (define_mode_attr VS_spdp_res): Delete.
3023 (define_mode_attr VS_spdp_insn): Delete.
3024 (define_mode_attr VS_spdp_type): Delete.
3025 (*vsx_sqrt<mode>2): Adjust.
3026 (vsx_<VS_spdp_insn>): Delete, split to...
3027 (vsx_xscvdpsp): ... this. New. And...
3028 (vsx_xvcvspdp): ... this. New. And...
3029 (vsx_xvcvdpsp): ... this. New.
3031 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
3033 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
3035 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
3036 (rest of file): Adjust.
3038 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
3040 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
3041 (vsx_extract_<mode>_var): Ditto.
3043 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
3045 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
3048 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
3050 * config/rs6000/constraints.md (define_register_constraint "ww"):
3052 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
3053 (rs6000_init_hard_regno_mode_ok): Adjust.
3054 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
3055 RS6000_CONSTRAINT_ww.
3056 * config/rs6000/rs6000.md: Adjust.
3057 * config/rs6000/vsx.md: Adjust.
3058 * doc/md.texi (Machine Constraints): Adjust.
3060 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
3062 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
3063 (define_mode_attr sd): New.
3064 (define_mode_attr s): New.
3065 (define_mode_attr Ftrad): Delete.
3066 (define_mode_attr Fvsx): Delete.
3067 (define_mode_attr Fs): Delete.
3068 (rest of file): Use the new mode attributes.
3069 * config.rs6000/vsx.md: Use the new mode attributes.
3071 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
3073 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
3076 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
3078 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
3079 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
3080 used with VSX_B, VSX_D, or VSX_F, with just "wa".
3082 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
3085 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
3086 C++ with strict ANSI requirements.
3088 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
3090 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
3091 computations when step is 1.
3093 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
3095 * config/rs6000/constraints.md (define_register_constraint "wf"):
3097 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
3098 (rs6000_init_hard_regno_mode_ok): Adjust.
3099 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
3100 RS6000_CONSTRAINT_wf.
3101 * config/rs6000/rs6000.md: Adjust.
3102 * config/rs6000/vsx.md: Adjust.
3103 * doc/md.texi (Machine Constraints): Adjust.
3105 2019-06-04 Andrew Pinski <apinski@marvell.com>
3107 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
3110 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
3112 * config/rs6000/constraints.md (define_register_constraint "wd"):
3114 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
3115 (rs6000_init_hard_regno_mode_ok): Adjust.
3116 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
3117 RS6000_CONSTRAINT_wd.
3118 * config/rs6000/rs6000.md: Adjust.
3119 * config/rs6000/vsx.md: Adjust.
3120 * doc/md.texi (Machine Constraints): Adjust.
3122 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
3124 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
3125 (rest of file): Adjust.
3127 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
3129 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
3130 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
3131 (vsx_splat_<mode>_reg): Adjust.
3133 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
3135 * config/rs6000/constraints.md (define_register_constraint "ws"):
3137 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
3138 (rs6000_init_hard_regno_mode_ok): Adjust.
3139 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
3140 RS6000_CONSTRAINT_ws.
3141 * config/rs6000/rs6000.md: Adjust.
3142 * config/rs6000/vsx.md: Adjust.
3143 * doc/md.texi (Machine Constraints): Adjust.
3145 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
3147 * config/rs6000/constraints.md (define_register_constraint "wv"):
3149 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
3150 (rs6000_init_hard_regno_mode_ok): Adjust.
3151 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
3152 RS6000_CONSTRAINT_wv.
3153 * config/rs6000/rs6000.md: Adjust.
3154 * config/rs6000/vsx.md: Adjust.
3155 * doc/md.texi (Machine Constraints): Adjust.
3157 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
3159 * config/rs6000/constraints.md (define_register_constraint "wi"):
3161 (define_register_constraint "wt"): Delete.
3162 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
3163 (rs6000_init_hard_regno_mode_ok): Adjust.
3164 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
3165 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
3166 * config/rs6000/rs6000.md: Adjust.
3167 * config/rs6000/vsx.md: Adjust.
3168 * doc/md.texi (Machine Constraints): Adjust.
3170 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
3172 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
3174 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
3175 default_elf_asm_output_external.
3177 2019-06-04 Martin Liska <mliska@suse.cz>
3179 * ipa-icf.c (INCLUDE_LIST): Remove.
3180 (sem_item_optimizer::execute): Remove call to init_wpa.
3181 * ipa-icf.h (init_wpa): Remove.
3183 2019-06-04 Jakub Jelinek <jakub@redhat.com>
3185 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
3186 conditional on combined for simd.
3187 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
3189 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
3190 constructs, don't remove lastprivate_conditional_map, but instead set
3191 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
3192 to parent construct temporaries.
3193 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
3194 like !ctx->lastprivate_conditional_map.
3195 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
3196 use up->outer context instead of up.
3197 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
3198 gimple_omp_for_combined_p.
3199 (expand_omp_for_static_nochunk): Likewise.
3200 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
3201 probably moved over into expand_omp_for_generic rather than being copied
3204 2019-06-04 Martin Liska <mliska@suse.cz>
3206 * value-prof.c (dump_histogram_value): Fix typo.
3207 (gimple_mod_subtract_transform): Likewise.
3209 2019-06-04 Richard Biener <rguenther@suse.de>
3212 * tree-chrec.c (chrec_contains_symbols): Add to visited.
3213 (tree_contains_chrecs): Likewise.
3214 (chrec_contains_symbols_defined_in_loop): Move here and avoid
3215 exponential behaivor from ...
3216 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
3218 (expression_expensive_p): Avoid exponential behavior and compute
3219 expanded size, rejecting any expansion.
3220 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
3221 (idx_contains_abnormal_ssa_name_p): Likewise.
3222 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
3223 (contains_abnormal_ssa_name_p): Simplify and use
3224 walk_tree_without_duplicates.
3226 2019-06-04 Richard Biener <rguenther@suse.de>
3228 PR tree-optimization/90738
3230 2019-06-03 Richard Biener <rguenther@suse.de>
3232 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
3233 full reference tree and record in ref->ref.
3234 (vn_reference_lookup_3): Pass in original ref to
3235 ao_ref_init_from_vn_reference.
3236 (vn_reference_lookup): Likewise.
3237 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
3238 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
3239 Handle non-decl bases in the original reference.
3241 2019-06-04 Martin Liska <mliska@suse.cz>
3243 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
3244 number of references.
3245 (sem_item_optimizer::do_congruence_step):
3246 (sem_item_optimizer::worklist_push): Dump how references
3248 (sem_item_optimizer::worklist_pop): Use heap.
3249 (sem_item_optimizer::process_cong_reduction): Likewise.
3250 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
3252 2019-06-04 Martin Liska <mliska@suse.cz>
3254 * ipa-icf.h (struct sem_usage_pair_hash): New.
3255 (sem_usage_pair_hash::hash): Likewise.
3256 (sem_usage_pair_hash::equal): Likewise.
3257 (struct sem_usage_hash): Likewise.
3258 * ipa-icf.c (sem_item::sem_item): Initialize
3259 referenced_by_count.
3260 (sem_item::add_reference): Register a reference
3261 in ref_map and not in target->usages.
3262 (sem_item::setup): Remove initialization of
3264 (sem_item::~sem_item): Remove usage of dead vectors.
3265 (sem_item::dump): Remove dump of references.
3266 (sem_item_optimizer::sem_item_optimizer): Initialize
3268 (sem_item_optimizer::read_section): Remove useless
3270 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
3271 (sem_item_optimizer::build_graph): Pass m_references
3273 (sem_item_optimizer::verify_classes): Remove usage of dead
3275 (sem_item_optimizer::traverse_congruence_split): Return true
3276 when a class is split.
3277 (sem_item_optimizer::do_congruence_step_for_index): Use
3278 hash_map for look up of (sem_item *, index). That brings
3279 significant speed up.
3280 (sem_item_optimizer::do_congruence_step): Return true
3281 when a split is done.
3282 (congruence_class::is_class_used): Use referenced_by_count.
3284 2019-06-04 Alan Modra <amodra@gmail.com>
3287 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
3290 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
3292 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
3293 * config/rs6000/rs6000.c (direct_move_p): Adjust.
3294 (rs6000_secondary_reload_simple_move): Adjust.
3295 (rs6000_opt_masks): Neuter the "mfpgpr" option.
3296 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
3297 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
3300 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
3301 (floatunssi<mode>2_lfiwzx): Adjust.
3302 (fix_trunc<mode>si2_stfiwx): Adjust.
3303 (fixuns_trunc<mode>si2_stfiwx): Adjust.
3304 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
3305 (mfpgpr): Mark as deprecated.
3306 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
3307 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
3308 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
3310 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
3312 * config/rs6000/constraints.md (define_register_constraint "wg"):
3314 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
3315 RS6000_CONSTRAINT_wg.
3316 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
3317 (rs6000_init_hard_regno_mode_ok): Adjust.
3318 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
3319 Delete "wg" alternatives.
3320 * doc/md.texi (Machine Constraints): Adjust.
3322 2019-06-03 Alan Modra <amodra@gmail.com>
3324 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
3325 (get_uncond_jump_length): Assert length less than INT_MAX and
3328 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
3331 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
3333 (expand_builtin_nonlocal_goto): Likewise.
3335 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
3337 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
3338 (aarch64_asm_output_external): Declare.
3339 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
3340 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
3341 (aarch64_asm_output_alias): New.
3342 (aarch64_asm_output_external): New.
3343 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
3344 (ASM_OUTPUT_EXTERNAL): Define.
3346 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
3347 * tree-vrp.h (value_range_base::nonzero_p): New.
3348 (value_range_base::set_nonnull): Rename to...
3349 (value_range_base::set_nonzero): ...this.
3350 (value_range_base::set_null): Rename to...
3351 (value_range_base::set_zero): ...this.
3352 (value_range::set_nonnull): Remove.
3353 (value_range::set_null): Remove.
3354 * tree-vrp.c (range_is_null): Remove.
3355 (range_is_nonnull): Remove.
3356 (extract_range_from_binary_expr): Use value_range_base::*zero_p
3357 instead of range_is_*null.
3358 (extract_range_from_unary_expr): Same.
3359 (value_range_base::set_nonnull): Rename to...
3360 (value_range_base::set_nonzero): ...this.
3361 (value_range::set_nonnull): Remove.
3362 (value_range_base::set_null): Rename to...
3363 (value_range_base::set_zero): ...this.
3364 (value_range::set_null): Remove.
3365 (extract_range_from_binary_expr): Rename set_*null uses to
3367 (extract_range_from_unary_expr): Same.
3368 (union_helper): Same.
3369 * vr-values.c (get_value_range): Use set_*zero instead of
3371 (vr_values::extract_range_from_binary_expr): Same.
3372 (vr_values::extract_range_basic): Same.
3374 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
3377 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
3379 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3381 * config/aarch64/iterators.md (MAX_OPP): New code attr.
3382 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Rename to...
3383 (aarch64_<su>abd<mode>_3): ... This.
3384 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
3386 2019-06-03 Richard Biener <rguenther@suse.de>
3388 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
3389 full reference tree and record in ref->ref.
3390 (vn_reference_lookup_3): Pass in original ref to
3391 ao_ref_init_from_vn_reference.
3392 (vn_reference_lookup): Likewise.
3393 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
3394 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
3395 Handle non-decl bases in the original reference.
3397 2019-06-03 Martin Liska <mliska@suse.cz>
3399 * doc/generic.texi: Remove Java Trees.
3401 2019-06-03 Martin Liska <mliska@suse.cz>
3403 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
3404 returns 0 when operands are equal.
3406 2019-06-03 Richard Biener <rguenther@suse.de>
3408 PR tree-optimization/90716
3409 * tree-loop-distribution.c (destroy_loop): Process blocks in
3412 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3415 * vector-builder.h (vector_builder::count_dups): New method.
3416 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
3418 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
3419 (vec_init<mode><Vel>): New pattern.
3420 * config/aarch64/aarch64.c (emit_insr): New function.
3421 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
3422 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
3423 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
3424 (aarch64_sve_expand_vector_init): Define two overloaded functions.
3426 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
3428 PR tree-optimization/90681
3429 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
3430 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
3431 special case for SLP, but fail on non-groupped loads.
3433 2019-06-03 Martin Liska <mliska@suse.cz>
3435 * cfg.c (debug): Use TDF_DETAILS for debug and
3436 print edge info only once.
3438 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
3441 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
3443 2019-06-01 Martin Sebor <msebor@redhat.com>
3446 * tree-pretty-print.c (dump_generic_node): Add parentheses.
3448 2019-05-31 Jan Hubicka <jh@suse.cz>
3450 * alias.c: Include ipa-utils.h.
3451 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
3452 * ipa-devirt.c (prevailing_odr_type): New.
3453 * ipa-utils.h (previaling_odr_type): Declare.
3455 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
3456 Hongtao Liu <hongtao.liu@intel.com>
3459 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
3460 NOTE_INSN_DELETED_LABEL check.
3462 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
3463 Robert Suchanek <robert.suchanek@mips.com>
3465 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
3466 and 3rd operands of the fmadd/fmsub/maddv builtin.
3468 2019-05-31 Jakub Jelinek <jakub@redhat.com>
3470 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
3471 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
3472 on OMP_SIMD if not nested inside of worksharing loop that also has
3473 lastprivate conditional clause for the same decl.
3474 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
3475 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
3477 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
3479 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
3481 (lower_lastprivate_clauses): Likewise.
3482 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
3483 calling lower_rec_input_clauses.
3484 (lower_omp_for): Likewise.
3485 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
3486 clause on simd construct.
3487 * omp-expand.c (expand_omp_simd): Initialize cond_var if
3488 OMP_CLAUSE__CONDTEMP_ clause is present.
3490 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
3493 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
3496 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
3497 TEX_D32, TEX_D64 or TEX_D128.
3499 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
3501 * match.pd (~(vec?cst1:cst2)): New transformation.
3503 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
3505 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
3506 ((size_t)(A /[ex] B) CMP C): New transformation.
3508 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
3510 * doc/md.texi: Document define_insn_and_rewrite.
3511 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
3512 * gensupport.c (queue_elem): Update comment.
3513 (replace_operands_with_dups): New function.
3514 (gen_rewrite_sequence): Likewise.
3515 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
3516 * read-rtl.c (apply_subst_iterator): Likewise.
3517 (add_condition_to_rtx, named_rtx_p): Likewise.
3518 (rtx_reader::read_rtx_operand): Likewise.
3519 * config/aarch64/aarch64-sve.md
3520 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
3521 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
3522 define_insn_and_rewrite.
3523 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
3524 Remove separate define_split.
3526 2019-05-31 Jan Hubicka <jh@suse.cz>
3528 * tree-ssa-alias.c (type_has_components_p): New function.
3529 (aliasing_component_refs_p): Use it.
3531 2019-05-31 Martin Liska <mliska@suse.cz>
3533 * gdbhooks.py: Add const_tree to TreePrinter.
3535 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
3538 * common.opt (feliminate-unused-debug-symbols): Enable by default.
3539 * doc/invoke.texi (Debugging Options): Document new default of
3540 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
3542 2019-05-31 Jakub Jelinek <jakub@redhat.com>
3544 PR tree-optimization/90671
3545 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
3546 template_block used to be empty on the first call, don't use
3547 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
3548 seq with bb_seq and set it with set_bb_seq.
3550 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
3552 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
3554 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
3555 Michael Meissner <meissner@linux.ibm.com>
3557 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
3558 (prefixed_mem_operand): Likewise.
3559 (non_prefixed_mem_operand): Likewise.
3560 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
3562 * config/rs6000/rs6000.c (print_operand_address): Handle
3563 PC-relative addresses.
3564 (mode_supports_prefixed_address_p): New function.
3565 (rs6000_prefixed_address): New function.
3566 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
3567 (SYMBOL_REF_PCREL_P): Likewise.
3569 2019-05-30 Jakub Jelinek <jakub@redhat.com>
3571 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
3572 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
3573 (gimplify_omp_for): If worksharing loop with lastprivate conditional
3574 is nested inside of parallel region, add _condtemp_ clause to both.
3575 * tree-nested.c (convert_nonlocal_omp_clauses,
3576 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
3578 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
3580 * omp-general.c (omp_extract_for_data): Compute it.
3581 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
3582 (lower_rec_input_clauses): Likewise.
3583 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
3584 clause is already present, just add one further one after it.
3585 (lower_lastprivate_clauses): Handle cond_ptr with array type.
3586 (lower_send_shared_vars): Clear _condtemp_ vars.
3587 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
3588 or section or taskgroup.
3589 * omp-expand.c (determine_parallel_type): Disallow combining only if
3590 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
3591 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
3592 (expand_omp_for_generic, expand_omp_for_static_nochunk,
3593 expand_omp_for_static_chunk, expand_omp_for): Use
3594 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
3595 determine if a special set of API routines are needed and if condtemp
3596 needs to be initialized, while always initialize cond_var if
3597 fd->lastprivate_conditional is non-zero.
3599 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
3600 Michael Meissner <meissner@linux.ibm.com>
3602 * config/rs6000/constraints.md (eI): New constraint.
3603 * config/rs6000/predicates.md (cint34_operand): New predicate.
3604 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
3605 (SIGNED_34BIT_OFFSET_P): Likewise.
3606 * doc/md.texi (eI): Document constraint.
3608 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
3610 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
3612 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
3613 Michael Meissner <meissner@linux.ibm.com>
3615 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
3616 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
3617 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
3618 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
3619 (OTHER_FUTURE_MASKS): Likewise.
3620 (POWERPC_MASKS): Likewise.
3621 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
3622 specified without -mprefixed-addr or -mcpu=future. Error if
3623 -mprefixed-addr is specified without -mcpu=future.
3624 (rs6000_opt_masks): Add entry for prefixed-addr.
3625 * rs6000.opt (mprefixed-addr): New option.
3627 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
3629 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
3630 cfun->is_thunk check.
3632 2019-05-30 Jakub Jelinek <jakub@redhat.com>
3634 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
3637 2019-05-30 Martin Liska <mliska@suse.cz>
3639 * gdbinit.in: Fix 'ptc' command. Add trt
3640 that prints TREE_TYPE($).
3642 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
3643 Alan Modra <amodra@gmail.com>
3645 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
3647 (rs6000_indirect_call_template_1): ...and here.
3648 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
3649 plt16_ha, plt16_lo, mtctr indirect calls. Use
3651 (rs6000_decl_ok_for_sibcall): New function.
3652 (rs6000_function_ok_for_sibcall): Refactor.
3653 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
3654 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
3655 when pcrel. Reorganize.
3656 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
3657 * rs6000.h (rs6000_pltseq_enum): New enum.
3658 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
3659 (*pltseq_tocsave): Use rs6000_pltseq_enum.
3660 (*pltseq_plt16_ha): Likewise.
3661 (*pltseq_plt16_lo): Likewise.
3662 (*pltseq_mtctr): Likewise.
3663 (*pltseq_plt_pcrel): New insn.
3664 (*call_local_aix): Handle @notoc calls.
3665 (*call_value_local_aix): Likewise.
3666 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
3667 (*call_value_nonlocal_aix): Likewise.
3668 (*call_indirect_pcrel): New insn.
3669 (*call_value_indirect_pcrel): Likewise.
3672 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
3674 * config/i386/sse.md (*save_multiple<mode>): Rename from
3675 save_multiple<mode>.
3676 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
3677 (*restore_multiple_and_return<mode>): Rename from
3678 restore_multiple_and_return<mode>.
3679 (*restore_multiple_leave_return<mode>): Rename from
3680 restore_multiple_leave_return<mode>.
3682 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
3684 * config.gcc (rx-*-linux*): New target.
3685 * config/rx/elf.opt: New file.
3686 * config/rx/linux.h: Likewise.
3687 * config/rx/t-linux: Likewise.
3688 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
3690 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
3691 (ASM_APP_OFF): Likewise.
3692 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
3695 2019-05-29 Jan Hubicka <jh@suse.cz>
3697 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
3698 variants are pointer equivalent.
3700 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
3702 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
3703 * config/aarch64/aarch64-sve2.md: New file.
3704 (<u>avg<mode>3_floor): New pattern.
3705 (<u>avg<mode>3_ceil): Likewise.
3706 (*<sur>h<addsub><mode>): Likewise.
3707 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
3708 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
3710 2019-05-29 Jakub Jelinek <jakub@redhat.com>
3713 * optc-save-gen.awk: In cl_optimization_print, use correct condition
3714 for var_opt_string printing. In cl_optimization_print_diff, print
3715 (null) instead of invoking undefined behavior if one of the
3716 var_opt_string pointers is NULL and use && instead of first || in the
3717 guarding condition. For var_target_other options, handle const char *
3718 target variables similarly to const char * optimize node variables.
3720 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
3722 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
3723 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
3724 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
3725 Add autib1716 and pacib1716 initialisation.
3726 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
3727 for autib1716 and pacib1716.
3728 * config/aarch64/aarch64-protos.h (aarch64_key_type,
3729 aarch64_post_cfi_startproc): Define.
3730 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
3731 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
3732 aarch64_handle_pac_ret_protection): Set default sign key to A.
3733 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
3734 aarch64_expand_prologue): Add check for b-key.
3735 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
3736 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
3737 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
3738 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
3739 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
3740 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
3741 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
3742 * config/aarch64/aarch64.md (do_return): Add check for b-key.
3743 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
3744 pauth_hint_num_a with pauth_hint_num.
3745 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
3746 pauth_hint_num_a with pauth_hint_num.
3747 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
3748 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
3749 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
3750 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
3751 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
3752 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
3753 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
3754 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
3755 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
3756 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
3757 UNSPEC_AUTIA1716 respectively.
3758 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to pauth_hint_num
3759 and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP, UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
3760 * doc/invoke.texi (-mbranch-protection): Add b-key type.
3761 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
3762 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
3764 2019-05-29 Jakub Jelinek <jakub@redhat.com>
3766 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
3767 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
3768 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
3769 explicit clause on combined parallel into implicit shared clause.
3770 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
3771 and firstprivate if the decl has one too from combined parallel to
3772 the worksharing construct.
3774 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
3775 Michael Meissner <meissner@linux.ibm.com>
3777 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
3779 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
3781 * rtl.h (LABEL_REF_P): New #define.
3783 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
3785 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
3787 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
3789 * internal-fn.c: Marked mask_load_direct as vectorizable.
3790 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
3791 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
3792 combined even if masks different with allow_slp_p param.
3793 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
3794 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
3795 dissolve SLP-only vectorizable groups when SLP has been discarded.
3796 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
3797 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
3799 (vect_build_slp_tree_1): Fixed comment typo.
3800 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
3801 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
3803 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
3805 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
3807 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3809 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
3810 Remove obsolete use_thunk reference.
3811 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
3812 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
3813 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
3814 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
3815 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
3816 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
3817 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
3818 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
3819 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
3821 2019-05-28 Nathan Sidwell <nathan@acm.org>
3823 * tree.h (IDENTIFIER_ANON_P): New.
3824 (anon_aggrname_format, anon_aggname_p): Don't declare.
3825 (make_anon_name): Declare.
3826 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
3827 (hash_tree): Likewise.
3828 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
3829 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
3830 (anon_cnt, make_anon_name): New.
3832 2019-05-28 Martin Liska <mliska@suse.cz>
3835 * opts-global.c (decode_options): Print help for all
3836 help_option_arguments.
3837 * opts.c (print_help): Add new argument.
3838 (common_handle_option): Remember all values into
3839 help_option_arguments.
3840 * opts.h (print_help): Add new argument.
3842 2019-05-28 Martin Liska <mliska@suse.cz>
3845 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
3846 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
3847 (func_checker::compare_bb): Call compare_loops.
3849 2019-05-27 Jakub Jelinek <jakub@redhat.com>
3851 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
3852 on sections construct.
3853 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
3855 (lower_omp_sections): Handle lastprivate conditional.
3856 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
3857 lastprivate_conditional_map.
3858 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
3860 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
3861 critical, taskgroup and section regions when looking for a region
3862 with non-NULL lastprivate_conditional_map.
3864 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
3866 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
3867 (*ix86_gen_sub3): Ditto.
3868 (*ix86_gen_sub3_carry): Ditto.
3869 (*ix86_gen_one_cmpl2): Ditto.
3870 (*ix86_gen_andsp): Ditto.
3871 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
3872 (gen_and2_insn): New static function.
3873 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
3874 Use gen_add3_insn instead of ix86_gen_add3.
3875 (ix86_expand_split_stack_prologue): Use gen_add2_insn
3876 instead of ix86_gen_add3.
3877 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
3878 Use gen_sub3_insn instead of ix86_gen_sub3.
3879 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
3880 instead of ix86_gen_add3.
3881 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
3882 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
3883 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
3884 * config/i386/i386-options.c (ix86_option_override_internal):
3885 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
3886 ix86_gen_one_cmpl2 and ix86_gen_andsp.
3888 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
3890 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
3891 and DW_OP_GNU_const_index opcodes.
3893 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
3895 * config/i386/i386.h (STACK_SIZE_MODE): Define.
3897 2019-05-27 Richard Biener <rguenther@suse.de>
3899 PR tree-optimization/90637
3900 * tree-ssa-sink.c (statement_sink_location): Honor the
3901 computed sink location for single-uses.
3903 2019-05-27 Richard Biener <rguenther@suse.de>
3906 * match.pd (vec_perm): Avoid clobbering op0 when not generating
3909 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
3911 * config/i386/i386.md (@sub<mode>3_carry): Rename
3912 from sub<mode>3_carry.
3913 (@leave_<mode>): New expander.
3914 (*leave): Rename from leave.
3915 (*leave_rex64): Rename from leave_rex64.
3916 (@monitorx_<mode>): Rename from monitorx_<mode>.
3917 (@clzero_<mode>): Rename from clzero_<mode>.
3918 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
3919 from sse3_monitor_<mode>.
3920 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
3921 (*ix86_gen_leave): Ditto.
3922 (*ix86_gen_monitor): Ditto.
3923 (*ix86_gen_monitorx): Ditto.
3924 (*ix86_gen_clzero): Ditto.
3925 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
3926 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
3927 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
3928 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
3929 Use gen_sse3_monitor instead of ix86_gen_monitor.
3930 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
3931 instead of ix86_gen_monitorx.
3932 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
3933 instead of ix86_gen_clzero.
3934 * config/i386/i386-options.c (ix86_option_override_internal):
3935 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
3936 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
3938 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
3940 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
3941 Rename from tls_global_dynamic_64_<mode>.
3942 (@tls_local_dynamic_base_64_<mode>): Rename from
3943 tls_local_dynamic_base_64_<mode>.
3944 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
3945 Remove indirect function.
3946 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
3947 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
3948 instead of ix86_gen_tls_global_dynamic_64.
3949 Use gen_tls_local_dynamic_base_64 instead of
3950 ix86_gen_tls_local_dynamic_base_64.
3951 * config/i386/i386-options.c (ix86_option_override_internal):
3952 Do not initialize ix86_gen_tls_global_dynamic_64 and
3953 ix86_gen_tls_local_dynamic_base_64.
3955 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
3957 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
3958 Rename from pro_epilogue_adjust_stack_<mode>_add.
3959 (@pro_epilogue_adjust_stack_sub_<mode>)
3960 Rename from pro_epilogue_adjust_stack_<mode>_sub.
3961 (@allocate_stack_worker_probe_<mode>):
3962 Rename from allocate_stack_worker_probe_<mode>.
3963 (allocate_stack): Use gen_allocate_stack_worker_probe.
3964 (probe_stack): Use gen_probe_stack_1.
3965 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
3966 (@adjust_stack_and_probe_<mode>): Rename from
3967 adjust_stack_and_probe<mode>.
3968 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
3969 (stack_protect_set): Use gen_stack_protect_set_1.
3970 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
3971 (stack_protect_test): Use gen_stack_protect_test_1.
3972 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
3973 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
3974 Remove indirect function.
3975 (*ix86_gen_adjust_stack_and_probe): Ditto.
3976 (*ix86_gen_probe_stack_range): Ditto.
3977 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
3978 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
3979 (ix86_adjust_stack_and_probe_stack_clash): Use
3980 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
3981 (ix86_adjust_stack_and_probe): Ditto.
3982 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
3983 of ix86_gen_probe_stack_range.
3984 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
3985 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
3986 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
3987 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
3988 CODE_FOR_stack_protect_test_{si,di}.
3989 * config/i386/i386-options.c (ix86_option_override_internal):
3990 Do not initialize ix86_gen_allocate_stack_worker,
3991 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
3993 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
3995 * doc/invoke.texi (Link Options): Many editorial changes around
3998 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4000 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
4001 pre-Solaris 11 referene and most Studio compiler details.
4003 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
4006 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
4007 DImode to SImode in floating-point registers on 64-bit target.
4008 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
4009 register_operand in xmpyu patterns.
4011 2019-05-24 Jakub Jelinek <jakub@redhat.com>
4013 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
4014 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
4015 OMP_CLAUSE__REDUCTEMP_.
4016 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
4017 OMP_CLAUSE__CONDTEMP_.
4018 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
4019 * tree-pretty-print.c (dump_omp_clause): Likewise.
4020 * tree-nested.c (convert_nonlocal_omp_clauses,
4021 convert_local_omp_clauses): Likewise.
4022 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
4023 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
4024 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
4026 (gimplify_omp_for): Warn and disable conditional modifier from
4027 lastprivate on loop iterators.
4028 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
4030 * omp-general.c (omp_extract_for_data): Initialize it.
4031 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
4033 (delete_omp_context): Delete it.
4034 (lower_lastprivate_conditional_clauses): New function.
4035 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
4036 handle lastprivate conditional clauses.
4037 (lower_reduction_clauses): Add CLIST argument, emit it into
4038 the critical section if any.
4039 (lower_omp_sections): Adjust lower_lastprivate_clauses and
4040 lower_reduction_clauses callers.
4041 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
4042 to lower_lastprivate_clauses.
4043 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
4044 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
4045 clist into a critical section if not emitted there already by
4046 lower_reduction_clauses.
4047 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
4049 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
4050 conditional variables.
4051 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
4053 (expand_omp_for_generic, expand_omp_for_static_nochunk,
4054 expand_omp_for_static_chunk): Handle lastprivate conditional.
4055 (expand_omp_for): Handle fd.lastprivate_conditional like
4058 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
4060 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
4061 kernel does not exit cleanly.
4062 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
4064 2019-05-24 Jason Merrill <jason@redhat.com>
4067 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
4069 2019-05-24 Richard Biener <rguenther@suse.de>
4072 * tree-loop-distribution.c (struct partition): Add location
4074 (partition_alloc): Initialize all fields.
4075 (generate_memset_builtin): Use the location recorded in the
4076 partition for the generated call.
4077 (generate_memcpy_builtin): Likewise.
4078 (classify_partition): Record the location of a single store
4079 as location for the partition.
4081 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
4083 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
4086 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
4089 * common/config/aarch64/aarch64-common.c
4090 (aarch64_rewrite_selected_cpu): Change local temporary variable
4091 type from unsigned long to uint64_t.
4092 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
4093 aarch64_get_extension_string_for_isa_flags): Change declaration to
4094 match new definition by replacing unsigned long with uint64_t.
4096 2019-05-24 Jakub Jelinek <jakub@redhat.com>
4099 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
4100 gen_attr_type just once instead of 4-7 times. Formatting fixes.
4101 Handle stack_protect_test_<mode> codegen similarly to corresponding
4104 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
4106 * config/i386/darwin.h: Reject -mfentry*.
4107 * doc/sourcebuild.texi: Document mfentry target support.
4109 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
4111 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
4112 Rename to rs6000_global_entry_point_prologue_needed_p. Return
4113 false for PC-relative functions.
4114 (rs6000_output_function_prologue): Change called function name to
4115 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
4116 name,1" for PC-relative functions.
4117 (rs6000_elf_declare_function_name): Change called function name to
4118 rs6000_global_entry_point_prologue_needed_p.
4120 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
4123 * config/i386/i386.c (gen_rtx_cost):
4124 Use ix86_tune_cost instead of ix86_cost.
4126 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
4127 Michael Meissner <meissner@linux.ibm.com>
4128 Segher Boessenkool <segher@kernel.crashing.org>
4130 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
4132 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
4133 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
4134 (rs6000_fndecl_pcrel_p): Likewise.
4135 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
4136 error if -mpcrel is requested without -mcpu=future.
4137 (rs6000_opt_masks): Add entry for pcrel.
4138 (rs6000_fndecl_pcrel_p): New function.
4139 (rs6000_pcrel_p): Likewise.
4140 * config/rs6000/rs6000.opt (mpcrel): New option.
4141 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
4143 2019-05-23 Jan Hubicka <jh@suse.cz>
4144 Martin Liska <mliska@suse.cz>
4146 PR tree-optimization/90576
4147 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
4149 (aliasing_component_refs_p): Fix three way size compare conditional;
4150 give up earlier in case we can not decide on equivalence.
4152 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
4153 Michael Meissner <meissner@linux.ibm.com>
4154 Segher Boessenkool <segher@kernel.crashing.org>
4156 * config.gcc: Add future cpu.
4157 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
4158 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
4160 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
4161 (RS6000_CPU): New instantiation for future cpu.
4162 * config/rs6000/rs6000-opts.h (enum processor_type): Add
4164 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
4165 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
4166 * config/rs6000/rs6000-tables.opt: Regenerate.
4167 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
4168 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
4169 (rs6000_machine_from_flags): Handle future cpu.
4170 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
4171 PROCESSOR_POWER9 for now.
4172 (rs6000_adjust_cost): Likewise.
4173 (rs6000_issue_rate): Likewise.
4174 (rs6000_register_move_cost): Likewise.
4175 (rs6000_opt_masks): Add entry for future.
4176 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
4177 (MASK_FUTURE): New #define.
4178 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
4179 * config/rs6000/rs6000.opt (mfuture): New target option.
4180 * doc/invoke.texi (mcpu): Add future cpu.
4182 2019-05-23 Martin Liska <mliska@suse.cz>
4185 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
4186 operation points to a temporary (pointed via tree_to_wide_ref)
4187 that is out of scope after the &.
4189 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
4192 * doc/extend.texi (Function Names): Add missing word.
4194 2019-05-23 Richard Biener <rguenther@suse.de>
4196 PR tree-optimization/88440
4197 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
4199 * tree-loop-distribution.c (generate_memset_builtin): Fold the
4201 (generate_memcpy_builtin): Likewise.
4202 (distribute_loop): Pass in whether to only distribute patterns.
4203 (prepare_perfect_loop_nest): Also allow size optimization.
4204 (pass_loop_distribution::execute): When optimizing a loop
4205 nest for size allow pattern replacement.
4207 2019-05-23 Jakub Jelinek <jakub@redhat.com>
4210 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
4213 2019-05-23 Martin Liska <mliska@suse.cz>
4216 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
4217 expression similarly to gimplify_decl_expr.
4219 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4221 * cse.c (cse_dump_path): s/dump_file/f.
4223 2019-05-22 David Malcolm <dmalcolm@redhat.com>
4226 * diagnostic-format-json.cc: Include "selftest.h".
4227 (json_from_expanded_location): Only add "file" key for non-NULL
4229 (json_from_location_range): Don't add "start" and "finish"
4230 children if they are UNKNOWN_LOCATION.
4231 (selftest::test_unknown_location): New selftest.
4232 (selftest::test_bad_endpoints): New selftest.
4233 (selftest::diagnostic_format_json_cc_tests): New function.
4234 * json.cc (json::object::get): New function.
4235 (selftest::test_object_get): New selftest.
4236 (selftest::json_cc_tests): Call it.
4237 * json.h (json::object::get): New decl.
4238 * selftest-run-tests.c (selftest::run_tests): Call
4239 selftest::diagnostic_format_json_cc_tests.
4240 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
4243 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
4244 Andrew Stubbs <amd@codesourcery.com>
4246 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
4247 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
4248 (kernel): Rename to...
4249 (main_kernel): ... this.
4250 (load_image): Load _init_array and _fini_array kernels.
4251 (run): Add argument for kernel to run.
4252 (main): Run init_array_kernel before main_kernel, and
4253 fini_array_kernel after.
4254 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
4255 amdgpu_hsa_kernel attribute on functions.
4256 (gcn_disable_constructors): Delete.
4257 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
4258 * config/gcn/crt0.c (size_t): Define.
4259 (_init_array, _fini_array): New.
4260 (__preinit_array_start, __preinit_array_end,
4261 __init_array_start, __init_array_end,
4262 __fini_array_start, __fini_array_end): Declare weak references.
4264 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
4266 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
4268 2019-05-22 Jason Merrill <jason@redhat.com>
4270 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
4272 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
4275 * config/i386/i386-options.c (ix86_init_machine_status): Set
4276 stack_frame_required to true.
4277 * config/i386/i386.c (ix86_get_frame_size): New function.
4278 (ix86_frame_pointer_required): Replace get_frame_size with
4279 ix86_get_frame_size.
4280 (ix86_compute_frame_layout): Likewise.
4281 (ix86_find_max_used_stack_alignment): Changed to void. Set
4282 stack_frame_required.
4283 (ix86_finalize_stack_frame_flags): Always call
4284 ix86_find_max_used_stack_alignment. Replace get_frame_size with
4285 ix86_get_frame_size.
4286 * config/i386/i386.h (machine_function): Add stack_frame_required.
4288 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
4290 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
4292 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
4294 * common/config/aarch64/aarch64-common.c
4295 (struct aarch64_option_extension, struct processor_name_to_arch,
4296 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
4297 aarch64_contains_opt,
4298 aarch64_get_extension_string_for_isa_flags): Change type of
4299 variables storing flags to uint64_t.
4300 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
4301 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
4302 * config/aarch64/aarch64.c (struct processor,
4303 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
4304 aarch64_validate_march, aarch64_override_options,
4305 aarch64_option_print, aarch64_handle_attr_isa_flags,
4306 aarch64_declare_function_name, aarch64_start_file): Make flag
4308 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
4309 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
4310 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
4311 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
4312 * config/aarch64/driver-aarch64.c
4313 (struct aarch64_arch_extension, struct aarch64_core_data,
4314 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
4315 flag variables uint64_t.
4316 * doc/invoke.texi: Add documentation for new arguments.
4318 2019-05-22 Richard Biener <rguenther@suse.de>
4320 * alias.c (ao_ref_from_mem): Move stack-slot sharing
4322 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
4324 2019-05-22 Martin Liska <mliska@suse.cz>
4327 * doc/extend.texi: Document the change.
4329 2019-05-22 Richard Biener <rguenther@suse.de>
4331 PR tree-optimization/90450
4332 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
4333 (mem_ref_hasher::equal): Check it.
4334 (mem_ref_alloc): Initialize it.
4335 (gather_mem_refs_stmt): Set it.
4337 2019-05-22 Richard Biener <rguenther@suse.de>
4339 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
4341 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
4344 2019-05-22 Alan Modra <amodra@gmail.com>
4346 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
4347 (ASM_CPU_SPEC): Conditionally add -many.
4348 * config/rs6000/rs6000.c (rs6000_machine): New static var.
4349 (rs6000_machine_from_flags, emit_asm_machine): New functions..
4350 (rs6000_file_start): ..extracted from here, and modified to
4352 (rs6000_output_function_prologue): Emit .machine as necessary.
4353 * testsuite/gcc.target/powerpc/ppc32-abi-dfp-1.c: Don't use
4355 * testsuite/gcc.dg/vect/O3-pr70130.c: Disable default options
4356 added by check_vect_support_and_set_flags.
4357 * testsuite/gcc.dg/vect/pr48765.c: Likewise.
4358 * testsuite/gfortran.dg/vect/pr45714-b.f: Likewise.
4360 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
4363 * ira-lives.c (process_bb_node_lives): Consider defs
4364 for a call insn to be die before the call, not after.
4366 * function.c (assign_parm_setup_block): Raise alignment of
4367 stacked parameter only for STRICT_ALIGNMENT targets.
4369 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
4371 * config/rs6000/constraints.md (define_register_constraint "wz"):
4373 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
4374 RS6000_CONSTRAINT_wz.
4375 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
4376 (rs6000_init_hard_regno_mode_ok): Adjust.
4377 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
4378 * doc/md.texi (Machine Constraints): Adjust.
4380 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
4382 * config/rs6000/constraints.md (define_register_constraint "wl"):
4384 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
4385 RS6000_CONSTRAINT_wl.
4386 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
4387 (rs6000_init_hard_regno_mode_ok): Adjust.
4388 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
4389 * doc/md.texi (Machine Constraints): Adjust.
4391 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
4393 * config/rs6000/constraints.md (define_register_constraint "wm"):
4395 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
4396 RS6000_CONSTRAINT_wm.
4397 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
4398 (rs6000_init_hard_regno_mode_ok): Adjust.
4399 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
4400 * doc/md.texi (Machine Constraints): Adjust.
4402 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
4404 * config/rs6000/constraints.md (define_register_constraint "wk"):
4406 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
4407 RS6000_CONSTRAINT_wk.
4408 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
4409 (rs6000_init_hard_regno_mode_ok): Adjust.
4410 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
4411 * doc/md.texi (Machine Constraints): Adjust.
4413 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
4415 * config/rs6000/constraints.md (define_register_constraint "wj"):
4417 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
4418 RS6000_CONSTRAINT_wj.
4419 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
4420 (rs6000_init_hard_regno_mode_ok): Adjust.
4421 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
4423 * config/rs6000/vsx.md: Ditto.
4424 * doc/md.texi (Machine Constraints): Adjust.
4426 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
4428 * config/rs6000/constraints.md (define_register_constraint "wh"):
4430 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
4431 RS6000_CONSTRAINT_wh.
4432 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
4433 (rs6000_init_hard_regno_mode_ok): Adjust.
4434 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
4435 * doc/md.texi (Machine Constraints): Adjust.
4437 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
4440 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
4441 Avoid calling gen_lowpart with CONST operand.
4443 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
4445 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
4446 field template_last_to_copy.
4447 (ssa_create_duplicates): Set it, and use it. Attempt to
4448 preserve more debug stmts.
4450 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
4452 * config/i386/sse.md (VF1_AVX2): New mode iterator.
4453 (signbit<mode>2): New expander
4455 2019-05-21 James Clarke <jrtc27@jrtc27.com>
4458 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
4459 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
4461 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
4463 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
4464 %ebx and %ecx bafore calling cpuid with leaf 1 or
4465 non-constant leaf argument.
4467 2019-05-21 Alan Modra <amodra@gmail.com>
4470 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
4471 power9 direct move cost.
4472 * testsuite/gcc.target/powerpc/fold-vec-splats-floatdouble.c:
4473 Correct comments and rename functions to suit parameters.
4475 2019-05-21 Richard Biener <rguenther@suse.de>
4478 * fold-const.c (fold_read_from_vector): New function.
4479 * fold-const.h (fold_read_from_vector): Declare.
4480 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
4481 single-element insert permutations. Canonicalize selector
4482 further and fix issue with last commit.
4484 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
4486 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
4487 parameter with default value false to declaration.
4488 (split_edges_for_insertion): New inline function. Wrapper for
4489 split_critical_edges with for_edge_insertion_p = true.
4490 * tree-cfg.c (split_critical_edges): Don't split non-critical
4491 edges if for_edge_insertion_p is false. Fix whitespace.
4492 * tree-ssa-pre.c (pass_pre::execute): Call
4493 split_edges_for_insertion instead of split_critical_edges.
4494 * gcc/tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
4495 * gcc/tree-ssa-sink.c (pass_sink_code::execute): Ditto.
4496 (pass_data_sink_code): Update function name in the comment.
4498 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
4500 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
4501 around is_value_included_in that knows how to handle BIT_AND_EXPR.
4502 (is_pred_expr_subset_of): Use the new function. Handle more cases where
4503 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
4506 2019-05-21 Martin Liska <mliska@suse.cz>
4508 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
4510 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
4511 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
4513 * config/rs6000/rs6000.c (rs6000_option_override_internal):
4515 (rs6000_function_arg): Likewise.
4516 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
4517 (rs6000_expand_ternop_builtin): Use interval syntax.
4518 (get_element_number): Likewise.
4519 (altivec_expand_builtin): Likewise.
4520 (rs6000_get_function_versions_dispatcher): Quote target_clones.
4524 2019-05-20 Jakub Jelinek <jakub@redhat.com>
4528 * function.h (struct function): Add calls_eh_return member.
4529 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
4530 gimplifying __builtin_eh_return call.
4531 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
4533 (expand_call_inline): Or in src_cfun->calls_eh_return into
4534 dst_cfun->calls_eh_return.
4535 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
4536 cfun->calls_eh_return.
4537 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
4538 * lto-streamer-out.c (output_struct_function_base): Write
4541 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
4543 PR rtl-optimization/43147
4544 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
4545 IX86_BUILTIN_SHUFPD.
4547 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
4549 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
4550 (refs_may_alias_p_1): ... here; update stats.
4551 (refs_may_alias_p): Do not update stats here.
4553 2019-05-20 Richard Biener <rguenther@suse.de>
4555 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
4556 doesn't produce pointers.
4557 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
4558 the first operand points to.
4560 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
4562 * tree-ssa-alias.c (compare_sizes): New function.
4563 (sompare_type_sizes): New function
4564 (aliasing_component_refs_p): Use it.
4565 (indirect_ref_may_alias_decl_p): Likewise.
4567 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4569 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
4571 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4573 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
4574 (LIBLSAN_EARLY_SPEC): Likewise.
4575 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
4577 2019-05-20 Martin Liska <mliska@suse.cz>
4579 * config/i386/i386.c (ix86_libc_has_fast_function):
4580 Add ATTRIBUTE_UNUSED for the argument.
4582 2019-05-20 Richard Biener <rguenther@suse.de>
4584 * gimple-match-head.c: Include vec-perm-indices.h.
4585 * generic-match-head.c: Likewise.
4586 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
4588 * fold-const.c (fold_vec_perm): Export.
4589 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
4590 (match.pd): ...here.
4592 2019-05-20 Jakub Jelinek <jakub@redhat.com>
4594 * cfgloop.h (struct loop): Add simdlen member.
4595 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
4596 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
4597 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
4598 as new argument to autovectorize_vector_sizes target hook. If
4599 loop->simdlen, pick up vector size where the vectorization factor
4600 is equal to loop->simd, and if there is none, fall back to the first
4602 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
4604 * omp-low.c (omp_clause_aligned_alignment): Likewise.
4605 * omp-general.c (omp_max_vf): Likewise.
4606 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
4607 * tree-vect-slp.c (vect_slp_bb): Likewise.
4608 * target.def (autovectorize_vector_sizes): Add ALL argument and
4610 * doc/tm.texi: Adjust documentation.
4611 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
4612 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
4613 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
4615 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
4616 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
4617 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
4618 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
4619 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
4620 preferred vector size is not 512-bit or 256-bit, just put those
4621 unpreferred ones last.
4623 2019-05-20 Martin Liska <mliska@suse.cz>
4625 * targhooks.c (default_libc_has_fast_function): New function.
4626 * targhooks.h (default_libc_has_fast_function): Likewise.
4628 2019-05-20 Martin Liska <mliska@suse.cz>
4631 * builtins.c (expand_builtin_memory_copy_args): When having a
4632 target with fast mempcpy implementation do now use memcpy.
4633 * config/i386/i386.c (ix86_libc_has_fast_function): New.
4634 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
4635 * doc/tm.texi: Likewise.
4636 * doc/tm.texi.in: Likewise.
4638 * expr.c (emit_block_move_hints): Add 2 new arguments.
4639 * expr.h (emit_block_move_hints): Bail out when libcall
4640 to memcpy would be used.
4642 2019-05-20 Martin Liska <mliska@suse.cz>
4644 * profile-count.c: Add vertical spacing in order
4645 to separate functions.
4646 * profile-count.h: Likewise.
4648 2019-05-20 Martin Liska <mliska@suse.cz>
4650 * profile-count.h: Do not use full qualified
4652 * profile-count.c (profile_count::to_frequency): Likewise.
4654 2019-05-20 Martin Liska <mliska@suse.cz>
4656 * profile-count.h (enum profile_quality): Use capital letters
4657 for enum value names. Use the adjusted names.
4658 * profile-count.c: Use the adjusted names.
4660 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
4662 * config/rs6000/constraints.md (define_register_constraint "wH"):
4664 (define_register_constraint "wI"): Delete.
4665 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
4666 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
4667 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
4668 (rs6000_init_hard_regno_mode_ok): Adjust.
4669 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
4670 resp. "d", or with "wa" as appropriate, all with "p8v".
4671 * config/rs6000/vsx.md: Ditto.
4672 * doc/md.texi (Machine Constraints): Adjust.
4674 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
4676 * config/rs6000/constraints.md (define_register_constraint "wy"):
4678 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
4679 RS6000_CONSTRAINT_wy.
4680 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
4681 (rs6000_init_hard_regno_mode_ok): Adjust.
4682 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
4683 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
4684 (define_mode_attr Fisa): New.
4685 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
4686 * doc/md.texi (Machine Constraints): Adjust.
4688 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
4690 * config/rs6000/constraints.md (define_register_constraint "wu"):
4692 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
4693 RS6000_CONSTRAINT_wu.
4694 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
4695 (rs6000_init_hard_regno_mode_ok): Adjust.
4696 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
4698 (define_mode_attr Fa): Delete.
4699 * config/rs6000/vsx.md: Ditto.
4700 * doc/md.texi (Machine Constraints): Adjust.
4702 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
4704 * config/rs6000/constraints.md (define_register_constraint "wJ"):
4706 (define_register_constraint "wK"): Delete.
4707 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
4708 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
4709 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
4710 (rs6000_init_hard_regno_mode_ok): Adjust.
4711 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
4712 Replace "wK" constraint by "wH" with "p9v".
4713 * config/rs6000/vsx.md: Ditto.
4714 * doc/md.texi (Machine Constraints): Adjust.
4716 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
4718 * config/rs6000/constraints.md (define_register_constraint "wb"):
4720 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
4721 RS6000_CONSTRAINT_wb.
4722 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
4723 (rs6000_init_hard_regno_mode_ok): Adjust.
4724 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
4725 * config/rs6000/vsx.md: Ditto.
4726 * doc/md.texi (Machine Constraints): Adjust.
4728 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
4730 * config/rs6000/constraints.md (define_register_constraint "wo"):
4732 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
4733 RS6000_CONSTRAINT_wo.
4734 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
4735 (rs6000_init_hard_regno_mode_ok): Adjust.
4736 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
4737 * config/rs6000/altivec.md: Ditto.
4738 * doc/md.texi (Machine Constraints): Adjust.
4740 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
4742 * config/darwin-c.c (darwin_register_objc_includes): Do not
4743 prepend the sysroot when building gnu-runtime header search
4746 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
4748 * config/darwin.c (darwin_file_end): Use switch_to_section ()
4749 instead of direct output of the asm.
4751 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
4753 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
4754 argument to be type bool (was int before).
4755 (rs6000_emit_epilogue): Simplify some code. Declare some variables
4756 at first use. Use type bool for some variables. Fix a theoretical
4757 eh_return bug for svr4.
4759 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
4761 * config/rs6000/rs6000.md (isa): New attribute.
4762 (enabled): New attribute.
4764 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
4766 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
4767 assemble_start_function and assemble_end_function.
4769 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
4772 * omp-general.c (oacc_verify_routine_clauses): Change formal
4773 parameters. Add checking if already marked with an OpenACC
4774 'routine' directive. Adjust all users.
4777 * omp-general.c (oacc_build_routine_dims): Move some of its
4779 (oacc_verify_routine_clauses): ... this new function.
4780 * omp-general.h (oacc_verify_routine_clauses): New prototype.
4782 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
4784 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
4785 formating of picbase labels to match other ports.
4787 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
4789 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
4790 in the generated code.
4792 2019-05-16 Martin Sebor <msebor@redhat.com>
4794 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
4795 identifiers, keywords, operators, and types in diagnostics. Correct
4796 quoting, spelling, and sentence capitalization issues.
4797 (expand_builtin_atomic_is_lock_free): Same.
4798 (fold_builtin_next_arg): Same.
4799 * cfgexpand.c (expand_one_var): Same.
4800 (tree_conflicts_with_clobbers_p): Same.
4801 (expand_asm_stmt): Same.
4802 (verify_loop_structure): Same.
4803 * cgraphunit.c (process_function_and_variable_attributes): Same.
4804 * collect-utils.c (collect_execute): Same.
4805 * collect2.c (maybe_run_lto_and_relink): Same.
4806 (is_lto_object_file): Same.
4807 (scan_prog_file): Same.
4808 * convert.c (convert_to_real_1): Same.
4809 * dwarf2out.c (dwarf2out_begin_prologue): Same.
4810 * except.c (verify_eh_tree): Same.
4811 * gcc.c (execute): Same.
4812 (eval_spec_function): Same.
4813 (run_attempt): Same.
4814 (driver::set_up_specs): Same.
4815 (compare_debug_auxbase_opt_spec_function): Same.
4816 * gcov-tool.c (unlink_gcda_file): Same.
4819 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
4820 * gimplify.c (gimplify_asm_expr): Same.
4821 (gimplify_adjust_omp_clauses): Same.
4822 * hsa-gen.c (gen_hsa_addr_insns): Same.
4823 (gen_hsa_insns_for_load): Same.
4824 (gen_hsa_cmp_insn_from_gimple): Same.
4825 (gen_hsa_insns_for_operation_assignment): Same.
4826 (gen_get_level): Same.
4827 (gen_hsa_alloca): Same.
4828 (omp_simple_builtin::generate): Same.
4829 (gen_hsa_atomic_for_builtin): Same.
4830 (gen_hsa_insns_for_call): Same.
4831 * input.c (dump_location_info): Same.
4832 * ipa-devirt.c (compare_virtual_tables): Same.
4833 * ira.c (ira_setup_eliminable_regset): Same.
4834 * lra-assigns.c (lra_assign): Same.
4835 * lra-constraints.c (lra_constraints): Same.
4836 * lto-streamer-in.c (lto_input_mode_table): Same.
4837 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
4838 (merge_and_complain): Same.
4839 (compile_offload_image): Same.
4840 (compile_images_for_offload_targets): Same.
4841 (debug_objcopy): Same.
4844 * opts.c (print_specific_help): Same.
4845 (parse_no_sanitize_attribute): Same.
4847 (handle_param): Same.
4848 * plugin.c (add_new_plugin): Same.
4849 (parse_plugin_arg_opt): Same.
4850 (try_init_one_plugin): Same.
4851 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
4852 operators, and types in diagnostics. Correct quoting and spelling
4854 * read-rtl-function.c (parse_edge_flag_token): Same.
4855 (function_reader::parse_enum_value): Same.
4856 * reg-stack.c (check_asm_stack_operands): Same.
4857 * regcprop.c (validate_value_data): Same.
4858 * sched-rgn.c (make_pass_sched_fusion): Same.
4859 * stmt.c (check_unique_operand_names): Same.
4860 * targhooks.c (default_target_option_pragma_parse): Same.
4861 * tlink.c (recompile_files): Same.
4862 * toplev.c (process_options): Same.
4864 * trans-mem.c (diagnose_tm_1): Same.
4865 (ipa_tm_scan_irr_block): Same.
4866 (ipa_tm_diagnose_transaction): Same.
4867 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
4868 format a tree code name in a diagnostic.
4869 (verify_types_in_gimple_min_lval): Same.
4870 (verify_types_in_gimple_reference): Same.
4871 (verify_gimple_call): Same.
4872 (verify_gimple_assign_unary): Same.
4873 (verify_gimple_assign_binary): Same.
4874 (verify_gimple_assign_ternary): Same.
4875 (verify_gimple_assign_single): Same.
4876 (verify_gimple_switch): Same.
4877 (verify_gimple_label): Same.
4878 (verify_gimple_phi): Same.
4879 (verify_gimple_in_seq): Same.
4880 (verify_eh_throw_stmt_node): Same.
4881 (collect_subblocks): Same.
4882 (gimple_verify_flow_info): Same.
4883 (do_warn_unused_result): Same.
4884 * tree-inline.c (expand_call_inline): Same.
4885 * tree-into-ssa.c (update_ssa): Same.
4886 * tree.c (tree_int_cst_elt_check_failed): Same.
4887 (tree_vec_elt_check_failed): Same.
4888 (omp_clause_operand_check_failed): Same.
4889 (verify_type_variant): Same.
4890 (verify_type): Same.
4891 * value-prof.c (verify_histograms): Same.
4892 * varasm.c (assemble_start_function): Same.
4894 2019-05-16 Martin Sebor <msebor@redhat.com>
4896 * config/i386/i386-expand.c (get_element_number): Quote keywords
4897 and other internal names in diagnostics. Adjust other diagnostic
4898 formatting issues noted by -Wformat-diag.
4899 * config/i386/i386-features.c
4900 (ix86_mangle_function_version_assembler_name): Same.
4901 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
4902 * config/i386/i386.c (ix86_function_type_abi): Same.
4903 (ix86_function_ms_hook_prologue): Same.
4904 (classify_argument): Same.
4905 (ix86_expand_prologue): Same.
4906 (ix86_md_asm_adjust): Same.
4907 (ix86_memmodel_check): Same.
4909 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
4911 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
4912 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
4915 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
4918 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
4919 intrinsics without SSE/SSE2/SSSE3.
4920 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
4922 (*mmx_uavgv8qi3): Likewise.
4924 2019-05-17 Richard Biener <rguenther@suse.de>
4926 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
4927 VEC_PERM_EXPR as __VEC_PERM with -gimple.
4929 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
4931 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
4932 vec_sldw insn pattern.
4934 2019-05-17 Richard Biener <rguenther@suse.de>
4936 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
4938 2019-05-17 Martin Liska <mliska@suse.cz>
4941 * toplev.c (output_stack_usage): With LTO and sanitizer it
4942 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
4943 has no file location.
4945 2019-05-16 Jakub Jelinek <jakub@redhat.com>
4948 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
4949 sz0 is equal to sz1, instead return false in that case.
4951 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
4952 has non-constant expression, force sctx.lane and use two
4953 argument IFN_GOMP_SIMD_LANE instead of single argument.
4954 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
4955 two argument IFN_GOMP_SIMD_LANE without lhs.
4956 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
4958 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
4960 (LOOP_REQUIRES_VERSIONING): Or in
4961 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
4962 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
4964 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
4965 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
4966 from simd if clause if needed.
4968 2019-05-16 Richard Biener <rguenther@suse.de>
4970 * tree-affine.c (expr_to_aff_combination): New function split
4972 (tree_to_aff_combination): ... here.
4973 (aff_combination_expand): Avoid building a GENERIC tree.
4975 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
4977 * cgraphunit.c (cgraph_node::expand_thunk): Remove
4978 assemble_start_function and assemble_end_function calls.
4979 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
4980 assemble_start_function and assemble_end_function.
4981 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
4982 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
4983 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
4984 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
4985 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
4986 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
4987 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
4988 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
4989 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
4990 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
4991 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
4992 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
4994 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
4995 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
4996 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
4997 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
4998 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
4999 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
5000 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
5001 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
5002 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
5003 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
5004 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
5005 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
5006 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
5007 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
5009 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
5010 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
5011 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
5013 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
5015 * tree-ssa-alias.c (alias_stats): Add
5016 aliasing_component_refs_p_may_alias and
5017 aliasing_component_refs_p_no_alias.
5018 (dump_alias_stats): Print aliasing_component_refs_p stats.
5019 (aliasing_component_refs_p): Update stats.
5021 2019-05-16 Martin Liska <mliska@suse.cz>
5024 * multiple_target.c (expand_target_clones): Do not allow
5025 target_clones being used with a symbol that is an alias.
5027 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
5029 PR tree-optimization/90394
5030 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
5031 positives rather than ICE for cases where (code2 == NE_EXPR
5032 && code1 == BIT_AND_EXPR).
5034 2019-05-16 Jakub Jelinek <jakub@redhat.com>
5037 * tree-core.h (struct tree_decl_common): Document
5038 decl_nonshareable_flag for PARM_DECLs.
5039 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
5040 * calls.c (expand_call): Don't try tail call if caller
5041 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
5042 passed on the stack and callee needs to pass any arguments on the
5044 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
5045 else if instead of series of mutually exclusive ifs. Handle
5046 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
5047 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
5049 * lto-streamer.h (LTO_major_version): Bump to 9.
5051 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
5053 PR tree-optimization/90106
5054 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
5055 new parameter as new internal function call, also move it to new
5057 (use_internal_fn): Pass internal function call to
5058 shrink_wrap_one_built_in_call_with_conds.
5060 2019-05-15 Jakub Jelinek <jakub@redhat.com>
5062 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
5064 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
5065 safelen_int and set loop->dont_vectorize.
5067 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5070 * config/i386/i386-builtin.def: Enable MMX intrinsics with
5072 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
5074 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
5075 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
5076 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
5079 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5082 * config/i386/mmx.md (*vec_dupv2sf): Changed to
5083 define_insn_and_split to support SSE emulation.
5084 (*vec_extractv2sf_0): Likewise.
5085 (*vec_extractv2sf_1): Likewise.
5086 (*vec_extractv2si_0): Likewise.
5087 (*vec_extractv2si_1): Likewise.
5088 (*vec_extractv2si_zext_mem): Likewise.
5089 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
5090 (vec_extractv2sf_1 splitter): Likewise.
5091 (vec_extractv2sfsf): Likewise.
5092 (vec_setv2si): Likewise.
5093 (vec_extractv2si_1 splitter): Likewise.
5094 (vec_extractv2sisi): Likewise.
5095 (vec_setv4hi): Likewise.
5096 (vec_extractv4hihi): Likewise.
5097 (vec_setv8qi): Likewise.
5098 (vec_extractv8qiqi): Likewise.
5099 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
5100 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
5101 (vec_extractv2sisi): Likewise.
5102 (vec_extractv4hihi): Likewise.
5103 (vec_extractv8qiqi): Likewise.
5104 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
5105 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
5106 (vec_initv2sisi): Likewise.
5107 (vec_initv4hihi): Likewise.
5108 (vec_initv8qiqi): Likewise.
5109 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
5110 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
5111 (vec_setv4hi): Likewise.
5112 (vec_setv8qi): Likewise.
5114 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5117 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
5118 TARGET_MMX_WITH_SSE.
5119 (MMXMODE:*mov<mode>_internal): Likewise.
5120 (MMXMODE:movmisalign<mode>): Likewise.
5122 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
5125 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
5126 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
5127 (sse2_cvtpd2pi): Ditto.
5128 (sse2_cvttpd2pi): Ditto.
5129 (*vec_concatv2sf_sse4_1): Ditto.
5130 (*vec_concatv2sf_sse): Ditto.
5131 (*vec_concatv2si_sse4_1): Ditto.
5132 (*vec_concatv2si): Ditto.
5133 (*vec_concatv4si_0): Ditto.
5134 (*vec_concatv2di_0): Ditto.
5136 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5139 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
5141 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5144 * config/i386/sse.md (ssse3_palignrdi): Changed to
5145 define_insn_and_split to support SSE emulation.
5147 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5150 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
5152 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5155 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
5156 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
5159 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5162 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
5163 or TARGET_MMX_WITH_SSE.
5164 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
5166 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5169 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
5171 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5174 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
5175 Changed to define_insn_and_split to support SSE emulation.
5177 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5180 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
5181 Changed to define_insn_and_split to support SSE emulation.
5183 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5186 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
5187 (*mmx_<emms>): This.
5188 (mmx_<emms>): New expander.
5190 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5193 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
5195 (*sse2_umulv1siv1di3): Add SSE2 emulation.
5197 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5200 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
5202 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5205 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
5207 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5210 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
5211 TARGET_MMX_WITH_SSE.
5212 (*mmx_uavgv4hi3): Add SSE emulation.
5214 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5217 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
5218 and TARGET_MMX_WITH_SSE.
5219 (*mmx_uavgv8qi3): Add SSE emulation.
5221 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5224 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
5225 maskmovdqu for __MMX_WITH_SSE__.
5227 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5230 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
5231 TARGET_MMX and TARGET_MMX_WITH_SSE.
5232 (*mmx_umulv4hi3_highpart): Add SSE emulation.
5234 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5237 * config/i386/mmx.md (mmx_pmovmskb): Changed to
5238 define_insn_and_split to support SSE emulation.
5240 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5243 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
5244 and TARGET_MMX_WITH_SSE.
5245 (mmx_<code>v8qi3): Likewise.
5246 (smaxmin:<code>v4hi3): New.
5247 (umaxmin:<code>v8qi3): Likewise.
5248 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
5249 (umaxmin:*mmx_<code>v8qi3): Likewise.
5251 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5254 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
5255 TARGET_MMX_WITH_SSE.
5256 (*mmx_pinsrw): Add SSE emulation.
5258 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5261 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
5263 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5266 * config/i386/sse.md (sse_cvtpi2ps): Changed to
5267 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
5270 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5273 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
5274 (sse_cvttps2pi): Likewise.
5276 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5279 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
5280 TARGET_MMX_WITH_SSE.
5281 (mmx_pshufw_1): Add SSE emulation.
5282 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
5283 TARGET_MMX_WITH_SSE to support SSE emulation.
5285 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5288 * config/i386/constraints.md (Yw): New constraint.
5289 * config/i386/mmx.md (*vec_dupv2si): Changed to
5290 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
5291 support SSE emulation.
5293 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5296 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
5297 TARGET_MMX_WITH_SSE.
5298 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
5300 (mmx_gt<mode>3): Likewise.
5302 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5305 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
5306 TARGET_MMX_WITH_SSE. Add SSE support.
5308 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5311 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
5312 TARGET_MMX_WITH_SSE.
5313 (any_logic:<code><mode>3): New.
5314 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
5317 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5320 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
5321 TARGET_MMX_WITH_SSE. Add SSE emulation.
5322 (mmx_<shift_insn><mode>3): Likewise.
5324 (<shift_insn><mode>3): Likewise.
5326 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5329 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
5330 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
5332 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5335 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
5336 TARGET_MMX_WITH_SSE.
5337 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
5340 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5343 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
5344 TARGET_MMX_WITH_SSE.
5346 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
5349 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5352 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
5353 (plusminus:mmx_<plusminus_insn><mode>3): Check
5354 TARGET_MMX_WITH_SSE.
5355 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
5356 (<plusminus_insn><mode>3): New.
5357 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
5358 (*mmx_<plusminus_insn><mode>3): Likewise.
5360 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5363 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
5364 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
5366 * config/i386/mmx.m (mmx_punpckhbw): Changed to
5367 define_insn_and_split to support SSE emulation.
5368 (mmx_punpcklbw): Likewise.
5369 (mmx_punpckhwd): Likewise.
5370 (mmx_punpcklwd): Likewise.
5371 (mmx_punpckhdq): Likewise.
5372 (mmx_punpckldq): Likewise.
5374 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5375 Uros Bizjak <ubizjak@gmail.com>
5378 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
5380 (ix86_split_mmx_pack): Likewise.
5381 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
5383 (ix86_split_mmx_pack): Likewise.
5384 * config/i386/i386.md (mmx_isa): New.
5385 (enabled): Also check mmx_isa.
5386 * config/i386/mmx.md (any_s_truncate): New code iterator.
5387 (s_trunsuffix): New code attr.
5388 (mmx_packsswb): Removed.
5389 (mmx_packssdw): Likewise.
5390 (mmx_packuswb): Likewise.
5391 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
5392 MMX packsswb/packuswb with SSE2.
5393 (mmx_packssdw): Likewise.
5394 * config/i386/predicates.md (register_mmxmem_operand): New.
5396 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5399 * config/i386/i386-c.c (ix86_target_macros_internal): Define
5400 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
5401 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
5402 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
5403 (ix86_vector_mode_supported_p): Likewise.
5404 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
5406 2019-05-15 Martin Liska <mliska@suse.cz>
5409 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
5412 2019-05-15 Richard Biener <rguenther@suse.de>
5414 * tree-into-ssa.c (pass_build_ssa::execute): Run
5415 update_address_taken before going into SSA.
5417 2019-05-15 Richard Biener <rguenther@suse.de>
5419 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
5420 as __BIT_FIELD_REF with type with -gimple.
5422 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
5424 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
5425 semantically equivalent branches (left over after prior refactorings).
5427 2019-05-15 Richard Biener <rguenther@suse.de>
5429 PR tree-optimization/88828
5430 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
5433 2019-05-14 Richard Biener <rguenther@suse.de>
5435 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
5436 as __VIEW_CONVERT with -gimple.
5438 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
5441 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
5444 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
5446 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
5447 define_split to become a define_insn_and_split.
5449 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
5451 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
5453 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
5454 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
5455 (sibcall_epilogue): Adjust.
5458 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5460 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
5461 to unsupported ones.
5462 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
5463 * config.host: Likewise.
5464 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
5465 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
5466 __svr4__]: Remove "brand" fallback.
5467 [!KSTAT_DATA_STRING]: Remove.
5468 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
5470 (comdat_group): Likewise.
5471 (set_have_as_tls): Likewise.
5472 (gcc_cv_target_dl_iterate_phdr): Likewise.
5473 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
5474 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
5475 * configure: Regenerate.
5476 * doc/install.texi: Simplify Solaris target triplets.
5477 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
5478 (Specific, *-*-solaris2*): Document Solaris 10 removal.
5479 Remove Solaris 10 references.
5480 Remove obsolete Solaris bug reference.
5481 (Specific, sparc-sun-solaris2.10): Remove.
5483 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
5485 * config/i386/i386.md (any_div): New code iterator.
5486 (paired_mod): New code attribute.
5487 (sgnprefix): Handle DIV and UDIV RTXes.
5489 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
5490 and udivmod<mode>4 patterns using any_div code iterator.
5491 (divmod splitters): Macroize splitters using any_div code iterator.
5492 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
5493 (*udivmodsi4_pow2_zext_2): Ditto.
5494 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
5495 and *udivmod<mode>4_noext patterns using any_div code iterator.
5496 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
5497 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
5498 patterns using any_div code iterator.
5499 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
5500 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
5501 patterns using any_div code iterator.
5502 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
5503 udivmodhiqi3 patterns using any_extend code iterator.
5505 2019-05-14 Richard Biener <rguenther@suse.de>
5506 H.J. Lu <hongjiu.lu@intel.com>
5508 PR tree-optimization/88828
5509 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
5510 permuting in a single non-constant element not extracted
5513 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
5515 * internal-fn.def (SIGNBIT): New.
5516 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
5518 (signbitv4sf2): Likewise.
5520 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
5523 * config/mips/mips.c (mips_split_move): Skip forward SRC into
5524 next insn when the SRC reg is dead.
5526 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
5528 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
5529 (alloc_cand_and_find_basis): Ditto.
5530 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
5531 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
5532 (create_add_imm_cand, slsr_process_cast): Ditto.
5533 (slsr_process_copy, replace_mult_candidate): Ditto.
5534 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
5535 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
5536 (pass_strength_reduction::execute): Init the first NULL element.
5538 2019-05-13 Nathan Sidwell <nathan@acm.org>
5540 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
5541 (run_attempt): Reformat line break.
5543 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
5546 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
5547 data registers in sibcall epilogues.
5548 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
5550 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
5553 * configure.ac (--enable-frame-pointer):
5554 Disable by default for cygwin and mingw.
5555 * configure: Regenerate.
5557 2019-05-13 Nathan Sidwell <nathan@acm.org>
5559 * dwarf2out.c (breakout_comdat_types): Move comment to correct
5561 (const_ok_for_output_1): Balance parens around #if/#else/#endif
5562 (gen_member_die): Move abstract origin check earlier. Only VARs
5563 can be static_inline_p. Simplify splicing control flow.
5565 2019-05-13 Richard Biener <rguenther@suse.de>
5567 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
5569 (vect_build_slp_tree_1): Likewise.
5571 2019-05-13 Richard Biener <rguenther@suse.de>
5573 PR tree-optimization/90402
5574 * tree-if-conv.c (tree_if_conversion): Value number only
5575 the loop body by making the latch an exit of the region
5577 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
5579 (do_rpo_vn): Deal with multiple edges into the entry block
5580 that are not backedges inside the region by skipping PHIs
5583 2019-05-13 Richard Biener <rguenther@suse.de>
5585 PR tree-optimization/90316
5586 * tree-ssa-pre.c (insert_aux): Fold into ...
5587 (insert): ... this function. Use a RPO walk to reduce the
5588 number of required iterations.
5590 2019-05-13 Martin Liska <mliska@suse.cz>
5592 PR tree-optimization/90416
5593 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
5594 string instead of passing the second part as va_arg argument.
5596 2019-05-13 Martin Liska <mliska@suse.cz>
5598 PR gcov-profile/90380
5599 * gcov.c (handle_cycle): Do not support zero cycle count,
5600 it should not be possible.
5601 (path_contains_zero_cycle_arc): New function.
5602 (circuit): Ignore zero cycle arc counts.
5604 2019-05-13 Martin Liska <mliska@suse.cz>
5606 PR gcov-profile/90380
5607 * gcov.c (enum loop_type): Remove the enum and
5609 (handle_cycle): Assert that we should not reach
5611 (circuit): Use loop_found instead of a tri-state loop_type.
5612 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
5615 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
5618 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
5619 (ix86_output_indirect_branch_via_reg): Use output mechanism
5620 accounting for __USER_LABEL_PREFIX__.
5621 (ix86_output_indirect_branch_via_push): Likewise.
5622 (ix86_output_function_return): Likewise.
5623 (ix86_output_indirect_function_return): Likewise.
5625 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
5627 * doc/md.texi: Document use of code attributes in rtx patterns.
5628 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
5629 * read-rtl.c (find_code): Split out search loops into...
5630 (maybe_find_code): ...this new function.
5631 (check_code_iterator): Make the error message more informative.
5632 (check_code_attribute): New function.
5633 (rtx_reader::rtx_alloc_for_name): Likewise.
5634 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
5635 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
5636 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
5637 <max_opp> directly as an rtx code instead of via a match_operator.
5638 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
5639 (<su>abd<mode>_3): Update accordingly.
5641 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
5643 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
5644 is given, print the state of the EH "save world" computation for
5647 2019-05-11 Jakub Jelinek <jakub@redhat.com>
5650 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
5651 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
5653 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
5655 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
5656 Use pinsrd for TARGET_SSE4_1.
5657 * config/i386/sse.md (movdi_to_sse): Ditto.
5659 2019-05-10 Richard Biener <rguenther@suse.de>
5661 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
5662 (do_rpo_vn): Initialize next_value_id.
5664 2019-05-10 Martin Liska <mliska@suse.cz>
5666 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
5669 2019-05-10 Jakub Jelinek <jakub@redhat.com>
5671 PR tree-optimization/90385
5672 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
5673 arguments of the exit phis.
5676 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
5677 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
5679 (copy_tree_body_r): Likewise.
5680 (copy_fn): Set id.do_not_fold to true.
5682 2019-05-10 Martin Liska <mliska@suse.cz>
5684 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
5685 Reapply changes from r269790.
5687 2019-05-10 Martin Liska <mliska@suse.cz>
5690 * doc/invoke.texi: New params.
5691 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
5692 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
5693 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
5695 * tree-switch-conversion.h (struct jump_table_cluster):
5698 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
5700 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
5702 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
5704 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
5706 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
5708 PR rtl-optimization/88879
5709 * sel-sched.c (sel_target_adjust_priority): Remove assert.
5711 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
5714 * config/arm/arm.c (callee_saved_reg_p): Move before
5715 thumb_find_work_register.
5716 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
5717 thumb_find_work_register. Only call df_get_live_out once.
5718 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
5719 (thumb_find_work_register): Use
5720 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
5721 algorithms to locate a spare call clobbered reg.
5723 2019-05-09 Martin Liska <mliska@suse.cz>
5725 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
5726 and MAX_EXPR in GIMPLE FE format.
5728 2019-05-09 Martin Liska <mliska@suse.cz>
5730 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
5731 * gimple-pretty-print.c (dump_gimple_bb_header):
5733 (pp_cfg_jump): Dump edge probability.
5734 * profile-count.c (profile_quality_as_string): Simplify
5735 with a static array.
5736 (parse_profile_quality): New function.
5737 (profile_count::dump): Simplify with a static array.
5738 (profile_count::from_gcov_type): Add new argument.
5739 * profile-count.h (parse_profile_quality): Likewise.
5740 * predict.h (set_hot_bb_threshold): New.
5741 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
5743 * predict.c (get_hot_bb_threshold): Set from the new param.
5744 (set_hot_bb_threshold): New.
5746 2019-05-09 Richard Biener <rguenther@suse.de>
5748 PR tree-optimization/90395
5749 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
5750 rewrite vector stores that throw internally.
5752 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
5754 * cif-code.def (CHKP): Remove.
5757 * configure.ac (--enable-frame-pointer): Disable by default for
5759 * configure: Regenerate.
5761 2019-05-09 Alan Modra <amodra@gmail.com>
5764 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
5765 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
5766 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
5767 cost for general <-> vsx when direct moves are available.
5768 Cost union classes at minimal cost for any reg in the class.
5769 Correct calculation for moves between vsx, float, and altivec.
5770 Don't return a low cost for moves between special regs. Don't
5771 use hard coded register numbers.
5772 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
5773 (rs6000_ira_change_pseudo_allocno_class): New function.
5774 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
5775 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
5777 (movsi_internal1): Don't disparage vector alternatives.
5778 (mov<mode>_internal): Likewise, excepting alternative that
5780 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
5781 we <- b alternative.
5783 2019-05-08 Jakub Jelinek <jakub@redhat.com>
5786 PR tree-optimization/89060
5787 * tree-ssa-live.h (live_vars_map): New typedef.
5788 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
5789 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
5790 (struct compute_live_vars_data): New type.
5791 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
5792 live_vars_at_stmt, destroy_live_vars): New functions.
5793 * tree-tailcall.c: Include tree-ssa-live.h.
5794 (live_vars, live_vars_vec): New global variables.
5795 (find_tail_calls): Perform variable life analysis before punting.
5796 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
5797 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
5799 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
5800 Perform variable life analysis to select variables that really need
5802 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
5803 instead set id->eh_landing_pad_dest and assert it is the same.
5804 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
5806 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
5807 Richard Earnshaw <rearnsha@arm.com>
5810 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
5812 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
5813 (thumb1_compute_save_core_reg_mask): Don't force a spare work
5814 register if both the epilogue and prologue can use call-clobbered
5816 (thumb1_unexpanded_epilogue): Use
5817 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
5818 picking temporaries for restoring high regs to match that of the
5819 prologue where possible.
5820 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
5821 the list of work registers. Detect if the return address is still live
5822 at the end of the prologue and avoid using it for a work register if so.
5823 If the return address is not live, add LR to the list of pushable regs
5824 after the first pass.
5826 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
5828 PR tree-optimization/90078
5829 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
5830 (INFTY): Increase the value for infinite cost.
5831 (struct comp_cost): Promote type of members to int64_t.
5832 (infinite_cost): Don't set complexity in initialization.
5833 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
5834 overflows to infinite_cost.
5835 (adjust_setup_cost): Promote type of parameter and cost computation
5837 (struct ainc_cost_data, struct iv_ca): Promote type of member to
5839 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
5840 cost computation to int64_t.
5841 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
5842 int64_t's format specifier in dump.
5844 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
5846 PR tree-optimization/90240
5847 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
5848 with respect to scaling factor pre-computed for each basic block.
5849 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
5850 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
5851 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
5852 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
5853 live range for array of loop's basic blocks. Cleanup aux field of
5854 loop's basic blocks.
5856 2019-05-08 Jakub Jelinek <jakub@redhat.com>
5858 PR tree-optimization/90356
5859 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
5861 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
5863 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
5864 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
5865 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
5866 (ix86_handle_option): Handle -mavx512bf16.
5867 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
5869 * config/i386/avx512bf16vlintrin.h: New.
5870 * config/i386/avx512bf16intrin.h: New.
5871 * config/i386/cpuid.h (bit_AVX512BF16): New.
5872 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
5873 * config/i386/i386-builtin-types.def: Add new types.
5874 * config/i386/i386-builtin.def: Add new builtins.
5875 * config/i386/i386-c.c (ix86_target_macros_internal): Define
5877 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
5878 (ix86_option_override_internal): Handle BF16.
5879 (ix86_valid_target_attribute_inner_p): Ditto.
5880 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
5881 * config/i386/i386-builtin.c (enum processor_features): Add
5883 (static const _isa_names_table isa_names_table): Ditto.
5884 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
5885 (PTA_AVX512BF16): Ditto.
5886 * config/i386/i386.opt: Add -mavx512bf16.
5887 * config/i386/immintrin.h: Include avx512bf16intrin.h
5888 and avx512bf16vlintrin.h.
5889 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
5890 avx512f_cvtneps2bf16_<mode><mask_name>,
5891 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
5892 * config/i386/subst.md (mask_half): Add new subst.
5893 * doc/invoke.texi: Document -mavx512bf16.
5895 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
5897 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
5899 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
5900 (rs6000_debug_legitimize_reload_address): Delete.
5901 (rs6000_legitimize_reload_address_ptr): Delete.
5902 (rs6000_option_override_internal): Adjust.
5903 (mem_operand_gpr): Adjust comment.
5904 (legitimate_lo_sum_address_p): Ditto.
5905 (rs6000_legitimize_reload_address): Delete.
5906 (rs6000_debug_legitimize_reload_address): Delete.
5907 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
5909 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
5912 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
5913 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
5914 to compute vector element selector for both constant and variable
5917 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
5919 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
5920 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
5921 ashrdi3_cvt using SWI48 mode iterator.
5923 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
5925 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
5926 (aarch64_<su>abd<mode>_3): Likewise.
5927 (*aarch64_<su>abd<mode>_3): New define_insn.
5928 (<sur>sad<vsi2qi>): New define_expand.
5929 * config/aarch64/iterators.md: Added MAX_OPP attribute.
5930 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
5931 (build_vect_cond_expr): Likewise.
5933 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
5935 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
5936 clobbers outside of accessible_reg_set.
5937 * config/i386/i386.c (ix86_conditional_register_usage):
5938 Disable register sets by clearing corresponding bits in
5939 accessible_reg_set. Do not set corresponding bits in fixed_regs,
5940 call_used_regs and don't clear corresponding reg_names array members.
5942 2019-05-07 Richard Biener <rguenther@suse.de>
5944 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
5945 not specified still compute a comp_vectype for invariant
5948 2019-05-07 Richard Biener <rguenther@suse.de>
5950 PR tree-optimization/90316
5951 * tree-ssa-pre.c (translate_vuse_through_block): When
5952 same_valid is NULL do not bother to search for a virtual
5954 (phi_translate_1): When operands changed we cannot keep
5955 the same value-number so do not bother to ask whether
5956 that's possible from translate_vuse_through_block.
5958 2019-05-07 Martin Liska <mliska@suse.cz>
5960 * bitmap.c (bitmap_register): Come up with
5961 alloc_descriptor_max_uid and assign it for
5963 (register_overhead): Use get_descriptor as
5965 (release_overhead): New.
5966 (bitmap_elem_to_freelist): Call it.
5967 (bitmap_elt_clear_from): Likewise.
5968 (bitmap_obstack_free): Likewise.
5969 (bitmap_move): Sensitively release memory.
5970 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
5971 (bitmap_initialize): Initialize alloc_descriptor to zero.
5972 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
5974 2019-05-07 Richard Biener <rguenther@suse.de>
5976 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
5977 we build a SLP node. Remove max_size and limiting.
5978 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
5980 2019-05-07 Richard Biener <rguenther@suse.de>
5982 PR tree-optimization/90316
5983 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
5985 (walk_non_aliased_vuses): Take walking limit argument.
5986 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
5987 walking if it is reached instead of just counting.
5988 (get_continuation_for_phi): Likewise.
5989 (walk_non_aliased_vuses): Likewise, instead of leaving counter
5990 limiting to the callback.
5991 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
5992 (vn_reference_lookup_3): Likewise.
5993 (vn_reference_lookup_pieces): Likewise.
5994 (vn_reference_lookup): Likewise.
5995 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
5996 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
5997 (avail_exprs_stack::lookup_avail_expr): Likewise.
5999 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
6001 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
6002 for comparaible types in the second direction even if first one
6003 hits incomparable type.
6005 2019-05-07 Richard Biener <rguenther@suse.de>
6008 * lto-wrapper.c (debug_objcopy): Use the original filename
6009 including archive offset for the filename used for -save-temps.
6011 2019-05-07 Li Jia He <helijia@linux.ibm.com>
6013 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
6016 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
6017 Hongtao Liu <hongtao.liu@intel.com>
6021 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
6022 Modified, original implementation isn't correct.
6024 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
6026 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
6027 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
6028 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
6029 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
6030 (FRAME_POINTER_REGNUM): Change numbering.
6031 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
6032 (alt_reg_names): Adjust.
6033 (rs6000_conditional_register_usage): Don't mark hard register 64 as
6035 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
6036 (DWARF_FRAME_REGISTERS): Delete.
6037 (DWARF2_FRAME_REG_OUT): Fix whitespace.
6038 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
6040 (REG_ALLOC_ORDER): Adjust.
6041 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
6042 (REG_CLASS_CONTENTS): Adjust.
6043 (RETURN_ADDR_RTX): Change comment.
6044 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
6046 (REGISTER_NAMES): Adjust.
6047 (ADDITIONAL_REGISTER_NAMES): Adjust.
6048 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
6050 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
6052 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
6054 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
6055 (DWARF_FRAME_REGISTERS): Adjust.
6056 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
6058 (REG_ALLOC_ORDER): Adjust.
6059 (enum reg_class): Delete SPR_REGS.
6060 (REG_CLASS_NAMES): Delete SPR_REGS.
6061 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
6062 (REGISTER_NAMES): Adjust.
6063 (ADDITIONAL_REGISTER_NAMES): Adjust.
6064 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
6065 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
6066 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
6067 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
6068 (htm_spr_regno): Delete.
6069 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
6071 (rs6000_dbx_register_number): Adjust.
6073 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
6075 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
6077 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
6079 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
6080 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
6082 2019-05-06 Jakub Jelinek <jakub@redhat.com>
6084 PR tree-optimization/88709
6085 PR tree-optimization/90271
6086 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
6087 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
6088 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
6090 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
6091 of the store merging group is larger than
6092 PARAM_STORE_MERGING_MAX_SIZE parameter.
6093 (split_group): Add bzero_first argument. If set, always emit first
6094 the first store which must be = {} of the whole area and then for the
6095 rest of the stores consider all zero bytes as paddings.
6096 (imm_store_chain_info::output_merged_store): Check if first store
6097 is = {} of the whole area and if yes, determine which setting of
6098 bzero_first for split_group gives smaller number of stores. Adjust
6099 split_group callers.
6100 (lhs_valid_for_store_merging_p): Allow decls.
6101 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
6103 (pass_store_merging::process_store): Likewise.
6105 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
6108 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
6109 handling of V1TImode.
6111 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
6114 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
6115 and enable_frame_pointer ...
6116 * configure.ac: ... here. Update help strings for
6117 --enable-frame-pointer.
6118 * configure: Regenerate.
6119 * config/i386/i386-options.c (ix86_option_override_internal): Remove
6120 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
6121 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
6122 (USE_X86_64_FRAME_POINTER): Ditto.
6124 2019-05-06 Martin Liska <mliska@suse.cz>
6126 * config.gcc: Append to target_gtfiles and fix indentation.
6128 2019-05-06 Richard Biener <rguenther@suse.de>
6130 PR tree-optimization/90358
6131 * tree-vect-stmts.c (get_group_load_store_type): Properly
6132 detect unused upper half of load.
6133 (vectorizable_load): Likewise.
6135 2019-05-06 Richard Biener <rguenther@suse.de>
6137 PR tree-optimization/88828
6138 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
6139 (simplify_vector_constructor): ...here. Handle constants in
6142 2019-05-06 Richard Biener <rguenther@suse.de>
6144 PR tree-optimization/90328
6145 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
6146 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
6147 is valid in the loop nest before using it.
6148 (initialize_data_dependence_relation): Adjust.
6149 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
6150 loop as loop-nest to dr_may_alias_p.
6152 2019-05-06 Richard Biener <rguenther@suse.de>
6154 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
6156 2019-05-06 Richard Biener <rguenther@suse.de>
6158 PR tree-optimization/90316
6159 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
6160 compute target on demand.
6161 (get_continuation_for_phi): Remove code walking stmts to
6162 get to a target virtual operand which could end up being
6165 2019-05-06 Martin Liska <mliska@suse.cz>
6168 * config/i386/i386-options.c (ix86_option_override_internal): Error only
6169 when -mabi is selected to a non-default version.
6171 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
6172 Martin Liska <mliska@suse.cz>
6174 * Makefile.in: Add lto-dump.texi.
6175 * cgraph.h: Add new functions get_visibility_string and
6176 get_symtab_type_string.
6177 * doc/gcc.texi: Include lto-dump section.
6178 * doc/lto-dump.texi: New file.
6179 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
6180 (parse_dump_option): Factor out this function.
6181 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
6182 (parse_dump_option): Export the function.
6183 * symtab.c (symtab_node::get_visibility_string): New function.
6184 (symtab_node::get_symtab_type_string): Likewise.
6186 2019-05-06 Martin Liska <mliska@suse.cz>
6188 * config/i386/i386-builtins.c: New file.
6189 * config/i386/i386-builtins.h: New file.
6190 * config/i386/i386-expand.c: New file.
6191 * config/i386/i386-expand.h: New file.
6192 * config/i386/i386-features.c: New file.
6193 * config/i386/i386-features.h: New file.
6194 * config/i386/i386-options.c: New file.
6195 * config/i386/i386-options.h: New file.
6196 * config.gcc: Add new files into extra_objs and
6198 * config/i386/i386.c: Split content of the file
6199 into newly introduced files.
6200 * config/i386/i386.h: Declare common variables
6202 * config/i386/t-i386: Define dependencies for new files.
6204 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
6207 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
6208 Restrict 'all' variant to 32-bit configurations.
6209 (unaligned_loadhiu): Likewise.
6210 (unaligned_storehi): Likewise.
6211 (unaligned_storesi): Likewise.
6212 (unaligned_loadhis): Disable when compiling for thumb1.
6214 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
6216 PR tree-optimization/90269
6217 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
6220 2019-05-03 Martin Liska <mliska@suse.cz>
6222 * hash-map.h: Add is_empty function.
6223 * hash-set.h: Likewise.
6224 * hash-table.h: Likewise.
6225 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
6226 elements () == 0 (and similar usages).
6227 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
6228 * gimplify.c (gimplify_bind_expr): Likewise.
6229 (gimplify_switch_expr): Likewise.
6230 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
6231 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
6232 * postreload-gcse.c (dump_hash_table): Likewise.
6233 (gcse_after_reload_main): Likewise.
6234 * predict.c (combine_predictions_for_bb): Likewise.
6235 * tree-parloops.c (reduction_phi): Likewise.
6236 (separate_decls_in_region): Likewise.
6237 (transform_to_exit_first_loop): Likewise.
6238 (gen_parallel_loop): Likewise.
6239 (gather_scalar_reductions): Likewise.
6240 (try_create_reduction_list): Likewise.
6241 * var-tracking.c (dump_vars): Likewise.
6242 (emit_notes_for_changes): Likewise.
6243 (vt_emit_notes): Likewise.
6245 2019-05-03 Richard Biener <rguenther@suse.de>
6247 PR tree-optimization/90316
6248 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
6251 2019-05-03 Richard Biener <rguenther@suse.de>
6253 * tree-vect-stmts.c (get_group_load_store_type): Avoid
6254 peeling for gaps by loading only lower halves of vectors
6256 (vectorizable_load): Likewise.
6258 2019-05-03 Richard Biener <rguenther@suse.de>
6261 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
6263 2019-05-03 Richard Biener <rguenther@suse.de>
6266 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
6267 Handle STRING_CST vs DECL or STRING_CST.
6269 2019-05-03 Richard Biener <rguenther@suse.de>
6271 PR tree-optimization/88963
6272 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
6273 vector loads feeding only BIT_FIELD_REFs to component
6274 loads. Rewrite stores fed by CONSTRUCTORs to component
6277 2019-05-03 Jakub Jelinek <jakub@redhat.com>
6279 * opts.h (finish_options): Remove lang_mask argument.
6280 (print_help, help_option_argument): Declare.
6281 * opts.c (print_help): Remove forward declaration, no longer static.
6282 (finish_options): Remove lang_mask argument, don't call print_help
6284 * opts-global.c (decode_options): Adjust finish_option caller, call
6287 PR tree-optimization/90303
6288 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
6289 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
6291 2019-05-03 Richard Biener <rguenther@suse.de>
6293 PR tree-optimization/89698
6294 * gimple-fold.c (canonicalize_constructor_val): Early out
6295 for constants, handle unfolded INTEGER_CSTs as they appear in
6296 C++ virtual table ctors.
6298 2019-05-03 Richard Biener <rguenther@suse.de>
6300 * passes.c (execute_function_todo): Remove dead code.
6302 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
6304 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
6305 the internal register number, for any "real" register.
6307 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
6309 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
6310 correct numbers for TFHAR, TFIAR, TEXASR.
6312 2019-05-02 Richard Biener <rguenther@suse.de>
6314 PR tree-optimization/89653
6315 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
6316 update-address-taken before the pass.
6317 * passes.def (pass_tree_loop_init): Put comment before it.
6319 2019-05-02 Richard Biener <rguenther@suse.de>
6321 PR tree-optimization/89509
6322 * tree-ssa-structalias.c (compute_dependence_clique): Look
6323 at the first subvar when determining whether it is restrict.
6325 2019-05-02 Richard Biener <rguenther@suse.de>
6327 PR tree-optimization/90273
6328 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
6329 useless debug stmts.
6331 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
6333 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
6335 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
6337 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
6338 VEC_COND_EXPR be inserted to emulate a conditional internal function.
6339 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
6340 (vectorizable_reduction): Use the functions above to vectorize in a
6341 fully masked loop codes that don't have a conditional internal
6344 2019-05-02 Martin Liska <mliska@suse.cz>
6346 * cgraphclones.c: Call valid_attribute_p with 1 for
6348 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
6349 it's for target attribute.
6350 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
6351 Add new boolean argument.
6352 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
6354 (ix86_valid_target_attribute_tree): Pass target_clone_attr
6355 to ix86_valid_target_attribute_inner_p.
6356 (ix86_valid_target_attribute_p): Pass flags argument to
6357 ix86_valid_target_attribute_inner_p.
6358 (get_builtin_code_for_version): Use 0 as it's target attribute.
6360 2019-05-02 Martin Liska <mliska@suse.cz>
6362 * gcc.c (process_command): Add dummy file only
6364 * opts-global.c (decode_options): Pass lang_mask.
6365 * opts.c (print_help): New function.
6366 (finish_options): Print --help if help_option_argument
6368 (common_handle_option): Factor out content of OPT__help_
6370 * opts.h (finish_options): Add new argument.
6372 2019-05-02 Martin Liska <mliska@suse.cz>
6375 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
6376 With -minline-all-stringops use inline expansion using 4B loop.
6377 * doc/invoke.texi: Document the change of
6378 -minline-all-stringops.
6380 2019-05-01 Jeff Law <law@redhat.com>
6382 PR tree-optimization/88797
6383 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
6384 PHI feeds a conditional on the RHS of an assignment.
6386 2019-04-30 Andrew Waterman <andrew@sifive.com>
6387 Jim Wilson <jimw@sifive.com>
6389 * config/riscv/constraints.md (L): New.
6390 * config/riscv/predicates.md (lui_operand): New.
6391 (sfb_alu_operand): New.
6392 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
6393 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
6394 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
6395 * config/riscv/risc.md (type): Add sfb_alu.
6396 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
6397 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
6398 (branch_zero<mode>): Delete.
6400 (mov<GPR:mode><X:mode>cc): Likewise.
6401 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
6403 2019-04-30 Nathan Sidwell <nathan@acm.org>
6405 * tree.h (MARK_TS_EXP): New.
6407 2019-04-30 Martin Liska <mliska@suse.cz>
6409 * opts.c (enable_warning_as_error): Provide hints
6410 for unknown options.
6412 2019-04-30 Martin Liska <mliska@suse.cz>
6415 * doc/invoke.texi: Add missing dash for gas-locview-support
6416 and gno-as-locview-support.
6418 2019-04-30 Jakub Jelinek <jakub@redhat.com>
6421 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
6422 whitespace at the start of target attribute string.
6424 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6427 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
6428 Define __ARM_FEATURE_ATOMICS.
6430 2019-04-30 Martin Liska <mliska@suse.cz>
6432 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
6433 into built_in_function enum. Remove code for endp == 2 and
6434 use BUILT_IN_* constants.
6435 (gimple_fold_builtin): Call the function with fcode.
6437 2019-04-30 Martin Liska <mliska@suse.cz>
6439 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
6440 DECL_FUNCTION_CODE into ix86_builtins enum before
6441 the switch statement.
6443 2019-04-30 Jakub Jelinek <jakub@redhat.com>
6445 PR tree-optimization/89475
6446 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
6449 2019-04-30 Martin Liska <mliska@suse.cz>
6451 PR translation/90274
6452 * opts.c (print_filtered_help): Wrap string in _(...).
6454 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
6456 PR tree-optimization/90240
6458 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
6460 PR tree-optimization/90078
6461 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
6462 checks for infinite_cost overflow.
6464 2019-04-29 Jeff Law <law@redhat.com>
6466 * passes.def: Move -Wrestrict pass after copy propagation.
6468 2019-04-29 Maya Rashish <coypu@sdf.org>
6470 * config.gcc (default_gnu_indirect_function): Default to yes
6471 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
6472 sparc*-*-netbsd*, x86_64-*-netbsd*.
6474 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
6476 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
6477 where cond2 is NE_EXPR.
6478 (is_value_included_in): Update comment.
6480 2019-04-29 Richard Biener <rguenther@suse.de>
6482 PR tree-optimization/90278
6483 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
6484 EH on comparison simplification.
6486 2019-04-29 Jason Merrill <jason@redhat.com>
6488 PR c++/82081 - tail call optimization breaks noexcept
6489 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
6490 nothrow function to a might-throw function into a tail call.
6492 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
6494 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
6495 (DDR_INNER_LOOP): Likewise.
6496 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
6497 (initialize_data_dependence_relation): Likewise.
6498 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
6500 2019-04-29 Jakub Jelinek <jakub@redhat.com>
6502 PR rtl-optimization/90257
6503 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
6507 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
6511 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
6514 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
6517 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
6519 * lra-spills.c (lra_final_code_change): Remove useless move insns.
6521 2019-04-29 Richard Biener <rguenther@suse.de>
6523 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
6526 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
6528 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
6529 varasm.h, and netbsd-protos.h.
6531 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
6534 * config/i386/i386-protos.h (ix86_data_alignment): Change
6535 the second argument type to unsigned int.
6536 * config/i386/i386.c (ix86_data_alignment): Change "align"
6537 argument type to unsigned int.
6539 2019-04-27 Martin Liska <mliska@suse.cz>
6542 * opt-suggestions.c (option_proposer::build_option_suggestions):
6543 When get_valid_option_values returns empty values, add the
6544 misspelling candidate.
6546 2019-04-26 Jim Wilson <jimw@sifive.com>
6548 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
6550 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
6551 Pass orig_mode to riscv_build_integer.
6552 (riscv_split_integer): Pass mode to riscv_move_integer.
6553 (riscv_legitimize_const_move): Likewise.
6554 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
6555 promoted_mode. Replace force_reg call with code to load constant into
6556 promoted reg and then subreg it for the store.
6557 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
6560 2018-04-26 Eugene Sharygin <eush@ispras.ru>
6562 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
6565 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
6567 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
6568 commentary about the encoding of precision.
6570 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
6572 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
6573 * config/i386/t-freebsd64: New file.
6574 * config.gcc: Add the t-freebsd64 for multilib support.
6576 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
6578 * doc/extend.texi (vector_size): Add missing comma after @xref.
6580 2019-04-25 Jakub Jelinek <jakub@redhat.com>
6582 * BASE-VER: Set to 10.0.0.
6584 2019-04-25 Richard Biener <rguenther@suse.de>
6587 * gimplify.c (gimplify_expr): Avoid turning a lvalue
6588 VIEW_CONVERT_EXPR into one operating on an rvalue.
6590 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
6593 * config/i386/i386.c (feature_priority): Moved to file scope.
6594 (processor_features): Likewise.
6595 (processor_model): Likewise.
6596 (_arch_names_table): Likewise.
6597 (arch_names_table): Likewise.
6598 (_feature_list): Removed.
6599 (feature_list): Likewise.
6600 (_isa_names_table): Moved to file scope. Add priority.
6601 (isa_names_table): Likewise.
6602 (get_builtin_code_for_version): Replace feature_list with
6603 isa_names_table. Update error message for P_ZERO priority.
6605 2019-04-25 Richard Biener <rguenther@suse.de>
6607 * tree-pass.h (make_pass_phi_only_cprop): Remove.
6608 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
6610 2019-04-24 Jeff Law <law@redhat.com>
6612 PR tree-optimization/90037
6613 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
6614 * passes.def: Replace all instance of phi-only cprop with the
6615 lattice propagator. Move propagation pass from after erroneous
6616 path isolation to before erroneous path isolation.
6617 * tree-ssa-phionlycprop.c: Remove.
6619 2019-04-24 Richard Biener <rguenther@suse.de>
6622 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
6623 by size and BITS_PER_UNIT on poly-wide-ints.
6625 2019-04-25 Richard Biener <rguenther@suse.de>
6628 * match.pd: Add pattern to simplify view-conversion of an
6631 2019-04-24 Clement Chigot <clement.chigot@atos.net>
6633 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
6634 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
6635 for Go on 32 bit AIX.
6636 * config/rs6000/aix72.h: Likewise.
6638 2019-04-24 Jakub Jelinek <jakub@redhat.com>
6641 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
6642 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
6644 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
6647 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
6648 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
6649 for restored hard frame pointer.
6650 (s390_sched_dependencies_evaluation): Implement new target hook.
6651 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
6653 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
6655 * config/arc/arc-options.def: Fix typos and spelling mistakes.
6656 * config/arc/arc.c (arc_init): Cleanup warning message.
6657 (arc_override_options): Likewise.
6659 2019-04-24 Jakub Jelinek <jakub@redhat.com>
6662 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
6663 a register if both if_true and if_false are MEMs.
6665 PR tree-optimization/90208
6666 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
6667 after labels of new_bb, not before them.
6669 PR tree-optimization/90211
6670 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
6671 which are not SSA_NAMEs.
6673 2018-04-23 Sudakshina Das <sudi.das@arm.com>
6675 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
6677 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
6679 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
6681 PR rtl-optimization/87979
6682 * modulo-sched.c (sms_schedule): Start ii value "mii" should
6685 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
6687 PR rtl-optimization/84032
6688 * modulo-sched.c (ps_insn_find_column): Change condition so that
6689 branch will always be the last insn in a row inside partial
6692 2019-04-23 Richard Biener <rguenther@suse.de>
6695 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
6696 dest_single_pred_p argument.
6697 (remove_forwarder_block): Adjust.
6698 (remove_forwarder_block_with_phi): Likewise.
6700 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6701 Bernd Edlinger <bernd.edlinger@hotmail.de>
6702 Jakub Jelinek <jakub@redhat.com>
6705 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
6706 if used with general-regs-only.
6707 (arm_conditional_register_usage): Don't add non-general regs if
6709 (arm_valid_target_attribute_rec): Handle general-regs-only.
6710 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
6712 (TARGET_HARD_FLOAT_SUB): Define.
6713 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
6714 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
6715 (TARGET_REALLY_IWMMXT2): Likewise.
6716 * config/arm/arm.opt: Add -mgeneral-regs-only.
6717 * doc/extend.texi: Document ARM general-regs-only target.
6718 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
6720 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
6722 PR tree-optimization/90078
6723 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
6724 checks for infinite_cost overflow.
6726 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
6728 PR tree-optimization/90021
6729 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
6730 and check univariate against it.
6731 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
6732 * tree-data-ref.c (add_other_self_distances): Pass new argument.
6734 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
6738 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
6741 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
6744 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
6746 * lra-spills.c (lra_final_code_change): Remove useless move insns.
6748 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
6750 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
6751 names using operand format, rather than hard-wired.
6752 (speculation_barrier): Likewise.
6754 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
6756 PR tree-optimization/88055
6757 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
6758 (gen_one_condition): Use it if !HONOR_NANS.
6760 2019-04-19 Jakub Jelinek <jakub@redhat.com>
6763 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
6764 assign_temp instead of gen_reg_rtx.
6766 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
6768 PR translation/90118
6769 * config/aarch64/aarch64.c (aarch64_override_options_internal):
6770 Add missing space before %<.
6772 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
6774 PR rtl-optimization/87871
6775 * ira-lives.c (make_object_dead): Don't add conflicts to
6776 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
6778 2019-04-18 Martin Sebor <msebor@redhat.com>
6781 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
6782 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
6783 assuming type size fits in SHWI.
6785 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
6788 * ipa-inline.c (flatten_function): New parameter UPDATE.
6789 (ipa_inline, early_inliner): Use it.
6791 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
6793 * fold-const.c (int_const_binop): Return early on failure.
6795 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
6798 * combine.c (force_int_to_mode): Cast the argument rather than
6799 the result of known_alignment.
6800 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
6802 2019-04-18 Richard Biener <rguenther@suse.de>
6805 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
6807 (remove_forwarder_block): ... here.
6808 (remove_forwarder_block_with_phi): Also move debug stmts here.
6810 2019-04-18 Jakub Jelinek <jakub@redhat.com>
6812 PR translation/79183
6813 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
6814 inform where appropriate.
6816 2019-04-18 Richard Biener <rguenther@suse.de>
6818 * tree.c (get_qualified_type): Put found type variants at the
6819 head of the variant list.
6821 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
6823 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
6825 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
6828 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
6829 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
6830 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
6831 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
6832 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
6834 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
6836 * ira-conflicts.c (print_allocno_conflicts): Always print something,
6837 even for allocno's with no conflicts.
6838 (print_conflicts): Print an extra newline.
6840 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
6842 * auto-inc-dec.c (attempt_change): Set the alignment of the
6843 temporary memory to that of the original.
6845 2019-04-17 Joao Moreira <jmoreira@suse.de>
6847 * targhooks.c (default_print_patchable_function_entry): Emit
6848 __patchable_function_entries section with writable flags to allow
6849 relocation resolution.
6851 2019-04-17 Jonny Grant <jg@jguk.org>
6853 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
6855 2019-04-17 Jakub Jelinek <jakub@redhat.com>
6858 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
6861 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
6863 * config/arc/arc.c (arc_init): Format diagnostic string.
6864 (arc_override_options): Likewise.
6865 (check_if_valid_regno_const): Likewise.
6866 (arc_reorg): Likewise.
6868 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
6871 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
6873 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
6875 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
6876 (*movdi_update1): Use Pmode.
6877 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
6878 (movdi_<mode>_update_stack): Rename to ...
6879 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
6881 (*movsi_update1): Use Pmode.
6882 (*movsi_update2): Use Pmode.
6883 (movsi_update): Rename to ...
6884 (movsi_<mode>_update): ... this. Use Pmode.
6885 (movsi_update_stack): Fix condition.
6886 (*movhi_update1): Use Pmode. Fix argument to
6887 avoiding_indexed_address_p.
6888 (*movhi_update2): Ditto.
6889 (*movhi_update3): Ditto.
6890 (*movhi_update4): Ditto.
6891 (*movqi_update1): Ditto.
6892 (*movqi_update2): Ditto.
6893 (*movqi_update3): Ditto.
6894 (*movsf_update1, *movdf_update1): Merge, rename to...
6895 (*mov<mode>_update1): This. Use Pmode. Fix argument to
6896 avoiding_indexed_address_p. Add "size" attribute.
6897 (*movsf_update2, *movdf_update2): Merge, rename to...
6898 (*mov<mode>_update2): This. Ditto.
6899 (*movsf_update3): Use Pmode. Fix argument to
6900 avoiding_indexed_address_p.
6901 (*movsf_update4): Ditto.
6902 (allocate_stack): Simplify condition. Adjust pattern names.
6904 2019-04-17 Jakub Jelinek <jakub@redhat.com>
6907 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
6908 whitespace at the start of target attribute string.
6910 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
6913 * config/rs6000/power9.md: Add store forwarding bypass.
6915 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
6918 * valtrack.c (dead_debug_insert_temp): Reset debug references
6919 to the return value of a call being removed.
6921 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
6923 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
6924 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
6925 implement target hook.
6926 (arc_memory_move_cost): New function.
6927 (TARGET_REGISTER_MOVE_COST): Define.
6928 (TARGET_MEMORY_MOVE_COST): Likewise.
6929 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
6930 (MEMORY_MOVE_COST): Likewise.
6932 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
6934 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
6935 (sibcall_value_insn): Likewise.
6936 * config/arc/constraints.md (Rs5): Remove.
6938 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
6940 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
6941 for last two fake registers.
6942 (arc_conditional_register_usage): Make sure fake frame and arg
6943 pointer regs are in general regs class.
6944 (FRAME_POINTER_MASK): Remove.
6945 (RETURN_ADDR_MASK): Remove.
6946 (arc_must_save_register): Use hard frame regnum.
6947 (frame_restore_reg): Use hard_frame_pointer_rtx.
6948 (arc_save_callee_saves): Likewise.
6949 (arc_restore_callee_saves): Likewise.
6950 (arc_save_callee_enter): Likewise.
6951 (arc_restore_callee_leave): Likewise.
6952 (arc_save_callee_milli): Likewise.
6953 (arc_eh_return_address_location): Likewise.
6954 (arc_check_multi): Use hard frame regnum.
6955 (arc_can_eliminate): Likewise.
6956 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
6957 for register allocator.
6958 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
6959 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
6960 (FRAME_POINTER_REGNUM): Change it to a fake register.
6961 (HARD_FRAME_POINTER_REGNUM): Defined.
6962 (ARG_POINTER_REGNUM): Change it to a new fake register.
6963 (ELIMINABLE_REGS): Update.
6964 (REGISTER_NAMES): Update names.
6965 * config/arc/arc.md (LP_START): Remove.
6967 (shift_si3_loop): Update pattern.
6969 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
6971 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
6972 to avoid delay slot scheduling.
6973 (arc_must_save_register): Don't save SP.
6974 * config/arc/arc.md (stack_tie): Remove.
6975 (UNSPEC_ARC_STKTIE): Likewise.
6977 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
6978 Shiva Chen <shiva0217@gmail.com>
6980 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
6981 code gen with large shift amount.
6983 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
6985 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
6988 2019-04-16 Jakub Jelinek <jakub@redhat.com>
6991 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
6992 print -m64/-mx32/-m32 if it is true.
6993 (ix86_debug_options, ix86_function_specific_print): Pass true as
6994 ADD_ABI_P to ix86_target_string.
6995 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
6996 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
6997 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
6999 PR rtl-optimization/90082
7000 * dce.c (can_delete_call): New function.
7001 (deletable_insn_p, mark_insn): Use it.
7003 PR tree-optimization/90090
7004 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
7006 (is_division_by_square): Likewise. Formatting fix.
7008 2019-04-16 Richard Biener <rguenther@suse.de>
7010 PR tree-optimization/56049
7011 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
7012 equality check if alias-set zero will prevail.
7014 2019-04-15 Jeff Law <law@redhat.com>
7016 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
7017 size and alignment as unsigned.
7019 2019-04-15 Richard Biener <rguenther@suse.de>
7022 * tree-loop-distribution.c (destroy_loop): Preserve correct
7025 2019-04-15 Richard Biener <rguenther@suse.de>
7027 PR tree-optimization/90071
7028 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
7029 abnormal operands from def stmts.
7031 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
7033 PR rtl-optimization/89794
7034 * combine.c (count_auto_inc): New function.
7035 (try_combine): Count how many auto_inc expressions there were in the
7036 original instructions. Ensure we have the same number in the new
7037 instructions. Remove the code that tried to ensure auto_inc side
7038 effects on i1 and i0 are not lost.
7040 2019-04-15 Richard Biener <rguenther@suse.de>
7043 * tree.h (auto_var_p): Declare.
7044 * tree.c (auto_var_p): New function, split out from ...
7045 (auto_var_in_fn_p): ... here.
7046 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
7048 (new_var_info): Initialize it.
7049 (set_uids_in_ptset): Also set the shadow variable uid if required.
7050 (ipa_pta_execute): Postprocess points-to solutions assigning
7051 shadow variable uids for locals that may reach their containing
7052 function recursively.
7053 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
7054 assert but instead check whether the points-to solution is
7057 2019-04-15 Martin Jambor <mjambor@suse.cz>
7060 * cgraph.c (clone_of_p): Loop over clone chain for each step in
7063 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
7065 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
7067 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
7068 Kito Cheng <kito.cheng@gmail.com>
7069 Shiva Chen <shiva0217@gmail.com>
7071 * config/nds32/nds32-md-auxiliary.c
7072 (nds32_legitimize_pic_address): Use new PIC pattern.
7073 (nds32_legitimize_tls_address): Use new TLS pattern.
7074 (nds32_output_symrel): New.
7075 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
7076 (nds32_alloc_relax_group_id): Ditto.
7077 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
7078 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
7080 (nds32_group_tls_insn): Ditto.
7081 (nds32_group_float_insns): Ditto.
7082 * config/nds32/nds32.md (tls_le): New.
7085 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
7087 * configure: Add nds32 target for dwarf2 debug_line checking.
7088 * configure.ac: Regenerated.
7090 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
7093 * ipa-devirt.c (skip_in_fields_list_p): New.
7094 (odr_types_equivalent_p): Use it.
7096 2019-04-13 Jakub Jelinek <jakub@redhat.com>
7099 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
7100 instead of strncmp when checking for thumb and arm. Formatting fixes.
7102 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
7104 * doc/install.texi: Document --with-target-system-zlib.
7106 2019-04-12 Martin Sebor <msebor@redhat.com>
7112 * targhooks.c (default_vector_alignment): Avoid assuming
7113 argument fits in SHWI.
7114 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
7116 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
7118 2019-04-12 Jakub Jelinek <jakub@redhat.com>
7120 PR rtl-optimization/89965
7121 * dce.c: Include rtl-iter.h.
7122 (struct check_argument_load_data): New type.
7123 (check_argument_load): New function.
7124 (find_call_stack_args): Check for loads from stack slots still tracked
7125 in sp_bytes and punt if any is found.
7127 * config/mips/loongson-mmiintrin.h: Fix up #error message.
7129 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
7131 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
7132 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
7134 2019-04-12 Martin Liska <mliska@suse.cz>
7137 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
7139 (separate_attrs): Handle multiple 'default's.
7140 (expand_target_clones): Rework error handling code.
7142 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
7145 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
7146 mode of vector rather than mode of destination for move instruction.
7147 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
7148 Use QI inner mode with V16QI vector mode.
7150 2019-04-12 Jakub Jelinek <jakub@redhat.com>
7153 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
7154 "invalid %%t operand" in output_operand_lossage message.
7156 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
7158 * config/s390/predicates.md (permute_pattern_operand): New
7160 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
7161 operand for the permute pattern.
7162 ("*vec_perm<mode>"): New insn definition.
7163 ("bswap<mode>"): Generate the permute pattern operand in the
7164 expander and perform the operand reloads for pre arch13 level
7166 ("*bswap<mode>_emu"): Rename to ...
7167 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
7168 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
7169 Add the USE operand for the permute pattern.
7170 ("*vec_set_bswap_vec<mode>"): Likewise.
7172 2019-04-12 Jakub Jelinek <jakub@redhat.com>
7175 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
7176 and gcc_unreachable if it fails, just call tree_to_uhwi which
7177 verifies that too. Test TREE_CHAIN instead of list_length > 1.
7178 Start warning message with a lower-case letter. Formatting fixes.
7180 PR rtl-optimization/90026
7181 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
7182 successors, look for BARRIERs inside of the whole BB_FOOTER chain
7183 rather than just at the start of it. If e->src BB_FOOTER is not NULL
7184 in cfglayout mode, use emit_barrier_after_bb.
7186 2018-04-11 Steve Ellcey <sellcey@marvell.com>
7188 PR rtl-optimization/87763
7189 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
7192 2019-04-11 Tom de Vries <tdevries@suse.de>
7194 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
7195 max macro using statement expression.
7197 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
7199 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
7200 * xcoffout.c (xcoff_private_rodata_section_name): Define.
7201 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
7202 read_only_private_data_section using xcoff_private_rodata_section_name.
7203 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
7205 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
7208 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
7210 2019-04-11 Jakub Jelinek <jakub@redhat.com>
7212 PR rtl-optimization/89965
7213 * dce.c (sp_based_mem_offset): New function.
7214 (find_call_stack_args): Use sp_based_mem_offset.
7216 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
7218 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
7220 2019-04-11 Richard Biener <rguenther@suse.de>
7222 PR tree-optimization/90020
7223 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
7224 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
7225 * tree-ssa-pre.c (compute_avail): Use it to not put
7226 possibly trapping references after a call that might not
7227 return into EXP_GEN.
7228 * gcse.c (compute_hash_table_work): Do not elide
7229 marking a block containing a call if the call might not
7232 2019-04-11 Richard Biener <rguenther@suse.de>
7234 PR tree-optimization/90018
7235 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
7236 Test both SLP and interleaving variants.
7238 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
7240 * config/s390/8561.md: New file.
7241 * config/s390/driver-native.c (s390_host_detect_local_cpu):
7242 Add arch13 cpu model.
7243 * config/s390/s390-opts.h (enum processor_type): Likewise.
7244 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
7245 (s390_get_unit_mask): Likewise.
7246 (s390_is_fpd): Likewise.
7247 (s390_is_fxd): Likewise.
7248 * config/s390/s390.h (s390_tune_attr): Likewise.
7249 * config/s390/s390.md: Include arch13 pipeline description.
7250 * config/s390/s390.opt: Add arch13.
7252 2018-04-10 Steve Ellcey <sellcey@marvell.com>
7254 PR rtl-optimization/87763
7255 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
7257 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
7259 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
7261 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
7262 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
7263 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
7264 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
7266 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
7268 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
7269 "Although" in -fipa-icf documentation.
7271 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
7272 of using multiple -g options.
7274 2019-04-10 Martin Liska <mliska@suse.cz>
7276 PR gcov-profile/89959
7277 * doc/gcov.texi: Make documentation of -x option
7280 2019-04-10 Richard Biener <rguenther@suse.de>
7282 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
7284 (DR_GROUP_SAME_DR_STMT): Remove.
7285 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
7286 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
7287 replace with assert.
7288 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
7289 (vect_record_grouped_load_vectors): Remove unreachable code.
7291 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
7294 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
7295 obsolete reference to N.
7297 2019-04-10 Jakub Jelinek <jakub@redhat.com>
7300 * expr.c (store_expr): Set properly size on the MEM passed to
7304 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
7305 with strlen in between hostsz-3 and hostsz-1 inclusive when no
7306 translation is needed, and when translation is needed, only append
7307 ... if the string length is hostsz or more bytes long. Avoid using
7310 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
7313 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
7314 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
7316 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
7317 differences directly.
7318 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
7320 2019-04-09 Jakub Jelinek <jakub@redhat.com>
7322 PR translation/90011
7323 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
7325 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
7327 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
7328 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
7329 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
7330 trailing space from -gsplit-dwarf diagnostics.
7332 PR tree-optimization/89998
7333 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
7334 instead of integer_type_node if possible, don't add ranges if return
7335 type is not compatible with int.
7336 * gimple-fold.c (gimple_fold_builtin_sprintf,
7337 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
7340 2019-04-09 Martin Liska <mliska@suse.cz>
7342 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
7343 * doc/install.texi: Document the new config.
7345 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
7347 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
7348 use gimple_expr_type for load and store calls. Skip over the
7349 condition argument in a conditional internal function.
7350 Protect use of TREE_INT_CST_LOW.
7352 2019-04-09 Jakub Jelinek <jakub@redhat.com>
7355 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
7356 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
7357 trailing period from it too.
7359 2019-04-08 wu yuan <wuyuan5@huawei.com>
7361 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
7362 * config/aarch64/aarch64.md : Add "tsv110.md"
7363 * config/aarch64/tsv110.md: New file.
7365 2019-04-08 Richard Biener <rguenther@suse.de>
7367 PR tree-optimization/90006
7368 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
7371 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
7374 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
7376 (fma_root_node): Likewise.
7377 (func_fma_steering): Likewise.
7379 2019-04-08 Jakub Jelinek <jakub@redhat.com>
7381 PR rtl-optimization/89865
7382 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
7384 PR rtl-optimization/89865
7385 * config/i386/i386.md
7386 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
7387 numbers not to clash with the additional operands[4].
7388 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
7389 with extra register copy in the middle.
7391 2019-04-08 Martin Liska <mliska@suse.cz>
7393 PR gcov-profile/89961
7394 * doc/gcov.texi: Document data_file.
7395 * gcov.c (generate_results): Add data_info into JSON output.
7397 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
7399 PR tree-optimization/89725
7400 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
7401 loop's chrec as invariant symbol.
7402 * tree-chrec.h (chrec_contains_symbols): New parameter.
7403 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
7404 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
7405 function of loops not in DDR's loop_nest.
7406 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
7408 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
7411 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
7414 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
7417 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
7418 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
7420 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
7422 * sched-deps.c (sched_macro_fuse_insns): Check return value of
7423 targetm.fixed_condition_code_regs.
7425 2019-04-05 Richard Biener <rguenther@suse.de>
7429 * tree-cfgcleanup.c (remove_forwarder_block): Always move
7430 debug bind stmts but reset them if they are not valid at the
7433 2019-04-05 Martin Liska <mliska@suse.cz>
7435 PR translation/89936
7436 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
7437 order to wrap keywords or arguments.
7438 * collect2.c (main): Likewise.
7439 (scan_prog_file): Likewise.
7440 (scan_libraries): Likewise.
7441 * common/config/riscv/riscv-common.c
7442 (riscv_subset_list::parsing_subset_version): Likewise.
7443 (riscv_subset_list::parse_std_ext): Likewise.
7444 * config/aarch64/aarch64.c (aarch64_override_options_internal):
7446 * config/arm/arm.c (arm_option_override): Likewise.
7447 * config/cris/cris.c (cris_print_operand): Likewise.
7448 * config/darwin-c.c (darwin_pragma_options): Likewise.
7449 (darwin_pragma_unused): Likewise.
7450 (darwin_pragma_ms_struct): Likewise.
7451 * config/ft32/ft32.c (ft32_print_operand): Likewise.
7452 * config/i386/i386.c (print_reg): Likewise.
7453 (ix86_print_operand): Likewise.
7454 * config/i386/xm-djgpp.h: Likewise.
7455 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
7456 * config/m32c/m32c.c (m32c_option_override): Likewise.
7457 * config/msp430/msp430.c (msp430_option_override): Likewise.
7458 * config/nds32/nds32.c (nds32_option_override): Likewise.
7459 * config/nvptx/mkoffload.c (main): Likewise.
7460 * config/rx/rx.c (rx_print_operand): Likewise.
7461 (valid_psw_flag): Likewise.
7462 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
7463 (vms_pragma_nomember_alignment): Likewise.
7464 (vms_pragma_extern_model): Likewise.
7465 * lto-wrapper.c (compile_offload_image): Likewise.
7466 * omp-offload.c (oacc_parse_default_dims): Likewise.
7467 * symtab.c (symtab_node::verify_base): Likewise.
7468 * tlink.c (recompile_files): Likewise.
7469 (start_tweaking): Likewise.
7470 * tree-profile.c (parse_profile_filter): Likewise.
7472 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
7474 PR tree-optimization/89956
7475 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
7476 multiple negates of the same value.
7478 2019-04-04 Martin Sebor <msebor@redhat.com>
7482 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
7483 have the same precision since the function crashes otherwise.
7484 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
7485 has non-zero arguments.
7487 2019-04-04 Martin Sebor <msebor@redhat.com>
7490 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
7491 out if the number of arguments is less than expected.
7493 2019-04-04 Jeff Law <law@redhat.com>
7495 PR rtl-optimization/89399
7496 * ree.c (combine_set_extension): Use single_set rather than
7497 digging into PATTERN for items on the candidate list.
7498 (combine_reaching_defs): Likewise.
7500 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
7502 PR rtl-optimization/46590
7503 * loop-invariant.c (find_defs): Move df_remove_problem and
7504 df_process_deferred_rescans to move_invariants.
7505 Move df_live_add_problem and df_live_set_all_dirty calls
7507 (move_invariants): Likewise.
7508 (move_loop_invariants): Likewise, making the df_live calls
7509 conditional on -O. Remove the problem again if we added it
7512 2019-04-03 qing zhao <qing.zhao@oracle.com>
7514 PR tree-optimization/89730
7515 * ipa-inline.c (can_inline_edge_p): Delete the checking for
7516 -flive-patching=inline-only-static.
7517 (can_inline_edge_by_limits_p): Add the checking for
7518 -flive-patching=inline-only-static and grant always_inline
7519 even when -flive-patching=inline-only-static is specified.
7521 2019-04-03 Jeff Law <law@redhat.com>
7523 PR rtl-optimization/81025
7524 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
7526 2019-04-03 Richard Biener <rguenther@suse.de>
7528 PR tree-optimization/84101
7529 * tree-vect-stmts.c: Include explow.h for hard_function_value,
7530 regs.h for hard_regno_nregs.
7531 (cfun_returns): New helper.
7532 (vect_model_store_cost): When vectorizing a store to a decl
7533 we return and the function ABI returns in a multi-reg location
7534 account for the possible spilling that will happen.
7536 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
7538 * config/s390/s390.c (s390_legitimate_address_p): Reject long
7539 displacement addresses for vector mode operands.
7541 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
7543 * config/arc/arc.c (GMASK_LEN): Define.
7544 (arc_restore_callee_saves): Restore first blink when
7547 2019-04-03 Sudakshina Das <sudi.das@arm.com>
7549 * doc/extend.texi: Add deprecated comment on sign-return-address
7550 function attribute and add mbranch-protection.
7551 * doc/invoke.texi: Add bti to the options for mbranch-protection.
7553 2019-04-03 Richard Biener <rguenther@suse.de>
7556 * lto-wrapper.c (run_gcc): Avoid implicit rules making
7557 the all target phony.
7559 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
7563 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
7564 Return false for variable DImode shifts.
7565 (dimode_scalar_chain::compute_convert_gain): Do not handle
7566 register count operand in variable DImode shifts.
7567 (dimode_scalar_chain::make_vector_copies): Remove support to copy
7568 count argument of a variable shift instruction to a vector register.
7569 (dimode_scalar_chain::convert_reg): Remove support to convert
7570 count argument of a variable shift instruction.
7572 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
7574 PR rtl-optimization/84206
7575 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
7576 iterating over loop headers.
7578 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
7580 PR rtl-optimization/85876
7581 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
7582 beyond the original fence.
7584 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
7586 * config.gcc: Mark spu* targets as deprecated/obsolete.
7588 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
7590 * config/s390/s390-builtin-types.def: New builtin function type
7591 definitions. Remove unused types.
7592 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
7593 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
7594 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
7595 overloaded builtins.
7596 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
7597 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
7598 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
7599 (vec_double, vec_signed, vec_unsigned): Define to use the new
7600 overloaded builtins.
7601 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
7604 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
7606 * config/s390/s390-builtin-types.def: New builtin function type
7608 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
7609 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
7610 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
7611 (s390_vstrszh, s390_vstrszf): New low-level builtins.
7612 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
7613 constant definitions.
7614 * config/s390/vecintrin.h (vec_search_string_cc)
7615 (vec_search_string_until_zero_cc): New builtin name definitions.
7616 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
7618 ("vec_vstrs<mode>"): New insn definition.
7620 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
7622 * config/s390/s390-builtin-types.def: Add new builtin function
7624 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
7625 New overloaded builtins.
7626 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
7628 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
7629 (UNSPEC_VEC_SLDBYTE): ... this.
7630 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
7631 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
7633 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
7634 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
7635 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
7637 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
7639 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
7640 New insn definition.
7641 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
7642 * config/s390/vector.md (V_HW_HSD): ... here.
7644 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
7646 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
7647 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
7648 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
7649 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
7650 New insn definitions.
7652 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
7654 * config/s390/s390-builtin-types.def: Add new builtin function type.
7655 * config/s390/s390-builtins.def: Add overloaded builtin
7656 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
7657 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
7658 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
7659 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
7660 ("eltswap<mode>"): New expander.
7661 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
7664 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
7666 * config/s390/s390-builtin-types.def: Add new builtin function types.
7667 * config/s390/s390-builtins.def: Add overloaded builtin
7668 s390_vec_revb. Add low-level builtins for vlbr and vstbr
7670 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
7671 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
7672 ("bswap<mode>"): New expander.
7673 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
7675 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
7677 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
7678 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
7679 vector builtin version number in __VEC__.
7681 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
7683 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
7685 (SFSI): New mode attribute.
7686 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
7687 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
7689 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
7690 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
7691 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
7692 ("floatsi<mode>2"): Add wcefb instruction.
7694 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
7696 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
7697 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
7699 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
7700 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
7701 support 32 bit fp-int conversions. Rename to ...
7702 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
7703 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
7704 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
7705 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
7708 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
7710 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
7711 if-then-else constructs if we can use the select instruction.
7712 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
7714 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
7716 * config/s390/s390.md ("*popcountdi_arch13_cc")
7717 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
7719 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
7720 Append _z196 to make it ...
7721 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
7722 ("popcounthi2_z196"): ... this.
7723 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
7724 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
7726 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
7728 * config/s390/s390.c (s390_canonicalize_comparison): Convert
7729 certain compares for arch13 in order to make use of the condition
7730 code result produced by the new instructions.
7731 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
7732 nxrk, and nxgrk instruction patterns.
7733 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
7734 (inv_no): Add new code iterator together with some attributes.
7735 ("*andc_split_<mode>"): Disable splitter for arch13.
7736 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
7737 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
7738 ("*<ANDOR:bitops_name>c<GPR:mode>")
7739 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
7740 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
7741 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
7742 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
7744 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
7746 * common/config/s390/s390-common.c (processor_flags_table): New
7748 * config.gcc: Support arch13 with the --with-arch= configure flag.
7749 * config/s390/driver-native.c (s390_host_detect_local_cpu):
7750 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
7751 * config/s390/s390.c (s390_get_sched_attrmask)
7752 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
7753 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
7754 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
7755 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
7756 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
7758 * config/s390/s390.opt: Support arch13 as processor type in
7759 command line options.
7761 2019-04-02 Martin Liska <mliska@suse.cz>
7763 PR translation/89912
7764 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
7765 Fix param description of graphite-max-arrays-per-scop.
7767 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
7769 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
7770 (ASAN_CC1_SPEC): Use it in 64-bit mode.
7771 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
7773 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
7775 PR rtl-optimization/85412
7776 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
7777 sel_sched_region_1, not after.
7779 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
7781 PR rtl-optimization/86928
7782 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
7783 compute_live if necessary.
7784 (sel_redirect_edge_and_branch): Likewise.
7786 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
7788 PR rtl-optimization/89865
7789 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
7790 register if it is a part of small class.
7792 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
7794 PR rtl-optimization/87273
7795 * sel-sched-ir.c (merge_fences): Remove assert.
7797 2019-04-01 Richard Biener <rguenther@suse.de>
7799 PR tree-optimization/46590
7800 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
7801 (dom_walker::m_reachability): Add in place of...
7802 (dom_walker::m_skip_unreachable_blocks): ...this.
7803 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
7804 Move complex initialization ...
7805 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
7806 lazily and initialize edge flags on each invocation.
7807 (dom_walker::bb_reachable): Use m_reachability.
7809 2019-04-01 Martin Liska <mliska@suse.cz>
7812 * opt-suggestions.c (option_proposer::build_option_suggestions):
7813 Add variant without any argument in order to provide better
7816 2019-04-01 Richard Biener <rguenther@suse.de>
7819 * gimple.c: Include langhooks.h.
7820 (gimple_get_alias_set): Treat enumeral types as the underlying
7823 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
7824 Eric Botcazou <ebotcazou@adacore.com>
7826 PR rtl-optimization/89862
7827 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
7828 that operates on the full registers for WORD_REGISTER_OPERATIONS
7831 2019-03-29 Jim Wilson <jimw@sifive.com>
7833 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
7834 Clear MASK_RVC and then set if C subset supported.
7836 2019-03-29 Jakub Jelinek <jakub@redhat.com>
7839 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
7840 non-addressable complit into its initializer if it is volatile.
7842 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
7844 * opts-common.c (integral_argument): Set errno properly in one case.
7846 2019-03-29 Martin Liska <mliska@suse.cz>
7848 * doc/invoke.texi: Remove -Wchkp from documentation.
7850 2019-03-29 Martin Liska <mliska@suse.cz>
7852 * dbgcnt.c (print_limit_reach): New function.
7855 2019-03-29 Martin Liska <mliska@suse.cz>
7857 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
7858 (dbg_cnt_process_opt): Parse first tokens aas
7859 dbg_cnt_process_single_pair is also using strtok.
7861 2019-03-29 Jakub Jelinek <jakub@redhat.com>
7863 PR rtl-optimization/87485
7864 * function.c (expand_function_end): Move stack_protect_epilogue
7865 before loading of return value into hard register(s).
7867 2019-03-28 Jakub Jelinek <jakub@redhat.com>
7870 * tree-inline.h (struct copy_body_data): Add
7871 dont_remap_vla_if_no_change flag.
7872 * tree-inline.c (remap_type_3, remap_type_2): New functions.
7873 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
7874 and remap_type_2 returns false.
7875 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
7876 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
7877 only from where it is copied to nested contexts.
7879 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
7882 * config/i386/i386.md (RMW operation with LEA peephole):
7883 Use LEAMODE mode attribute instead of SWI mode iterator for
7886 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
7889 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
7890 Also process XEXP (src, 0) of a shift insn.
7892 2019-03-28 David Malcolm <dmalcolm@redhat.com>
7895 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
7896 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
7898 2019-03-28 Jakub Jelinek <jakub@redhat.com>
7900 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
7902 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
7903 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
7904 immediately after first one with df_analyze in between, but rather
7905 process all bbs, queueing ones that need second pass in a worklist,
7906 df_analyze, process queued debug insn changes and if second pass is
7907 needed, process bbs from worklist, df_analyze, process queued debug
7910 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
7911 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
7912 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
7914 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
7917 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
7920 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
7923 * config/i386/i386.c (ix86_function_value_1): Call the newly added
7924 function for 32-bit MS_ABI.
7925 (function_value_ms_32): New function.
7927 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
7929 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
7930 (movdi): Call gen_movdi_symbol_save_scc.
7931 (gen_movdi_symbol_save_scc): New insn and split.
7933 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
7935 PR rtl-optimization/89313
7936 * function.c (matching_constraint_num): New static function.
7937 (match_asm_constraints_1): Use it. Fixup white space and comment.
7938 Don't replace inputs with non-matching constraints which conflict
7939 with early clobber outputs.
7941 2019-03-27 Jeff Law <law@redhat.com>
7944 PR rtl-optimization/87761
7945 PR rtl-optimization/89826
7946 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
7948 (pass_cprop_hardreg::execute): Call df_analyze after adding the
7949 note problem to get REG_DEAD/REG_UNUSED notes updated.
7951 2019-03-27 Richard Biener <rguenther@suse.de>
7953 PR tree-optimization/89463
7954 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
7955 queue edges to remove.
7956 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
7957 dead stmts. Delay edge removal until PHIs are removed to
7958 make debug-stmt creation not confused by seemingly degenerate
7961 2019-03-27 Alan Modra <amodra@gmail.com>
7963 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
7965 * config/rs6000/darwin.h: Likewise.
7966 * config/rs6000/rs6000.c: Likewise.
7968 2019-03-27 Alan Modra <amodra@gmail.com>
7970 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
7971 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
7973 2019-03-26 Andrew Waterman <andrew@sifive.com>
7974 Jim Wilson <jimw@sifive.com>
7976 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
7977 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
7978 (generic_idivdi, generic_fmul_single, generic_fmul_double)
7979 (generic_fdiv, generic_fsqrt): Add check for generic tune.
7980 (generic_alu): Add auipc to type list.
7981 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
7982 (riscv_microarchitecture): Declare.
7983 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
7984 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
7986 (riscv_microarchitecture): New.
7987 (sifive_7_tune_info): New.
7988 (riscv_cpu_info_table): Add microarchitecture value for rocket and
7989 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
7991 (riscv_store_data_bypass_p): New.
7992 (riscv_option_override): Set riscv_microarchitecture from
7993 cpu->microarchitecture.
7994 * config/riscv/riscv.md: Include sifive-7.md.
7997 (auipc<mode>): Change type to auipc.
7998 (restore_stack_nonlocal): New.
7999 * config/riscv/sifive-7.md: New.
8000 * doc/invoke.texi (RISC-V Options): Update mtune docs.
8002 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
8005 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
8006 Also process XEXP (src, 0) of a shift insn.
8008 2019-03-26 Richard Biener <rguenther@suse.de>
8010 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
8011 (copy_debug_stmt): Likewise.
8012 (expand_call_inline): Likewise.
8013 (copy_bb): Avoid redundant lookup & set of gimple_block.
8014 * gimple-low.c (lower_gimple_return): Likewise.
8015 (lower_builtin_setjmp): Likewise.
8017 2019-03-26 Jakub Jelinek <jakub@redhat.com>
8019 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
8020 is constant 0, turn into static const data member initialized to false.
8021 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
8022 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
8024 2019-03-26 Jason Merrill <jason@redhat.com>
8025 Jakub Jelinek <jakub@redhat.com>
8027 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
8029 (mem_alloc_description::release_object_overhead): Fix comment typos.
8030 * hash-table.h (hash_table::~hash_table): Call
8031 release_instance_overhead only if m_entries is non-NULL, otherwise
8032 call unregister_descriptor.
8034 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
8036 PR tree-optimization/81740
8037 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
8038 In case of outer loop vectorization, check for backward dependence
8039 at the inner loop if outer loop dependence is reversed.
8041 2019-03-26 Alan Modra <amodra@gmail.com>
8043 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
8044 rs6000_vector_mem init. Correct wI and wJ comment.
8046 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
8048 PR rtl-optimization/88347
8049 PR rtl-optimization/88423
8050 * sched-deps.c (sched_analyze_insn): Take into account that for
8051 tablejumps the barrier appears after a label and a jump_table_data.
8053 2019-03-25 Martin Sebor <msebor@redhat.com>
8056 * c-common.c (check_user_alignment): Rename local. Correct maximum
8057 alignment in diagnostic. Avoid assuming argument fits in SHWI,
8058 convert it to UHWI when it fits.
8060 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
8063 * dwarf2out.c (premark_used_variables): New function.
8064 (prune_unused_types_walk): Do not mark not premarked external
8066 (prune_unused_types): Call premark_used_variables.
8068 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
8070 PR rtl-optimization/89676
8071 * lra-constraints.c (curr_insn_transform): Do match reload for
8072 early clobbers when the match was successful only for different
8075 2019-03-25 Martin Sebor <msebor@redhat.com>
8077 * doc/extend.texi (Common Type Attributes): Document vector_size.
8078 (Common Variable Attributes): Mention size constraint. Correct
8080 (Vector Extensions): Use @dfn when defining bas type. Clarify
8081 base type and size constraints.
8083 2019-03-25 Richard Biener <rguenther@suse.de>
8085 PR tree-optimization/89789
8086 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
8087 changes from non-undefined back to undefined.
8089 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
8091 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
8092 heap string and a gc string, but since this variable is unknown to
8093 ggc the gc string might get reused and corrupted. Fixed by always
8094 using a heap string.
8096 2019-03-25 Richard Biener <rguenther@suse.de>
8098 PR tree-optimization/89779
8099 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
8100 to remove IV defs, delay actual removal.
8101 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
8102 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
8103 very end, properly also reset loop control IV information.
8105 2019-03-25 Richard Biener <rguenther@suse.de>
8107 PR tree-optimization/89802
8108 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
8109 move EH data to folded stmt.
8111 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
8113 * config/s390/s390-builtin-types.def: Remove few unused types and
8114 fix sort order for others.
8116 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
8118 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
8119 expected and found types with -mdebug during builtin matching.
8121 2019-03-25 Richard Biener <rguenther@suse.de>
8124 * fold-const.c (operand_equal_p): Revert last change with
8127 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
8129 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
8130 notes for the result of the __tls_get_addr calls.
8131 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
8133 2019-03-24 Jeff Law <law@redhat.com>
8135 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
8137 PR rtl-optimization/87761
8138 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
8139 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
8141 (pass_cprop_hardreg::execute): Add df note problem and defer insn
8142 rescans. Reprocess blocks as needed, calling df_analyze before
8143 reprocessing. Always call df_analyze before fixing up debug bind
8146 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
8148 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
8151 2019-03-22 Andrew Pinski <apinski@marvell.com>
8153 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
8154 attrribute for uxtw.
8156 2019-03-26 Jeff Law <law@redhat.com>
8158 PR rtl-optimization/87761
8159 * config/mips/mips-protos.h (mips_split_move): Add new argument.
8160 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
8161 (mips_split_move): Accept new INSN argument. Try to forward SRC
8162 into the next instruction.
8163 (mips_split_move_insn): Pass INSN through to mips_split_move.
8165 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
8167 PR rtl-optimization/89676
8168 * lra-constraints.c (curr_insn_transform): Do match reload for
8169 early clobbers even if the match was successful.
8171 2019-03-22 Jakub Jelinek <jakub@redhat.com>
8174 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
8176 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
8178 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
8180 2019-03-22 Jakub Jelinek <jakub@redhat.com>
8182 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
8183 <avx512>_fmsub_<mode>_mask3<round_name>,
8184 <avx512>_fnmadd_<mode>_mask3<round_name>,
8185 <avx512>_fnmsub_<mode>_mask3<round_name>,
8186 avx512f_vmfmadd_<mode>_mask3<round_name>,
8187 avx512f_vmfmsub_<mode>_mask3<round_name>,
8188 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
8189 instead of register_operand and %v instead of v for match_operand 1.
8190 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
8191 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
8192 <round_nimm_predicate> instead of register_operand and %v instead of v
8193 for match_operand 1.
8195 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
8196 <avx512>_fmadd_<mode>_mask3<round_name>,
8197 <avx512>_fmsub_<mode>_mask<round_name>,
8198 <avx512>_fmsub_<mode>_mask3<round_name>,
8199 <avx512>_fnmadd_<mode>_mask<round_name>,
8200 <avx512>_fnmadd_<mode>_mask3<round_name>,
8201 <avx512>_fnmsub_<mode>_mask<round_name>,
8202 <avx512>_fnmsub_<mode>_mask3<round_name>,
8203 <avx512>_fmaddsub_<mode>_mask<round_name>,
8204 <avx512>_fmaddsub_<mode>_mask3<round_name>,
8205 <avx512>_fmsubadd_<mode>_mask<round_name>,
8206 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
8207 <round_nimm_predicate> instead of nonimmediate_operand.
8208 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
8209 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
8210 Use register_operand instead of <round_nimm_predicate> for the
8211 operand that needs to match output.
8212 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
8213 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
8214 Likewise. Formatting fixes.
8217 * config/i386/i386.c (enum ix86_builtins): Remove
8218 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
8219 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
8220 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
8221 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
8222 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
8223 __builtin_ia32_vfmsubss3_mask3): New builtins.
8224 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
8225 avx512f_vmfmadd_<mode>_mask3<round_name>,
8226 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
8227 *avx512f_vmfmsub_<mode>_mask<round_name>,
8228 avx512f_vmfmsub_<mode>_mask3<round_name>,
8229 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
8230 *avx512f_vmfnmadd_<mode>_mask<round_name>,
8231 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
8232 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
8233 *avx512f_vmfnmsub_<mode>_mask<round_name>,
8234 avx512f_vmfnmsub_<mode>_mask3<round_name>,
8235 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
8236 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
8237 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
8238 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
8239 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
8240 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
8241 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
8242 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
8243 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
8244 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
8245 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
8246 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
8247 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
8248 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
8249 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
8250 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
8251 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
8252 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
8253 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
8254 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
8255 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
8256 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
8258 2019-03-21 Martin Sebor <msebor@redhat.com>
8260 PR tree-optimization/89350
8261 * builtins.c (compute_objsize): Also ignore offsets whose upper
8263 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
8264 (builtin_memref::builtin_memref): Initialize new member.
8265 Allow EXPR to be null.
8266 (builtin_memref::extend_offset_range): Replace local with a member.
8267 Avoid assuming pointer offsets are unsigned.
8268 (builtin_memref::set_base_and_offset): Determine base object
8269 before computing offset range.
8270 (builtin_access::builtin_access): Handle memset.
8271 (builtin_access::generic_overlap): Replace local with a member.
8272 (builtin_access::strcat_overlap): Same.
8273 (builtin_access::overlap): Same.
8274 (maybe_diag_overlap): Same.
8275 (maybe_diag_access_bounds): Same.
8276 (wrestrict_dom_walker::check_call): Handle memset.
8277 (check_bounds_or_overlap): Same.
8279 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
8280 Jakub Jelinek <jakub@redhat.com>
8283 * tree.c (fld_type_variant, fld_incomplete_type_of,
8284 fld_process_array_type): Call fld->pset.add and don't call
8285 add_tree_to_fld_list if it returns true.
8286 (free_lang_data_in_type): Similarly with self-recursive call. Purge
8287 non-marked types from TYPE_NEXT_VARIANT list.
8288 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
8290 2019-03-21 Jakub Jelinek <jakub@redhat.com>
8292 * hash-table.h (hash_table): Add Lazy template parameter defaulted
8293 to false, if true, don't alloc_entries during construction, but defer
8294 it to the first method that needs m_entries allocated.
8295 (hash_table::hash_table, hash_table::~hash_table,
8296 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
8297 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
8298 hash_table::clear_slot, hash_table::traverse_noresize,
8299 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
8300 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
8302 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
8303 NO_INSERT instead of find_with_hash.
8304 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
8305 hash_set::m_table): Add Lazy to template params of hash_table.
8306 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
8307 * attribs.c (test_attribute_exclusions): Likewise.
8308 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
8309 hash_set. Add tests for hash_set with Lazy = true.
8311 2019-03-21 Richard Biener <rguenther@suse.de>
8313 PR tree-optimization/89779
8314 * tree.c (tree_nop_conversion): Consolidate and fix defensive
8315 checks with respect to released SSA names now having error_mark_node
8317 * fold-const.c (operand_equal_p): Likewise.
8319 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
8322 * config/s390/s390.c (global_not_special_regno_p): Move to make it
8324 (s390_optimize_register_info): Use global_not_special_regno_p to
8325 check for global regs.
8327 2019-03-20 Jakub Jelinek <jakub@redhat.com>
8330 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
8331 update this_alternative nor this_alternative_set.
8333 2019-03-19 Jim Wilson <jimw@sifive.com>
8336 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
8337 align, size, offset. Use them to handle a BLKmode reference. Update
8339 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
8341 2019-03-19 Jakub Jelinek <jakub@redhat.com>
8343 PR rtl-optimization/89768
8344 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
8346 (unroll_loop_runtime_iterations): Likewise.
8348 2019-03-19 Martin Sebor <msebor@redhat.com>
8350 PR tree-optimization/89644
8351 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
8352 rather than endptr as an indicator of nul-termination.
8354 PR tree-optimization/89644
8355 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
8356 arrays in determining sequence sizes in strncpy and stpncpy.
8358 2019-03-19 Martin Liska <mliska@suse.cz>
8361 * predict.c (combine_predictions_for_bb): Empty likely_edges and
8362 unlikely_edges if there's an edge that belongs to both these sets.
8364 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
8367 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
8368 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
8369 go via a stack temporary.
8371 2019-03-19 Jakub Jelinek <jakub@redhat.com>
8374 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
8375 instead of gen_rtx_SUBREG.
8376 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
8378 2019-03-19 Richard Biener <rguenther@suse.de>
8381 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
8383 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
8387 * tree.c (free_lang_data_in_decl): Do not free context of C++
8390 2019-03-19 Jakub Jelinek <jakub@redhat.com>
8393 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
8394 subs for the first alternative except when operands[3] is 1.
8397 * gimplify.c (gimplify_asm_expr): For output argument with
8398 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
8401 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
8403 PR rtl-optimization/89753
8404 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
8405 explicit unrolling factor even more robust.
8407 2019-03-19 Jakub Jelinek <jakub@redhat.com>
8410 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
8411 compensation use x2 += 1 instead of x2 -= -1 and when honoring
8412 signed zeros, do another copysign after the compensation.
8414 2019-03-18 Martin Sebor <msebor@redhat.com>
8416 PR tree-optimization/89720
8417 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
8418 more conservatively, the same as anti-range.
8420 2019-03-18 Richard Biener <rguenther@suse.de>
8423 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
8424 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
8425 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
8426 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
8428 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
8430 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
8431 Extend queue to 1024 entries.
8432 Add "consumed" field.
8433 (gomp_print_output): Remove print_index parameter.
8434 Add final parameter.
8435 Change limit to unsigned.
8436 Use consumed field to implement circular buffer.
8437 Detect interrupted print in final pass.
8438 Flush output at the end.
8439 (run): Update gomp_print_output usage.
8440 (main): Initialize kernargs->output_data.consumed.
8442 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
8444 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
8445 calculation of the minimum number of scalar iterations for
8446 fully-predicated loops.
8448 2019-03-18 Martin Jambor <mjambor@suse.cz>
8450 PR tree-optimization/89546
8451 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
8452 any propagation to its children took place.
8454 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
8457 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
8458 parameter, and make use of it.
8459 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
8461 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
8463 * config/arc/arc.opt (mcode-density-frame): Get the inital value
8464 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
8465 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
8466 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
8467 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
8468 match what the ops is doing.
8469 (push_multi_fp_blink): Likewise.
8470 * config/arc/arc.c (arc_override_options): Enable enter/leave when
8471 compiling for size and elf target.
8472 (arc_save_callee_enter): Adjust note to match what enter/leave
8475 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
8477 * config/arc/arc.md (tst_movb): Fix constraint.
8479 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
8481 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
8483 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
8485 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
8486 * config/arc/arc.c (arc_conditional_register_usage): Remove all
8487 reg_alloc_order references.
8488 (size_alloc_order): Define.
8489 (arc_adjust_reg_alloc_order): New function.
8490 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
8492 (ADJUST_REG_ALLOC_ORDER): Define.
8493 (HONOR_REG_ALLOC_ORDER): Likewise.
8495 2019-03-18 Richard Biener <rguenther@suse.de>
8498 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
8499 loads and stores a bit more.
8501 2019-03-18 Richard Biener <rguenther@suse.de>
8504 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
8505 load pessimization to stores as well.
8507 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
8510 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
8511 successor, use NULL as its av set.
8513 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
8515 PR rtl-optimization/89721
8516 * lra-constraints (invariant_p): Return false if side_effects_p holds.
8518 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
8521 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8522 When handling vec_extract, use modular arithmetic to allow
8523 constant selectors greater than vector length.
8524 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
8525 V1TImode vectors to have constant selector values greater than 0.
8526 Use modular arithmetic to compute vector index.
8527 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
8528 index for in-memory vectors. Correct code generation for
8529 in-register vectors.
8530 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
8533 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
8537 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
8540 2019-03-15 Jakub Jelinek <jakub@redhat.com>
8543 * tree.c (inchash::add_expr): Strip any location wrappers.
8544 * fold-const.c (operand_equal_p): Move stripping of location wrapper
8545 after hash verification.
8548 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
8549 SIGN_EXTEND and ZERO_EXTEND.
8551 2019-03-14 Jason Merrill <jason@redhat.com>
8552 Jakub Jelinek <jakub@redhat.com>
8554 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
8555 than if is_empty (*slot).
8556 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
8557 existing elt and for elt removal.
8558 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
8559 of already removed elt.
8561 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
8564 * config/i386/i386.c (remove_partial_avx_dependency): Handle
8567 2019-03-14 Martin Liska <mliska@suse.cz>
8570 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
8572 2019-03-14 Richard Biener <rguenther@suse.de>
8575 * config/i386/i386.c (make_resolver_func): Properly set
8576 DECL_CONTEXT on the RESULT_DECL.
8577 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
8579 2019-03-14 Richard Biener <rguenther@suse.de>
8581 * gimple-pretty-print.c: Include cfgloop.h.
8582 (dump_gimple_phi): Adjust.
8583 (dump_gimple_bb_header): Dump loop header for GIMPLE.
8584 (pp_cfg_jump): Adjust.
8585 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
8586 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
8587 (lower_phi_internal_fn): Remove.
8588 (verify_gimple_call): Remove IFN_PHI special-casing.
8589 (dump_function_to_file): Dump IL state.
8590 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
8591 done to deal with PHI nodes being present in non-SSA state.
8593 2019-03-14 Jakub Jelinek <jakub@redhat.com>
8596 * multiple_target.c (create_dispatcher_calls): Change
8597 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
8598 In the node->iterate_referring loop, push *ref rather than ref, call
8599 ref->remove_reference () and always pass 0 to iterate_referring.
8601 PR rtl-optimization/89679
8602 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
8603 would contain a paradoxical SUBREG.
8605 2019-03-14 Richard Biener <rguenther@suse.de>
8607 PR tree-optimization/89710
8608 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
8611 2019-03-14 Martin Liska <mliska@suse.cz>
8613 * coverage.c (coverage_begin_function): Stream also
8615 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
8616 documentation about function declaration location.
8617 * gcov-dump.c (tag_function): Print whole range
8618 of function declaration.
8619 * gcov.c (struct function_info): Add end_column field.
8620 (function_info::function_info): Initialize it.
8621 (output_json_intermediate_file): Output {start,end}_column
8623 (read_graph_file): Read end_column.
8625 2019-03-14 Richard Biener <rguenther@suse.de>
8628 * fold-const.c (operand_equal_p): For INDIRECT_REF check
8629 that the access types are similar.
8631 2019-03-14 Jakub Jelinek <jakub@redhat.com>
8633 PR tree-optimization/89703
8634 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
8635 aren't compatible also with builtin_decl_explicit. Check pure
8636 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
8637 and BUILT_IN_STPNCPY{,_CHK}.
8639 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
8642 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
8643 addr32 prefix to VSIB address for X32.
8644 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
8646 (*avx512pf_gatherpf<mode>df_mask): Likewise.
8647 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
8648 (*avx512pf_scatterpf<mode>df_mask): Likewise.
8649 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
8650 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
8651 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
8652 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
8653 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
8654 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
8655 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
8656 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
8657 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
8658 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
8659 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
8660 (*avx512f_scatterdi<mode>): Likewise.
8662 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
8665 * lra-constraints.c (inherit_in_ebb): Update
8666 potential_reload_hard_regs along with live_hard_regs.
8668 2019-03-13 Jakub Jelinek <jakub@redhat.com>
8671 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
8673 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
8675 2019-03-13 Martin Sebor <msebor@redhat.com>
8677 PR tree-optimization/89662
8678 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
8681 2019-03-13 Richard Biener <rguenther@suse.de>
8684 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
8685 throw FP expressions at tree-affine.
8687 2019-03-14 Richard Biener <rguenther@suse.de>
8689 * tree-pretty-print.c (dump_generic_node): For -gimple properly
8690 dump negative integer constants using _Literal (type) -num.
8692 2019-03-13 Jakub Jelinek <jakub@redhat.com>
8694 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
8695 nonlocal_value member.
8698 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
8699 (ipa_simd_modify_function_body): Handle PHIs.
8701 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
8703 * config/s390/s390.c (s390_option_override_internal): Use more
8704 aggressive inlining parameters.
8706 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
8708 * config/s390/3906.md: New file.
8709 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
8710 (LONGRUNNING_THRESHOLD): Remove.
8711 (MAX_SCHED_MIX_SCORE): Decrease.
8712 (MAX_SCHED_MIX_DISTANCE): Decrease.
8713 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
8714 (struct s390_sched_state): New struct to hold scheduling state.
8715 (S390_SCHED_STATE_NORMAL): Remove.
8716 (S390_SCHED_STATE_CRACKED): Remove.
8717 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
8718 (s390_get_sched_attrmask): Use new attribute.
8719 (s390_get_unit_mask): Use new units.
8720 (s390_is_fpd): New function.
8721 (s390_is_fxd): New function.
8722 (s390_is_longrunning): New function.
8723 (s390_sched_score): Use new functions.
8724 (s390_sched_reorder): Likewise.
8725 (s390_sched_variable_issue): Rework and use new functions.
8726 (s390_sched_init): Use new functions.
8727 * config/s390/s390.h (s390_tune_attr): Add z14.
8728 * config/s390/s390.md: Add z14.
8730 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
8732 * config/s390/2964.md: Update pipeline description.
8733 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
8734 (LONGRUNNING_THRESHOLD): Remove.
8735 (LATENCY_FACTOR): Remove.
8736 (s390_get_unit_mask): Add unit.
8737 (s390_sched_score): Use fxd/fpd.
8738 (s390_sched_variable_issue): Use fxd/fpd.
8740 2019-03-12 Martin Liska <mliska@suse.cz>
8742 * config/i386/i386.c: Reword an error message.
8744 2019-03-12 Martin Jambor <mjambor@suse.cz>
8746 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
8747 terminate with newline.
8749 2019-03-12 Jakub Jelinek <jakub@redhat.com>
8752 * config/s390/s390.md (tabort): Use %wd instead of
8753 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
8754 letters and periods.
8755 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
8756 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
8760 * builtins.c (expand_builtin_int_roundingfn,
8761 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
8762 gcc_unreachable if validate_arglist fails.
8764 2019-03-12 Richard Biener <rguenther@suse.de>
8766 PR tree-optimization/89664
8767 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
8768 free the occurance tree after the early out.
8770 2019-03-11 Jakub Jelinek <jakub@redhat.com>
8774 * vr-values.c (vr_values::update_value_range): If
8775 old_vr->varying_p (), don't update it, make new_vr also VARYING
8778 2019-03-11 Martin Liska <mliska@suse.cz>
8780 * config/aarch64/aarch64.c (aarch64_override_options_internal):
8781 Fix double string quoting.
8783 2019-03-11 Martin Liska <mliska@suse.cz>
8785 * collect-utils.c (collect_wait): Wrap apostrophes
8786 in gcc internal format with %'.
8787 * collect2.c (main): Likewise.
8788 (scan_prog_file): Likewise.
8789 (scan_libraries): Likewise.
8790 * config/i386/i386.c (ix86_expand_call): Likewise.
8791 (ix86_handle_interrupt_attribute): Likewise.
8792 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
8793 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
8794 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
8795 * lto-wrapper.c (find_crtoffloadtable): Likewise.
8796 * symtab.c (symtab_node::verify_base): Likewise.
8797 * tree-cfg.c (verify_gimple_label): Likewise.
8798 * tree.c (verify_type_variant): Likewise.
8800 2019-03-11 Martin Liska <mliska@suse.cz>
8802 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
8803 in a string format message and fix GNU coding style.
8804 (expand_builtin_set_thread_pointer): Likewise.
8805 * common/config/aarch64/aarch64-common.c
8806 (aarch64_rewrite_selected_cpu): Likewise.
8807 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
8808 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
8809 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
8810 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
8811 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
8812 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
8813 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
8814 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
8815 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
8816 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
8818 * common/config/riscv/riscv-common.c
8819 (riscv_subset_list::parsing_subset_version): Likewise.
8820 (riscv_subset_list::parse_std_ext): Likewise.
8821 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
8822 (riscv_subset_list::parse): Likewise.
8823 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
8824 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
8825 (aarch64_override_options_internal): Likewise.
8826 (aarch64_validate_mcpu): Likewise.
8827 (aarch64_validate_march): Likewise.
8828 (aarch64_validate_mtune): Likewise.
8829 (aarch64_override_options): Likewise.
8830 * config/alpha/alpha.c (alpha_option_override): Likewise.
8831 * config/arc/arc.c (arc_init): Likewise.
8832 (parse_mrgf_banked_regs_option): Likewise.
8833 (arc_override_options): Likewise.
8834 (arc_expand_builtin_aligned): Likewise.
8835 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
8836 (arm_expand_builtin): Likewise.
8837 * config/arm/arm.c (arm_option_check_internal): Likewise.
8838 (arm_configure_build_target): Likewise.
8839 (arm_option_override): Likewise.
8840 (arm_options_perform_arch_sanity_checks): Likewise.
8841 (arm_handle_cmse_nonsecure_entry): Likewise.
8842 (arm_handle_cmse_nonsecure_call): Likewise.
8843 (arm_tls_referenced_p): Likewise.
8844 (thumb1_expand_prologue): Likewise.
8845 * config/avr/avr.c (avr_option_override): Likewise.
8846 * config/bfin/bfin.c (bfin_option_override): Likewise.
8847 * config/c6x/c6x.c (c6x_option_override): Likewise.
8848 * config/cr16/cr16.c (cr16_override_options): Likewise.
8849 * config/cris/cris.c (cris_option_override): Likewise.
8850 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
8851 * config/darwin-c.c (macosx_version_as_macro): Likewise.
8852 * config/darwin.c (darwin_override_options): Likewise.
8853 * config/frv/frv.c (frv_expand_builtin): Likewise.
8854 * config/h8300/h8300.c (h8300_option_override): Likewise.
8855 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
8856 (ix86_option_override_internal): Likewise.
8857 (warn_once_call_ms2sysv_xlogues): Likewise.
8858 (ix86_expand_prologue): Likewise.
8859 (split_stack_prologue_scratch_regno): Likewise.
8860 (ix86_warn_parameter_passing_abi): Likewise.
8861 * config/ia64/ia64.c (fix_range): Likewise.
8862 * config/m68k/m68k.c (m68k_option_override): Likewise.
8863 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
8864 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
8865 (mips_set_compression_mode): Likewise.
8866 * config/mmix/mmix.c (mmix_option_override): Likewise.
8867 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
8868 * config/msp430/msp430.c (msp430_option_override): Likewise.
8869 * config/nds32/nds32.c (nds32_option_override): Likewise.
8870 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
8871 (nios2_option_override): Likewise.
8872 (nios2_expand_custom_builtin): Likewise.
8873 * config/nvptx/mkoffload.c (main): Likewise.
8874 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
8875 * config/pa/pa.c (fix_range): Likewise.
8876 (pa_option_override): Likewise.
8877 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
8878 (riscv_option_override): Likewise.
8879 * config/rl78/rl78.c (rl78_option_override): Likewise.
8880 * config/rs6000/aix61.h: Likewise.
8881 * config/rs6000/aix71.h: Likewise.
8882 * config/rs6000/aix72.h: Likewise.
8883 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
8884 * config/rs6000/freebsd64.h: Likewise.
8885 * config/rs6000/linux64.h: Likewise.
8886 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
8887 (rs6000_expand_zeroop_builtin): Likewise.
8888 (rs6000_expand_mtfsb_builtin): Likewise.
8889 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
8890 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
8891 (rs6000_invalid_builtin): Likewise.
8892 (rs6000_expand_split_stack_prologue): Likewise.
8893 * config/rs6000/rtems.h: Likewise.
8894 * config/rx/rx.c (valid_psw_flag): Likewise.
8895 (rx_expand_builtin): Likewise.
8896 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
8897 * config/s390/s390.c (s390_expand_builtin): Likewise.
8898 (s390_function_profiler): Likewise.
8899 (s390_option_override_internal): Likewise.
8900 (s390_option_override): Likewise.
8901 * config/sh/sh.c (sh_option_override): Likewise.
8902 (sh_builtin_saveregs): Likewise.
8903 (sh_fix_range): Likewise.
8904 * config/sh/vxworks.h: Likewise.
8905 * config/sparc/sparc.c (sparc_option_override): Likewise.
8906 * config/spu/spu.c (spu_option_override): Likewise.
8907 (fix_range): Likewise.
8908 * config/visium/visium.c (visium_option_override): Likewise.
8909 (visium_handle_interrupt_attr): Likewise.
8910 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
8911 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
8912 (dbg_cnt_process_opt): Likewise.
8913 * dwarf2out.c (output_dwarf_version): Likewise.
8914 * except.c (expand_eh_return): Likewise.
8915 * gcc.c (defined): Likewise.
8916 (driver_handle_option): Likewise.
8917 (process_command): Likewise.
8918 (compare_files): Likewise.
8919 (driver::prepare_infiles): Likewise.
8920 (driver::do_spec_on_infiles): Likewise.
8921 (driver::maybe_run_linker): Likewise.
8922 * omp-offload.c (oacc_parse_default_dims): Likewise.
8923 * opts-global.c (handle_common_deferred_options): Likewise.
8924 * opts.c (parse_sanitizer_options): Likewise.
8925 (common_handle_option): Likewise.
8926 (enable_warning_as_error): Likewise.
8927 * passes.c (enable_disable_pass): Likewise.
8928 * plugin.c (parse_plugin_arg_opt): Likewise.
8929 (default_plugin_dir_name): Likewise.
8930 * targhooks.c (default_expand_builtin_saveregs): Likewise.
8931 (default_pch_valid_p): Likewise.
8932 * toplev.c (init_asm_output): Likewise.
8933 (process_options): Likewise.
8934 (toplev::run_self_tests): Likewise.
8935 * tree-cfg.c (verify_gimple_call): Likewise.
8936 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
8937 (tree_inlinable_function_p): Likewise.
8938 * var-tracking.c (vt_find_locations): Likewise.
8940 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
8942 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
8943 only on the else branch.
8945 2019-03-11 Martin Liska <mliska@suse.cz>
8947 * gcov.c (output_intermediate_json_line): Print function
8949 (output_json_intermediate_file): Add new argument.
8950 * doc/gcov.texi: Document the change.
8952 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
8954 PR rtl-optimization/89588
8955 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
8956 explicit unrolling factor more robust.
8958 2019-03-11 Richard Biener <rguenther@suse.de>
8960 PR tree-optimization/89649
8961 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
8962 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
8963 on the prolog and epilog loops.
8964 (vect_loop_versioning): Return copy of loop.
8965 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
8966 on the non-vectorized version of the loop.
8968 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
8971 * config/i386/sse.md (*vec_extractv2di_0_sse):
8972 Add (=r,x) alternative and corresponding splitter.
8974 2019-03-10 Martin Jambor <mjambor@suse.cz>
8976 PR tree-optimization/85762
8977 PR tree-optimization/87008
8978 PR tree-optimization/85459
8979 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
8980 it points to if there is a type changing MEM_REF. Adjust all callers.
8981 (build_accesses_from_assign): Disable total scalarization if
8982 contains_vce_or_bfcref_p returns true through the new parameter, for
8985 2019-03-09 Jakub Jelinek <jakub@redhat.com>
8988 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
8989 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
8992 * common.opt (fdiagnostics-show-labels,
8993 fdiagnostics-show-line-numbers, fdiagnostics-format=,
8994 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
8995 gas-locview-support, ginline-points, ginternal-reset-location-views):
8996 Terminate description text with a dot.
8997 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
8998 * config/mcore/mcore.opt (m210, m340): Likewise.
8999 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
9000 mnops=): Start description text with a capital letter.
9001 * config/arc/arc.opt (msize-level=): Likewise.
9002 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
9003 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
9005 * config/ft32/ft32.opt (msim): Likewise.
9006 (mft32b, mcompress): Likewise. Terminate description text with a dot.
9007 (mnodiv, mnopm): Terminate description text with a dot.
9008 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
9010 * config/i386/i386.opt (prefer_vector_width, instrument_return):
9012 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
9015 PR rtl-optimization/89634
9016 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
9017 are modified in BB_END (e->src) instruction.
9019 2019-03-08 David Malcolm <dmalcolm@redhat.com>
9022 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
9023 messages more amenable to translation, and improve wording.
9025 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
9027 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
9028 ud- and du-chains between phases.
9030 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
9033 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
9034 instead of POLY_INT_CST.
9036 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
9038 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
9041 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
9046 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
9047 (_mm_storeu_si64): Ditto.
9049 2019-03-08 Martin Liska <mliska@suse.cz>
9052 * config/i386/i386.c (ix86_option_override_internal): Disable
9053 jump tables when retpolines are used.
9055 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
9058 * ipa-split.c (execute_split_functions): Do not split
9059 'noinline' or 'section' function.
9061 2019-03-08 Jakub Jelinek <jakub@redhat.com>
9064 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
9065 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
9066 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
9069 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
9070 from diagnostics. Formatting fixes.
9073 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
9074 warn_odr diagnostics.
9077 * lra-constraints.c (process_alt_operands): Avoid one space before
9078 " at the end of line and another after " on another line in a string
9080 * attribs.c (handle_dll_attribute): Likewise.
9081 * config/avr/avr-devices.c (avr_texinfo): Likewise.
9083 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
9084 warning_at or inform messages in G_() if there is no ?:.
9086 PR tree-optimization/89550
9087 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
9088 returned true. Formatting fixes.
9089 (expand_builtin_strnlen): Formatting fixes.
9090 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
9091 if warning_at returned true.
9092 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
9094 2019-03-08 Richard Biener <rguenther@suse.de>
9097 * cfgloop.h (struct loop): Add owned_clique field.
9098 * cfgloopmanip.c (copy_loop_info): Copy it.
9099 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
9101 * tree-inline.c (copy_loops): Remap owned_clique.
9102 * lto-streamer-in.c (input_cfg): Stream owned_clique.
9103 * lto-streamer-out.c (output_cfg): Likewise.
9105 2019-03-08 Jakub Jelinek <jakub@redhat.com>
9108 * config/darwin.c: Include intl.h.
9109 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
9110 composing the message out of two separate parts.
9112 2019-03-07 Jakub Jelinek <jakub@redhat.com>
9115 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
9116 doesn't start with a capital letter and doesn't end with a dot.
9117 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
9118 with a capital letter.
9119 (ix86_mangle_function_version_assembler_name): Likewise.
9120 (ix86_generate_version_dispatcher_body): Likewise.
9121 (fold_builtin_cpu): Likewise.
9122 (get_builtin_code_for_version): Likewise. Remove extraneous space.
9123 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
9124 translators, wrap full type name in %qs.
9126 PR translation/79999
9127 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
9128 depend clause with source (or sink) modifier.
9129 * omp-expand.c (expand_omp_ordered_sink): Likewise.
9132 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
9133 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
9134 (avx512f_load<mode>_mask): New define_expand.
9135 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
9136 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
9137 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
9138 __builtin_ia32_movess_mask): New builtins.
9139 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
9140 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
9141 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
9142 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
9144 2019-03-07 Martin Jambor <mjambor@suse.cz>
9147 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
9148 for extern inline functions.
9150 2019-03-07 Martin Jambor <mjambor@suse.cz>
9153 * cgraph.h (cgraph_node): New inline method former_thunk_p.
9154 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
9155 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
9156 have multiple callees. At the end check if declarations match as
9157 opposed to cgraph_nodes.
9159 2019-03-07 Martin Liska <mliska@suse.cz>
9161 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
9162 which is equivalent to searching for this in clones chain.
9163 * symtab.c (symtab_node::verify_base): Similarly compare ASM
9164 names with a neighbour and special case first node in a chain.
9166 2019-01-25 Jason Merrill <jason@redhat.com>
9168 PR c++/80916 - spurious "static but not defined" warning.
9169 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
9170 for an internal symbol with DECL_EXTERNAL.
9172 2019-04-07 Richard Biener <rguenther@suse.de>
9175 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
9176 * tree-inline.c (copy_loops): Simplify.
9178 2019-03-07 Martin Liska <mliska@suse.cz>
9180 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
9182 2019-03-07 Richard Biener <rguenther@suse.de>
9184 PR tree-optimization/89595
9185 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
9186 stmt iterator as reference, take boolean output parameter to
9187 indicate whether the stmt was removed and thus the iterator
9189 (dom_opt_dom_walker::before_dom_children): Re-iterate over
9190 stmts created by folding.
9192 2019-03-07 Jakub Jelinek <jakub@redhat.com>
9195 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
9198 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
9200 PR rtl-optimization/88845
9201 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
9203 * lra.c (remove_scratches_1): New function.
9204 (remove_scratches): Use it.
9205 (lra_emit_move): Likewise.
9207 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
9209 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
9210 unaligned_access variable.
9211 * config/arc/arc.c (arc_override_options): Set unaligned access
9212 default on for HS CPUs.
9213 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
9215 2019-03-06 Martin Liska <mliska@suse.cz>
9217 PR gcov-profile/89577
9218 * doc/gcov.texi: Prefer to use --coverage.
9219 * doc/sourcebuild.texi: Likewise.
9221 2019-03-02 Jason Merrill <jason@redhat.com>
9223 PR c++/86485 - -Wmaybe-unused with empty class ?:
9224 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
9226 2019-03-05 Jakub Jelinek <jakub@redhat.com>
9229 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
9233 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
9234 exactly one argument.
9236 2019-03-05 Jakub Jelinek <jakub@redhat.com>
9237 Richard Sandiford <richard.sandiford@arm.com>
9239 PR tree-optimization/89570
9240 * match.pd (vec_cond into cond_op simplification): Don't use
9241 get_conditional_internal_fn, use as_internal_fn (cond_op).
9243 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
9246 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
9247 to decide when to split off a non-zero offset from a symbol.
9248 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
9249 in function symbols.
9251 2019-03-05 Richard Biener <rguenther@suse.de>
9253 PR tree-optimization/89594
9254 * tree-if-conv.c (pass_if_conversion::execute): Handle
9255 case where .LOOP_VECTORIZED_FUNCTION was removed.
9257 2019-03-05 Jakub Jelinek <jakub@redhat.com>
9260 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
9261 instead alloca it only when needed with the needed size.
9263 PR tree-optimization/89570
9264 * match.pd (vec_cond into cond_op simplification): Guard with
9265 vectorized_internal_fn_supported_p test and #if GIMPLE.
9267 PR tree-optimization/89566
9268 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
9269 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
9270 Punt if get_user_idx_format succeeds, but idx_format argument is
9271 not provided or doesn't have pointer type, or if idx_args is above
9272 number of provided arguments.
9274 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
9276 PR tree-optimization/89437
9277 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
9279 2019-03-04 Richard Biener <rguenther@suse.de>
9282 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
9285 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
9287 PR tree-optimization/89487
9288 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
9289 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
9290 (distribute_loop): Don't do runtime alias check if there is non-
9291 addressable data reference.
9292 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
9293 is a register variable.
9295 2019-03-02 Jakub Jelinek <jakub@redhat.com>
9298 * config/arm/arm.md (cmpsi2_addneg): Use
9299 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
9300 If operands[2] is 0 or INT_MIN, force use of subs.
9301 (*compare_scc splitter): Use gen_int_mode.
9302 (*negscc): Likewise.
9303 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
9305 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
9306 Monk Chiang <sh.chiang04@gmail.com>
9308 * common/config/riscv/riscv-common.c: Include sstream.
9309 (riscv_subset_list::to_string): New.
9310 (riscv_arch_str): Likewise.
9311 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
9313 * config/riscv/riscv-protos.h (riscv_arch_str): New.
9314 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
9315 (riscv_emit_attribute): New.
9316 (riscv_file_start): Emit attribute if needed.
9317 (riscv_option_override): Init riscv_emit_attribute_p.
9318 * config/riscv/riscv.opt (mriscv-attribute): New option.
9319 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
9321 * doc/install.texi: Document --with-riscv-attribute.
9322 * doc/invoke.texi: Document -mriscv-attribute.
9324 * common/config/riscv/riscv-common.c:
9325 Include config/riscv/riscv-protos.h.
9326 (INCLUDE_STRING): Defined.
9327 (RISCV_DONT_CARE_VERSION): Defined.
9328 (riscv_subset_t): Declare.
9329 (riscv_subset_t::riscv_subset_t): New.
9330 (riscv_subset_list): Declare.
9331 (riscv_subset_list::riscv_subset_list): New.
9332 (riscv_subset_list::~riscv_subset_list): Likewise.
9333 (riscv_subset_list::parsing_subset_version): Likewise.
9334 (riscv_subset_list::parse_std_ext): Likewise.
9335 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
9336 (riscv_subset_list::add): Likewise.
9337 (riscv_subset_list::lookup): Likewise.
9338 (riscv_subset_list::xlen): Likewise.
9339 (riscv_subset_list::parse): Likewise.
9340 (riscv_supported_std_ext): Likewise.
9341 (current_subset_list): Likewise.
9342 (riscv_parse_arch_string): Using riscv_subset_list::parse to
9345 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
9347 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
9348 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
9349 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
9351 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
9353 PR rtl-optimization/85899
9354 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
9355 fallthru edges leading to the exit block.
9357 2019-03-01 Tamar Christina <tamar.christina@arm.com>
9360 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
9361 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
9363 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
9365 PR tree-optimization/89535
9366 * tree-vect-stmts.c (vectorizable_call): Record the vector types
9367 for each operand. Calculate the fallback choice for mask operands
9368 and pass it to vect_get_vec_def_for_operand.
9370 2019-03-01 Richard Biener <rguenther@suse.de>
9373 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
9374 get virtual operands.
9375 (get_expr_operands): Handle CONST_DECL like other decls.
9377 2019-03-01 Jakub Jelinek <jakub@redhat.com>
9380 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
9381 on DECL_P and EXPR_P.
9383 2019-03-01 Richard Biener <rguenther@suse.de>
9386 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
9387 argument, defaulted to zero.
9388 * passes.c (execute_function_todo): Pass down SSA update flags
9389 to cleanup_tree_cfg.
9390 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
9391 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
9393 (cleanup_tree_cfg): Get and pass down SSA update flags.
9395 2019-03-01 Jakub Jelinek <jakub@redhat.com>
9398 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
9399 early_lto_debug argument.
9401 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
9403 PR tree-optimization/89536
9404 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
9405 only whether bit #0 of the value is 0 instead of the entire value.
9407 2019-02-28 Marek Polacek <polacek@redhat.com>
9409 PR c++/87068 - missing diagnostic with fallthrough statement.
9410 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
9411 at the end of a seq, save its location to walk_stmt_info.
9412 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
9415 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
9418 * tree.c (find_atomic_core_type): Move ahead in file.
9419 (check_base_type): Correctly compare alignments of atomic types.
9421 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
9424 * config/i386/i386.c (get_builtin_code_for_version): Identify
9425 Westmere from PCLMUL, instead of AES.
9427 2019-02-28 Jakub Jelinek <jakub@redhat.com>
9430 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
9431 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
9434 2019-02-28 Tamar Christina <tamar.christina@arm.com>
9437 * config/aarch64/aarch64-option-extensions.def: Document it.
9438 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
9441 2019-02-28 Jakub Jelinek <jakub@redhat.com>
9444 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
9445 builtins if they don't have a single scalar floating point argument.
9448 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
9450 PR rtl-optimization/89490
9451 * varasm.c (get_block_for_section): Bail out for mergeable sections.
9452 (default_use_anchors_for_symbol_p, output_object_block): Assert the
9453 block section is not mergeable.
9455 2019-02-27 Jakub Jelinek <jakub@redhat.com>
9458 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
9459 old define_insn to ...
9460 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
9461 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
9462 Rename old define_insn to ...
9463 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
9464 (thumb2_casesi_internal_pic): New define_expand. Rename old
9466 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
9467 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
9468 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
9470 2019-02-27 Richard Biener <rguenther@suse.de>
9473 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
9475 2019-02-27 Richard Biener <rguenther@suse.de>
9477 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
9480 2019-02-27 Richard Biener <rguenther@suse.de>
9483 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
9484 parameter, prefix section name with .gnu.debuglto_ if true.
9485 (dwarf2out_finish): Pass false to output_comdat_type_unit.
9486 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
9488 2019-02-27 Richard Biener <rguenther@suse.de>
9491 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
9492 rather than on use_debug_types, doing what output_die does.
9493 (value_format): Likewise.
9495 2019-02-27 Martin Jambor <mjambor@suse.cz>
9496 Martin Sebor <msebor@redhat.com>
9498 * doc/invoke.texi (Warning Options): Reword description of
9499 -Wno-absolute-value.
9501 2019-02-27 Jakub Jelinek <jakub@redhat.com>
9503 PR tree-optimization/89280
9504 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
9505 builtin_setjmp_setup_bb): New functions.
9506 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
9507 When visiting __builtin_setjmp_setup block, queue in special
9508 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
9509 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
9510 from visited after the loop if they don't have any visited successor
9513 2018-02-26 Steve Ellcey <sellcey@marvell.com>
9515 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
9517 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
9519 2019-02-26 Jakub Jelinek <jakub@redhat.com>
9522 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
9523 with types other than sizetype/ssizetype.
9525 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
9527 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
9528 (enum sparc_processor_type): ...this.
9529 (enum sparc_code_model_type): New enumeration type.
9530 (enum sparc_memory_model_type): Tweak comments.
9531 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
9533 (mcmodel): Use sparc_code_model enumeration and variable.
9534 (sparc_code_model): New enumeration.
9535 (mdebug): Add Undocumented marker.
9536 * config/sparc/sparc.h (enum cmodel): Delete.
9537 (sparc_cmodel): Likewise.
9538 (TARGET_CM_MEDLOW): Adjust to above renaming.
9539 (TARGET_CM_MEDMID): Likewise.
9540 (TARGET_CM_MEDANY): Likewise.
9541 (TARGET_CM_EMBMEDANY): Likewise.
9542 * config/sparc/sparc.c (sparc_cmodel): Delete.
9543 (sparc_option_override): Remove string/value mapping support for the
9544 code model. Move code and memory model support to after the handling
9545 of target flags. Do private machine setup last.
9546 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
9547 (sparc_legitimize_reload_address): Likewise.
9548 (sparc_output_mi_thunk): Likewise.
9549 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
9551 2019-02-26 Jakub Jelinek <jakub@redhat.com>
9553 PR tree-optimization/89500
9554 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
9555 (handle_builtin_strlen): Remove noncst_bound variable. Always
9556 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
9557 cst if the first cst bytes starting at x are known to be non-zero,
9558 even if the string is not zero terminated. Don't try to modify
9559 *si for strnlen. Update strlen_to_stridx only for strlen or if
9560 we can prove strnlen returns the same value as strlen would.
9562 2019-02-26 Martin Liska <mliska@suse.cz>
9564 * alloc-pool.h (struct pool_usage): Remove extra
9566 * bitmap.h (struct bitmap_usage): Likewise.
9567 * ggc-common.c (struct ggc_usage): Likewise.
9568 * mem-stats.h (struct mem_usage): Likewise.
9569 (mem_alloc_description::dump): Print dash lines
9570 here and repeat header at the end of a table report.
9571 It's then more readable.
9572 * tree-phinodes.c (phinodes_print_statistics): Make
9573 horizontal alignment.
9574 * tree-ssanames.c (ssanames_print_statistics): Likewise.
9575 * vec.c (struct vec_usage): Remove extra print_dash_line.
9576 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
9578 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
9580 * doc/extend.texi (__builtin_object_size):
9581 Use @pxref instead of @xref inside parenthesis.
9582 (__builtin_has_attribute): Add missing comma after @xref.
9583 (__builtin_object_size): Ditto.
9584 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
9585 * fortran/invoke.texi (-ffpe-trap): Use @var for every item
9588 2019-02-26 Jeff Law <law@redhat.com>
9590 PR rtl-optimization/87761
9591 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
9592 detect obviously dead insns and delete them.
9594 2019-02-26 Richard Biener <rguenther@suse.de>
9596 PR tree-optimization/89505
9597 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
9598 to handle restrict pointed-to vars with multiple subvars
9601 2019-02-26 Richard Biener <rguenther@suse.de>
9603 PR tree-optimization/89489
9604 * tree-parloops.c (create_loop_fn): Copy over last_clique.
9606 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
9608 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
9609 and move around comment.
9610 <BIT_AND_EXPR>: Likewise.
9611 <BIT_NOT_EXPR>: Add specific handling for boolean types.
9613 2019-02-26 Jakub Jelinek <jakub@redhat.com>
9616 * config/i386/i386.c (remove_partial_avx_dependency): Call
9617 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
9618 after changing possibly many instructions to use that pseudo. Fix up
9619 insertion of v4sf_const0 setter at the start of bb.
9621 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
9624 * doc/extend.texi (Variadic Pointer Args): New section.
9626 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
9627 Martin Sebor <msebor@gmail.com>
9629 * common.opt (Wattribute-alias): Likewise.
9630 * doc/invoke.texi (Option Summary): List general form of
9631 -Wattribute-alias=. List positive form of -Wmissing-attributes.
9632 (-Wmissing-attributes): Invert entry, rewrite and correct default.
9633 Add cross-references.
9634 (-Wattribute-alias): Rewrite and correct default. Mention
9635 considered attributes (same as for -Wmissing-attributes).
9637 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
9639 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
9640 (_mm_cvtpd_ps): Likewise.
9641 (_mm_cvttpd_epi32): Likewise.
9644 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
9645 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
9648 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
9650 2019-02-25 Tamar Christina <tamar.christina@arm.com>
9653 * common/config/aarch64/aarch64-common.c
9654 (struct aarch64_option_extension): Add is_synthetic.
9655 (all_extensions): Use it.
9656 (TARGET_OPTION_INIT_STRUCT): Define hook.
9657 (struct gcc_targetm_common): Moved to end.
9658 (all_extensions_by_on): New.
9659 (opt_ext_cmp, typedef opt_ext): New.
9660 (aarch64_option_init_struct): New.
9661 (aarch64_contains_opt): New.
9662 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
9663 * config/aarch64/aarch64-option-extensions.def
9664 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
9665 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
9666 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
9667 Set is_synthetic to false.
9668 (crypto): Set is_synthetic to true.
9669 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
9672 2019-02-25 Tamar Christina <tamar.christina@arm.com>
9674 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
9675 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
9676 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
9677 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
9678 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
9679 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
9680 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
9681 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
9683 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
9684 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
9685 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
9686 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
9687 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
9688 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
9689 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
9690 vfmlsl_laneq_high_f16): ... To this.
9691 * config/arm/neon.md: Update comments.
9693 2019-02-25 Tamar Christina <tamar.christina@arm.com>
9695 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
9696 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
9697 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
9698 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
9699 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
9700 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
9701 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
9702 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
9704 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
9705 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
9706 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
9707 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
9708 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
9709 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
9710 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
9711 vfmlslq_laneq_high_f16): ... To this.
9713 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
9715 PR rtl-optimization/86096
9716 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
9717 comparing mw_order values.
9719 2019-02-25 Jakub Jelinek <jakub@redhat.com>
9722 * config/arm/arm.md (*subsi3_carryin_const): Use
9723 arm_neg_immediate_operand predicate instead of
9724 arm_not_immediate_operand, "L" constraint instead of "K" and
9725 print it using %n2 instead of %B2.
9726 (*subsi3_carryin_const0): New define_insn.
9727 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
9728 instead of arm_not_operand and "I" constraint instead of "K" and
9729 print it using %n3 instead of %B2. Instead of using match_dup 2 add
9730 another match_operand and in the condition check that it is negation
9732 (*subsi3_carryin_compare_const0): New define_ins.
9733 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
9734 *subsi3_carryin_const.
9735 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
9736 split into *subsi3_carryin_compare_const0 if the highpart is zero.
9739 * config/arm.vfp.md (*negdf2_vfp): Use
9740 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
9741 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
9743 2019-02-24 Jakub Jelinek <jakub@redhat.com>
9745 PR rtl-optimization/89445
9746 * simplify-rtx.c (simplify_ternary_operation): Don't use
9747 simplify_merge_mask on operands that may trap.
9748 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
9749 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
9750 second operand is CONST_VECTOR, check if any element could be zero.
9751 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
9752 their operands can trap.
9754 2019-02-23 Martin Sebor <msebor@redhat.com>
9756 * gimple-ssa-sprintf.c (target_strtol): Rename...
9757 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
9758 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
9759 check for range error.
9761 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
9764 * opts-common.c (prune_options): Also prune joined switches
9765 with Negative and RejectNegative.
9766 * config/i386/i386.opt (march=): Add Negative(march=).
9767 (mtune=): Add Negative(mtune=).
9768 * doc/options.texi: Document Negative used together with Joined
9771 2019-02-22 Martin Sebor <msebor@redhat.com>
9773 * doc/extend.texi (Other Builtins): Add
9774 __builtin_is_constant_evaluated.
9776 2019-02-22 Richard Biener <rguenther@suse.de>
9778 PR tree-optimization/87609
9779 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
9781 2019-02-22 Jeff Law <law@redhat.com>
9783 PR rtl-optimization/87761
9784 * config/mips/mips.md: Add new combiner pattern to recognize
9785 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
9787 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
9790 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
9791 destination register in peepholes generating patterns for ADDS/SUBS.
9792 (add<mode>3_compare0,
9793 *addsi3_compare0_uxtw, add<mode>3_compareC,
9794 add<mode>3_compareV_imm, add<mode>3_compareV,
9795 *adds_<optab><ALLX:mode>_<GPI:mode>,
9796 *subs_<optab><ALLX:mode>_<GPI:mode>,
9797 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
9798 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
9799 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
9800 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
9801 sub<mode>3_compare1): Allow stack pointer for source register.
9802 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
9804 2019-02-22 Martin Sebor <msebor@redhat.com>
9806 PR tree-optimization/88993
9807 PR tree-optimization/88853
9808 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
9810 (sprintf_dom_walker::call_info::is_string_func): New helper.
9811 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
9812 for formatted string functions.
9813 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
9815 2019-02-22 Martin Sebor <msebor@redhat.com>
9818 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
9819 unreachable subexpressions.
9821 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
9822 Hongtao Liu <hongtao.liu@intel.com>
9823 Sunil K Pandey <sunil.k.pandey@intel.com>
9826 * config/i386/i386-passes.def: Add
9827 pass_remove_partial_avx_dependency.
9828 * config/i386/i386-protos.h
9829 (make_pass_remove_partial_avx_dependency): New.
9830 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
9832 (pass_data_remove_partial_avx_dependency): New.
9833 (pass_remove_partial_avx_dependency): Likewise.
9834 (make_pass_remove_partial_avx_dependency): Likewise.
9835 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
9836 (*extendsfdf2): Add avx_partial_xmm_update.
9837 (truncdfsf2): Likewise.
9838 (*float<SWI48:mode><MODEF:mode>2): Likewise.
9839 (SF/DF conversion splitters): Disabled for TARGET_AVX.
9841 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
9844 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
9847 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
9850 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
9851 (PTA_SKYLAKE): Add PTA_AES.
9852 (PTA_GOLDMONT): Likewise.
9854 2019-02-22 Sudakshina Das <sudi.das@arm.com>
9856 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
9857 instruction if enabled.
9858 (aarch64_override_options): Remove reference to return address key.
9860 2019-02-22 Richard Biener <rguenther@suse.de>
9862 PR tree-optimization/89440
9863 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
9864 not necessary assert.
9866 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
9869 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
9870 (oacc_replace_fn_attrib_attr): ... this new function.
9871 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
9872 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
9874 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9876 * config/arm/arm-cpus.in (ares): Rename to...
9877 (neoverse-n1): ... This. Add ares as alias.
9878 * config/arm/arm-tables.opt: Regenerate.
9879 * config/arm/arm-tune.md: Likewise.
9880 * doc/invoke.txt (ARM Options): Document neoverse-n1.
9882 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9884 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
9885 * config/aarch64/aarch64-tune.md: Regenerate.
9886 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
9888 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9890 * config/aarch64/aarch64.c (ares_tunings): Rename to...
9891 (neoversen1_tunings): ... This.
9892 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
9893 (neoverse-n1): New CPU.
9894 * config/aarch64/aarch64-tune.md: Regenerate.
9895 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
9897 2019-02-22 Richard Biener <rguenther@suse.de>
9900 * cfghooks.h (dependence_hash): New typedef.
9901 (struct copy_bb_data): New type.
9902 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
9903 (duplicate_block): Likewise.
9904 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
9905 (copy_bbs): Create and pass down copy_bb_data.
9906 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
9907 (rtl_duplicate_bb): Likewise.
9908 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
9909 remap dependence info.
9911 2019-02-22 Richard Biener <rguenther@suse.de>
9913 PR tree-optimization/87609
9914 * tree-core.h (tree_base): Document special clique values.
9915 * tree-inline.c (remap_dependence_clique): Do not use the
9916 special clique value of one.
9917 (maybe_set_dependence_info): Use clique one.
9918 (clear_dependence_clique): New callback.
9919 (compute_dependence_clique): Clear clique one from all refs
9920 before assigning it (again).
9922 2019-02-21 Martin Sebor <msebor@redhat.com>
9924 * doc/extend.texi (__clear_cache): Correct signature.
9926 2019-02-21 Ian Lance Taylor <iant@golang.org>
9929 * varasm.c (decode_addr_const): Call lookup_constant_def rather
9930 than output_constant_def.
9931 (add_constant_to_table): New static function.
9932 (output_constant_def): Call add_constant_to_table.
9933 (tree_output_constant_def): Likewise.
9935 2019-02-21 Jakub Jelinek <jakub@redhat.com>
9938 * builtins.c (fold_builtin_arith_overflow): If first two args are
9939 INTEGER_CSTs, set intres and ovfres to constants rather than calls
9942 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
9945 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
9946 error for -mindirect-branch/-mfunction-return with incompatible
9949 2019-02-21 Jakub Jelinek <jakub@redhat.com>
9952 * constraints.md (q): Remove.
9953 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
9956 2019-02-21 Martin Jambor <mjambor@suse.cz>
9959 * omp-general.c (omp_extract_for_data): Removed a duplicate call
9960 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
9961 (omp_adjust_for_condition): ...here. Added necessary parameters.
9962 * omp-general.h (omp_adjust_for_condition): Updated declaration.
9963 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
9964 proper values to new parameters of omp_adjust_for_condition.
9966 2019-02-20 Jakub Jelinek <jakub@redhat.com>
9969 * expr.c (expand_assignment): If result is a MEM, use change_address
9970 instead of simplify_gen_subreg.
9972 2019-02-20 Jakub Jelinek <jakub@redhat.com>
9973 David Malcolm <dmalcolm@redhat.com>
9976 * fold-const.c (decode_field_reference): Return NULL_TREE if
9977 lang_hooks.types.type_for_size returns NULL. Check it before
9978 overwriting *exp_. Use return NULL_TREE instead of return 0.
9980 2019-02-20 Jakub Jelinek <jakub@redhat.com>
9984 * toplev.c (do_compile): Double the emin/emax exponents to workaround
9987 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
9990 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
9991 TARGET_SSE in addition to TARGET_SSE_MATH.
9993 (ix86_excess_precision): Ditto.
9994 (ix86_float_exceptions_rounding_supported_p): Ditto.
9995 (use_rsqrt_p): Ditto.
9996 * config/i386/sse.md (rsqrt<mode>2): Ditto.
9998 2019-02-20 David Malcolm <dmalcolm@redhat.com>
10001 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
10002 linenum_arith_t when determining if two adjacent line spans are
10003 close enough to merge.
10004 (diagnostic_show_locus): Use linenum_arith_t when iterating over
10005 lines within each line_span.
10007 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
10010 * lra-constraints.c(uses_hard_regs_p): Fix handling of
10011 paradoxical SUBREGS.
10013 2019-02-20 Li Jia He <helijia@linux.ibm.com>
10016 * gcc/config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
10017 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
10018 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
10021 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
10023 * config/gcn/gcn.c (print_operand): Fix typo.
10025 2019-02-19 Richard Biener <rguenther@suse.de>
10027 PR middle-end/88074
10028 * toplev.c (do_compile): Initialize mpfr's exponent range
10029 based on available float modes.
10031 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
10033 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
10034 as long as the epilogue isn't completed.
10036 2019-02-18 Martin Sebor <msebor@redhat.com>
10038 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
10039 __has_cpp_attribute, and __has_include.
10041 2019-02-18 Martin Sebor <msebor@redhat.com>
10043 * doc/invoke.texi (-Wreturn-type): Correct and expand.
10045 2019-02-18 Martin Sebor <msebor@redhat.com>
10047 PR middle-end/89294
10048 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
10050 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
10052 2019-02-18 Richard Biener <rguenther@suse.de>
10054 PR tree-optimization/89296
10055 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
10056 of no-warning flag to cases that might emit the bogus warning.
10058 2019-02-18 Jakub Jelinek <jakub@redhat.com>
10061 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
10063 * config/arm/vfp.md (*movdi_vfp): Likewise.
10064 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
10065 "q" constraint for operands[0].
10068 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
10069 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
10070 pattern in a temporary buffer.
10071 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
10072 than 64-operands[2].
10075 * config/s390/s390.c (s390_indirect_branch_attrvalue,
10076 s390_indirect_branch_settings): Define unconditionally.
10077 (s390_set_current_function): Likewise, but guard the whole body except
10078 the s390_indirect_branch_settings call with
10079 #if S390_USE_TARGET_ATTRIBUTE.
10080 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
10082 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
10083 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
10084 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
10085 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
10086 HOST_WIDE_INT_1U instead of 1ULL.
10087 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
10088 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
10089 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
10090 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
10092 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
10095 2019-02-18 Martin Jambor <mjambor@suse.cz>
10097 PR tree-optimization/89209
10098 * tree-sra.c (create_access_replacement): New optional parameter
10099 reg_tree. Use it as a type if non-NULL and access type is not of
10101 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
10102 to create_access_replacement.
10103 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
10104 Check lacc is non-NULL before attempting to re-create it on the RHS.
10106 2019-02-18 Martin Liska <mliska@suse.cz>
10109 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
10111 (symbol_table::free_edge): Recycle m_summary_id.
10112 * cgraph.h (get_summary_id): New.
10113 (symbol_table::release_symbol): Set m_summary_id to -1
10115 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
10116 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
10117 function_summary to fast_function_summary.
10118 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
10119 * ipa-pure-const.c (class funct_state_summary_t):
10120 Switch from function_summary to fast_function_summary.
10121 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
10122 (class ipa_ref_opt_summary_t): Switch from function_summary
10123 to fast_function_summary.
10124 * symbol-summary.h (class function_summary_base): New class
10125 that is created from base of former function_summary.
10126 (function_summary_base::unregister_hooks): New.
10127 (class function_summary): Inherit from function_summary_base.
10128 (class call_summary_base): New class
10129 that is created from base of former call_summary.
10130 (class call_summary): Inherit from call_summary_base.
10131 (struct is_same): New.
10132 (class fast_function_summary): New summary class.
10133 (class fast_call_summary): New summary class.
10134 * vec.h (vec_safe_grow_cleared): New function.
10136 2019-02-18 Martin Liska <mliska@suse.cz>
10138 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
10139 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
10140 * doc/tm.texi: Document new target hook.
10141 * doc/tm.texi.in: Likewise.
10142 * target.def: Add new target macro.
10143 * gcc.c (find_fortran_preinclude_file): Do not search multilib
10146 2019-02-17 Alan Modra <amodra@gmail.com>
10149 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
10150 output reg on add insn.
10151 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
10153 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
10156 * config/i386/sse.md (ssedoublemode): Remove V4HI.
10157 (PMULHRSW): Likewise.
10158 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
10160 (ssse3_pmulhrswv4hi3): New expander.
10162 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
10164 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
10165 MMX. Add isa attribute.
10167 2019-02-16 Jakub Jelinek <jakub@redhat.com>
10169 PR rtl-optimization/66152
10170 * builtins.h (c_readstr): Declare.
10171 * builtins.c (c_readstr): Remove forward declaration. Add
10172 null_terminated_p argument, if false, read all bytes from the
10173 string instead of stopping after '\0'.
10174 * expr.c (string_cst_read_str): New function.
10175 (store_expr): Use string_cst_read_str instead of
10176 builtin_strncpy_read_str. Try to store by pieces the whole
10177 exp_len first, and only if that fails, split it up into
10178 store by pieces followed by clear_storage. Formatting fix.
10180 * config/i386/i386.md (*movqi_internal): Remove static from
10181 buf variable. Use output_asm_insn (buf, operands); return "";
10182 instead of return buf;.
10183 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
10184 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
10185 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
10187 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
10189 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
10190 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
10191 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
10192 (CC1_SPEC): Likewise.
10193 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
10195 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
10197 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
10198 the base address on 64-bit strict-alignment platforms.
10200 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
10202 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
10204 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
10206 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
10208 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
10210 PR rtl-optimization/88308
10211 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
10212 on copied instruction.
10214 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
10216 * final.c (insn_current_reference_address): Replace test on JUMP_P
10217 with test on jump_to_label_p.
10218 * config/visium/visium-passes.def: New file.
10219 * config/visium/t-visium (PASSES_EXTRA): Define.
10220 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
10221 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
10222 (TRAMPOLINE_ALIGNMENT): Define.
10223 * config/visium/visium.c (visium_option_override): Do not register
10224 the machine-specific reorg pass here.
10225 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
10227 (output_branch): Adjust threshold for long branch instruction.
10228 * config/visium/visium.md (cpu): Move around.
10229 (length): Adjust for the GR6.
10231 2019-02-15 Richard Biener <rguenther@suse.de>
10232 Jakub Jelinek <jakub@redhat.com>
10234 PR tree-optimization/89278
10235 * tree-loop-distribution.c: Include tree-eh.h.
10236 (generate_memset_builtin, generate_memcpy_builtin): Call
10237 rewrite_to_non_trapping_overflow on builtin->size before passing it
10238 to force_gimple_operand_gsi.
10240 2019-02-15 Jakub Jelinek <jakub@redhat.com>
10243 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
10245 * opth-gen.awk: Likewise.
10247 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
10249 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
10250 Enable MMX, SSE and SSE2 by default.
10251 * config/i386/i386.c (ix86_option_override_internal): Do not
10252 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
10254 2019-02-14 Jakub Jelinek <jakub@redhat.com>
10256 PR rtl-optimization/89354
10257 * combine.c (make_extraction): Punt if extraction_mode is narrower
10260 2019-02-14 Maya Rashish <coypu@sdf.org>
10262 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
10263 * config/netbsd-d.c: New file.
10264 * config/t-netbsd: Add netbsd-d.o
10266 2018-02-14 Steve Ellcey <sellcey@marvell.com>
10268 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
10269 affects_type_identity to true for aarch64_vector_pcs.
10270 (aarch64_comp_type_attributes): New function.
10271 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
10273 2019-02-14 Tamar Christina <tamar.christina@arm.com>
10276 * config/arm/iterators.md (ANY64): Add V4HF.
10278 2019-02-14 Martin Liska <mliska@suse.cz>
10280 PR rtl-optimization/89242
10281 * dce.c (delete_unmarked_insns): Call free_dominance_info we
10282 process a transformation.
10284 2019-02-14 Jakub Jelinek <jakub@redhat.com>
10286 PR tree-optimization/89314
10287 * fold-const.c (fold_binary_loc): Cast strlen argument to
10288 const char * before dereferencing it. Formatting fixes.
10290 PR middle-end/89284
10291 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
10293 2019-02-13 Ian Lance Taylor <iant@golang.org>
10295 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
10296 and set current index for other optimizations.
10298 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
10300 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
10301 nonimmediate_operand as operand 2 predicate.
10302 (vec_set<VF2_512_256:mode>_0): Ditto.
10303 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
10304 (*vec_concatv2si): Remove alternative 2.
10305 (*vec_concatv4si_0): Use vm constraint for alternative 0.
10306 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
10307 (vec_concatv2di): Split alternatives 4,5,6 to ...
10308 (*vec_concatv2di_0) ... new pattern.
10310 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
10313 * config/arm/arm.c (ldm_stm_operation_p) Set
10314 addr_reg_in_reglist correctly for first register.
10315 (load_multiple_sequence): Remove dead base check.
10316 (gen_ldm_seq): Correctly set write_back for Thumb-1.
10318 2019-02-13 Tamar Christina <tamar.christina@arm.com>
10321 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
10322 Expose as @aarch64_pred_mov.
10323 * config/aarch64/aarch64.c (aarch64_classify_address):
10324 Use expand_insn which legitimizes operands.
10326 2019-02-13 Martin Liska <mliska@suse.cz>
10328 * builtins.h (expand_builtin_with_bounds): Remove declaration.
10329 * calls.c (struct arg_data): Remove special_slot, pointer_arg
10330 and pointer_offset fields.
10331 (initialize_argument_information): Remove usage of dead
10333 * cgraph.h (struct cgraph_thunk_info): Remove
10334 add_pointer_bounds_args.
10335 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
10337 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
10339 * config/i386/i386.c (ix86_function_arg_advance): Remove
10341 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
10342 (def_builtin): Remove usage of dead
10344 (ix86_add_new_builtins): Likewise.
10345 * ipa-fnsummary.c (compute_fn_summary): Likewise.
10346 * ipa-icf.c (sem_function::equals_wpa): Likewise.
10347 (sem_function::init): Likewise.
10348 (sem_variable::merge): Likewise.
10349 * ipa-visibility.c (function_and_variable_visibility): Likewise.
10350 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
10351 * lto-cgraph.c (lto_output_node): Likewise.
10352 (lto_output_varpool_node): Likewise.
10353 (input_node): Likewise.
10354 (input_varpool_node): Likewise.
10355 * lto-streamer-out.c (lto_output): Likewise.
10356 * tree-inline.c (expand_call_inline): Remove usage of
10358 * tree-inline.h (struct copy_body_data): Likewise.
10359 * varpool.c (varpool_node::dump): Likewise.
10361 2019-02-13 Jakub Jelinek <jakub@redhat.com>
10363 PR middle-end/89303
10364 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
10365 into pt->vars_contains_escaped_heap instead of setting
10366 pt->vars_contains_escaped_heap to it.
10368 PR middle-end/89281
10369 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
10370 INTVAL (size), compare it to GET_MODE_MASK instead of
10371 1 << GET_MODE_BITSIZE.
10374 * config/i386/predicates.md (x86_64_immediate_operand): Allow
10375 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
10378 2019-02-13 Martin Liska <mliska@suse.cz>
10381 * cfgrtl.c (remove_barriers_from_footer): New function.
10382 (try_redirect_by_replacing_jump): Use it.
10383 (cfg_layout_redirect_edge_and_branch): Likewise.
10385 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
10387 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
10388 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
10389 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
10390 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
10391 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
10392 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
10394 * config/rs6000/rs6000.c (builtin_function_type)
10395 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
10396 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
10397 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
10398 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
10399 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
10401 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
10403 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
10404 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
10406 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
10409 * config/i386/i386.md (*movoi_internal_avx): Revert revision
10410 268678 and revision 268657.
10411 (*movti_internal): Likewise.
10413 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
10416 * config/s390/s390.c (s390_decompose_address): Update comment.
10417 (s390_check_qrst_address): Reject invalid address forms after
10420 2019-02-12 Martin Liska <mliska@suse.cz>
10423 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
10424 we need default values of funct_state for a function that
10427 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
10429 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
10430 the object to pick the size of stores on strict-alignment platforms.
10432 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
10433 (*movdi_insn_sp32): Likewise.
10434 (*movdi_insn_sp64): Likewise.
10436 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
10439 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
10440 types that needs constructiong.
10441 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
10443 2019-02-12 Richard Biener <rguenther@suse.de>
10445 PR tree-optimization/89253
10446 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
10447 duplicate the loop.
10449 2019-02-11 David Malcolm <dmalcolm@redhat.com>
10452 * input.c (selftest::test_line_offset_overflow): New selftest.
10453 (selftest::input_c_tests): Call it.
10455 2019-02-11 Martin Sebor <msebor@redhat.com>
10457 PR tree-optimization/88771
10458 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
10459 when -Wstringop-overflow is set.
10460 (builtin_memref::builtin_memref): Adjust excessive upper bound
10461 only when lower bound is not excessive.
10462 (maybe_diag_overlap): Detect and diagnose excessive bounds via
10463 -Wstringop-ovefflow.
10464 (maybe_diag_offset_bounds): Rename...
10465 (maybe_diag_access_bounds): ...to this.
10466 (check_bounds_or_overlap): Adjust for name change above.
10468 2019-02-11 Martin Sebor <msebor@redhat.com>
10471 * builtins.c (max_object_size): Move from here...
10472 * builtins.h (max_object_size): ...and here...
10473 * tree.c (max_object_size): ...to here...
10474 * tree.h (max_object_size): ...and here.
10476 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
10478 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
10479 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
10480 for correct semantics.
10482 2019-02-11 Alan Modra <amodra@gmail.com>
10484 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
10485 -mlongcall and -mpltseq.
10486 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
10487 (RS/6000 and PowerPC Options <-mpltseq>): Document.
10488 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
10489 * config/rs6000/sysv4.opt (mpltseq): New option.
10490 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
10491 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
10492 support is lacking. Don't allow -mpltseq with -mbss-plt.
10493 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
10494 -mpltseq given for ELFv1.
10495 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
10496 Only use UNSPEC_PLTSEQ for inline PLT calls.
10497 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
10498 use UNSPEC_PLTSEQ for inline PLT calls.
10499 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
10500 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
10501 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
10502 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
10503 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
10504 (pltseq_mtctr_<mode>): Likewise.
10506 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10508 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
10510 * configure: Regenerate.
10512 2019-02-11 Jakub Jelinek <jakub@redhat.com>
10515 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
10518 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
10520 * function.c (assign_parm_setup_block): Use the stored
10521 size, not the passed size, when allocating stack-space,
10522 also for a parameter with alignment larger than
10523 MAX_SUPPORTED_STACK_ALIGNMENT.
10525 2019-02-11 Martin Liska <mliska@suse.cz>
10528 * ipa-cp.c (build_toporder_info): Remove usage of a param.
10529 * ipa-inline.c (inline_small_functions): Likewise.
10530 * ipa-pure-const.c (propagate_pure_const): Likewise.
10531 (propagate_nothrow): Likewise.
10532 * ipa-reference.c (propagate): Likewise.
10533 * ipa-utils.c (struct searchc_env): Remove unused field.
10534 (searchc): Always search across AVAIL_INTERPOSABLE.
10535 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
10536 the only called IPA pure const can properly not propagate
10537 across interposable boundary.
10538 * ipa-utils.h (ipa_reduced_postorder): Remove param.
10540 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
10542 * config/nds32/nds32.md (call_internal, call_value_internal,
10543 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
10545 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
10547 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
10550 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
10552 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
10555 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
10557 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
10559 2019-02-10 Jakub Jelinek <jakub@redhat.com>
10561 PR tree-optimization/89268
10562 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
10563 if preds is non-NULL.
10565 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
10568 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
10571 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
10573 * config/nds32/nds32.md (trap): New pattern.
10575 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
10577 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
10580 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
10582 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
10585 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
10587 * ipa-visibility.c (localize_node): Also do not localize
10588 LDPR_PREVAILING_DEF_IRONLY_EXP.
10590 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
10593 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
10594 instead of type_with_linkage.
10596 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
10599 * params.def (uninlined-function-insns, uninlined-function-time,
10600 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
10601 bound so we don't get overflows.
10603 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
10605 * config/rs6000/rs6000-string.c (expand_compare_loop,
10606 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
10609 2019-02-09 Jakub Jelinek <jakub@redhat.com>
10611 PR middle-end/89246
10612 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
10613 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
10614 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
10616 2019-02-09 Alan Modra <amodra@gmail.com>
10619 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
10620 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
10623 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
10625 PR middle-end/88560
10626 * lra-constraints.c (process_alt_operands): Don't increase reject
10627 for memory when offset memory is required.
10629 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
10631 * config/s390/vector.md: Implement vector copysign.
10633 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
10635 * expr.c (expand_constructor): Correct indentations.
10637 2019-02-08 Richard Biener <rguenther@suse.de>
10639 PR tree-optimization/89247
10640 * tree-if-conv.c: Include tree-cfgcleanup.h.
10641 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
10642 (tree_if_conversion): Pass through predicate vector.
10643 (pass_if_conversion::execute): Do CFG cleanup and SSA update
10644 inline, see if any if-converted loops we refrece in
10645 LOOP_VECTORIZED calls vanished and fixup.
10646 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
10648 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
10650 * config/s390/constraints.md (jdd): New constraint.
10652 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
10655 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
10656 upper 16 vector registers without TARGET_AVX512VL.
10657 (*movti_internal): Likewise.
10659 2019-02-08 Jakub Jelinek <jakub@redhat.com>
10661 PR rtl-optimization/89234
10662 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
10663 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
10664 (copy_reg_eh_region_note_backward): Likewise.
10666 2019-02-08 Richard Biener <rguenther@suse.de>
10668 PR middle-end/89223
10669 * tree-data-ref.c (initialize_matrix_A): Fail if constant
10670 doesn't fit in HWI.
10671 (analyze_subscript_affine_affine): Handle failure from
10672 initialize_matrix_A.
10674 2019-02-08 Jakub Jelinek <jakub@redhat.com>
10676 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
10679 2019-02-07 David Malcolm <dmalcolm@redhat.com>
10681 PR tree-optimization/86637
10682 PR tree-optimization/89235
10683 * tree-vect-loop.c (optimize_mask_stores): Add an
10684 auto_purge_vect_location sentinel to ensure that vect_location is
10686 * tree-vectorizer.c
10687 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
10688 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
10689 to ensure that vect_location is purged on exit.
10690 (pass_slp_vectorize::execute): Likewise, replacing the manual
10692 * tree-vectorizer.h (class auto_purge_vect_location): New class.
10694 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10696 * config/aarch64/iterators.md (max_opp): New code_attr.
10697 (USMAX): New code iterator.
10698 * config/aarch64/predicates.md (aarch64_smin): New predicate.
10699 (aarch64_smax): Likewise.
10700 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
10701 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
10704 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
10707 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
10708 for TARGET_AVX512VL.
10709 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
10711 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
10713 * config/s390/s390-builtin-types.def: Add new types.
10714 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
10715 (s390_vec_xlw4): Make the memory operand into a const pointer.
10716 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
10718 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
10719 a new vector type with the alignment of the scalar memory operand.
10721 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
10722 Jakub Jelinek <jakub@redhat.com>
10725 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
10726 arm_count_ldrdstrd_insns): New declarations.
10727 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
10729 (valid_operands_ldrd_strd): New function.
10730 (arm_count_ldrdstrd_insns): New function.
10731 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
10732 sets instead of single DImode set and define new insns to match this.
10734 2019-02-07 Tamar Christina <tamar.christina@arm.com>
10736 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
10737 Make it a C initializer.
10739 2019-02-07 Tamar Christina <tamar.christina@arm.com>
10742 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
10744 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10746 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
10747 Use neon_dot<q> for type.
10748 (neon_<sup>dot_lane<vsi2qi>): Likewise.
10750 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10752 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
10753 Use neon_dot<q> for type.
10754 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
10755 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
10757 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
10759 PR rtl-optimization/89225
10760 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
10763 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
10765 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
10766 after restoring registers saved to allocate the frame on Windows.
10768 2019-02-06 Richard Biener <rguenther@suse.de>
10770 PR tree-optimization/89182
10771 * graphite.h (cached_scalar_evolution_in_region): Declare.
10772 * graphite.c (struct seir_cache_key): New.
10773 (struct sese_scev_hash): Likewise.
10774 (seir_cache): New global.
10775 (cached_scalar_evolution_in_region): New function.
10776 (graphite_transform_loops): Allocate and release seir_cache.
10777 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
10778 cached_scalar_evolution_in_region.
10779 * graphite-scop-detection.c (scop_detection::can_represent_loop):
10781 (scop_detection::graphite_can_represent_expr: Use
10782 cached_scalar_evolution_in_region.
10783 (scop_detection::stmt_simple_for_scop_p): Likewise.
10784 (find_params_in_bb): Likewise.
10785 (gather_bbs::before_dom_children): Likewise.
10786 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
10787 (add_loop_constraints): Likewise.
10789 2019-02-06 Jakub Jelinek <jakub@redhat.com>
10791 PR middle-end/89210
10792 * fold-const-call.c (fold_const_vec_convert): Pass true as last
10793 operand to new_unary_operation only if both element types are integral
10794 and it isn't a widening conversion. Return NULL_TREE if
10795 new_unary_operation failed.
10797 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
10800 * config/s390/s390.md: Remove load and test FP splitter.
10802 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
10805 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
10806 expand_compare_loop, expand_block_compare_gpr,
10807 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
10808 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
10809 #include "profile-count.h" and "predict.h" for types and functions
10810 needed to work with REG_BR_PROB notes.
10812 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
10815 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
10816 for the long branch case.
10818 2019-02-05 Jakub Jelinek <jakub@redhat.com>
10821 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
10822 can throw, non-call exceptions are enabled and we can't delete
10823 dead exceptions or alter cfg. Set must_clean if
10824 delete_insn_and_edges returns true, don't set it blindly for calls.
10825 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
10827 PR rtl-optimization/89195
10828 * combine.c (make_extraction): For MEMs, don't extract bytes outside
10829 of the original MEM.
10831 2019-02-05 Martin Liska <mliska@suse.cz>
10833 PR gcov-profile/89000
10834 * gcov.c (function_summary): Remove argument.
10835 (file_summary): New function.
10836 (print_usage): Replace tabs with spaces.
10837 (generate_results): Use new function file_summary.
10839 2019-02-05 Jakub Jelinek <jakub@redhat.com>
10842 * optabs.c (prepare_cmp_insn): Pass x and y to
10843 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
10845 2019-02-05 Richard Biener <rguenther@suse.de>
10847 PR middle-end/89150
10848 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
10849 (struct bitmap_element): Drop chain_prev so we properly recurse on
10850 the prev member, supporting tree views.
10851 (struct bitmap_head): GTY skip the obstack member.
10853 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
10856 * doc/extend.texi (Vector Extensions): Add an example of using vector
10857 types together with x86 intrinsics.
10859 2019-02-04 Alan Modra <amodra@gmail.com>
10861 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
10862 str[] size to 160, and comment.
10864 2019-02-04 Alan Modra <amodra@gmail.com>
10866 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
10867 (rs6000_pltseq_template): Guard output of TLS markers with
10868 TARGET_TLS_MARKERS.
10869 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
10870 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
10871 to use inline PLT sequences.
10872 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
10873 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
10874 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
10876 2019-02-04 Martin Liska <mliska@suse.cz>
10879 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
10880 out when ipa_fn_summaries does not contain entry for callee.
10882 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
10884 * config/sparc/sparc.h: Remove superfluous blank lines.
10885 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
10886 (got_register_rtx): ...this.
10887 (sparc_got): Adjust to above renaming.
10888 (sparc_tls_got): Likewise.
10889 (sparc_delegitimize_address): Likewise.
10890 (sparc_output_mi_thunk): Likewise.
10891 (sparc_init_pic_reg): Likewise.
10892 (save_local_or_in_reg_p): Fix test on the GOT register.
10893 (USE_HIDDEN_LINKONCE): Move around.
10894 (get_pc_thunk_name): Likewise.
10895 (gen_load_pcrel_sym): Likewise.
10896 (load_got_register): Likewise.
10898 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
10900 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
10901 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
10903 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
10905 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
10906 into consideration.
10908 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
10910 * config.gcc (with_nds32_lib, glibc):
10911 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
10912 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
10913 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
10915 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
10918 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
10919 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
10920 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
10921 (*rcpsf2_sse): Ditto.
10922 (*rsqrtsf2_sse): Ditto.
10923 (sse4_1_round<mode<2): Ditto.
10925 2019-02-03 Richard Biener <rguenther@suse.de>
10928 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
10931 2019-02-02 Jakub Jelinek <jakub@redhat.com>
10933 PR middle-end/87887
10934 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
10935 Punt with warning on aggregate return or argument types. Ignore
10936 type/mode checking for uniform arguments.
10938 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
10940 * combine.c (try_combine): Do not print "Can't combine" messages unless
10941 printing failed combination attempts.
10943 2019-02-01 Martin Jambor <mjambor@suse.cz>
10946 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
10947 segment and global segment variables before making them static.
10949 2019-02-01 Martin Jambor <mjambor@suse.cz>
10951 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
10952 missed optimization dump with dump_enabled_p.
10954 2019-02-01 Richard Biener <rguenther@suse.de>
10956 PR middle-end/88597
10957 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
10958 the instantiate cache.
10959 (instantiate_scev_binary): Elide second operand procesing
10960 if equal to the first.
10961 * tree-chrec.c (chrec_contains_symbols): Add visited set.
10962 (chrec_contains_undetermined): Likewise.
10963 (tree_contains_chrecs): Likewise.
10965 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
10967 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
10969 2019-02-01 Jakub Jelinek <jakub@redhat.com>
10971 PR tree-optimization/89143
10972 * wide-int-range.h (wide_int_range_absu): Declare.
10973 * wide-int-range.cc (wide_int_range_absu): New function.
10974 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
10976 PR tree-optimization/88107
10977 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
10978 instead of assertion that eh_region_outermost is non-NULL, if it
10979 is NULL, set *ALL to true and return NULL.
10980 (move_sese_region_to_fn): Adjust caller, if all is set, call
10981 duplicate_eh_regions with NULL region.
10983 2019-02-01 Richard Biener <rguenth@suse.de>
10985 PR rtl-optimization/88593
10986 * mode-switching.c (optimize_mode_switching): Free dominators before
10987 calling cleanup_cfg.
10989 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
10991 PR tree-optimization/88932
10992 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
10994 2019-01-31 Jakub Jelinek <jakub@redhat.com>
10996 PR middle-end/89137
10997 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
10998 bogus clang warning.
11000 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
11003 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
11004 alternative to avoid partial SSE register stall for TARGET_AVX.
11005 (truncdfsf2): Ditto.
11006 (sse4_1_round<mode>2): Ditto.
11008 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
11010 PR tree-optimization/89008
11011 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
11012 process anything of the form X * 0.
11014 2019-01-31 Richard Biener <rguenther@suse.de>
11016 PR tree-optimization/89135
11017 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
11018 with abnormal preds.
11020 2019-01-31 Jakub Jelinek <jakub@redhat.com>
11023 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
11024 always_inline callees into no_sanitize_address callers.
11026 2019-01-31 Richard Biener <rguenther@suse.de>
11028 PR rtl-optimization/89115
11029 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
11031 2019-01-30 Martin Sebor <msebor@redhat.com>
11034 * doc/extend.texi (cast to a union): Correct and expand.
11036 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
11038 PR rtl-optimization/87246
11039 * lra-constraints.c (simplify_operand_subreg): Reload memory
11040 in subreg if the address became invalid.
11042 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
11045 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
11046 Disable for little-endian.
11048 2019-01-30 Richard Biener <rguenther@suse.de>
11050 PR rtl-optimization/89115
11051 * opts.c (default_options_optimization): Reduce
11052 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
11053 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
11056 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
11058 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
11059 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
11060 type of vector element when vec_extract is implemented by direct
11063 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
11065 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
11067 2019-01-30 Richard Biener <rguenther@suse.de>
11069 PR tree-optimization/89111
11070 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
11071 canonicalization to appropriately sized access types.
11073 2019-01-30 Jakub Jelinek <jakub@redhat.com>
11076 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
11077 for arguments to functions that are TU-local and shouldn't be
11078 referenced by assembly.
11080 2019-01-30 Ulrich Drepper <drepper@redhat.com>
11082 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
11085 2019-01-29 Martin Sebor <msebor@redhat.com>
11088 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
11090 2019-01-29 Jakub Jelinek <jakub@redhat.com>
11094 * omp-simd-clone.c (simd_clone_clauses_extract)
11095 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
11096 OMP_CLAUSE_ALIGNED_ALIGNMENT.
11098 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
11100 * config.gcc: Force .init_array for ARC.
11102 2019-01-29 Richard Biener <rguenther@suse.de>
11105 * dwarf2out.c (collect_skeleton_dies): New helper.
11106 (copy_decls_for_unworthy_types): Call it.
11107 (build_abbrev_table): Assert we do not try to replace
11108 DW_AT_signature refs with local refs.
11110 2019-01-28 Jakub Jelinek <jakub@redhat.com>
11112 PR middle-end/89002
11113 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
11114 for lastprivate/linear IV, push gimplify context around gimplify_assign
11115 and, if it needed any temporaries, pop it into a gimple bind around the
11118 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
11120 * common.opt (-Wattribute-alias): Remove "no-" from name.
11121 Make -Wattribute-alias command line option and
11122 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
11124 2019-01-28 Jakub Jelinek <jakub@redhat.com>
11127 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
11128 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
11130 (bmi2): Add missing @opindex.
11131 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
11132 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
11133 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
11134 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
11135 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
11136 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
11137 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
11138 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
11139 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
11140 xsavec, xsaveopt and xsaves options.
11142 2019-01-28 Richard Biener <rguenther@suse.de>
11145 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
11148 2019-01-28 Richard Biener <rguenther@suse.de>
11150 PR tree-optimization/88739
11151 * tree-cfg.c (verify_types_in_gimple_reference): Verify
11152 BIT_FIELD_REFs only are applied to mode-precision operands
11153 when they are integral.
11154 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
11155 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
11156 BIT_FIELD_REFs of non-mode-precision integral operands.
11158 2019-01-27 Jakub Jelinek <jakub@redhat.com>
11161 * config/i386/sse.md
11162 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
11163 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
11164 first constants in pairs are multiples of 2. Formatting fixes.
11165 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
11166 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
11167 first constants in each quadruple are multiples of 4. Formatting fixes.
11169 2019-01-26 Martin Jambor <mjambor@suse.cz>
11172 * tree-inline.c: Include tree-cfgcleanup.h.
11173 (delete_unreachable_blocks_update_callgraph): Move...
11174 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
11175 ...here, make externally visible, make second argument bool, adjust
11177 * tree-cfgcleanup.c: Include cgraph.h.
11178 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
11180 * ipa-prop.c: Include tree-cfgcleanup.h.
11181 (ipcp_transform_function): Call
11182 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
11184 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
11186 PR rtl-optimization/88846
11187 * ira.c (process_set_for_memref_referenced_p): New.
11188 (memref_referenced_p): Add new param. Use
11189 process_set_for_memref_referenced_p. Add new switch cases.
11190 (memref_used_between_p): Pass new arg to memref_referenced_p.
11192 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
11195 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
11196 argument ABI_BREAK. Set to true if the calculated alignment has
11197 changed in gcc-9. Check bit-fields for their base type alignment.
11198 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
11199 (aarch64_function_arg_boundary): Likewise.
11200 (aarch64_gimplify_va_arg_expr): Likewise.
11202 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
11204 PR middle-end/89037
11205 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
11206 instead of accessing TREE_INT_CST_ELT directly.
11208 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
11210 * doc/sourcebuild.texi (Environment attributes): Add fenv and
11211 fenv_exceptions description.
11213 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
11215 PR rtl-optimization/87763
11216 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
11217 Allow SUBREG when matching CC_NZmode compare.
11219 2019-01-25 Richard Biener <rguenther@suse.de>
11221 PR tree-optimization/89049
11222 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
11223 Look at the pattern stmt to determine if the stmt is vectorized.
11225 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
11227 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
11228 (pred_mov<mode>): Handle all-register forms using both a new
11229 alternative and a split.
11231 2019-01-25 Richard Biener <rguenther@suse.de>
11233 PR tree-optimization/86865
11234 * graphite-scop-detection.c (scop_detection::can_represent_loop):
11235 Reject non-do-while loops.
11237 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
11239 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
11240 * config/rs6000/constraints.md (Q constraint): Use REG_P.
11241 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
11242 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
11243 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
11244 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
11245 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
11246 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
11247 vlogical_operand, gpc_reg_operand, int_reg_operand,
11248 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
11249 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
11250 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
11251 (save_world_operation, restore_world_operation, lmw_operation,
11252 stmw_operation): Use MEM_P and REG_P.
11253 (tie_operand): Use MEM_P.
11254 (vrsave_operation, crsave_operation): Use REG_P.
11255 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
11256 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
11257 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
11258 (call_operand): Use HARD_REGISTER_P.
11259 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
11261 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
11262 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
11263 quad_aligned_load_p, replace_swapped_aligned_store,
11264 recombine_lvx_pattern, replace_swapped_aligned_load,
11265 recombine_stvx_pattern): Use MEM_P.
11266 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
11267 Use MEM_P and SYMBOL_REF_P.
11268 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
11269 (insn_is_swappable_p): Use REG_P and MEM_P.
11270 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
11271 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
11273 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
11274 Use CONST_DOUBLE_P.
11275 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
11277 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
11278 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
11279 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
11280 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
11282 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
11283 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
11284 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
11285 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
11286 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
11287 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
11288 rs6000_split_logical_di): Use CONST_INT_P.
11289 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
11290 REG_P and SYMBOL_REF_P.
11291 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
11292 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
11293 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
11294 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
11295 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
11296 (small_data_operand, print_operand_address): Use CONST_INT_P and
11298 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
11299 (rs6000_init_hard_regno_mode_ok, direct_move_p):
11300 Use HARD_REGISTER_NUM_P.
11301 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
11302 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
11303 SUBREG_P and SYMBOL_REF_P.
11304 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
11305 and HARD_REGISTER_NUM_P.
11306 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
11308 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
11309 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
11311 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
11312 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
11313 find_addr_reg): Use REG_P.
11314 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
11315 (rs6000_emit_le_vsx_move): Use SUBREG_P.
11316 (offsettable_ok_by_alignment, constant_pool_expr_p,
11317 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
11318 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
11319 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
11320 rs6000_assemble_integer, create_TOC_reference,
11321 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
11322 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
11323 (rs6000_split_vec_extract_var): Use reg_or_subregno.
11324 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
11325 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
11326 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
11327 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
11328 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
11329 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
11330 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
11331 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
11332 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
11333 and cbranch<mode>4): Use CONST_INT_P.
11334 (multiple define_splits): Use REG_P and SUBREG_P.
11335 (define_expands call, call_value): Use MEM_P.
11336 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
11337 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
11338 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
11339 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
11340 and HARD_REGISTER_NUM_P.
11341 (multiple define_splits): Use HARD_REGISTER_NUM_P.
11343 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
11345 PR rtl-optimization/88948
11346 * rtl.h (prepare_copy_insn): New prototype.
11347 * gcse.c (prepare_copy_insn): New function, split out from
11348 process_insert_insn.
11349 (process_insert_insn): Use prepare_copy_insn.
11350 * store-motion.c (replace_store_insn): Use prepare_copy_insn
11351 instead of gen_move_insn.
11353 2019-01-24 Jakub Jelinek <jakub@redhat.com>
11356 * config/i386/i386.c (ix86_pic_register_p): Return true for
11357 UNSPEC_SET_GOT too.
11359 PR tree-optimization/88964
11360 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
11361 punt if HONOR_SNANS (chrec).
11363 PR middle-end/89015
11364 * tree-nested.c (convert_nonlocal_reference_stmt,
11365 convert_local_reference_stmt, convert_tramp_reference_stmt,
11366 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
11367 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
11368 or GIMPLE_OMP_TASK.
11370 PR tree-optimization/89027
11371 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
11372 for "omp simd array" variables.
11374 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
11377 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
11378 force the alignment of m_val.
11380 2019-01-24 Richard Biener <rguenther@suse.de>
11383 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
11384 When in "legacy" debug mode make sure to reset self-origins.
11386 2019-01-24 Martin Liska <mliska@suse.cz>
11388 PR gcov-profile/88994
11389 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
11390 result will be always smaller or equal to the original.
11391 * gcov.c (mangle_name): Fix else branch where we should
11392 also copy to PTR and shift the pointer.
11394 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
11396 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
11397 * vr-values.c (find_case_label_ranges): Fix a comment typo.
11399 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
11401 * common/config/i386/i386-common.c
11402 (OPTION_MASK_ISA_ENQCMD_SET,
11403 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
11404 (ix86_handle_option): Handle -menqcmd.
11405 * config.gcc (enqcmdintrin.h): New header file.
11406 * config/i386/cpuid.h (bit_ENQCMD): New bit.
11407 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
11409 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
11411 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
11412 __builtin_ia32_enqcmds): New builtins.
11413 * config/i386/i386-c.c (__ENQCMD__): New macro.
11414 * config/i386/i386-option.c (ix86_target_string): Add
11416 (ix86_valid_target_attribute_inner_p): Likewise.
11417 * config/i386/i386-expand.c
11418 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
11419 IX86_BUILTIN_ENQCMDS.
11420 * config/i386/i386.h (TARGET_ENQCMD): New.
11421 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
11422 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
11423 (movdir64b_<mode>): Parameterize to enable share expansion code
11424 with ENQCMD in function ix86_expand_builtin.
11425 * config/i386/i386.opt: Add -menqcmd.
11426 * config/i386/immintrin.h: Include enqcmdintrin.h.
11427 * config/i386/enqcmdintrin.h: New intrinsic file.
11428 * doc/invoke.texi: Add -menqcmd.
11430 2019-01-23 Bin Cheng <bin.cheng@arm.com>
11431 Steve Ellcey <sellcey@marvell.com>
11434 * recog.c (address_operand): Return false on wrong mode for address.
11435 (constrain_operands): Check for mode with 'p' constraint.
11437 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
11440 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
11441 Disparage MMX alternative.
11442 (sse2_cvtpd2pi): Ditto.
11443 (sse2_cvttpd2pi): Ditto.
11445 2019-01-23 David Malcolm <dmalcolm@redhat.com>
11448 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
11449 use-after-free of the result of
11450 aarch64_get_extension_string_for_isa_flags.
11452 2019-01-23 Jakub Jelinek <jakub@redhat.com>
11455 * doc/extend.texi: Document break and continue behavior in
11456 statement expressions.
11458 2019-01-23 Richard Biener <rguenther@suse.de>
11460 PR tree-optimization/89008
11461 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
11462 not leave another stray operand.
11464 2019-01-23 Jakub Jelinek <jakub@redhat.com>
11466 * BASE-VER: Bump to 9.0.1.
11468 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
11470 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
11471 thunk that returns by reference, use the type of the return object
11472 of the thunk instead of that of the alias to build the dereference.
11474 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
11476 * config/arc/atomic.md: Add operand to DMB instruction.
11478 2019-01-23 Jakub Jelinek <jakub@redhat.com>
11480 PR tree-optimization/88964
11481 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
11482 build_zero_cst instead of build_int_cst. Return false for loop
11483 invariants which honor signed zeros.
11485 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
11487 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
11489 2019-01-22 Jakub Jelinek <jakub@redhat.com>
11492 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
11493 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
11494 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
11496 PR middle-end/88968
11497 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
11498 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
11501 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
11502 Disable for little endian.
11504 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
11507 * config/arm/arm.c (arm_needs_double_word_align): Check
11508 DECL_BIT_FIELD_TYPE.
11510 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
11511 H.J. Lu <hongjiu.lu@intel.com>
11514 * config/i386/i386-builtin.def: Add mask2 to all builtin
11515 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
11517 * config/i386/i386.c (BDESC): Add mask2 to the definition.
11518 (BDESC_FIRST): Likewise.
11519 (define_builtin): Add an argument for mask2. Updated to handle
11520 both ix86_isa_flags and ix86_isa_flags2.
11521 (define_builtin_const): Likewise.
11522 (define_builtin_pure): Likewise.
11523 (define_builtin2): Deleted.
11524 (define_builtin_const2): Likewise.
11525 (builtin_description): Add a member, mask2.
11526 (bdesc_*): Add mask2 to builtin initializations.
11527 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
11528 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
11530 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
11532 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
11535 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
11538 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
11541 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
11542 alignment is dominated by a bitfield with 64-bit aligned base type.
11543 (arm_function_arg): Emit a warning if the alignment has changed since
11544 earlier GCC releases.
11545 (arm_function_arg_boundary): Likewise.
11546 (arm_setup_incoming_varargs): Likewise.
11548 2019-01-22 Richard Biener <rguenther@suse.de>
11550 PR tree-optimization/88862
11551 * graphite-scop-detection.c
11552 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
11554 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
11556 * doc/extend.tex (AMD GCN Function Attributes): New section.
11557 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
11558 * doc/invoke.texi (AMD GCN Options): New section.
11559 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
11561 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
11563 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
11564 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
11566 2019-01-22 Jakub Jelinek <jakub@redhat.com>
11568 PR tree-optimization/88044
11569 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
11570 is false in the first iteration, but !every_iteration, return false
11571 instead of true with niter->niter zero.
11573 PR rtl-optimization/88904
11574 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
11575 any nonequal registers before processing BB_END (b).
11578 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
11580 (expand_binop_directly, expand_doubleword_clz,
11581 expand_doubleword_popcount, expand_ctz, expand_ffs,
11582 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
11584 PR rtl-optimization/49429
11586 PR rtl-optimization/86334
11588 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
11589 addressable from here...
11590 (emit_block_op_via_libcall): ... to here.
11592 2019-01-22 Richard Biener <rguenther@suse.de>
11594 * tree-vect-loop.c (vect_analyze_loop_operations): Use
11595 auto_vec for cost vector to fix memleak.
11596 (vectorize_fold_left_reduction): Properly gather SLP defs.
11597 (vectorizable_comparison): Do not swap operands to properly
11600 2019-01-22 Alan Modra <amodra@gmail.com>
11603 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
11604 stays a reg. Allow a const_int.
11605 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
11606 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
11607 (IS_NOMARK_TLSGETADDR): Define.
11608 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
11609 (rs6000_output_tlsargs): New function.
11610 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
11611 __tls_get_addr call takes an arg.
11612 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
11613 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
11615 (call_value_nonlocal_sysv): ..or here, delete split.
11616 (tls_gdld_nomark): Delete.
11617 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
11618 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
11619 (call_value_nonlocal_sysv): Likewise.
11620 (call_value_nonlocal_sysv_secure): Likewise.
11621 (call_value_nonlocal_aix): Likewise.
11622 (call_value_indirect_aix): Likewise.
11623 (call_value_indirect_elfv2): Likewise.
11624 (call_value_local32, call_value_local64): Disable for no-mark tls.
11625 (call_value_local_aix): Likewise.
11627 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
11630 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
11631 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
11633 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
11635 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
11636 string contents as hash_map keys.
11638 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
11641 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
11642 for rvalue context. Handle rvalues correctly. Use min_align_of_type
11643 instead of TYPE_ALIGN.
11644 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
11645 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
11646 pointer from TYPE_STUB_DECL.
11648 2019-01-21 Richard Biener <rguenther@suse.de>
11650 PR tree-optimization/88934
11651 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
11652 at the possibly non-constant operand.
11653 (vect_get_constant_vectors): Adjust.
11655 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
11658 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
11659 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
11660 instead of _X86INTRIN_H_INCLUDED.
11661 * onfig/i386/clwbintrin.h: Likewise.
11662 * config/i386/pkuintrin.h: Likewise.
11663 * config/i386/prfchwintrin.h: Likewise.
11664 * config/i386/rdseedintrin.h: Likewise.
11665 * config/i386/wbnoinvdintrin.h: Likewise.
11666 * config/i386/xsavecintrin.h: Likewise.
11667 * config/i386/xsavesintrin.h: Likewise.
11668 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
11669 * config/i386/xsaveintrin.h: Likewise.
11670 * config/i386/xsaveoptintrin.h: Likewise.
11671 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
11672 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
11673 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
11674 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
11675 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
11676 * config/i386/immintrin.h: Here.
11678 2019-01-20 Martin Jambor <mjambor@suse.cz>
11681 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
11682 with aa_walk_budget.
11683 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
11684 aa_walk_budget_p parameter.
11685 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
11686 walk. Updated all callers.
11687 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
11688 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
11690 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
11691 parameter info. Extract info from fbi. Pass fbi to recursive calls
11692 and to unmodified_parm.
11693 (phi_result_unknown_predicate): New parameter fbi, removed parameter
11694 info, updated call to will_be_nonconstant_expr_predicate.
11695 (param_change_prob): New parameter fbi, limit AA walking.
11696 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
11697 calls to various above functions.
11698 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
11699 parameter. Use it to limit AA walking.
11700 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
11701 fbi, limit AA walk.
11702 (detect_type_change): New parameter fbi, pass it on to
11703 detect_type_change_from_memory_writes.
11704 (detect_type_change_ssa): Likewise.
11705 (aa_overwalked): Removed.
11706 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
11707 accordingly, adjust to the neew AA limiting scheme.
11708 (parm_ref_data_preserved_p): Likewise.
11709 (ipa_compute_jump_functions_for_edge): Adjust call to
11711 (ipa_analyze_call_uses): Likewise.
11712 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
11713 (ipa_analyze_node): Initialize aa_walk_budget.
11714 (ipcp_transform_function): Likewise.
11715 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
11716 to get_dynamic_type.
11718 2019-01-19 Jakub Jelinek <jakub@redhat.com>
11720 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
11721 outside of #if CHECKING_P code.
11723 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
11725 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
11726 New function, split out from...
11727 (loop_versioning::analyze_stride): ...here.
11728 (loop_versioning::find_per_loop_multiplication): Use gassign.
11729 (loop_versioning::analyze_term_using_scevs): Return a success code.
11730 (loop_versioning::analyze_arbitrary_term): New function.
11731 (loop_versioning::analyze_address_fragment): Use
11732 analyze_arbitrary_term if all else fails.
11734 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
11737 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
11740 2019-01-18 Richard Biener <rguenther@suse.de>
11742 PR tree-optimization/88903
11743 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
11744 scalar stmts a SLP shift amount is composed of when detecting
11747 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
11750 * config/arm/arm-cpus.in (mp): New feature.
11751 (sec): New feature.
11752 (fgroup ARMv7ve): Add mp and sec features.
11753 (arch armv7-a): Add options to allow mp and sec extensions.
11754 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
11755 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
11756 extenstions to the base architecture.
11757 (cpu cortex-a8): Add sec extension to the base architecture.
11758 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
11759 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
11760 variants down to the base v7-a varaint.
11761 * config/arm/t-multilib (v7_a_arch_variants): New variable.
11762 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
11763 of permitted extensions for -march=armv7-a and for
11764 -mcpu=generic-armv7-a.
11766 2019-01-18 Martin Liska <mliska@suse.cz>
11768 * params.def: Fix comment.
11769 * tree-profile.c (gimple_init_gcov_profiler): Bump function
11771 (gimple_gen_ic_func_profiler): Likewise.
11773 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11775 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
11776 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
11777 and put in error checks for stack protector guard options.
11778 (aarch64_stack_protect_guard): New.
11779 (TARGET_STACK_PROTECT_GUARD): Define.
11780 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
11781 (reg_stack_protect_address<mode>): New.
11782 (stack_protect_set): Adjust for SSP_GLOBAL.
11783 (stack_protect_test): Likewise.
11784 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
11785 (-mstack-protector-guard): Likewise.
11786 (-mstack-protector-guard-offset): Likewise.
11788 2019-01-18 Jakub Jelinek <jakub@redhat.com>
11790 PR tree-optimization/86214
11791 * tree-inline.h (struct copy_body_data): Add
11792 add_clobbers_to_eh_landing_pads member.
11793 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
11794 (copy_edges_for_bb): Call it if EH edge destination is <
11795 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
11796 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
11797 if flag_stack_reuse != SR_NONE and clear it afterwards.
11799 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
11802 * doc/install.texi (with-multilib-list): Document for aarch64.
11804 2019-01-18 Jakub Jelinek <jakub@redhat.com>
11807 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
11808 (("..."))) with ("...").
11810 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
11812 * doc/extend.texi (Built-in Functions for Memory Model Aware
11813 Atomic Operations): Document atomic fetch and nand.
11815 2019-01-18 Martin Liska <mliska@suse.cz>
11816 Richard Biener <rguenther@suse.de>
11818 PR middle-end/88587
11819 * cgraph.h (create_version_clone_with_body): Add new argument
11821 * cgraphclones.c (cgraph_node::create_version_clone): Add
11822 DECL_ATTRIBUTES to a newly created decl. And call
11823 valid_attribute_p so that proper cl_target_optimization_node
11824 is set for the newly created declaration.
11825 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
11827 (expand_target_clones): Do not call valid_attribute_p, it must
11829 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
11832 2019-01-17 Jakub Jelinek <jakub@redhat.com>
11835 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
11836 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
11837 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
11839 2019-01-17 Martin Sebor <msebor@redhat.com>
11841 PR middle-end/88273
11842 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
11843 Handle anti-ranges the same as no range at all.
11845 2018-01-17 Steve Ellcey <sellcey@cavium.com>
11847 * config/aarch64/aarch64.c (cgraph.h): New include.
11848 (intl.h): New include.
11849 (supported_simd_type): New function.
11850 (currently_supported_simd_type): Ditto.
11851 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
11852 (aarch64_simd_clone_adjust): Ditto.
11853 (aarch64_simd_clone_usable): Ditto.
11854 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
11855 (TARGET_SIMD_CLONE_ADJUST): Ditto.
11856 (TARGET_SIMD_CLONE_USABLE): Ditto.
11857 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
11858 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
11861 2019-01-17 Martin Sebor <msebor@redhat.com>
11863 PR tree-optimization/88800
11864 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
11865 NO_WARNING bit here. Avoid folding out-of-bounds calls.
11866 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
11867 redundant argument. Add new argument and issue diagnostics under
11868 its control. Detect out-of-bounds access even with warnings
11870 (check_bounds_or_overlap): Change return type. Add argument.
11871 (wrestrict_dom_walker::check_call): Adjust.
11872 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
11873 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
11874 check_bounds_or_overlap's return value.
11875 (handle_builtin_stxncpy): Same.
11876 (handle_builtin_strcat): Same.
11878 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
11879 Kwok Cheung Yeung <kcy@codesourcery.com>
11880 Julian Brown <julian@codesourcery.com>
11881 Tom de Vries <tom@codesourcery.com>
11883 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
11885 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
11887 * doc/sourcebuild.texi: Document dg-require-effective-target
11888 llvm_binutils and offload_gcn.
11890 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
11891 Kwok Cheung Yeung <kcy@codesourcery.com>
11892 Julian Brown <julian@codesourcery.com>
11893 Tom de Vries <tom@codesourcery.com>
11895 * doc/sourcebuild.texi: Document dg-required-effective-target
11898 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
11899 Kwok Cheung Yeung <kcy@codesourcery.com>
11900 Julian Brown <julian@codesourcery.com>
11901 Tom de Vries <tom@codesourcery.com>
11902 Jan Hubicka <hubicka@ucw.cz>
11903 Martin Jambor <mjambor@suse.cz>
11905 * config.gcc: Add amdgcn*-*-amdhsa configuration.
11906 * configure.ac: Check for dlopen.
11907 * configure: Regenerate.
11909 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
11910 Kwok Cheung Yeung <kcy@codesourcery.com>
11911 Julian Brown <julian@codesourcery.com>
11912 Tom de Vries <tom@codesourcery.com>
11913 Jan Hubicka <hubicka@ucw.cz>
11914 Martin Jambor <mjambor@suse.cz>
11916 * common/config/gcn/gcn-common.c: New file.
11917 * config/gcn/driver-gcn.c: New file.
11918 * config/gcn/gcn-builtins.def: New file.
11919 * config/gcn/gcn-hsa.h: New file.
11920 * config/gcn/gcn-modes.def: New file.
11921 * config/gcn/gcn-opts.h: New file.
11922 * config/gcn/gcn-passes.def: New file.
11923 * config/gcn/gcn-protos.h: New file.
11924 * config/gcn/gcn-run.c: New file.
11925 * config/gcn/gcn-tree.c: New file.
11926 * config/gcn/gcn.c: New file.
11927 * config/gcn/gcn.h: New file.
11928 * config/gcn/gcn.opt: New file.
11929 * config/gcn/t-gcn-hsa: New file.
11931 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
11932 Kwok Cheung Yeung <kcy@codesourcery.com>
11933 Julian Brown <julian@codesourcery.com>
11934 Tom de Vries <tom@codesourcery.com>
11935 Jan Hubicka <hubicka@ucw.cz>
11936 Martin Jambor <mjambor@suse.cz>
11938 * config/gcn/constraints.md: New file.
11939 * config/gcn/gcn-valu.md: New file.
11940 * config/gcn/gcn.md: New file.
11941 * config/gcn/predicates.md: New file.
11943 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
11945 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
11946 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
11947 (stmt_uses_0_or_null_in_undefined_way): Likewise.
11948 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
11950 2019-01-17 Tamar Christina <tamar.christina@arm.com>
11953 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
11954 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
11955 it and document registers.
11957 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11959 * config/aarch64/aarch64.c (ares_tunings): Define.
11960 * config/aarch64/aarch64-cores.def (ares): Use the above.
11962 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
11966 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
11968 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
11969 (_mm512_fixupimm_round_pd): Update parameters and builtin.
11970 (_mm512_maskz_fixupimm_round_pd): Ditto.
11971 (_mm512_fixupimm_round_ps): Ditto.
11972 (_mm512_maskz_fixupimm_round_ps): Ditto.
11973 (_mm_fixupimm_round_sd): Ditto.
11974 (_mm_maskz_fixupimm_round_sd): Ditto.
11975 (_mm_fixupimm_round_ss): Ditto.
11976 (_mm_maskz_fixupimm_round_ss): Ditto.
11977 (_mm512_fixupimm_pd): Ditto.
11978 (_mm512_maskz_fixupimm_pd): Ditto.
11979 (_mm512_fixupimm_ps): Ditto.
11980 (_mm512_maskz_fixupimm_ps): Ditto.
11981 (_mm_fixupimm_sd): Ditto.
11982 (_mm_maskz_fixupimm_sd): Ditto.
11983 (_mm_fixupimm_ss): Ditto.
11984 (_mm_maskz_fixupimm_ss): Ditto.
11985 (_mm512_mask_fixupimm_round_pd): Update builtin.
11986 (_mm512_mask_fixupimm_round_ps): Ditto.
11987 (_mm_mask_fixupimm_round_sd): Ditto.
11988 (_mm_mask_fixupimm_round_ss): Ditto.
11989 (_mm512_mask_fixupimm_pd): Ditto.
11990 (_mm512_mask_fixupimm_ps): Ditto.
11991 (_mm_mask_fixupimm_sd): Ditto.
11992 (_mm_mask_fixupimm_ss): Ditto.
11993 * config/i386/avx512vlintrin.h:
11994 (_mm256_fixupimm_pd): Update parameters and builtin.
11995 (_mm256_maskz_fixupimm_pd): Ditto.
11996 (_mm256_fixupimm_ps): Ditto.
11997 (_mm256_maskz_fixupimm_ps): Ditto.
11998 (_mm_fixupimm_pd): Ditto.
11999 (_mm_maskz_fixupimm_pd): Ditto.
12000 (_mm_fixupimm_ps): Ditto.
12001 (_mm_maskz_fixupimm_ps): Ditto.
12002 (_mm256_mask_fixupimm_pd): Update builtin.
12003 (_mm256_mask_fixupimm_ps): Ditto.
12004 (_mm_mask_fixupimm_pd): Ditto.
12005 (_mm_mask_fixupimm_ps): Ditto.
12006 * config/i386/i386-builtin-types.def: Add new types and remove useless ones.
12007 * config/i386/i386-builtin.def: Update builtin definitions.
12008 * config/i386/i386.c: Handle new builtin types and remove useless ones.
12009 * config/i386/sse.md: Update VFIXUPIMM* patterns.
12010 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
12011 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
12012 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
12013 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
12014 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
12015 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
12016 * config/i386/subst.md:
12017 (round_saeonly_sd_mask_operand4): Add new subst_attr.
12018 (round_saeonly_sd_mask_op4): Ditto.
12019 (round_saeonly_expand_operand5): Ditto.
12020 (round_saeonly_expand): Update.
12022 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
12026 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
12028 * config/i386/sse.md: Combine VFIXUPIMM* patterns
12029 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
12030 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
12031 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
12032 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
12033 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
12034 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
12036 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
12040 2018-12-15 Jakub Jelinek <jakub@redhat.com>
12043 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
12044 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
12045 instead of UNSPEC_FIXUPIMM.
12047 2019-01-17 Richard Biener <rguenther@suse.de>
12050 * dwarf2out.c (want_pubnames): Never generate pubnames sections
12051 and friends for the LTO part of debug info.
12053 2019-01-17 Jakub Jelinek <jakub@redhat.com>
12055 PR tree-optimization/86214
12056 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
12059 PR rtl-optimization/88870
12060 * dce.c (deletable_insn_p): Never delete const/pure calls that can
12061 throw if we can't alter the cfg or delete dead exceptions.
12062 (mark_insn): Don't call find_call_stack_args for such calls.
12064 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
12066 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
12067 prototypes for vec_st.
12068 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
12069 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
12070 mainly on signed/unsigned long long and double.
12072 2019-01-16 David Malcolm <dmalcolm@redhat.com>
12075 * combine.c (delete_noop_moves): Convert to "bool" return,
12076 returning true if any edges are eliminated.
12077 (combine_instructions): Also return true if delete_noop_moves
12080 2019-01-16 Tamar Christina <tamar.christina@arm.com>
12082 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
12083 correct max nunits for endian swap.
12084 (aarch64_expand_fcmla_builtin): Correct subreg code.
12085 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
12086 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
12089 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
12091 * config/alpha/alpha.c (alpha_gimplify_va_arg):
12092 Handle split indirect COMPLEX_TYPE arguments.
12094 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
12097 * config/aarch64/aarch64-modes.def: Add comment about how the carry
12098 bit is set by add and compare.
12099 (CC_ADC): New CC_MODE.
12100 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
12101 to cache the code and mode of X. Adjust the shape of a CC_Cmode
12102 comparison. Add detection for CC_ADCmode.
12103 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
12105 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
12106 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
12107 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
12108 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
12109 to eliminate the need for zero-extending the operands.
12110 (add<mode>3_compareC_imm): Delete. Merge into ...
12111 (add<mode>3_compareC): ... this. Restructure the comparison to
12112 eliminate the need for zero-extending the operands.
12113 (add<mode>3_carryin): Use LTU for the overflow detection.
12114 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
12115 Reexpress comparison for overflow.
12116 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
12117 (add<mode>3_carryinC): Likewise.
12118 (add<mode>3_carryinV): Use LTU for carry between partials.
12119 * config/aarch64/predicates.md (aarch64_carry_operation): Update
12120 handling of CC_Cmode and add CC_ADCmode.
12121 (aarch64_borrow_operation): Likewise.
12123 2019-01-16 Tamar Christina <tamar.christina@arm.com>
12125 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): Remove patternmode.
12126 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
12127 * config/arm/neon.md (neon_vcmla_lane<rot><mode>, neon_vcmla_laneq<rot><mode>,
12128 neon_vcmlaq_lane<rot><mode>): Remove endianness conversion.
12130 2019-01-16 Martin Liska <mliska@suse.cz>
12132 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
12134 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
12136 * gcc.c (add_sysrooted_hdrs_prefix): New function.
12137 (path_prefix_reset): Move up in the source file.
12138 (find_fortran_preinclude_file): Make complex search for the
12139 fortran header files.
12141 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
12143 * godump.c (go_output_typedef): When outputting a typedef, refer
12144 to the underlying type by its name and not its structure.
12146 2019-01-15 David Malcolm <dmalcolm@redhat.com>
12149 * tree.c (build_function_type): Assert that arg_types is not
12152 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
12154 PR inline-asm/52813
12155 * doc/extend.texi: Document that listing the stack pointer in the
12156 clobber list of an asm is a deprecated feature.
12157 * common.opt (Wdeprecated): Moved from c-family/c.opt.
12158 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
12159 warning instead of an error for clobbers of the stack pointer.
12160 Add a note explaining why.
12162 2019-01-15 Richard Biener <rguenther@suse.de>
12165 * dwarf2out.c (gen_member_die): Do not generate inheritance
12168 2019-01-15 Richard Biener <rguenther@suse.de>
12170 PR tree-optimization/88855
12171 * tree-if-conv.c (combine_blocks): Collect
12172 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
12174 2019-01-15 Tom de Vries <tdevries@suse.de>
12177 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
12178 lhs == NULL_TREE for gang-level reduction.
12180 2019-01-15 Richard Biener <rguenther@suse.de>
12181 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12184 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
12185 return true if SSA_NAME is already marked in visited bitmap.
12186 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
12188 2019-01-15 Jakub Jelinek <jakub@redhat.com>
12190 PR tree-optimization/88775
12191 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
12192 equal == 0 equality pointer comparisons some more if compared in
12193 integral types and either one points to an automatic var and the
12194 other to a global, or we can prove at least one points to the middle
12195 or both point to start or both point to end.
12197 2019-01-14 Andi Kleen <ak@linux.intel.com>
12199 * Makefile.in: Lower autofdo sampling rate by 10x.
12200 * Makefile.tpl: Dito.
12202 2019-01-14 Tom Honermann <tom@honermann.net>
12204 * defaults.h: Define CHAR8_TYPE.
12206 2019-01-14 Martin Sebor <msebor@redhat.com>
12209 * doc/extend.texi (Darwin Format Checks): Clarify.
12211 2019-01-14 Richard Biener <rguenther@suse.de>
12213 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
12214 whether we are in (simplify ...) or (match ...) context.
12216 2019-01-14 Jakub Jelinek <jakub@redhat.com>
12218 PR rtl-optimization/88796
12219 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
12220 * cfgexpand.c (stack_protect_prologue): Initialize
12221 crtl->stack_protect_guard_decl.
12222 * function.c (stack_protect_epilogue): Use it instead of calling
12223 targetm.stack_protect_guard again.
12224 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
12225 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
12226 crtl->stack_protect_guard_decl.
12227 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
12228 on the returned MEM_EXPR.
12230 2019-01-12 Tom de Vries <tdevries@suse.de>
12232 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
12233 vector length using -fopenacc-dim.
12235 2019-01-12 Tom de Vries <tdevries@suse.de>
12237 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
12238 lengths into account.
12240 2019-01-12 Svante Signell <svante.signell@gmail.com>
12242 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
12243 (TARGET_CAN_SPLIT_STACK): Define.
12244 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
12246 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
12248 * params.def (inline-unit-growth): Set to 40.
12250 2019-01-12 Jakub Jelinek <jakub@redhat.com>
12252 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
12254 2019-01-12 Tom de Vries <tdevries@suse.de>
12256 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
12257 region calling vector-partitionable routine, set default_vector_length
12260 2019-01-12 Tom de Vries <tdevries@suse.de>
12262 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
12263 variable default_vector_length.
12265 2019-01-12 Tom de Vries <tdevries@suse.de>
12267 PR middle-end/88703
12268 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
12269 from oacc_default_dims, as oacc_validate_dims would do it, and apply
12272 2019-01-12 Tom de Vries <tdevries@suse.de>
12274 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
12275 (nvptx_goacc_validate_dims): Add used parameter.
12276 * doc/tm.texi: Regenerate.
12277 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
12278 argument to call to targetm.goacc.validate_dims.
12279 (default_goacc_validate_dims): Add used
12281 * target.def (validate_dims): Add used parameter in DEFHOOK.
12282 * targhooks.h (default_goacc_validate_dims): Add used parameter.
12284 2019-01-11 Jakub Jelinek <jakub@redhat.com>
12286 PR middle-end/85956
12288 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
12290 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
12291 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
12292 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
12293 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
12295 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
12297 PR rtl-optimization/87305
12299 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
12300 for little endian pseudos used as paradoxical subreg.
12302 2019-01-11 Jakub Jelinek <jakub@redhat.com>
12304 PR tree-optimization/88693
12305 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
12306 for STRING_CSTs that don't contain any NUL characters in the first
12307 TREE_STRING_LENGTH bytes.
12309 2019-01-11 Alan Modra <amodra@gmail.com>
12313 * genattrtab.c (min_fn): Don't translate values.
12314 (min_attr_value): Return INT_MAX when the value can't be calculated.
12315 Return minimum among any values that can be calculated.
12316 (max_attr_value): Adjust.
12318 2019-01-11 Jakub Jelinek <jakub@redhat.com>
12320 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
12322 2019-01-11 Steve Ellcey <sellcey@marvell.com>
12324 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
12325 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
12326 (aarch64_return_call_with_max_clobbers): New function.
12327 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
12328 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
12330 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
12331 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
12332 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
12333 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
12334 * cselib.c (cselib_process_insn): Add argument to
12335 targetm.hard_regno_call_part_clobbered call.
12336 * ira-conflicts.c (ira_build_conflicts): Ditto.
12337 * ira-costs.c (ira_tune_allocno_costs): Ditto.
12338 * lra-constraints.c (inherit_reload_reg): Ditto.
12339 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
12340 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
12341 argument. Call targetm.return_call_with_max_clobbers.
12342 Add argument to targetm.hard_regno_call_part_clobbered call.
12343 (calls_have_same_clobbers_p): New function.
12344 (process_bb_lives): Add call_insn and last_call_insn variables.
12345 Pass call_insn to check_pseudos_live_through_calls.
12346 Modify if stmt to check targetm.return_call_with_max_clobbers.
12347 Update setting of flush variable.
12348 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
12350 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
12351 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
12352 targetm.hard_regno_call_part_clobbered call.
12353 * reginfo.c (choose_hard_reg_mode): Ditto.
12354 * regrename.c (check_new_reg_p): Ditto.
12355 * reload.c (find_equiv_reg): Ditto.
12356 * reload1.c (emit_reload_insns): Ditto.
12357 * sched-deps.c (deps_analyze_insn): Ditto.
12358 * sel-sched.c (init_regs_for_mode): Ditto.
12359 (mark_unavailable_hard_regs): Ditto.
12360 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
12361 * target.def (hard_regno_call_part_clobbered): Add insn argument.
12362 (return_call_with_max_clobbers): New target function.
12363 * doc/tm.texi: Regenerate.
12364 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
12365 * hooks.c (hook_bool_uint_mode_false): Change to
12366 hook_bool_insn_uint_mode_false.
12367 * hooks.h (hook_bool_uint_mode_false): Ditto.
12369 2019-01-11 Steve Ellcey <sellcey@marvell.com>
12371 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
12372 (aarch64_remove_extra_call_preserved_regs): New function.
12373 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
12374 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
12375 * doc/tm.texi: Regenerate.
12376 * final.c (get_call_reg_set_usage): Call new hook.
12377 * target.def (remove_extra_call_preserved_regs): New hook.
12378 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
12379 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
12381 2019-01-11 Jakub Jelinek <jakub@redhat.com>
12384 * passes.c (finish_optimization_passes): Call print_combine_total_stats
12385 inside of pass_combine_1 dump rather than pass_profile_1.
12387 2019-01-11 Tom de Vries <tdevries@suse.de>
12389 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
12390 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
12391 (PTX_NUM_PER_WORKER_BARRIERS): Define.
12392 (nvptx_apply_dim_limits): Prevent vector_length 64 and
12395 2019-01-11 Tom de Vries <tdevries@suse.de>
12397 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
12399 2019-01-11 Jan Beulich <jbeulich@suse.com>
12401 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
12402 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
12403 sse2_cvtsi2sd): Add {l}.
12404 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
12407 2019-01-10 Jakub Jelinek <jakub@redhat.com>
12410 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
12412 (*float<floatunssuffix>v2div2sf2): New define_insn.
12413 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
12414 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
12415 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
12416 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
12417 match_operands with "const0_operand" "C".
12419 2019-01-10 Tamar Christina <tamar.christina@arm.com>
12421 * config/aarch64/aarch64-builtins.c
12422 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
12423 (aarch64_init_simd_builtins): ...Here
12425 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
12427 PR rtl-optimization/87305
12429 (setup_live_pseudos_and_spill_after_risky_transforms): Check
12430 allocation for big endian pseudos used as paradoxical subregs and
12431 spill them if it is wrong.
12432 * lra-constraints.c (lra_constraints): Add a comment.
12434 2019-01-10 Richard Biener <rguenther@suse.de>
12436 PR tree-optimization/88792
12437 * tree-ssa-pre.c (get_representative_for): Do not return a
12440 2019-01-10 Jakub Jelinek <jakub@redhat.com>
12442 PR middle-end/84877
12444 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
12445 (assign_parm_setup_block): Do the argument slot realignment here
12448 2019-01-10 Stefan Agner <stefan@agner.ch>
12451 * config/arm/arm.c (arm_option_override_internal): Force
12452 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
12454 2019-01-10 Jakub Jelinek <jakub@redhat.com>
12457 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
12460 2019-01-10 Tamar Christina <tamar.christina@arm.com>
12462 * config/arm/arm-builtins.c
12463 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
12464 (MAC_LANE_PAIR_QUALIFIERS): New.
12465 (arm_expand_builtin_args): Use it.
12466 (arm_expand_builtin_1): Likewise.
12467 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
12468 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
12469 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
12470 * config/arm/arm_neon.h:
12471 (vcadd_rot90_f16): New.
12472 (vcaddq_rot90_f16): New.
12473 (vcadd_rot270_f16): New.
12474 (vcaddq_rot270_f16): New.
12477 (vcmla_lane_f16): New.
12478 (vcmla_laneq_f16): New.
12479 (vcmlaq_lane_f16): New.
12480 (vcmlaq_laneq_f16): New.
12481 (vcmla_rot90_f16): New.
12482 (vcmlaq_rot90_f16): New.
12483 (vcmla_rot90_lane_f16): New.
12484 (vcmla_rot90_laneq_f16): New.
12485 (vcmlaq_rot90_lane_f16): New.
12486 (vcmlaq_rot90_laneq_f16): New.
12487 (vcmla_rot180_f16): New.
12488 (vcmlaq_rot180_f16): New.
12489 (vcmla_rot180_lane_f16): New.
12490 (vcmla_rot180_laneq_f16): New.
12491 (vcmlaq_rot180_lane_f16): New.
12492 (vcmlaq_rot180_laneq_f16): New.
12493 (vcmla_rot270_f16): New.
12494 (vcmlaq_rot270_f16): New.
12495 (vcmla_rot270_lane_f16): New.
12496 (vcmla_rot270_laneq_f16): New.
12497 (vcmlaq_rot270_lane_f16): New.
12498 (vcmlaq_rot270_laneq_f16): New.
12499 (vcadd_rot90_f32): New.
12500 (vcaddq_rot90_f32): New.
12501 (vcadd_rot270_f32): New.
12502 (vcaddq_rot270_f32): New.
12505 (vcmla_lane_f32): New.
12506 (vcmla_laneq_f32): New.
12507 (vcmlaq_lane_f32): New.
12508 (vcmlaq_laneq_f32): New.
12509 (vcmla_rot90_f32): New.
12510 (vcmlaq_rot90_f32): New.
12511 (vcmla_rot90_lane_f32): New.
12512 (vcmla_rot90_laneq_f32): New.
12513 (vcmlaq_rot90_lane_f32): New.
12514 (vcmlaq_rot90_laneq_f32): New.
12515 (vcmla_rot180_f32): New.
12516 (vcmlaq_rot180_f32): New.
12517 (vcmla_rot180_lane_f32): New.
12518 (vcmla_rot180_laneq_f32): New.
12519 (vcmlaq_rot180_lane_f32): New.
12520 (vcmlaq_rot180_laneq_f32): New.
12521 (vcmla_rot270_f32): New.
12522 (vcmlaq_rot270_f32): New.
12523 (vcmla_rot270_lane_f32): New.
12524 (vcmla_rot270_laneq_f32): New.
12525 (vcmlaq_rot270_lane_f32): New.
12526 (vcmlaq_rot270_laneq_f32): New.
12527 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
12528 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
12529 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
12530 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
12531 vcmlaq_lane270): New.
12532 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
12533 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
12534 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
12535 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
12536 (arm_option_reconfigure_globals): Use them.
12537 * config/arm/iterators.md (VDF, VQ_HSF): New.
12538 (VCADD, VCMLA): New.
12539 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
12540 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
12542 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
12543 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
12545 2019-01-10 Tamar Christina <tamar.christina@arm.com>
12547 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
12548 Add qualifier_lane_pair_index.
12549 (emit-rtl.h): Include.
12550 (TYPES_QUADOP_LANE_PAIR): New.
12551 (aarch64_simd_expand_args): Use it.
12552 (aarch64_simd_expand_builtin): Likewise.
12553 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
12555 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
12556 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
12557 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
12558 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
12559 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
12560 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
12561 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
12562 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
12563 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
12564 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
12565 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
12566 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
12567 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
12568 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
12569 Add __ARM_FEATURE_COMPLEX.
12570 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
12571 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
12572 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
12573 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
12574 fcmlaq_lane270): New.
12575 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
12576 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
12577 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
12578 * config/aarch64/arm_neon.h:
12579 (vcadd_rot90_f16): New.
12580 (vcaddq_rot90_f16): New.
12581 (vcadd_rot270_f16): New.
12582 (vcaddq_rot270_f16): New.
12585 (vcmla_lane_f16): New.
12586 (vcmla_laneq_f16): New.
12587 (vcmlaq_lane_f16): New.
12588 (vcmlaq_rot90_lane_f16): New.
12589 (vcmla_rot90_laneq_f16): New.
12590 (vcmla_rot90_lane_f16): New.
12591 (vcmlaq_rot90_f16): New.
12592 (vcmla_rot90_f16): New.
12593 (vcmlaq_laneq_f16): New.
12594 (vcmla_rot180_laneq_f16): New.
12595 (vcmla_rot180_lane_f16): New.
12596 (vcmlaq_rot180_f16): New.
12597 (vcmla_rot180_f16): New.
12598 (vcmlaq_rot90_laneq_f16): New.
12599 (vcmlaq_rot270_laneq_f16): New.
12600 (vcmlaq_rot270_lane_f16): New.
12601 (vcmla_rot270_laneq_f16): New.
12602 (vcmlaq_rot270_f16): New.
12603 (vcmla_rot270_f16): New.
12604 (vcmlaq_rot180_laneq_f16): New.
12605 (vcmlaq_rot180_lane_f16): New.
12606 (vcmla_rot270_lane_f16): New.
12607 (vcadd_rot90_f32): New.
12608 (vcaddq_rot90_f32): New.
12609 (vcaddq_rot90_f64): New.
12610 (vcadd_rot270_f32): New.
12611 (vcaddq_rot270_f32): New.
12612 (vcaddq_rot270_f64): New.
12616 (vcmla_lane_f32): New.
12617 (vcmla_laneq_f32): New.
12618 (vcmlaq_lane_f32): New.
12619 (vcmlaq_laneq_f32): New.
12620 (vcmla_rot90_f32): New.
12621 (vcmlaq_rot90_f32): New.
12622 (vcmlaq_rot90_f64): New.
12623 (vcmla_rot90_lane_f32): New.
12624 (vcmla_rot90_laneq_f32): New.
12625 (vcmlaq_rot90_lane_f32): New.
12626 (vcmlaq_rot90_laneq_f32): New.
12627 (vcmla_rot180_f32): New.
12628 (vcmlaq_rot180_f32): New.
12629 (vcmlaq_rot180_f64): New.
12630 (vcmla_rot180_lane_f32): New.
12631 (vcmla_rot180_laneq_f32): New.
12632 (vcmlaq_rot180_lane_f32): New.
12633 (vcmlaq_rot180_laneq_f32): New.
12634 (vcmla_rot270_f32): New.
12635 (vcmlaq_rot270_f32): New.
12636 (vcmlaq_rot270_f64): New.
12637 (vcmla_rot270_lane_f32): New.
12638 (vcmla_rot270_laneq_f32): New.
12639 (vcmlaq_rot270_lane_f32): New.
12640 (vcmlaq_rot270_laneq_f32): New.
12641 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
12642 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
12643 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
12644 (FCADD, FCMLA): New.
12646 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
12648 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
12652 * config/pa/pa.c: Change "can not" to "cannot".
12653 * gimple-ssa-evrp-analyze.c: Likewise.
12654 * ipa-icf.c: Likewise.
12655 * ipa-polymorphic-call.c: Likewise.
12656 * ipa-pure-const.c: Likewise.
12657 * lra-constraints.c: Likewise.
12658 * lra-remat.c: Likewise.
12659 * reload1.c: Likewise.
12660 * reorg.c: Likewise.
12661 * tree-ssa-uninit.c: Likewise.
12663 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
12667 * Makefile.in: Mechanically replace "can not" with "cannot".
12668 * alias.c: Likewise.
12669 * builtins.c: Likewise.
12670 * calls.c: Likewise.
12671 * cgraph.c: Likewise.
12672 * cgraph.h: Likewise.
12673 * cgraphclones.c: Likewise.
12674 * cgraphunit.c: Likewise.
12675 * combine-stack-adj.c: Likewise.
12676 * combine.c: Likewise.
12677 * common/config/i386/i386-common.c: Likewise.
12678 * config/aarch64/aarch64.c: Likewise.
12679 * config/alpha/sync.md: Likewise.
12680 * config/arc/arc.c: Likewise.
12681 * config/arc/predicates.md: Likewise.
12682 * config/arm/arm-c.c: Likewise.
12683 * config/arm/arm.c: Likewise.
12684 * config/arm/arm.h: Likewise.
12685 * config/arm/arm.md: Likewise.
12686 * config/arm/cortex-r4f.md: Likewise.
12687 * config/csky/csky.c: Likewise.
12688 * config/csky/csky.h: Likewise.
12689 * config/darwin-f.c: Likewise.
12690 * config/epiphany/epiphany.md: Likewise.
12691 * config/i386/i386.c: Likewise.
12692 * config/i386/sol2.h: Likewise.
12693 * config/m68k/m68k.c: Likewise.
12694 * config/mcore/mcore.h: Likewise.
12695 * config/microblaze/microblaze.md: Likewise.
12696 * config/mips/20kc.md: Likewise.
12697 * config/mips/sb1.md: Likewise.
12698 * config/nds32/nds32.c: Likewise.
12699 * config/nds32/predicates.md: Likewise.
12700 * config/pa/pa.c: Likewise.
12701 * config/rs6000/e300c2c3.md: Likewise.
12702 * config/rs6000/rs6000.c: Likewise.
12703 * config/s390/s390.h: Likewise.
12704 * config/sh/sh.c: Likewise.
12705 * config/sh/sh.md: Likewise.
12706 * config/spu/vmx2spu.h: Likewise.
12707 * cprop.c: Likewise.
12708 * dbxout.c: Likewise.
12709 * df-scan.c: Likewise.
12710 * doc/cfg.texi: Likewise.
12711 * doc/extend.texi: Likewise.
12712 * doc/fragments.texi: Likewise.
12713 * doc/gty.texi: Likewise.
12714 * doc/invoke.texi: Likewise.
12715 * doc/lto.texi: Likewise.
12716 * doc/md.texi: Likewise.
12717 * doc/objc.texi: Likewise.
12718 * doc/rtl.texi: Likewise.
12719 * doc/tm.texi: Likewise.
12721 * emit-rtl.c: Likewise.
12722 * emit-rtl.h: Likewise.
12723 * except.c: Likewise.
12724 * expmed.c: Likewise.
12725 * expr.c: Likewise.
12726 * fold-const.c: Likewise.
12727 * genautomata.c: Likewise.
12728 * gimple-fold.c: Likewise.
12729 * hard-reg-set.h: Likewise.
12730 * ifcvt.c: Likewise.
12731 * ipa-comdats.c: Likewise.
12732 * ipa-cp.c: Likewise.
12733 * ipa-devirt.c: Likewise.
12734 * ipa-fnsummary.c: Likewise.
12735 * ipa-icf.c: Likewise.
12736 * ipa-inline-transform.c: Likewise.
12737 * ipa-inline.c: Likewise.
12738 * ipa-polymorphic-call.c: Likewise.
12739 * ipa-profile.c: Likewise.
12740 * ipa-prop.c: Likewise.
12741 * ipa-pure-const.c: Likewise.
12742 * ipa-reference.c: Likewise.
12743 * ipa-split.c: Likewise.
12744 * ipa-visibility.c: Likewise.
12746 * ira-build.c: Likewise.
12747 * ira-color.c: Likewise.
12748 * ira-conflicts.c: Likewise.
12749 * ira-costs.c: Likewise.
12750 * ira-int.h: Likewise.
12751 * ira-lives.c: Likewise.
12754 * loop-invariant.c: Likewise.
12755 * loop-unroll.c: Likewise.
12756 * lower-subreg.c: Likewise.
12757 * lra-assigns.c: Likewise.
12758 * lra-constraints.c: Likewise.
12759 * lra-eliminations.c: Likewise.
12760 * lra-lives.c: Likewise.
12761 * lra-remat.c: Likewise.
12762 * lra-spills.c: Likewise.
12764 * lto-cgraph.c: Likewise.
12765 * lto-streamer-out.c: Likewise.
12766 * postreload-gcse.c: Likewise.
12767 * predict.c: Likewise.
12768 * profile-count.h: Likewise.
12769 * profile.c: Likewise.
12770 * recog.c: Likewise.
12772 * reload.c: Likewise.
12773 * reload1.c: Likewise.
12774 * reorg.c: Likewise.
12775 * resource.c: Likewise.
12776 * rtl.def: Likewise.
12778 * rtlanal.c: Likewise.
12779 * sched-deps.c: Likewise.
12780 * sched-ebb.c: Likewise.
12781 * sched-rgn.c: Likewise.
12782 * sel-sched-ir.c: Likewise.
12783 * sel-sched.c: Likewise.
12784 * shrink-wrap.c: Likewise.
12785 * simplify-rtx.c: Likewise.
12786 * symtab.c: Likewise.
12787 * target.def: Likewise.
12788 * toplev.c: Likewise.
12789 * tree-call-cdce.c: Likewise.
12790 * tree-cfg.c: Likewise.
12791 * tree-complex.c: Likewise.
12792 * tree-core.h: Likewise.
12793 * tree-eh.c: Likewise.
12794 * tree-inline.c: Likewise.
12795 * tree-loop-distribution.c: Likewise.
12796 * tree-nrv.c: Likewise.
12797 * tree-profile.c: Likewise.
12798 * tree-sra.c: Likewise.
12799 * tree-ssa-alias.c: Likewise.
12800 * tree-ssa-dce.c: Likewise.
12801 * tree-ssa-dom.c: Likewise.
12802 * tree-ssa-forwprop.c: Likewise.
12803 * tree-ssa-loop-im.c: Likewise.
12804 * tree-ssa-loop-ivcanon.c: Likewise.
12805 * tree-ssa-loop-ivopts.c: Likewise.
12806 * tree-ssa-loop-niter.c: Likewise.
12807 * tree-ssa-phionlycprop.c: Likewise.
12808 * tree-ssa-phiopt.c: Likewise.
12809 * tree-ssa-propagate.c: Likewise.
12810 * tree-ssa-threadedge.c: Likewise.
12811 * tree-ssa-threadupdate.c: Likewise.
12812 * tree-ssa-uninit.c: Likewise.
12813 * tree-ssanames.c: Likewise.
12814 * tree-streamer-out.c: Likewise.
12815 * tree.c: Likewise.
12816 * tree.h: Likewise.
12817 * vr-values.c: Likewise.
12819 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
12821 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
12822 (ix86_split_xorsign): Ditto.
12823 * config/i386/i386.c (ix86_expand_xorsign): New function.
12824 (ix86_split_xorsign): Ditto.
12825 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
12826 (xorsign<mode>3): New expander.
12827 (xorsign<mode>3_1): New insn_and_split pattern.
12828 * config/i386/sse.md (xorsign<mode>3): New expander.
12830 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
12832 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
12833 (*tablejump_sp64): Likewise.
12834 (*tablejump<P:mode>): ...this.
12835 (*call_address_sp32): Merge into...
12836 (*call_address_sp64): Likewise.
12837 (*call_address<P:mode>): ...this.
12838 (*call_symbolic_sp32): Merge into...
12839 (*call_symbolic_sp64): Likewise.
12840 (*call_symbolic<P:mode>): ...this.
12841 (call_value): Remove constraint and add predicate.
12842 (*call_value_address_sp32): Merge into...
12843 (*call_value_address_sp64): Likewise.
12844 (*call_value_address<P:mode>): ...this.
12845 (*call_value_symbolic_sp32): Merge into...
12846 (*call_value_symbolic_sp64): Likewise.
12847 (*call_value_symbolic<P:mode>): ...this.
12848 (*sibcall_symbolic_sp32): Merge into...
12849 (*sibcall_symbolic_sp64): Likewise.
12850 (*sibcall_symbolic<P:mode>): ...this.
12851 (sibcall_value): Remove constraint and add predicate.
12852 (*sibcall_value_symbolic_sp32): Merge into...
12853 (*sibcall_value_symbolic_sp64): Likewise.
12854 (*sibcall_value_symbolic<P:mode>): ...this.
12855 (window_save): Minor tweak.
12856 (*branch_sp32): Merge into...
12857 (*branch_sp64): Likewise.
12858 (*branch<P:mode>): ...this.
12860 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
12861 James Clarke <jrtc27@jrtc27.com>
12864 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
12865 consistently in TLS address generation and adjust code to the renaming
12866 of patterns. Mark calls to __tls_get_addr as const.
12867 * config/sparc/sparc.md (tgd_hi22): Turn into...
12868 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
12869 (tgd_lo10): Turn into...
12870 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
12871 (tgd_add32): Merge into...
12872 (tgd_add64): Likewise.
12873 (tgd_add<P:mode>): ...this and use Pmode throughout.
12874 (tldm_hi22): Turn into...
12875 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
12876 (tldm_lo10): Turn into...
12877 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
12878 (tldm_add32): Merge into...
12879 (tldm_add64): Likewise.
12880 (tldm_add<P:mode>): ...this and use Pmode throughout.
12881 (tldm_call32): Merge into...
12882 (tldm_call64): Likewise.
12883 (tldm_call<P:mode>): ...this and use Pmode throughout.
12884 (tldo_hix22): Turn into...
12885 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
12886 (tldo_lox10): Turn into...
12887 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
12888 (tldo_add32): Merge into...
12889 (tldo_add64): Likewise.
12890 (tldo_add<P:mode>): ...this and use Pmode throughout.
12891 (tie_hi22): Turn into...
12892 (tie_hi22<P:mode>): ...this and use Pmode throughout.
12893 (tie_lo10): Turn into...
12894 (tie_lo10<P:mode>): ...this and use Pmode throughout.
12895 (tie_ld64): Use DImode throughout.
12896 (tie_add32): Merge into...
12897 (tie_add64): Likewise.
12898 (tie_add<P:mode>): ...this and use Pmode throughout.
12899 (tle_hix22_sp32): Merge into...
12900 (tle_hix22_sp64): Likewise.
12901 (tle_hix22<P:mode>): ...this and use Pmode throughout.
12902 (tle_lox22_sp32): Merge into...
12903 (tle_lox22_sp64): Likewise.
12904 (tle_lox22<P:mode>): ...this and use Pmode throughout.
12905 (*tldo_ldub_sp32): Merge into...
12906 (*tldo_ldub_sp64): Likewise.
12907 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
12908 (*tldo_ldub1_sp32): Merge into...
12909 (*tldo_ldub1_sp64): Likewise.
12910 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
12911 (*tldo_ldub2_sp32): Merge into...
12912 (*tldo_ldub2_sp64): Likewise.
12913 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
12914 (*tldo_ldsb1_sp32): Merge into...
12915 (*tldo_ldsb1_sp64): Likewise.
12916 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
12917 (*tldo_ldsb2_sp32): Merge into...
12918 (*tldo_ldsb2_sp64): Likewise.
12919 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
12920 (*tldo_ldub3_sp64): Use DImode throughout.
12921 (*tldo_ldsb3_sp64): Likewise.
12922 (*tldo_lduh_sp32): Merge into...
12923 (*tldo_lduh_sp64): Likewise.
12924 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
12925 (*tldo_lduh1_sp32): Merge into...
12926 (*tldo_lduh1_sp64): Likewise.
12927 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
12928 (*tldo_ldsh1_sp32): Merge into...
12929 (*tldo_ldsh1_sp64): Likewise.
12930 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
12931 (*tldo_lduh2_sp64): Use DImode throughout.
12932 (*tldo_ldsh2_sp64): Likewise.
12933 (*tldo_lduw_sp32): Merge into...
12934 (*tldo_lduw_sp64): Likewise.
12935 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
12936 (*tldo_lduw1_sp64): Use DImode throughout.
12937 (*tldo_ldsw1_sp64): Likewise.
12938 (*tldo_ldx_sp64): Likewise.
12939 (*tldo_stb_sp32): Merge into...
12940 (*tldo_stb_sp64): Likewise.
12941 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
12942 (*tldo_sth_sp32): Merge into...
12943 (*tldo_sth_sp64): Likewise.
12944 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
12945 (*tldo_stw_sp32): Merge into...
12946 (*tldo_stw_sp64): Likewise.
12947 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
12948 (*tldo_stx_sp64): Use DImode throughout.
12950 2018-01-09 Sudakshina Das <sudi.das@arm.com>
12952 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
12953 check configure option to set BTI and Return Address Signing.
12954 * configure.ac: Add --enable-standard-branch-protection and
12955 --disable-standard-branch-protection.
12956 * configure: Regenerated.
12957 * doc/install.texi: Document the same.
12959 2018-01-09 Sudakshina Das <sudi.das@arm.com>
12960 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12962 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
12963 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
12964 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
12966 * config/aarch64/aarch64-bti-insert.c: New file.
12967 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
12969 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
12971 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
12972 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
12973 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
12974 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
12976 2018-01-09 Sudakshina Das <sudi.das@arm.com>
12978 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
12979 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
12980 Disable bti for -mbranch-protection=none.
12981 (aarch64_handle_standard_branch_protection): Enable bti for
12982 -mbranch-protection=standard.
12983 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
12984 -mbranch-protection.
12985 (aarch64_bti_enabled): Check if bti is enabled.
12986 * config/aarch64/aarch64.opt: Declare target variable.
12987 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
12989 2018-01-09 Sudakshina Das <sudi.das@arm.com>
12991 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
12992 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
12993 (aarch64_expand_epilogue): Likewise.
12994 (aarch64_output_mi_thunk): Likewise
12995 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
12996 TAILCALL_ADDR_REGS to x16 and x17.
12997 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
12999 2018-01-09 Sudakshina Das <sudi.das@arm.com>
13001 * config/aarch64/aarch64-option-extensions.def: Define
13002 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
13003 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
13004 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
13005 (AARCH64_FL_PREDRES): New.
13006 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
13007 AARCH64_FL_PREDRES by default.
13008 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
13010 2018-01-09 Sudakshina Das <sudi.das@arm.com>
13012 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
13014 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
13015 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
13016 * doc/invoke.texi: Document ARMv8.5-A.
13018 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
13020 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
13021 (xorsign<mode>3): Likewise.
13023 2019-01-09 Jelinek <jakub@redhat.com>
13025 PR middle-end/88758
13026 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
13027 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
13029 PR rtl-optimization/88331
13030 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
13031 not currently_expanding_to_rtl.
13033 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
13035 * doc/invoke.texi (-Os): Remove trailing spaces.
13036 (-finline-functions): Remove reference to -O2.
13038 2019-01-08 Jakub Jelinek <jakub@redhat.com>
13040 PR rtl-optimization/79593
13041 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
13043 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
13044 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
13046 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
13049 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
13053 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
13054 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
13056 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
13059 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
13060 ix86_avx_u128_mode_entry.
13062 2019-01-08 Martin Liska <mliska@suse.cz>
13064 PR tree-optimization/88753
13065 * tree-switch-conversion.c (switch_conversion::build_one_array):
13066 Come up with local variable constructor. Convert first to
13067 type of constructor values.
13069 2019-01-08 Richard Biener <rguenther@suse.de>
13071 PR tree-optimization/86554
13072 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
13073 rpo_avail): Move earlier.
13074 (visit_nary_op): When value-numbering to expressions
13075 with different overflow behavior make sure there's an
13076 available expression on the path.
13078 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
13080 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
13081 aarch64_parse_branch_protection,
13082 struct aarch64_branch_protect_type,
13083 aarch64_handle_no_branch_protection,
13084 aarch64_handle_standard_branch_protection,
13085 aarch64_validate_mbranch_protection,
13086 aarch64_handle_pac_ret_protection,
13087 aarch64_handle_attr_branch_protection,
13088 accepted_branch_protection_string,
13089 aarch64_pac_ret_subtypes,
13090 aarch64_branch_protect_types,
13091 aarch64_handle_pac_ret_leaf): Define.
13092 (aarch64_override_options_after_change_1, aarch64_override_options):
13093 Add check for accepted_branch_protection_string.
13094 (aarch64_option_save): Save accepted_branch_protection_string.
13095 (aarch64_option_restore): Save accepted_branch_protection_string.
13096 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
13097 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
13098 msign-return-address.
13099 * doc/invoke.texi: Add mbranch-protection.
13101 2019-01-08 Alan Modra <amodra@gmail.com>
13104 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
13105 Delete "unknownp" parameter. Adjust callers. Handle
13106 CONST_INT, PLUS, MINUS, and MULT.
13107 (attr_value_aligned): Renamed from or_attr_value.
13108 (min_attr_value): Return INT_MIN for unhandled rtl case..
13109 (min_fn): ..and translate to INT_MAX here.
13110 (write_length_unit_log): Modify to cope without "unknown".
13111 (write_attr_value): Handle IF_THEN_ELSE.
13113 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
13115 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
13116 optimization for masked stores.
13118 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
13120 PR middle-end/88567
13121 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
13122 output vector directly to duplicate_and_interleave instead of
13123 going through a temporary. Postpone insertion of ctor_seq to
13124 the end of the loop.
13126 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
13129 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
13130 unsigned_p. Handle signed and unsigned overflow correction as
13132 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
13134 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
13136 (add<mode>3_compareV_imm): Make this callable for expanding.
13137 (subv<GPI:mode>4): Use register_operand for operand 1. Use
13138 aarch64_plus_operand for operand 2.
13139 (subv<GPI:mode>_insn): New insn pattern.
13140 (subv<GPI:mode>_imm): Likewise.
13141 (negv<GPI:mode>3): New expand pattern.
13142 (negv<GPI:mode>_insn): New insn pattern.
13143 (negv<GPI:mode>_cmp_only): Likewise.
13144 (cmpv<GPI:mode>_insn): Likewise.
13145 (subvti4): Use register_operand for operand 1. Update call to
13146 aarch64_expand_subvti.
13147 (usubvti4): Likewise.
13148 (negvti3): New expand pattern.
13149 (negdi_carryout): New insn pattern.
13150 (negvdi_carryinV): New insn pattern.
13151 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
13152 version the named version.
13153 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
13155 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
13157 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
13159 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
13160 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
13161 (sub<mode>3_carryinCV): Delete.
13162 (sub<GPI:mode>3_carryinV): New expand pattern.
13163 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
13165 2019-01-07 Richard Biener <rguenther@suse.de>
13167 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
13168 of tree_operand_hash.
13170 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
13172 PR tree-optimization/88598
13173 * tree.h (single_nonzero_element): Declare.
13174 * tree.c (single_nonzero_element): New function.
13175 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
13176 if I is the only nonzero element of CST.
13178 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
13180 PR tree-optimization/88598
13181 * tree.h (initializer_each_zero_or_onep): Declare.
13182 * tree.c (initializer_each_zero_or_onep): New function.
13183 (signed_or_unsigned_type_for): Handle float types too.
13184 (unsigned_type_for, signed_type_for): Update comments accordingly.
13185 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
13186 x & { 0 or -1, 0 or -1, ... }.
13188 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
13190 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
13191 with x86_64-pc-linux-gnu.
13193 2019-01-07 Tom de Vries <tdevries@suse.de>
13196 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
13198 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
13201 2019-01-07 Jakub Jelinek <jakub@redhat.com>
13203 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
13204 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
13205 TARGET_AVX512F as condition.
13208 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
13209 const_not_ok_for_debug_p target hook.
13210 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
13211 on UNSPEC and subexpressions thereof if all subexpressions of the
13212 UNSPEC are CONSTANT_P.
13214 PR tree-optimization/88676
13215 * tree-ssa-phiopt.c (two_value_replacement): New function.
13216 (tree_ssa_phiopt_worker): Call it.
13219 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
13220 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
13223 * tree-vect-generic.c: Include insn-config.h and recog.h.
13224 (expand_vector_piecewise): Add defaulted ret_type argument,
13225 if non-NULL, use that in preference to type for the result type.
13226 (expand_vector_parallel): Formatting fix.
13227 (do_vec_conversion, do_vec_narrowing_conversion,
13228 expand_vector_conversion): New functions.
13229 (expand_vector_operations_1): Call expand_vector_conversion
13230 for VEC_CONVERT ifn calls.
13231 * internal-fn.def (VEC_CONVERT): New internal function.
13232 * internal-fn.c (expand_VEC_CONVERT): New function.
13233 * fold-const-call.c (fold_const_vec_convert): New function.
13234 (fold_const_call): Use it for CFN_VEC_CONVERT.
13235 * doc/extend.texi (__builtin_convertvector): Document.
13237 2019-01-07 Tom de Vries <tdevries@suse.de>
13239 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
13240 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
13241 vector_red_partition, vector_red_sym): New global variables.
13242 (nvptx_option_override): Initialize vector_red_sym.
13243 (nvptx_declare_function_name): Restore red_partition register.
13244 (nvptx_file_end): Emit code to declare the vector reduction variables.
13245 (nvptx_output_red_partition): New function.
13246 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
13247 large vector reductions.
13248 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
13249 (nvptx_init_builtins): Add VECTOR_ADDR.
13250 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
13251 Handle nvptx_expand_shared_addr.
13252 (nvptx_get_shared_red_addr): Add vector argument and handle large
13254 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
13256 (nvptx_goacc_reduction_init): Likewise.
13257 (nvptx_goacc_reduction_fini): Likewise.
13258 (nvptx_goacc_reduction_teardown): Likewise.
13259 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
13260 init,fini,teardown}.
13261 (nvptx_init_axis_predicate): Initialize vector_red_partition.
13262 (nvptx_set_current_function): Init vector_red_partition.
13263 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
13264 (nvptx_red_partition): New insn.
13265 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
13267 2019-01-07 Tom de Vries <tdevries@suse.de>
13270 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
13273 2019-01-07 Tom de Vries <tdevries@suse.de>
13275 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
13276 (nvptx_option_override): Init oacc_bcast_partition.
13277 (nvptx_init_oacc_workers): New function.
13278 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
13279 (nvptx_needs_shared_bcast): New function.
13280 (nvptx_find_par): Generalize to enable vectors to use shared-memory
13281 to propagate state.
13282 (nvptx_shared_propagate): Initialize vector bcast partition and
13283 synchronization state.
13284 (nvptx_single): Generalize to enable vectors to use shared-memory
13285 to propagate state.
13286 (nvptx_process_pars): Likewise.
13287 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
13288 * config/nvptx/nvptx.h (struct machine_function): Add
13289 bcast_partition and sync_bar members.
13291 2019-01-07 Tom de Vries <tdevries@suse.de>
13293 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
13294 (nvptx_apply_dim_limits): New function.
13295 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
13298 2019-01-07 Tom de Vries <tdevries@suse.de>
13300 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
13301 as late as possible.
13303 2019-01-07 Tom de Vries <tdevries@suse.de>
13305 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
13306 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
13307 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
13308 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
13309 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
13311 2019-01-07 Tom de Vries <tdevries@suse.de>
13313 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
13315 2019-01-07 Tom de Vries <tdevries@suse.de>
13317 * omp-offload.c (oacc_get_min_dim): New function.
13318 * omp-offload.h (oacc_get_min_dim): Declare.
13320 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
13323 * config/i386/i386.c (function_value_ms_64): Return small sturct in
13324 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
13326 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
13330 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
13332 * ipa-inline.c (edge_badness): Use inlined_time instead of
13333 inline_summaries->get.
13335 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
13337 * opts.c (enable_fdo_optimizations): Enable
13338 version-loops-for-strides, loop-interchange, unrol-and-jam
13339 and tree-loop-distribution.
13340 * invoke.texi: Document newly enabled options.
13342 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
13344 * doc/invoke.texi (max-inline-insns-small): New parameters.
13345 * ipa-inline.c (want_early_inline_function_p): simplify.
13346 (want_inline_small_function_p): Fix pasto from previous patch;
13347 use max-inline-insns-small bound.
13348 * params.def (max-inline-insns-small): New param.
13349 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
13350 variables correctly.
13352 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
13354 * doc/invoke.texi: Document max-inline-insns-size,
13355 uninlined-function-insns, uninlined-function-time,
13356 uninlined-thunk-insns and uninlined-thunk-time.
13357 * params.def: Add max-inline-insns-size,
13358 uninlined-function-insns, uninlined-function-time,
13359 uninlined-thunk-insns and uninlined-thunk-time.
13360 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
13362 * ipa-inline.c (can_inline_edge_by_limits_p,
13363 want_inline_small_function_p): Use new parameters.
13365 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
13367 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
13369 2019-01-05 Jakub Jelinek <jakub@redhat.com>
13371 PR middle-end/82564
13373 * expr.c (expand_assignment): For calls returning VLA structures
13374 if to_rtx is not a MEM, force it into a stack temporary.
13377 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
13378 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
13379 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
13380 subexpressions of both operands.
13381 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
13382 subrtxes are CONSTANT_P.
13383 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
13384 2018-11-09 changes.
13386 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
13388 * params.def (hot-bb-count-ws-permille): Set to 990.
13390 2019-01-04 Martin Sebor <msebor@redhat.com>
13393 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
13396 2019-01-04 Martin Sebor <msebor@redhat.com>
13399 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
13401 2019-01-04 Jakub Jelinek <jakub@redhat.com>
13403 * gdbinit.in: Turn off pagination for the skip commands, restore
13404 it to previous state afterwards.
13406 2019-01-04 Jakub Jelinek <jakub@redhat.com>
13409 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
13410 of GET_MODE (opN) as modes of the libcall arguments.
13412 2019-01-04 Jan Beulich <jbeulich@suse.com>
13414 * config/i386/sse.md
13415 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
13416 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
13417 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
13418 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
13419 avx512f_vmcmp<mode>3<round_saeonly_name>,
13420 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
13421 avx512f_maskcmp<mode>3,
13422 <avx512>_cvt<ssemodesuffix>2mask<mode>,
13423 <avx512>_cvt<ssemodesuffix>2mask<mode>,
13424 *<avx512>_cvtmask2<ssemodesuffix><mode>,
13425 *<avx512>_cvtmask2<ssemodesuffix><mode>,
13426 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
13427 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
13428 <avx512>_gt<mode>3<mask_scalar_merge_name>,
13429 <avx512>_gt<mode>3<mask_scalar_merge_name>,
13430 <avx512>_testm<mode>3<mask_scalar_merge_name>,
13431 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
13432 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
13433 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
13434 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
13435 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
13436 avx512cd_maskb_vec_dup<mode>,
13437 avx512cd_maskw_vec_dup<mode>,
13438 avx512dq_fpclass<mode><mask_scalar_merge_name>,
13439 avx512dq_vmfpclass<mode>,
13440 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
13443 2019-01-03 Martin Sebor <msebor@redhat.com>
13445 PR tree-optimization/88659
13446 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
13448 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
13450 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
13451 unaligned vsx and avoid lxvd2x/stxvd2x.
13452 (gen_lvx_v4si_move): New function.
13454 2019-01-03 Tom de Vries <tdevries@suse.de>
13456 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
13457 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
13459 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
13461 2019-01-03 Tom de Vries <tdevries@suse.de>
13463 * config/nvptx/nvptx.c (struct offload_attrs): New.
13464 (populate_offload_attrs): New function. Factor mask extraction out of
13465 nvptx_reorg. Add extraction of dimensions.
13466 (nvptx_reorg): Use populate_offload_attrs.
13468 2019-01-03 Tom de Vries <tdevries@suse.de>
13470 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
13471 cases for oacc_min_dims_p and routine_p. Add asserts for
13472 oacc_default_dims_p and offload_region_p.
13474 2019-01-03 Tom de Vries <tdevries@suse.de>
13476 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
13477 factored out of ...
13478 (nvptx_goacc_validate_dims): ... here.
13480 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
13482 PR tree-optimization/85574
13483 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
13485 (struct ssa_equip_hash_traits): Declare.
13486 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
13488 2019-01-03 Jakub Jelinek <jakub@redhat.com>
13491 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
13492 change it to qualified_type.
13494 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
13496 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
13497 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
13499 2019-01-02 Martin Sebor <msebor@redhat.com>
13500 Jeff Law <law@redhat.com>
13502 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
13503 (get_range_strlen_tree): Update appropriately.
13505 * gimple-fold.h (get_range_strlen): Drop unused last argument.
13507 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
13508 rather than set_range_info.
13509 * tree-ssa-strlen.c (set_strlen_range): Extracted from
13510 maybe_set_strlen_range. Handle potentially boundary crossing
13511 cases more conservatively.
13512 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
13513 Call set_strlen_range.
13514 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
13516 PR middle-end/88663
13517 * gimple-fold.c (get_range_strlen): Update prototype to no longer
13518 need the flexp argument.
13519 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
13520 from calls to get_range_strlen. Update comments. Just update
13521 VAL for an unterminated const char array and let the reset of the
13522 code handle it normally. No longer try to set *flexp. Adjust
13524 (get_range_strlen): Update for the new get_range_strlen API.
13525 (get_maxval_strlen): Similarly.
13526 (gimple_fold_builtin_strlen): Handle update meaning of return value
13527 from get_range_strlen.
13528 * gimple-ssa-sprintf.c (get_string_length): Update for the new
13529 get_range_strlen API.
13531 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
13534 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
13535 false at WPA time when body was removed.
13537 2019-01-02 Martin Liska <mliska@suse.cz>
13539 PR tree-optimization/88650
13540 * predict.c (set_even_probabilities): Calculate probability
13541 remainer only when really used.
13543 2019-01-02 Richard Biener <rguenther@suse.de>
13545 PR middle-end/88651
13546 * tree-data-ref.c (analyze_subscript_affine_affine): Use
13547 widest_ints when mangling max_stmt_execution results.
13549 2019-01-02 Richard Biener <rguenther@suse.de>
13551 PR tree-optimization/88621
13552 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
13553 bitfields when canoncalizing.
13555 2019-01-02 Richard Biener <rguenther@suse.de>
13558 * config/i386/x86-tune-costs.h (intel_cost): Adjust
13559 cost of cheap SSE instruction.
13561 2019-01-02 Richard Biener <rguenther@suse.de>
13564 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
13565 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
13567 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
13568 set after UIDs before splitting them.
13570 2019-01-01 Martin Sebor <msebor@redhat.com>
13571 Jeff Law <law@redhat.com>
13573 * gimple-fold.c (get_range_strlen_tree): Record if the computed
13574 length is optimistic. If it is, then arrange to compute the
13575 conservative length as well.
13577 * gimple-fold.h (get_range_strlen): Update prototype.
13578 * builtins.c (check_access): Update call to get_range_strlen to use
13579 c_strlen_data pointer. Change various variable accesses to instead
13580 pull data from the c_strlen_data structure.
13581 (check_strncat_sizes, expand_builtin_strncat): Likewise.
13582 * calls.c (maybe_warn_nonstring_arg): Likewise.
13583 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
13584 minimum length if maximum lengh is unknown.
13585 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
13586 that used c_strlen, it's no longer needed. Restructure slightly.
13587 (format_string): Set unlikely range appropriately.
13588 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
13590 (get_range_strlen): Accept c_strlen_data pointer for external
13591 call sites as well. Pass through to call to internal get_range_strlen.
13592 Adjust minlen, maxlen and maxbound as needed.
13593 (get_maxval_strlen): Update comments.
13594 (gimple_fold_builtin_strlen): Update call to get_range_strlen
13595 to use c_strlen_data pointer. Change variable accesses to instead
13596 use c_strlen_data data members.
13598 * gimple-fold.c (get_range_strlen): Update prototype.
13599 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
13600 local variables. Use pdata to return information to caller.
13601 Update calls to get_range_strlen. Update pdata->maxbound.
13602 (get_range_strlen -- static version): Similarly.
13603 (get_range_strlen -- extern version): Update for internal
13604 get_range_strlen API change. Convert to external data format.
13605 (get_maxval_strlen): Similarly.
13607 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
13609 * coverage.c (get_coverage_counts): Use current_function_decl.
13610 * profile.c (read_thunk_profile): New function.
13611 (branch_prob): Add THUNK parameter.
13612 * tree-profile.c (tree_profiling): Handle thunks.
13613 * value-prof.c (init_node_map): Handle thunks.
13614 * value-prof.h (branch_prob): Upate prototype.
13615 (read_thunk_profile): Declare.
13617 2019-01-01 Jakub Jelinek <jakub@redhat.com>
13619 Update copyright years.
13621 * gcc.c (process_command): Update copyright notice dates.
13622 * gcov-dump.c (print_version): Ditto.
13623 * gcov.c (print_version): Ditto.
13624 * gcov-tool.c (print_version): Ditto.
13625 * gengtype.c (create_file): Ditto.
13626 * doc/cpp.texi: Bump @copying's copyright year.
13627 * doc/cppinternals.texi: Ditto.
13628 * doc/gcc.texi: Ditto.
13629 * doc/gccint.texi: Ditto.
13630 * doc/gcov.texi: Ditto.
13631 * doc/install.texi: Ditto.
13632 * doc/invoke.texi: Ditto.
13634 Copyright (C) 2019 Free Software Foundation, Inc.
13636 Copying and distribution of this file, with or without modification,
13637 are permitted in any medium without royalty provided the copyright
13638 notice and this notice are preserved.