1 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
3 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
4 Change the RTL attribute "length" from "4" to "*" to allow the
5 length attribute to be adjusted automatically for prefixed load,
6 store, and add immediate instructions.
7 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
9 (extendsi<mode>2, EXTSI iterator): Likewise.
10 (movsi_internal1): Likewise.
11 (movsi_from_sf): Likewise.
12 (movdi_from_sf_zero_ext): Likewise.
13 (mov<mode>_internal): Likewise.
14 (movcc_internal1, QHI iterator): Likewise.
15 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
16 (movsf_from_si): Likewise.
17 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
18 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
19 (mov<mode>, FMOVE128 iterator): Likewise.
20 (movdi_internal64): Likewise.
21 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
23 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
24 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
25 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
26 (vsx_splat_v4sf): Likewise.
28 2019-07-03 Mark Wielaard <mark@klomp.org>
31 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
32 DW_AT_addr_base if there is actually a .debug_addr section with
34 (output_addr_table): Add DWARF5 table header generation here after
35 checking there are actually any addresses from...
36 (dwarf2out_finish): ...here.
37 * testsuite/g++.dg/pr90981.C: New test.
39 2019-07-03 Richard Biener <rguenther@suse.de>
42 * match.pd (vec_perm -> bit_insert): Fix element read from
45 2019-07-03 Martin Liska <mliska@suse.cz>
47 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
48 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
50 * generic-match-head.c: Include dbgcnt.h.
51 * gimple-match-head.c: Likewise.
53 2019-07-03 Martin Liska <mliska@suse.cz>
55 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
56 (GCOV_COUNTER_V_TOPN): New.
57 (GCOV_COUNTER_V_INDIR): Use _topn.
58 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
59 (GCOV_TOPN_VALUES): New.
60 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
61 (GCOV_TOPN_VALUES_COUNTERS): New.
62 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
64 (gimple_init_gcov_profiler): Rename variables from one_value
66 (gimple_gen_one_value_profiler): Remove.
67 (gimple_gen_topn_values_profiler): New function.
68 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
69 names instead of SINGLE_VALUE.
70 (stream_out_histogram_value): Likewise.
71 (stream_in_histogram_value): Likewise.
72 (get_most_common_single_value): Likewise.
73 (gimple_divmod_fixed_value_transform): Likewise.
74 (gimple_stringops_transform): Likewise.
75 (gimple_divmod_values_to_profile): Likewise.
76 (gimple_stringops_values_to_profile): Likewise.
77 (gimple_find_values_to_profile): Likewise.
78 * value-prof.h (enum hist_type): Rename to TOPN.
79 (gimple_gen_one_value_profiler): Remove.
80 (gimple_gen_topn_values_profiler): New.
82 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
84 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
85 if it has the DW_AT_data_member_location attribute.
87 2019-07-03 Richard Biener <rguenther@suse.de>
89 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
92 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
94 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
95 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
96 (tlsdesc_small_sve_<mode>): Likewise.
98 2019-07-03 Martin Liska <mliska@suse.cz>
100 * Makefile.in: Define ZSTD_LIB.
101 * common.opt: Adjust compression level
102 to support also zstd levels.
103 * config.in: Regenerate.
104 * configure: Likewise.
105 * configure.ac: Add --with-zstd and --with-zstd-include options
107 * doc/install.texi: Mention zstd dependency.
108 * gcc.c: Print supported LTO compression algorithms.
109 * lto-compress.c (lto_normalized_zstd_level): Likewise.
110 (lto_compression_zstd): Likewise.
111 (lto_uncompression_zstd): Likewise.
112 (lto_end_compression): Dispatch in between zlib and zstd.
113 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
114 (lto_uncompression_zlib): Make it static.
115 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
116 * lto-section-in.c (lto_get_section_data): Pass info
117 about used compression.
118 * lto-streamer-out.c: By default use zstd when possible.
119 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
120 (TV_IPA_LTO_COMPRESS): Likewise for compression.
122 2019-07-03 Martin Liska <mliska@suse.cz>
124 * lto-section-in.c (lto_get_section_data): Add "lto" section.
125 * lto-section-out.c (lto_destroy_simple_output_block): Never
126 compress LTO_section_lto section.
127 * lto-streamer-out.c (produce_asm): Do not set major_version
129 (lto_output_toplevel_asms): Likewise.
130 (produce_lto_section): New function.
131 (lto_output): Call produce_lto_section.
132 (lto_write_mode_table): Do not set major_version and
134 (produce_asm_for_decls): Likewise.
135 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
137 (struct lto_header): Remove.
138 (struct lto_section): New struct.
139 (struct lto_simple_header): Do not inherit from lto_header.
140 (struct lto_file_decl_data): Add lto_section_header field.
142 2019-07-03 Martin Liska <mliska@suse.cz>
144 * lra-eliminations.c (eliminate_regs_in_insn): Remove
146 * reg-stack.c (check_asm_stack_operands): Likewise.
147 * tree-ssa-structalias.c (create_function_info_for): Likewise.
148 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
149 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
152 2019-07-03 Martin Liska <mliska@suse.cz>
154 PR tree-optimization/90892
155 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
158 2019-07-03 Martin Liska <mliska@suse.cz>
161 * multiple_target.c (create_dispatcher_calls): Add to comdat
162 group only if set for ifunc.
164 2019-07-03 Martin Liska <mliska@suse.cz>
167 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
168 Define local_object_name in outer scope in order to handle
169 use-after-scope issue.
171 2019-07-03 Martin Liska <mliska@suse.cz>
173 * common.opt: Add fprofile-note.
174 * coverage.c (coverage_init): Append the option
176 * doc/invoke.texi: Document -fprofile-note.
178 2019-07-03 Jakub Jelinek <jakub@redhat.com>
180 PR tree-optimization/91033
181 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
182 vect_analyze_data_refs): Add bool * arguments.
183 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
184 if failure is due to scatter/gather, set *fatal to false if non-NULL.
185 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
186 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
187 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
188 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
189 vect_analyze_data_refs caller.
191 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
193 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
194 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
195 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
196 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
197 OMP_CLAUSE__SCANTEMP_ entry.
198 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
199 * tree-pretty-print.c (dump_omp_clause): Likewise.
200 * tree-nested.c (convert_nonlocal_omp_clauses,
201 convert_local_omp_clauses): Likewise.
202 * omp-general.h (struct omp_for_data): Add have_scantemp and
203 have_nonctrl_scantemp members.
204 * omp-general.c (omp_extract_for_data): Initialize them.
205 * omp-low.c (struct omp_context): Add scan_exclusive member.
206 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
207 result again with GF_OMP_FOR_KIND_MASK. Initialize also
209 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
210 of !ctx->scan_inclusive.
211 (lower_rec_input_clauses): Simplify gimplification of dtors using
212 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
213 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
214 loops. Don't add barrier for reduction_omp_orig_ref if
215 ctx->scan_??xclusive.
216 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
217 (lower_omp_scan): Use ctx->scan_exclusive instead
218 of !ctx->scan_inclusive. Handle worksharing loops with inscan
219 reductions. Use new_vard != new_var instead of repeated
220 omp_is_reference calls.
221 (omp_find_scan, lower_omp_for_scan): New functions.
222 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
224 * omp-expand.c (expand_omp_scantemp_alloc): New function.
225 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
226 and fd->have_scantemp.
228 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
229 on worksharing loop propagate it as shared clause to containing
232 * omp-expand.c (expand_omp_for_static_nochunk,
233 expand_omp_for_static_chunk): For nowait worksharing loop with
234 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
237 2019-07-02 Joern Rennecke <joern.rennecke@riscy-ip.com>
240 * testsuite/gcc.dg/plugin/start_unit_plugin.c: Register a root tab
241 to reference fake_var.
243 2019-07-02 qing zhao <qing.zhao@oracle.com>
245 PR preprocessor/90581
246 * doc/cppopts.texi: Add document for -fmax-include-depth.
247 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
249 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
251 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
252 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
253 (mmx_packssdw): Ditto.
254 (mmx_punpckhbw): Ditto.
255 (mmx_punpcklbw): Ditto.
256 (mmx_punpckhwd): Ditto.
257 (mmx_punpcklwd): Ditto.
258 (mmx_punpckhdq): Ditto.
259 (mmx_punpckldq): Ditto.
260 (*vec_dupv4hi): Ditto.
261 (*vec_dupv2si): Ditto.
262 (mmx_pmovmskb): Ditto.
263 * config/i386/sse.md (sse_cvtpi2ps): Use
264 TARGET_SSE2 && SSE_REG_P in split condition.
265 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
266 TARGET_SSSE3 && SSE_REGNO_P in split condition.
267 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
268 (ssse3_pshufbv8qi3): Ditto.
269 (ssse3_palignrdi): Ditto.
271 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
273 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
274 with inlined save and restore.
276 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
278 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
279 to be inserted on single successor edge of the entry block. Then call
280 commit_edge_insertions instead of inserting the instructions manually.
281 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
282 RTL expansion and rebuild jump labels chain.
284 2019-07-02 Richard Biener <rguenther@suse.de>
286 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
288 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
290 * tree.c (build_common_tree_nodes): Initialize them.
291 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
292 Make declarations comments.
293 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
294 chrec_known): Remove definitions.
295 (initialize_scalar_evolutions_analyzer): Remove.
296 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
297 * tree-streamer.c (preload_common_nodes): Do not preload
298 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
300 2019-07-02 Jan Hubicka <jh@suse.cz>
302 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
305 2019-07-02 Jan Hubicka <jh@suse.cz>
307 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
309 (nonoverlapping_component_refs_since_match_p): ... this one;
310 handle also non-decl bases; return -1 if search gave up.
311 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
312 nonoverlapping_component_refs_of_decl_p_no_alias to
313 nonoverlapping_component_refs_since_match_p_may_alias,
314 nonoverlapping_component_refs_since_match_p_no_alias.
315 (dump_alias_stats): Update dumping.
316 (aliasing_matching_component_refs_p): Break out from ...;
317 dispatch to nonoverlapping_component_refs_for_decl_p
318 and nonoverlapping_component_refs_since_match_p.
319 (aliasing_component_refs_p): ... here; call
320 nonoverlapping_component_refs_p in scenarios where we can not
321 precisely determine base match.
322 (decl_refs_may_alias_p): Use
323 nonoverlapping_component_refs_since_match_p.
324 (indirect_ref_may_alias_decl_p): Do not call
325 nonoverlapping_component_refs_p.
326 (indirect_refs_may_alias_p): Likewise.
328 2019-07-02 Jan Hubicka <jh@suse.cz>
330 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
331 to clobber of return value.
333 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
335 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
336 for is_neon_type instructions that have not already been categorized.
338 2019-07-02 Richard Biener <rguenther@suse.de>
340 PR tree-optimization/58483
341 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
342 for MEM_REF base hashing.
343 (equal_mem_array_ref_p): Likewise for base comparison.
345 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
347 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
349 (signbit<mode>2): Use that name. Simplify.
351 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
354 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
355 Tune heuristic from PR71016 to allow MIN / MAX.
356 * testsuite/gcc.dg/tree-ssa/pr66726-4.c: New testcase.
358 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
360 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
362 (abs<mode>2): Use that name. Simplify.
364 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
366 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
368 (neg<mode>2): Use that name. Simplify.
370 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
372 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
374 (abs<mode>2): Use that name. Simplify.
376 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
378 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
380 (neg<mode>2): Use that name. Simplify.
382 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
384 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
385 ("enabled" attribute): Handle sse_noavx isa attribute.
386 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
387 Use TARGET_SSE && SSE_REGNO_P in split condition.
388 (*vec_dupv2sf): Ditto.
390 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
392 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
394 (floatsi<mode>2): Use that name. Simplify.
396 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
398 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
400 (extenddf<mode>2_vsx): Make this a parameterized name.
401 (extenddf<mode>2): Use those names. Simplify.
403 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
405 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
407 (eh_return): Use that name. Simplify.
409 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
411 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
412 (doloop_end): Use that name. Simplify.
414 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
416 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
418 (indirect_jump): Use that name. Simplify.
420 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
422 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
424 (abs<mode>2): Use that name. Simplify.
426 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
428 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
430 (fix_trunc<mode>si2): Use that name. Simplify.
432 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
434 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
435 (allocate_stack): Use that name. Simplify.
437 2019-07-01 Martin Sebor <msebor@redhat.com>
440 * hash-map.h (hash_map::put): On insertion invoke element ctor.
441 (hash_map::get_or_insert): Same. Reformat comment.
442 * hash-set.h (hash_set::add): On insertion invoke element ctor.
443 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
444 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
445 * hash-table.h (hash_table::operator=): Prevent copy assignment.
446 (hash_table::hash_table (const hash_table&)): Use copy ctor
447 instead of assignment to copy elements.
449 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
450 John David Anglin <danglin@gcc.gnu.org>
453 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
454 using saved frame pointer.
456 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
459 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
460 Add frame clobber and schedule blockage.
462 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
464 * doc/invoke.texi (Link Options): Further editorial changes to
465 -flinker-output docs.
467 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
469 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
470 Load both operands of a PLUS into registers separately.
472 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
474 * config/s390/vector.md: Fix shift count operand printing.
476 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
478 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
480 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
482 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
483 Use recog_data to test for an output operand.
485 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
487 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
488 exclude any others that are disparaged or that are bound to need
490 (ira_get_dup_out_num): Expand comment.
492 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
494 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
495 constraint string for each operand/alternative combo. Only handle
496 '%' at the start of constraint strings, and look for it outside
499 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
501 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
502 alternative_mask instead of HARD_REG_SET to represent a
503 bitmask of alternatives.
504 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
505 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
507 2019-07-01 Martin Liska <mliska@suse.cz>
509 * edit-context.c (test_applying_fixits_unreadable_file): Do not
510 use () for a constructor call.
511 (test_applying_fixits_line_out_of_range): Likewise.
512 * ggc-page.c (alloc_page): Use (void *) for %p printf format
514 (free_page): Likewise.
516 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
518 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
519 parameter names to match usage (no functional change).
520 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
522 2019-07-01 Richard Biener <rguenther@suse.de>
524 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
526 (pass_fre::execute): Honor it.
527 * passes.def: Adjust pass_fre invocations to allow iterating,
528 add non-iterating pass_fre before late threading/dom.
530 2019-07-01 Richard Biener <rguenther@suse.de>
532 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
533 TARGET_MEM_REF handling to also handle address-taken ones.
535 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
537 * doc/sourcebuild.texi (Effective-Target Keywords, Other
538 hardware attributes): Document avx512vp2intersect.
540 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
542 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
543 (abs<mode>2): New expander.
544 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
545 Use CODE_FOR_ssse3_absv8qi2.
546 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
547 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
549 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
551 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
552 to sse, sse_noavx and avx. Update all uses.
554 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
556 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
557 (*mmx_<plusminus_insn><mode>3): Ditto.
558 (*mmx_mulv4hi3"): Ditto.
559 (*mmx_smulv4hi3_highpart): Ditto.
560 (*mmx_umulv4hi3_highpart): Ditto.
561 (*mmx_pmaddwd): Ditto.
562 (*sse2_umulv1siv1di3): Ditto.
563 (*mmx_<code>v4hi3): Ditto.
564 (*mmx_<code>v8qi3): Ditto.
565 (mmx_ashr<mode>3): Ditto.
566 ("mmx_<shift_insn><mode>3): Ditto.
567 (*mmx_eq<mode>3): Ditto.
568 (mmx_gt<mode>3): Ditto.
569 (mmx_andnot<mode>3): Ditto.
570 (*mmx_<code><mode>3): Ditto.
571 (*mmx_pinsrw): Ditto.
572 (*mmx_pextrw): Ditto.
573 (mmx_pshufw_1): Ditto.
574 (*mmx_uavgv8qi3): Ditto.
575 (*mmx_uavgv4hi3): Ditto.
576 ("mmx_psadbw): Ditto.
577 * config/i386/sse.md (sse_cvtps2pi): Ditto.
578 (sse_cvttps2pi): Ditto.
579 (ssse3_pmaddubsw): Ditto.
580 (*ssse3_pmulhrswv4hi3): Ditto.
581 (ssse3_psign<mode>3): Ditto.
583 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
585 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
586 adjustment for bit-fields to all aggregate types.
588 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
590 * config/rs6000/predicates.md (pcrel_address): Use
591 SYMBOL_REF_LOCAL_P to determine if a label is local.
592 (pcrel_external_address): New predicate.
593 (non_prefixed_mem_operand): Delete, predicate not used.
594 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
595 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
597 (SYMBOL_REF_PCREL_P): Likewise.
600 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
602 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
603 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
604 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
606 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
608 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
609 override on extra_headers.
611 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
613 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
614 * config/darwin-driver.c (darwin_default_min_version): Remove newline
616 (darwin_driver_init): Likewise.
618 2019-06-28 Jan Beulich <jbeulich@suse.com>
620 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
621 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
622 Eliminate redundant alternative.
624 2019-06-28 Jan Beulich <jbeulich@suse.com>
626 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
627 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
630 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
632 * config/arc/arc.c (arc_rtx_costs): All short instructions are
633 having a lower cost regardless of the speed option.
635 2019-06-28 Jan Beulich <jbeulich@suse.com>
637 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
638 vector_operand plus, on both alternatives, "Bm" constraint.
640 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
642 * config/arm/arm.md: Remove redundant constraints from
643 define_expand but leave reload_inm and reload_outm patterns
644 untouched since they need special constraints to work.
645 * config/arm/arm-fixed.md: Remove redundant constraints from
647 * config/arm/iwmmxt.md: Likewise.
648 * config/arm/neon.md: Likewise.
649 * config/arm/sync.md: Likewise.
650 * config/arm/thumb1.md: Likewise.
651 * config/arm/vec-common.md: Likewise.
653 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
655 * doc/install.texi: Document --disable-tm-clone-registry.
657 2019-06-27 Jakub Jelinek <jakub@redhat.com>
660 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
663 PR tree-optimization/91010
664 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
665 return true. Otherwise, don't call operand_equal_p if offset1 or
666 offset2 is NULL and just return false.
668 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
670 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
671 user-specified float mode choice for kernel mode code.
673 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
675 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
678 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
680 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
681 use longcall for 64b code.
683 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
685 * builtins.c (get_memory_rtx): Fix comment.
686 * optabs.def (movmem_optab): Change to cpymem_optab.
687 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
688 (emit_block_move_hints): Change movmem to cpymem.
689 * defaults.h: Change movmem to cpymem.
690 * targhooks.c (get_move_ratio): Change movmem to cpymem.
691 (default_use_by_pieces_infrastructure_p): Ditto.
692 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
693 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
695 * config/aarch64/aarch64.h: Change movmem to cpymem.
696 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
697 * config/alpha/alpha.h: Change movmem to cpymem in comment.
698 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
700 * config/arc/arc-protos.h: Change movmem to cpymem.
701 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
702 * config/arc/arc.h: Change movmem to cpymem in comment.
703 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
704 * config/arm/arm-protos.h: Change movmem to cpymem in names.
705 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
706 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
707 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
708 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
709 * config/avr/avr-protos.h: Change movmem to cpymem.
710 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
711 avr_out_movmem): Change movmem to cpymem.
712 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
713 Change movmem to cpymem.
714 * config/bfin/bfin-protos.h: Change movmem to cpymem.
715 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
716 Change movmem to cpymem.
717 * config/bfin/bfin.h: Change movmem to cpymem in comment.
718 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
719 * config/c6x/c6x-protos.h: Change movmem to cpymem.
720 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
721 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
722 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
723 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
724 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
725 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
726 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
727 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
728 expand_small_cpymem_or_setmem,
729 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
730 expand_set_or_cpymem_constant_prologue,
731 ix86_expand_set_or_cpymem): Change movmem to cpymem.
732 * config/i386/i386-protos.h: Change movmem to cpymem.
733 * config/i386/i386.h: Change movmem to cpymem in comment.
734 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
735 (setmem<mode>): Change expansion function name.
736 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
737 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
738 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
739 * config/m32c/m32c-protos.h: Change movmem to cpymem.
740 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
741 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
742 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
744 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
745 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
746 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
747 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
748 Change movmem to cpymem.
749 * config/mips/mips.h: Change movmem to cpymem.
750 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
751 * config/nds32/nds32-memory-manipulation.c
752 (nds32_expand_movmemsi_loop_unknown_size,
753 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
754 nds32_expand_movmemsi_unroll,
755 nds32_expand_movmemsi): Change movmem to cpymem.
756 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
757 * config/nds32/nds32-protos.h: Change movmem to cpymem.
758 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
759 (pa_adjust_insn_length): Change call to compute_movmem_length.
760 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
761 movmemdi, movmemdi_prereload,
762 movmemdi_postreload): Change movmem to cpymem.
763 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
764 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
765 * config/riscv/riscv.c: Change movmem to cpymem in comment.
766 * config/riscv/riscv.h: Change movmem to cpymem.
767 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
768 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
769 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
771 * config/s390/s390-protos.h: Change movmem to cpymem.
772 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
773 s390_expand_insv): Change movmem to cpymem.
774 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
775 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
776 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
777 * config/sparc/sparc.h: Change movmem to cpymem in comment.
778 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
779 for nonexistent function.
780 * config/vax/vax.h: Change movmem to cpymem in comment.
781 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
782 * config/visium/visium.h: Change movmem to cpymem in comment.
783 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
784 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
785 * doc/md.texi: Change movmem to cpymem and update description to match.
786 * doc/rtl.texi: Change movmem to cpymem.
787 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
788 * doc/tm.texi: Regenerate.
790 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
792 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
793 -fvariable-expansion-in-unroller by default.
794 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
797 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
800 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
801 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
803 * config.gcc(rs6000-*-*): Define target_gtfiles.
805 2019-06-27 Jan Hubicka <jh@suse.cz>
807 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
808 (add_type_duplicate): When odr hash is not allocated, to nothing.
809 (odr_based_tbaa_p): New function.
810 (set_type_canonical_for_odr_type): New function.
811 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
812 set_type_canonical_for_odr_type): New.
813 * tree.c (gimple_canonical_types_compatible_p): ODR types with
814 ODR based TBAA are not equivalent to non-ODR types.
816 2019-06-27 Martin Liska <mliska@suse.cz>
818 PR tree-optimization/90974
819 PR rtl-optimization/90975
820 PR rtl-optimization/90976
822 PR tree-optimization/91017
823 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
825 * lra.c (lra_set_insn_recog_data): Remove a leftover from
826 initial commit of IRA.
827 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
829 * tree-vect-loop.c (vect_create_epilog_for_reduction):
831 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
834 2019-06-27 Jakub Jelinek <jakub@redhat.com>
837 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
838 instead of register_operand for operands[1], add m to its constraints
839 if operands[2] uses "C" constraint. Ensure in condition that if
840 operands[2] is not 0, then operands[1] is not a MEM. For last two
841 alternatives, use unaligned loads instead of aligned if operands[1] is
844 2019-06-27 Martin Liska <mliska@suse.cz>
846 * asan.c (asan_emit_allocas_unpoison): Remove obviously
848 * bt-load.c (move_btr_def): Likewise.
849 * builtins.c (expand_builtin_apply_args_1): Likewise.
850 (expand_builtin_apply): Likewise.
851 * cfgexpand.c (expand_asm_stmt): Likewise.
852 (construct_init_block): Likewise.
853 * cfghooks.c (verify_flow_info): Likewise.
854 * cfgloopmanip.c (remove_path): Likewise.
855 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
856 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
857 * combine.c (simplify_if_then_else): Likewise.
858 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
859 (choose_basereg): Likewise.
860 (ix86_expand_prologue): Likewise.
861 (ix86_preferred_output_reload_class): Likewise.
862 * cselib.c (cselib_record_sets): Likewise.
863 * df-scan.c (df_scan_alloc): Likewise.
864 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
865 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
866 * emit-rtl.c (try_split): Likewise.
867 * graphite-scop-detection.c (assign_parameter_index_in_region): Likewise.
868 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
869 * ira-color.c (setup_profitable_hard_regs): Likewise.
870 * ira.c (rtx_moveable_p): Likewise.
871 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
872 * read-rtl.c (read_subst_mapping): Likewise.
873 * regrename.c (scan_rtx): Likewise.
874 * reorg.c (fill_slots_from_thread): Likewise.
875 * tree-inline.c (tree_function_versioning): Likewise.
876 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
877 * tree-ssa-sink.c (statement_sink_location): Likewise.
878 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
879 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
880 (vect_create_epilog_for_reduction): Likewise.
881 * tree.c (build_nonstandard_integer_type): Likewise.
883 2019-06-27 Richard Biener <rguenther@suse.de>
885 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
887 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
889 PR tree-optimization/89772
890 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
891 out-of-bound accesses checking.
893 2019-06-27 Martin Liska <mliska@suse.cz>
895 PR tree-optimization/91014
896 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
897 when LHS is NULL_TREE.
899 2019-06-27 Martin Liska <mliska@suse.cz>
901 * symbol-summary.h (traverse): Pass
902 argument a to the call of callback.
903 (gt_ggc_mx): Mark arguments as unused.
904 (gt_pch_nx): Likewise.
906 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
909 * gcc/loop-iv.c (find_simple_exit): Call finite_loop_p to update
912 2019-06-26 Jeff Law <law@redhat.com>
914 PR tree-optimization/90883
915 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
916 (delete_dead_or_redundant_assignment): Likewise.
918 PR tree-optimization/90883
919 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
920 * tree-ssa-dse.c: Update various comments to distinguish between
921 dead and redundant stores.
922 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
923 (dse_optimize_redundant_stores): New function.
924 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
925 Distinguish between dead and redundant calls in dump output. All
927 (delete_dead_or_redundant_assignment): Similarly for assignments.
928 (dse_optimize_stmt): Handle _CHK variants. For statements which
929 store 0 into multiple memory locations, try to prove a subsequent
932 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
935 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
936 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
938 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
940 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
941 (branch_islands): New extern.
942 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
943 * config/rs6000/rs6000.c: .. here.
945 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
947 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
948 (powerpc*-*-*) ... to here.
950 2019-06-26 Jeff Law <law@redhat.com>
952 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
953 memcpy, memmove and memset builtins.
954 (maybe_trim_memstar_call): Likewise.
956 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
958 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
960 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
962 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
964 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
966 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
968 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
970 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
973 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
975 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
977 2019-06-26 Richard Biener <rguenther@suse.de>
980 * tree-inline.c (remap_ssa_name): Copy SSA range info.
982 2019-06-26 Richard Biener <rguenther@suse.de>
984 * lto-streamer.h (lto_bitmap_alloc): Remove.
985 (lto_bitmap_free): Likewise.
986 * lto-streamer.c (lto_bitmap_alloc): Remove.
987 (lto_bitmap_free): Likewise.
988 (lto_obstack): Likewise.
989 (lto_obstack_initialized): Likewise.
990 * lto-streamer-out.c (lto_output): Use own obstack for local
991 bitmap, free it consistently.
993 2019-06-26 Jakub Jelinek <jakub@redhat.com>
997 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
998 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
999 insns if operands[2] is misaligned_operand.
1001 2019-06-26 Li Jia He <helijia@linux.ibm.com>
1003 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
1005 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
1008 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
1010 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
1012 2019-06-26 Martin Liska <mliska@suse.cz>
1014 PR tree-optimization/90973
1015 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
1016 epilogue_cost_vec instead of prologue_cost_vec for
1019 2019-06-26 Martin Liska <mliska@suse.cz>
1021 * bb-reorder.c (connect_better_edge_p): Add missing else
1022 statement in the middle of if-else statements.
1024 /home/marxin/Programming/gcc/gcc/bb-reorder.c:1031:2: warning: Value stored to 'is_better_edge' is never read
1025 is_better_edge = true;
1027 /home/marxin/Programming/gcc/gcc/bb-reorder.c:1034:2: warning: Value stored to 'is_better_edge' is never read
1028 is_better_edge = false;
1031 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
1032 H.J. Lu <hongjiu.lu@intel.com>
1033 Olga Makhotina <olga.makhotina@intel.com>
1035 * common/config/i386/i386-common.c
1036 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
1037 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
1038 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
1039 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
1040 (ix86_handle_option): Handle -mavx512vp2intersect.
1041 * config/i386/avx512vp2intersectintrin.h: New.
1042 * config/i386/avx512vp2intersectvlintrin.h: New.
1043 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
1044 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1046 * config/i386/i386-builtin-types.def: Add new types.
1047 * config/i386/i386-builtin.def: Add new builtins.
1048 * config/i386/i386-builtins.c: (enum processor_features): Add
1049 F_AVX512VP2INTERSECT.
1050 (static const _isa_names_table isa_names_table): Ditto.
1051 * config/i386/i386-c.c (ix86_target_macros_internal): Define
1052 __AVX512VP2INTERSECT__.
1053 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
1054 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
1055 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
1056 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
1057 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
1058 * config/i386/i386-options.c (ix86_target_string): Add
1059 -mavx512vp2intersect.
1060 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
1061 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
1062 P2HImode and P2QImode.
1063 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
1064 number for P2QImode and P2HImode.
1065 (ix86_regmode_natural_size): New function.
1066 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
1067 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
1068 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
1069 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
1070 * config/i386/i386.opt: Add -mavx512vp2intersect.
1071 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
1072 avx512vp2intersectvlintrin.h.
1073 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
1074 (define_mode_iterator VI48_AVX512VP2VL): New.
1075 (avx512vp2intersect_2intersect<mode>,
1076 avx512vp2intersect_2intersectv16si): New define_insn patterns.
1077 * config.gcc: Add avx512vp2intersectvlintrin.h and
1078 avx512vp2intersectintrin.h to extra_headers.
1079 * doc/invoke.texi: Document -mavx512vp2intersect.
1081 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
1083 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
1085 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
1087 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
1088 savres_routine_syms, savres_routine_name, morestack_ref,
1089 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
1090 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
1091 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
1092 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
1093 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
1094 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
1095 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
1096 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
1097 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
1098 get_stack_clash_protection_probe_interval,
1099 get_stack_clash_protection_guard_size,
1100 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
1101 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
1102 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
1103 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
1104 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
1105 gen_frame_mem_offset, rs6000_savres_routine_name,
1106 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
1107 ptr_regno_for_savres, rs6000_emit_savres_rtx,
1108 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
1109 rs6000_global_entry_point_prologue_needed_p,
1110 rs6000_get_separate_components, rs6000_components_for_bb,
1111 rs6000_disqualify_components, rs6000_emit_prologue_components,
1112 rs6000_emit_epilogue_components, rs6000_set_handled_components,
1113 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
1114 rs6000_output_savres_externs, rs6000_output_function_prologue,
1115 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
1116 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
1117 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
1118 rs6000_output_function_epilogue, gen_add3_const,
1119 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
1120 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
1122 (machine_function): Moved to rs6000.h.
1123 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
1125 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
1126 savres_routine_syms, savres_routine_name, morestack_ref,
1127 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
1128 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
1129 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
1130 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
1131 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
1132 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
1133 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
1134 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
1135 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
1136 get_stack_clash_protection_probe_interval,
1137 get_stack_clash_protection_guard_size,
1138 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
1139 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
1140 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
1141 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
1142 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
1143 gen_frame_mem_offset, rs6000_savres_routine_name,
1144 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
1145 ptr_regno_for_savres, rs6000_emit_savres_rtx,
1146 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
1147 rs6000_global_entry_point_prologue_needed_p,
1148 rs6000_get_separate_components, rs6000_components_for_bb,
1149 rs6000_disqualify_components, rs6000_emit_prologue_components,
1150 rs6000_emit_epilogue_components, rs6000_set_handled_components,
1151 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
1152 rs6000_output_savres_externs, rs6000_output_function_prologue,
1153 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
1154 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
1155 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
1156 rs6000_output_function_epilogue, gen_add3_const,
1157 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
1158 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
1159 to here from rs6000.c.
1160 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
1161 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
1162 quad_address_offset_p) Moved to here from rs6000.c.
1163 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
1164 * config/config.gcc: Add new source file rs6000-logue.c to garbage
1167 2019-06-25 Martin Liska <mliska@suse.cz>
1169 * hash-table.c (hashtab_chk_error): Move here from ...
1170 * hash-table.h (hashtab_chk_error): ... here.
1172 2019-06-25 Martin Liska <mliska@suse.cz>
1174 PR tree-optimization/90978
1175 * df-scan.c (df_update_entry_block_defs): Remove dead else
1177 (df_update_exit_block_uses): Likewise.
1179 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
1180 Andrew Stubbs <ams@codesourcery.com>
1182 * config.gcc (thread_file): Set to gcn for AMD GCN.
1183 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
1184 (TARGET_EMUTLS_VAR_INIT): New hook.
1186 2019-06-25 Martin Jambor <mjambor@suse.cz>
1189 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
1191 2019-06-25 Richard Biener <rguenther@suse.de>
1193 PR tree-optimization/90930
1194 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
1195 into parallel form in the last pass instance.
1197 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
1199 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
1200 (arc_legitimize_pic_address): Simplify and cleanup the function.
1201 (SYMBOLIC_CONST): Remove.
1202 (prepare_pic_move): Likewise.
1203 (prepare_move_operands): Handle complex mov cases here.
1204 (arc_legitimize_address_0): Remove call to
1205 arc_legitimize_pic_address.
1206 (arc_legitimize_address): Remove call to
1207 arc_legitimize_tls_address.
1208 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
1209 (movhi_insn): Likewise.
1211 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1213 * gcc/c-family/c-common.c (c_common_nodes_and_builtins): Define
1214 alternate "__intN__" name for "__intN" types.
1215 * gcc/c/c-parser.c (c_parse_init): Create keyword for "__intN__" type.
1216 * gcc/cp/lex.c (init_reswords): Likewise.
1217 * gcc/config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
1219 * gcc/cp/cp-tree.h (cp_decl_specifier_seq): New bitfield "int_n_alt".
1220 * gcc/c/c-decl.c (declspecs_add_type): Don't pedwarn about "__intN" ISO
1221 C incompatibility if alternate "__intN__" form is used.
1222 * gcc/cp/decl.c (grokdeclarator): Likewise.
1223 * gcc/cp/parser.c (cp_parser_simple_type_specifier): Set
1224 decl_specs->int_n_alt if "__intN__" form is used.
1225 * gcc/gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
1226 format of "__intN" types for UINTMAX_TYPE.
1227 * gcc/brig/brig-lang.c (brig_build_c_type_nodes): Accept "__intN__"
1228 format of "__intN" types for SIZE_TYPE.
1229 * gcc/lto/lto-lang.c (lto_build_c_type_nodes): Likewise.
1230 * gcc/stor-layout.c (initialize_sizetypes): Accept "__intN__"
1231 format of "__intN" types for SIZETYPE.
1232 * gcc/tree.c (build_common_tree_nodes): Accept "__intN__"
1233 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
1234 * gcc/doc/invoke.texi: Document that __intN__ disables pedantic
1237 2019-06-25 Jan Hubicka <jh@suse.cz>
1239 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
1240 base2_alias_set is non-zero before doing TBAA based disambiguation.
1242 2019-06-25 Martin Liska <mliska@suse.cz>
1244 PR tree-optimization/90973
1245 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
1246 of prologue and epilogue.
1248 2019-06-24 Jan Hubicka <jh@suse.cz>
1250 * ipa-utils.h (type_with_linkage_p): Verify that type is
1252 (odr_type_p): Remove extra return.
1253 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
1254 hash STRING_FLAG only for arrays and integers.
1255 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
1257 * tree-streamer-out.c (pack_ts_type_common_value_fields):
1259 * print-tree.c (print_node): Print cxx-odr-p
1261 * tree.c (need_assembler_name_p): Also check that type
1263 (verify_type_variant): Update verification of SRING_FLAG;
1264 also check CXX_ODR_P.
1265 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
1266 (TYPE_STRING_FLAG): Use it.
1267 (TYPE_CXX_ODR_P): New macro.
1268 * dwarf2out.c (gen_array_type_die): First check that type
1269 is an array and then test string flag.
1271 2019-06-24 Richard Biener <rguenther@suse.de>
1273 PR tree-optimization/90972
1274 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
1275 in common code, dealing with STRING_CST properly.
1277 2019-06-24 Richard Biener <rguenther@suse.de>
1279 PR tree-optimization/90930
1280 PR tree-optimization/90316
1281 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
1284 2019-06-24 Martin Sebor <msebor@redhat.com>
1286 * tree-pretty-print.h: Remove unnecessary punctuation characters
1288 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
1290 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
1292 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
1293 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
1294 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
1296 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
1298 * config/rs6000/darwin.h: Handle GCC target pragma.
1300 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
1302 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
1304 2019-06-22 Jeff Law <law@redhat.com>
1306 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
1308 2019-06-22 Jan Hubicka <jh@suse.cz>
1310 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
1311 give up on bitfields; continue searching for different refs
1314 2019-06-21 Jakub Jelinek <jakub@redhat.com>
1316 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
1317 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
1318 containing the offset as possible simd lane access. Look through
1319 widening conversion. Move the
1320 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
1322 2019-06-21 Richard Biener <rguenther@suse.de>
1324 PR tree-optimization/90930
1325 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
1326 flag on new stmts to avoid re-processing them.
1328 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
1330 PR c++/90875 - added -Wswitch-outside-range option
1331 * doc/invoke.texi (Wswitch-outside-range): Document.
1333 2019-06-21 Jeff Law <law@redhat.com>
1335 PR tree-optimization/90949
1336 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
1337 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
1339 2019-06-21 Richard Biener <rguenther@suse.de>
1342 * dwarf2out.c (prune_unused_types_walk): Always consider
1343 function-local extern declarations as used.
1345 2019-06-21 Richard Biener <rguenther@suse.de>
1347 PR tree-optimization/90913
1348 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
1349 the scalar variant of if-conversion versioning.
1351 2019-06-21 Jakub Jelinek <jakub@redhat.com>
1353 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
1354 create another "omp scan inscan exclusive" array if
1355 !ctx->scan_inclusive.
1356 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
1357 (lower_omp_scan): Likewise.
1358 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
1359 2-bit bitfield for simd_lane_access_p member.
1360 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
1361 aux == (void *)-4 as simd lane access.
1362 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
1363 comment with permutations to show the canonical permutation order.
1364 (vectorizable_scan_store): Handle exclusive scan.
1365 (vectorizable_store): Call vectorizable_scan_store even for
1366 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
1368 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
1369 "omp simd array" arrays with one byte elements.
1371 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
1373 * config/alpha/alpha.md (@unaligned_store<mode>):
1374 Rename from unaligned_store<mode>.
1375 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
1376 * config/alpha/sync.md (@load_locked_<mode>): Rename
1377 from load_locked_<mode>.
1378 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
1379 (@atomic_compare_and_swap<mode>_1): Rename
1380 from atomic_compare_and_swap<mode>_1.
1381 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
1382 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
1383 Use gen_reload_in_aligned and gen_unaligned_store.
1384 (emit_load_locked): Remove.
1385 (emit_store_conditional): Ditto.
1386 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
1387 (alpha_split_compare_and_swap): Ditto.
1388 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
1389 (alpha_split_compare_and_swap_12): Use gen_load_locked
1390 and gen_store_conditional.
1391 (alpha_split_atomic_exchange): Ditto.
1392 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
1393 (alpha_split_atomic_exchange_12): Use gen_load_locked
1394 and gen_store_conditional.
1396 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
1398 * config/aarch64/aarch64-errata.h: New file.
1399 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
1400 (CA53_ERR_843419_SPEC): Delete.
1401 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
1402 * config/aarch64/aarch64-linux.h: Likewise.
1403 * config/aarch64/aarch64-netbsd.h: Likewise.
1404 * config/aarch64/aarch64-freebsd.h: Likewise.
1406 2019-06-20 Marek Polacek <polacek@redhat.com>
1408 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
1410 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
1412 * config/rs6000/rs6000.md (isa attribute): Add support for
1413 for a future processor.
1415 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
1418 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
1419 standard scalar operation pattern for V2DF.
1420 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
1421 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
1422 (*ieee_<ieee_maxmin><mode>3): Likewise.
1423 (vec_setv2df_0): Likewise.
1425 2019-06-20 Jan Hubicka <jh@suse.cz>
1427 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
1428 parameter; it has no use in gimple memory model.
1429 (indirect_ref_may_alias_decl_p): Update.
1431 2019-06-20 Martin Liska <mliska@suse.cz>
1433 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
1436 2019-06-20 Jakub Jelinek <jakub@redhat.com>
1438 * tree-vect-stmts.c (enum scan_store_kind): New type.
1439 (scan_store_can_perm_p): Change last argument from int * to
1440 vec<enum scan_store_kind> *, record precisely which permutations
1441 need whole vector left shift or that plus VEC_COND_EXPR.
1442 (vectorizable_scan_store): Adjust caller, use whole vector left shift
1443 and additional VEC_COND_EXPR only for those iterations that need it.
1445 2019-06-20 Alexandre Oliva <oliva@adacore.com>
1447 * config.gcc: Fix ARM --with-fpu checking and error message.
1449 2019-06-19 Marek Polacek <polacek@redhat.com>
1451 PR c++/60364 - noreturn after first decl not diagnosed.
1452 * attribs.c (get_attribute_namespace): No longer static.
1453 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
1455 (attr_noreturn_exclusions): Make it extern.
1456 * attribs.h (get_attribute_namespace): Declare.
1457 * tree-inline.c (function_attribute_inlinable_p): Use
1460 2019-06-19 Martin Sebor <msebor@redhat.com>
1462 PR tree-optimization/90626
1463 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
1465 PR tree-optimization/90626
1466 * tree-ssa-strlen.c (strxcmp_unequal): New function.
1467 (handle_builtin_string_cmp): Call it.
1469 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
1471 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
1472 and DARWIN_NOPIE_SPEC.
1473 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
1474 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
1475 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
1476 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
1477 (DARWIN_EXPORT_DYNAMIC): Delete.
1478 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
1479 and pie options processing to darwin.h.
1480 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
1482 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
1484 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
1485 in computing the number of options to be moved.
1487 2019-06-19 Maya Rashish <coypu@sdf.org>
1489 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
1490 (CLEAR_INSN_CACHE) Use it.
1492 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
1494 * config/i386/i386.md (cmpstrnsi): Remove dead code.
1496 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
1499 * builtins.c (expand_builtin_setjmp_setup): Save
1500 hard_frame_pointer_rtx.
1501 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
1503 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
1505 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
1507 (remove_reg_equal_offset_note): Remove unused function.
1508 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
1510 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
1511 (arc_builtin_setjmp_frame_value): Remove function.
1512 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
1513 (avr_builtin_setjmp_frame_value): Remove function.
1514 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
1515 (ix86_builtin_setjmp_frame_value): Remove function.
1516 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
1517 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
1518 (sparc_builtin_setjmp_frame_value): Remove function.
1519 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
1520 (vax_builtin_setjmp_frame_value): Remove function.
1521 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
1522 pointer if has_nonlocal_label.
1524 2019-06-19 Jakub Jelinek <jakub@redhat.com>
1526 * doc/md.texi: Document vec_shl_<mode> pattern.
1527 * optabs.def (vec_shl_optab): New optab.
1528 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
1529 argument, if == vec_shl_optab, check for left whole vector shift
1530 pattern rather than right shift.
1531 (expand_vec_perm_const): Add vec_shl_optab support.
1532 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
1534 * tree-vect-generic.c (lower_vec_perm): Support permutations which
1535 can be handled by vec_shl_optab.
1536 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
1537 (check_scan_store): Use it.
1538 (vectorizable_scan_store): If target can't do normal permutations,
1539 try to use whole vector left shifts and if needed a VEC_COND_EXPR
1541 * config/i386/sse.md (vec_shl_<mode>): New expander.
1543 * omp-low.c (lower_rec_input_clauses): Handle references properly
1545 (lower_omp_scan): Likewise.
1547 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1549 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
1550 mem_mode is BLKmode.
1552 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
1555 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
1556 pointer adjustment for the case of no callee-saved registers and
1557 stack frame bigger than 128 bytes.
1559 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
1562 * omp-low.c (check_omp_nesting_restrictions): Handle
1563 GF_OMP_TARGET_KIND_OACC_DECLARE.
1565 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
1567 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
1568 (@add<mode>3_carry): Rename from add<mode>3_carry.
1569 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
1570 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
1571 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
1572 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
1573 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
1574 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
1575 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
1576 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
1577 (cmpstrnsi): Use gen_cmp_1.
1578 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
1579 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
1580 (@umonitor_<mode>): Rename from umonitor_<mode>.
1581 * config/i386/i386-expand.c (ix86_expand_copysign):
1582 Use gen_copysign3_const and gen_copysign3_var.
1583 (ix86_expand_xorsign): Use gen_xorsign3_1.
1584 (ix86_expand_branch): Use gen_sub3_carry_ccc,
1585 gen_sub3_carry_ccgz and gen_cmp1.
1586 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
1587 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
1588 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
1589 (ix86_split_lshr): Ditto.
1590 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
1592 2019-06-18 Jason Merrill <jason@redhat.com>
1594 * tree.c (build_constructor): Add MEM_STAT_DECL.
1596 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
1598 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
1599 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
1600 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
1601 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
1602 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
1603 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
1604 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
1605 Use CC_NZC instead of CC.
1606 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
1607 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
1608 (aarch64_print_operand): Handle E_CC_NZCmode.
1609 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
1610 of gen_set_clobber_cc.
1612 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
1614 * config/aarch64/aarch64-sve.md: Tabify file.
1616 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
1618 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
1619 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
1620 * config/aarch64/aarch64-sve.md: Use it.
1622 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
1624 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
1625 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
1626 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
1627 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
1628 (aarch64_expand_sve_vec_cmp_int): Use it.
1629 (aarch64_expand_sve_vec_cmp_float): Likewise.
1630 * config/aarch64/aarch64-sve.md: Likewise throughout.
1632 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
1633 Kugan Vivekanandarajah <kuganv@linaro.org>
1635 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
1636 (*cond_<optab><mode>_z): Fold into...
1637 (*cond_<optab><mode>_any): ...here. Also handle cases in which
1638 operand 4 can be tied to operand 0 (either inherently or via RA).
1640 2019-06-18 Richard Biener <rguenther@suse.de>
1643 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
1644 as if optimized away.
1646 2019-06-18 Tom de Vries <tdevries@suse.de>
1648 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
1649 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
1650 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
1652 (define_insn "@set_softstack_<mode>"): ... this.
1653 (define_insn "omp_simt_enter_<mode>"): Rename to ...
1654 (define_insn "@omp_simt_enter_<mode>"): ... this.
1655 (define_insn "omp_simt_exit_<mode>"): Rename to ...
1656 (define_insn "@omp_simt_exit_<mode>"): ... this.
1658 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
1660 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
1661 vf parameter. Restore the previous iv step of nscalars_step,
1662 but give it iv_type rather than compare_type. Tweak code order
1663 to match the comments.
1664 (vect_set_loop_condition_masked): Update accordingly.
1665 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
1666 for iv_precision. Tweak comment formatting.
1668 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
1670 * config/darwin.c: Strip trailing whitespace.
1672 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
1674 * config/darwin.c (darwin_emit_unwind_label): New default to false.
1675 (darwin_override_options): Set darwin_emit_unwind_label as needed.
1677 2019-06-18 Martin Jambor <mjambor@suse.cz>
1680 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
1681 caller does not have flag_ipa_cp set.
1683 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
1685 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
1686 from "*fold_left_plus_<mode>", updated operands order.
1687 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
1688 * internal-fn.c (mask_fold_left_direct): New define.
1689 (expand_mask_fold_left_optab_fn): Likewise.
1690 (direct_mask_fold_left_optab_supported_p): Likewise.
1691 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
1692 * optabs.def (mask_fold_left_plus_optab): New optab.
1693 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
1694 masked internal_fn for a reduction ifn.
1695 (vectorize_fold_left_reduction): Add support for masking reductions.
1697 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
1700 * target.def (predict_doloop_p): New hook.
1701 * targhooks.h (default_predict_doloop_p): New declaration.
1702 * targhooks.c (default_predict_doloop_p): New function.
1703 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
1704 * doc/tm.texi: Regenerate.
1705 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
1706 (TARGET_PREDICT_DOLOOP_P): New macro.
1707 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
1709 2019-06-17 Jakub Jelinek <jakub@redhat.com>
1711 * omp-low.c (struct omp_context): Add scan_inclusive field.
1712 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
1714 (struct omplow_simd_context): Add lastlane member.
1715 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
1716 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
1718 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
1719 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
1720 (lower_omp_scan): New function.
1721 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
1722 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
1723 check 3rd argument if present rather than 2nd.
1724 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
1725 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
1727 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
1728 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
1730 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
1731 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
1732 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
1734 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
1735 IFN_GOMP_SIMD_LANE argument.
1736 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
1737 encoded ->aux value.
1738 * tree-vect-stmts.c: Include attribs.h.
1739 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
1740 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
1742 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
1743 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
1745 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
1748 * config/i386/i386.md (*nabstf2_1): New insn pattern.
1749 (*nabs<mode>2_1): Ditto.
1750 (nabs sse-reg splitter): New splitter.
1751 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
1753 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
1756 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
1759 2019-06-17 Tom de Vries <tdevries@suse.de>
1761 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
1762 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
1763 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
1765 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
1767 (define_insn "omp_simt_enter_insn"): Rename to ...
1768 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
1769 match_operand 0, 1 and 2, as well as the unspec_volatile result.
1770 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
1771 gen_omp_simt_enter_si.
1772 (define_expand "omp_simt_exit"): New.
1773 (define_insn "omp_simt_exit"): Rename to ...
1774 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
1777 2019-06-17 Matthew Green <mrg@eterna.com.au>
1778 Maya Rashish <coypu@sdf.org>
1780 * config.gcc (aarch64*-*-netbsd*): New target.
1781 * config/aarch64/aarch64-netbsd.h: New file.
1782 * config/aarch64/t-aarch64-netbsd: Likewise.
1784 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
1786 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
1787 the access path from base to first VIEW_CONVERT_EXPR or
1790 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
1792 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
1793 access path on BIT_FIELD_REFs.
1795 2019-06-17 Martin Liska <mliska@suse.cz>
1798 * ipa-utils.h (odr_type_p): Remove dead code.
1800 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1802 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
1803 alternative Solaris 11.4 format.
1804 * configure: Regenerate.
1806 2019-06-17 Tom de Vries <tdevries@suse.de>
1808 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
1809 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
1811 (define_insn "call_value_insn"): Rename to ...
1812 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
1814 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
1817 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
1820 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
1821 frame clobbers and schedule block.
1822 (builtin_longjmp): Likewise.
1824 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1826 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
1827 describe how to perform MSPABI compliant 64-bit shift.
1828 * config/msp430/msp430.md (ashldi3): New define_expand.
1829 (ashrdi3): New define_expand.
1830 (lshrdi3): New define_expand.
1832 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1834 * doc/sourcebuild.texi: Document new effective target keyword
1837 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
1839 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
1840 indirect_refs_may_alias_p): Revert accidental commits.
1842 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
1843 at the end of structures.
1845 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
1847 * config/darwin.c (machopic_indirect_call_target): Use renamed
1848 darwin_picsymbol_stubs to decide on output.
1849 (darwin_override_options): Handle darwin_picsymbol_stubs.
1850 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
1851 (LD64_VERSION): Revise default.
1852 * config/darwin.opt: (mpic-symbol-stubs): New option.
1853 (darwin_picsymbol_stubs): New variable.
1854 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
1855 rename to TARGET_MACHO_PICSYM_STUBS.
1856 * config/i386/i386.c (output_pic_addr_const): Likewise.
1857 * config/i386/i386.h Likewise.
1858 * config/rs6000/darwin.h: Likewise.
1859 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
1860 darwin_picsymbol_stubs.
1862 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
1864 * config/darwin.opt (prebind, noprebind, seglinkedit,
1865 noseglinkedit): Add RejectNegative.
1867 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
1869 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
1870 in my previous patch.
1872 2019-06-16 Tom de Vries <tdevries@suse.de>
1874 PR tree-optimization/89376
1875 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
1877 2019-06-15 Maya Rashish <coypu@sdf.org>
1879 * doc/invoke.texi (Spec Files): Update location of the
1882 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
1884 * doc/extend.texi (Common Function Attributes): Clarify
1885 no_sanitize. Fix grammar.
1887 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
1889 * tree-ssa-alias.c (alias_stats): Add
1890 nonoverlapping_component_refs_p_may_alias,
1891 nonoverlapping_component_refs_p_no_alias,
1892 nonoverlapping_component_refs_of_decl_p_may_alias,
1893 nonoverlapping_component_refs_of_decl_p_no_alias.
1894 (dump_alias_stats): Dump them.
1895 (nonoverlapping_component_refs_of_decl_p): Add stats.
1896 (nonoverlapping_component_refs_p): Add stats; do not stop on first
1899 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
1901 * config/i386/i386.md (and<mode>3): Generate zero-extends for
1902 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
1904 (*anddi3_doubleword): Split before reload. Merge with
1905 anddi->zext pre-reload splitter.
1906 (*andndi3_doubleword): Split before reload.
1907 (*<code>di3_doubleword): Ditto.
1908 (*one_cmpldi2_doubleword): Ditto.
1910 2019-06-15 Jakub Jelinek <jakub@redhat.com>
1913 * gimplify.c: Include omp-offload.h and context.h.
1914 (gimplify_bind_expr): Add "omp declare target" attributes
1915 to static block scope variables inside of target region or target
1918 2019-06-15 Tom de Vries <tdevries@suse.de>
1920 PR tree-optimization/90009
1921 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
1922 Return NULL if bb contains IFN_UNIQUE.
1924 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
1926 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
1927 (un): New define_mode_attr.
1928 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
1929 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
1930 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
1932 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
1934 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
1936 * config/darwin.opt: Add RejectNegative where needed, reorder
1937 and add minimal functional descriptions.
1939 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
1941 PR rtl-optimization/90765
1942 * calls.c (update_stack_alignment_for_call): New function.
1943 (expand_call): Call update_stack_alignment_for_call when
1944 outgoing parameter is passed in the stack.
1945 (emit_library_call_value_1): Likewise.
1946 * function.c (locate_and_pad_parm): Don't update
1947 stack_alignment_needed and preferred_stack_boundary.
1949 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
1952 * config/i386/i386-features.c
1953 (dimode_scalar_chain::compute_convert_gain): Replace
1954 mmxsse_to_integer with sse_to_integer.
1955 * config/i386/i386.c (ix86_register_move_cost): Verify that
1956 moves between MMX and non-MMX units require secondary memory.
1957 Correct costs of moves between SSE and integer units.
1958 * config/i386/i386.h (processor_costs): Rename cost of moving
1959 SSE register to integer to sse_to_integer. Rename cost of
1961 2019-06-14 Matt Thomas <matt@3am-software.com>
1962 Matthew Green <mrg@eterna.com.au>
1963 Nick Hudson <skrll@netbsd.org>
1964 Maya Rashish <coypu@sdf.org>
1965 Richard Earnshaw <rearnsha@arm.com>
1967 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
1968 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
1969 * config/arm/netbsd-eabi.h: New file.
1970 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
1972 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
1973 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
1974 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
1975 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
1977 2019-06-14 Richard Biener <rguenther@suse.de>
1979 * tree-loop-distribution.c (classify_partition): Return
1980 whether a reduction appeared in all partitions and do not
1981 stop builtin detection because of this.
1982 (distribute_loop): Sort a non-builtin partition last if
1983 there's a reduction in all partitions and make sure the
1984 partition prevailing as last is not a builtin.
1986 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
1989 * ipa-prop.c (add_to_agg_contents_list): New function.
1990 (clobber_by_agg_contents_list_p): Likewise.
1991 (extract_mem_content): Likewise.
1992 (get_place_in_agg_contents_list): Delete.
1993 (determine_known_aggregate_parts): Renamed from
1994 determine_locally_known_aggregate_parts. New parameter
1997 2019-06-13 Martin Sebor <msebor@redhat.com>
1999 PR tree-optimization/90662
2000 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
2003 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
2006 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
2007 dbase is not TARGET_MEM_REF.
2009 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
2011 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
2013 (and<mode>3): Use gen_extend_insn instead of indirect functions.
2014 Do not generate DImode extends for 32bit targets.
2015 (and->zext post-reload splitter): Use gen_extend_insn
2016 instead of indirect functions.
2017 (anddi->zext pre-reload splitter): New.
2018 (*zext<mode>_doubleword_and): Remove.
2019 (*zext<mode>_doubleword): Ditto.
2020 (*zextsi_doubleword): Dittto.
2022 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
2024 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
2025 Use gen_sub3_insn instead of indirect function.
2026 (ix86_expand_ashl_const): Use gen_add2_insn instead of
2028 (ix86_adjust_counter): Ditto.
2030 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
2031 Lijia He <helijia@linux.ibm.com>
2033 PR tree-optimization/77820
2034 * tree-ssa-threadedge.c
2035 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
2037 (thread_across_edge): Add call to
2038 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
2040 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
2042 * config/darwin-driver.c (validate_macosx_version_min): New.
2043 (darwin_default_min_version): Cleanup and validate supplied version.
2044 (darwin_driver_init): Likewise and push cleaned version into opts.
2046 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
2048 PR tree-optimization/90869
2049 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
2050 converts in MEM_REF referencing decl rather than view converts
2051 from decl type to MEM_REF type.
2053 2019-06-13 Richard Biener <rguenther@suse.de>
2055 PR tree-optimization/90856
2056 * tree-sra.c (build_ref_for_model): Only use
2057 build_reconstructed_reference when address-spaces are the same.
2059 2019-06-13 Jakub Jelinek <jakub@redhat.com>
2061 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
2062 wrap ei variable name in the declaration in ()s.
2063 (nvptx_single): Actually use mode_label variable. Formatting fix.
2065 2019-06-13 Richard Biener <rguenther@suse.de>
2067 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
2068 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
2069 also return the condition stmt.
2070 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
2071 loop we can version and version that, reusing the loop version
2072 created by if-conversion instead of versioning again.
2074 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
2076 * gimple-loop-versioning.cc (prune_loop_conditions): Use
2078 * tree-vrp (value_range_base::may_contain_p): Call into
2080 (value_inside_range): Make private inside value_range_base class.
2081 Take min/max from *this.
2082 (range_includes_p): Remove.
2083 * tree-vrp.h (value_range_base): Add value_inside_range.
2084 (range_includes_p): Remove.
2085 (range_includes_zero_p): Call may_contain_p.
2086 * vr-values.c (compare_range_with_value): Same.
2088 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
2090 * doc/extend.texi (ARC Function Attributes): Update info.
2092 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
2094 PR tree-optimization/89713
2095 * doc/invoke.texi (-ffinite-loops): Document new option.
2096 * common.opt (-ffinite-loops): New option.
2097 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
2098 IFN_GOACC_LOOP calls as necessary.
2099 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
2101 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
2102 IFN_GOACC_LOOP call is not used.
2103 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
2105 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2108 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
2109 compare_type is not with Pmode size, we will create an IV with
2110 Pmode size with truncated use (i.e. converted to the correct type).
2111 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
2112 (vect_iv_limit_for_full_masking): New. Factored out of
2113 vect_set_loop_condition_masked.
2114 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
2115 (vect_iv_limit_for_full_masking): Declare.
2117 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2120 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
2121 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
2122 (get_alias_ptr_type_for_ptr_address): Likewise.
2123 (add_iv_candidate_for_use): Add scaled index candidate if useful.
2124 * tree-ssa-address.c (preferred_mem_scale_factor): New.
2125 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
2128 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2130 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
2132 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
2134 * common/config/pru/pru-common.c: New file.
2135 * config.gcc: Add PRU target.
2136 * config/pru/alu-zext.md: New file.
2137 * config/pru/constraints.md: New file.
2138 * config/pru/predicates.md: New file.
2139 * config/pru/pru-opts.h: New file.
2140 * config/pru/pru-passes.c: New file.
2141 * config/pru/pru-pragma.c: New file.
2142 * config/pru/pru-protos.h: New file.
2143 * config/pru/pru.c: New file.
2144 * config/pru/pru.h: New file.
2145 * config/pru/pru.md: New file.
2146 * config/pru/pru.opt: New file.
2147 * config/pru/t-pru: New file.
2148 * doc/extend.texi: Document PRU pragmas.
2149 * doc/invoke.texi: Document PRU-specific options.
2150 * doc/md.texi: Document PRU asm constraints.
2152 2019-06-12 Martin Sebor <msebor@redhat.com>
2155 * tree-pretty-print.c (dump_mem_ref): New function. Include
2156 MEM_REF type in output when different size than operand.
2157 (dump_generic_node): Move code to dump_mem_ref and call it.
2159 2019-06-12 Martin Sebor <msebor@redhat.com>
2161 PR tree-optimization/90662
2162 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
2165 2019-06-12 Tom de Vries <tdevries@suse.de>
2167 PR tree-optimization/90009
2168 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
2170 2019-06-12 Martin Liska <mliska@suse.cz>
2172 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
2174 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
2175 * mem-stats.h (mem_alloc_description::mem_alloc_description):
2176 Do not sanitize created maps.
2178 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
2180 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
2181 value_range::singleton_p.
2182 * tree-vrp.c (value_range_constant_singleton): Remove.
2183 * tree-vrp.h (value_range_constant_singleton): Remove.
2184 * vr-values.c (vr_values::singleton): Use
2185 value_range::singleton_p.
2187 2019-06-12 Jakub Jelinek <jakub@redhat.com>
2190 * cfgexpand.c (align_local_variable): Add really_expand argument,
2191 don't SET_DECL_ALIGN if it is false.
2192 (add_stack_var): Add really_expand argument, pass it through to
2193 align_local_variable.
2194 (expand_one_stack_var_1): Pass true as really_expand to
2195 align_local_variable.
2196 (expand_one_ssa_partition): Pass true as really_expand to
2198 (expand_one_var): Pass really_expand through to add_stack_var.
2200 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
2202 * config/arm/iterators.md (VABAL): New int iterator.
2203 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
2204 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S, UNSPEC_VABAL_U
2207 2019-06-12 Martin Liska <mliska@suse.cz>
2209 * value-prof.c (stream_out_histogram_value): Only first value
2212 2019-06-12 Jakub Jelinek <jakub@redhat.com>
2215 * symtab.c (symtab_node::set_section): Allow being called on aliases
2216 as long as they aren't analyzed yet.
2218 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
2220 * config/mips/mips.c (mips_final_postscan_insn): Modify call
2221 to `mips_set_text_contents_type' to indicate whether a
2222 non-debug insn follows.
2224 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
2226 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
2227 enabling -mpcrel by default.
2228 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
2229 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
2230 that the test against -mcpu=future is done first. Then test if
2231 -mprefixed-addr is on for -mpcrel.
2232 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
2234 2019-06-11 Jakub Jelinek <jakub@redhat.com>
2237 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
2240 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
2242 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
2244 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
2246 PR c++/90449 - add -Winaccessible-base option.
2247 * doc/invoke.texi (Winaccessible-base): Document.
2249 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
2251 PR tree-optimization/62041
2252 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
2254 2019-06-11 Jason Merrill <jason@redhat.com>
2256 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
2257 * tree.c (get_tree_code_name): Likewise.
2258 * print-tree.c (print_node): Only briefly print a node with an
2261 2019-06-11 Jakub Jelinek <jakub@redhat.com>
2264 * trans-mem.c (tm_memopt_compute_available): Add assertion
2265 that blocks is not empty. Formatting fix.
2267 2019-06-11 Martin Liska <mliska@suse.cz>
2270 * hash-table.h: Extend create_gcc, add one parameter
2271 that is passed into hash_table::hash_table.
2273 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
2275 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
2277 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
2278 Emit clobber also for non-sse operations.
2279 (ix86_split_fp_absneg_operator): New function.
2280 * config/i386/i386.md (SSEMODEF): New mode iterator.
2281 (ssevecmodef): New mode attribute.
2282 (<code>tf2): Use absneg code iterator.
2283 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
2284 Add three-operand AVX alternatives.
2285 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
2286 Use absneg code iterator and X87MODEF mode iterator.
2287 (absneg fp_reg non-sse splitter): Call absneg code iterator
2288 and X87MODEF mode iterator.
2289 (absneg general_reg non-sse splitter): Use absneg code iterator
2290 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
2291 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
2292 code iterator. Add three-operand AVX alternative.
2293 (absneg sse_reg splitter): Use absneg code iterator
2294 and SSEMODEF mode iterator. Handle AVX operands.
2295 (absneg fp_reg splitter): Use absneg code iterator
2296 and MODEF mode iterator.
2297 (absneg general_reg splitter): Merge splitters using MODEF mode
2298 iterator. Use absneg code iterator. Call
2299 ix86_split_fp_absneg_operator.
2300 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
2301 Do not enable for non-sse modes before reload.
2304 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
2305 ssevecmodef mode attribute instaed of CSGNVMODE.
2306 (copysign<mode>3_const): Ditto.
2307 (copysign<mode>3_var): Ditto.
2308 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
2309 Use absneg code iterator. Simplify code using std::swap.
2310 * config/i386/predicates.md (absneg_operator): Remove.
2312 2019-06-10 Martin Sebor <msebor@redhat.com>
2314 * gimple-fold.c (get_range_strlen): Update comment that didn't
2315 make it into r267503 or related commits.
2317 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
2319 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
2320 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
2322 2019-06-10 Jakub Jelinek <jakub@redhat.com>
2324 * tree.def (OMP_SCAN): New tree code.
2325 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
2326 OMP_CLAUSE_EXCLUSIVE.
2327 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
2328 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
2329 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
2330 OMP_CLAUSE_{IN,EX}CLUSIVE.
2331 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
2332 * tree-nested.c (convert_nonlocal_reference_stmt,
2333 convert_local_reference_stmt, convert_gimple_call): Handle
2335 * tree-pretty-print.c (dump_omp_clause): Handle
2336 OMP_CLAUSE_{IN,EX}CLUSIVE.
2337 (dump_generic_node): Handle OMP_SCAN.
2338 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
2339 * gimple.h (gomp_scan): New type.
2340 (is_a_helper <gomp_scan *>::test,
2341 is_a_helper <const gomp_scan *>::test): New templates.
2342 (gimple_build_omp_scan): Declare.
2343 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
2344 gimple_omp_scan_set_clauses): New inline functions.
2345 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
2346 * gimple.c (gimple_build_omp_scan): New function.
2347 (gimple_copy): Handle GIMPLE_OMP_SCAN.
2348 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
2349 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
2350 GIMPLE_OMP_TASKGROUP.
2351 (dump_gimple_omp_scan): New function.
2352 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
2353 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
2354 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
2355 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
2356 (is_gimple_stmt): Handle OMP_SCAN.
2357 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
2358 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
2359 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
2360 mentioned in nested #pragma omp scan. Handle
2361 OMP_CLAUSE_{IN,EX}CLUSIVE.
2362 (gimplify_expr): Handle OMP_SCAN.
2363 * omp-low.c (check_omp_nesting_restrictions): For parent context,
2364 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
2366 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
2369 2019-06-10 Martin Liska <mliska@suse.cz>
2371 * ipa-cp.c (ignore_edge_p): New function.
2372 (build_toporder_info): Use it.
2373 * ipa-inline.c (ignore_edge_p): New function.
2374 (inline_small_functions): Use it.
2375 * ipa-pure-const.c (ignore_edge_for_nothrow):
2376 Verify opt_for_fn for caller and callee.
2377 (ignore_edge_for_pure_const): Likewise.
2378 * ipa-reference.c (ignore_edge_p): Extend to check
2380 * ipa-utils.c (searchc): Refactor.
2381 * ipa-utils.h: Fix coding style.
2383 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
2385 * config/arc/arc.c (arc_rtx_costs): Update costs.
2387 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
2389 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
2390 (arc_split_ior): Likewise.
2391 (arc_check_mov_const): Likewise.
2392 (arc_split_mov_const): Likewise.
2393 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
2394 (arc_rtx_costs): Replace check Crr with Cax constraint.
2395 (prepare_move_operands): Cleanup, remove unused code.
2396 (arc_split_ior): New function.
2397 (arc_check_ior_const): Likewise.
2398 (arc_split_mov_const): Likewise.
2399 (arc_check_mov_const): Likewise.
2400 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
2401 in define_insn_and_split pattern.
2403 (mulsi3_v2): Add new matching variant.
2404 (andsi3_i): Cleanup pattern.
2405 (rotrsi3_cnt1): Update pattern.
2406 (rotrsi3_cnt8): New pattern.
2407 (ashlsi2_cnt8): Likewise.
2408 (ashlsi2_cnt16): Likewise.
2409 * config/arc/constraints.md (C0p): Update constraint.
2414 2019-06-10 Martin Liska <mliska@suse.cz>
2416 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
2417 Update coding style.
2418 (sem_item_optimizer::dump_cong_classes):
2419 Print how many items are in a non-singular class. Improve
2422 2019-06-10 Martin Liska <mliska@suse.cz>
2424 * value-prof.c (dump_histogram_value): Change dump format.
2425 (gimple_mod_subtract_transform): Remove legacy comment.
2427 2019-06-10 Martin Liska <mliska@suse.cz>
2429 * value-prof.c (dump_histogram_value): Print histogram values
2432 2019-06-10 Martin Liska <mliska@suse.cz>
2434 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
2435 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
2436 * ipa-profile.c (ipa_profile_generate_summary):
2437 Use get_most_common_single_value.
2438 * tree-profile.c (gimple_init_gcov_profiler):
2439 Instrument with __gcov_one_value_profiler_v2
2440 and __gcov_indirect_call_profiler_v4.
2441 * value-prof.c (dump_histogram_value):
2442 Print all values for HIST_TYPE_SINGLE_VALUE.
2443 (stream_out_histogram_value): Update assert for
2445 (stream_in_histogram_value): Set number of
2446 counters for HIST_TYPE_SINGLE_VALUE.
2447 (get_most_common_single_value): New.
2448 (gimple_divmod_fixed_value_transform):
2449 Use get_most_common_single_value.
2450 (gimple_ic_transform): Likewise.
2451 (gimple_stringops_transform): Likewise.
2452 (gimple_find_values_to_profile): Set number
2453 of counters for HIST_TYPE_SINGLE_VALUE.
2454 * value-prof.h (get_most_common_single_value):
2457 2019-06-10 Martin Liska <mliska@suse.cz>
2459 * hash-map.h: Pass default value to hash_table ctor.
2460 * hash-table.h: Add default value to call of a ctor.
2462 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
2464 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
2465 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
2467 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
2470 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
2471 Call pa_output_function_label.
2472 (TARGET_ASM_FUNCTION_PROLOGUE): define.
2473 * config/pa/pa-protos.h (pa_output_function_label): Declare.
2474 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
2476 (pa_linux_output_function_prologue): Declare.
2477 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
2478 (pa_output_function_label): New.
2479 (pa_output_function_prologue): Revise to use pa_output_function_label.
2480 (pa_linux_output_function_prologue): New.
2481 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
2483 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
2485 * tree-vrp.h (value_range_base::intersect): New.
2486 (value_range::intersect_helper): Move from here...
2487 (value_range_base::intersect_helper): ...to here.
2488 * tree-vrp.c (value_range::intersect_helper): Rename to...
2489 (value_range_base::intersect_helper): ...this, and rewrite to
2490 return a value instead of modifying THIS in place.
2491 Also, move equivalence handling...
2492 (value_range::intersect): ...here, while calling intersect_helper.
2493 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
2495 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
2497 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
2499 2019-06-07 Jakub Jelinek <jakub@redhat.com>
2501 * Makefile.in (genprogerr): Add condmd.
2502 (genprog): Remove it here.
2504 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
2506 * doc/invoke.texi (AMD GCN Options): Add gfx906.
2508 2019-06-07 Richard Biener <rguenther@suse.de>
2511 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
2512 that appear after user labels.
2514 2019-06-07 Martin Liska <mliska@suse.cz>
2516 * cselib.c (cselib_init): Disable hash table
2518 * hash-set.h: Pass new default argument to m_table.
2519 * hash-table.c: Add global variable with hash table
2521 * hash-table.h (Allocator>::hash_table): Add new argument
2523 (hashtab_chk_error): New.
2524 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
2525 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
2526 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
2528 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
2530 * common.opt (flto-odr-type-merging): Ignore.
2531 * invoke.texi (-flto-odr-type-merging): Remove.
2532 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
2533 (can_be_vtable_hashed_p): Remove.
2534 (hash_odr_vtable): Remove.
2535 (odr_vtable_hasher::hash): Remove.
2536 (types_same_for_odr): Remove.
2537 (types_odr_comparable): Remove.
2538 (odr_vtable_hasher::equal): Remove.
2539 (odr_vtable_hash_type, odr_vtable_hash): Remove.
2540 (add_type_duplicate): Do not synchronize vtable and name hashtables.
2541 (get_odr_type): Do not use vtable hash.
2542 (dump_odr_type): Remove commented out code.
2543 (build_type_inheritance_graph): Do not allocate vtable hash.
2544 (rebuild_type_inheritance_graph): Do not delete vtable hash.
2545 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
2546 (odr_type_p): Likewise.
2547 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
2550 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
2552 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
2553 immediately after same_types_for_tbaa_p returns -1 and continue
2554 looking for possible exact match; if matching types are arrays
2555 watch for partial overlaps.
2556 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
2557 (indirect_refs_may_alias_p): Do type based disambiguation first;
2560 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
2562 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
2564 2019-06-07 Martin Liska <mliska@suse.cz>
2566 * doc/invoke.texi: Remove param.
2567 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
2569 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
2570 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
2571 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
2572 * profile.c (instrument_values): Remove
2573 HIST_TYPE_INDIR_CALL_TOPN.
2574 * tree-profile.c (init_ic_make_global_vars):
2575 Always build __gcov_indirect_call only.
2576 (gimple_init_gcov_profiler): Remove usage
2577 of PARAM_INDIR_CALL_TOPN_PROFILE.
2578 (gimple_gen_ic_profiler): Likewise.
2579 * value-prof.c (dump_histogram_value): Likewise.
2580 (stream_in_histogram_value): Likewise.
2581 (gimple_indirect_call_to_profile): Likewise.
2582 (gimple_find_values_to_profile): Likewise.
2583 * value-prof.h (enum hist_type): Likewise.
2585 2019-06-07 Martin Liska <mliska@suse.cz>
2587 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
2590 2019-06-07 Martin Liska <mliska@suse.cz>
2592 PR tree-optimization/78902
2593 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
2594 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
2595 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
2596 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
2597 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
2598 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
2599 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
2600 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
2601 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
2602 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
2603 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
2604 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
2605 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
2607 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
2608 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
2609 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
2610 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
2611 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
2612 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
2613 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
2614 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
2615 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
2616 warn_unused_result attribute.
2617 (BUILT_IN_STRDUP): Likewise.
2618 (BUILT_IN_STRNDUP): Likewise.
2619 (BUILT_IN_ALLOCA): Likewise.
2620 (BUILT_IN_CALLOC): Likewise.
2621 (BUILT_IN_MALLOC): Likewise.
2622 (BUILT_IN_REALLOC): Likewise.
2624 2019-06-06 Jim Wilson <jimw@sifive.com>
2627 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
2628 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
2629 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
2631 2019-06-06 Martin Sebor <msebor@redhat.com>
2633 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
2634 (handle_builtin_malloc): Remove trailing spaces.
2635 (handle_builtin_memset): Same.
2636 (handle_builtin_memcmp): Same.
2637 (compute_string_length): Same.
2638 (determine_min_objsize): Same.
2639 (handle_builtin_string_cmp): Same.
2640 (handle_char_store): Same. Break up excessively long line.
2642 2019-06-06 Martin Jambor <mjambor@suse.cz>
2644 * tree-sra.c (build_reconstructed_reference): Drop the alignment
2647 2019-06-06 Martin Jambor <mjambor@suse.cz>
2649 * tree-sra.c (struct access): New field grp_same_access_path.
2650 (dump_access): Dump it.
2651 (build_reconstructed_reference): New function.
2652 (build_ref_for_model): Use it if possible.
2653 (path_comparable_for_same_access): New function.
2654 (same_access_path_p): Likewise.
2655 (sort_and_splice_var_accesses): Set the new flag.
2656 (analyze_access_subtree): Likewise.
2657 (propagate_subaccesses_across_link): Propagate zero value of the new
2658 flag down the access tree.
2660 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
2662 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
2663 * config/gcn/gcn.opt (gpu_type): Add gfx906.
2664 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
2665 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
2668 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2670 PR tree-optimization/90332
2671 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
2672 Handle VALS containing two vectors.
2673 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
2675 (@aarch64_combinez<mode>): ... This.
2676 (*aarch64_combinez_be<mode>): Rename to...
2677 (@aarch64_combinez_be<mode>): ... This.
2678 (vec_init<mode><Vhalf>): New define_expand.
2679 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
2681 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2683 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
2684 library functions only when not optimizing for size.
2685 (ashlsi3): Likewise.
2686 (ashrhi3): Likewise.
2687 (ashrsi3): Likewise.
2688 (lshrhi3): Likewise.
2689 (lshrsi3): Likewise.
2691 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
2693 PR rtl-optimization/88751
2694 * ira.c (ira): Use the number of the actually referenced registers
2695 when calculating the threshold.
2697 2019-06-06 Jakub Jelinek <jakub@redhat.com>
2699 * configure: Regenerate.
2701 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2703 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
2704 register if it is in memory, so the shift can be emulated with a rotate
2706 (ashrhi3): Likewise.
2707 (lshrhi3): Likewise.
2709 2019-06-06 Martin Liska <mliska@suse.cz>
2711 PR tree-optimization/87954
2712 * match.pd: Simplify mult where both arguments are 0 or 1.
2714 2019-06-06 Richard Biener <rguenther@suse.de>
2716 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
2717 put equivalences on UNDEFINED ranges.
2718 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
2719 Make sure to drop defs of stmts added during simplification
2722 2019-06-06 Richard Biener <rguenther@suse.de>
2724 * tree-ssa-structalias.c: Include tree-cfg.h.
2725 (make_heapvar): Do not make heap vars artificial.
2726 (find_func_aliases_for_builtin_call): Handle stack allocation
2728 (find_func_aliases): Delay processing of simple enough returns
2730 (set_uids_in_ptset): Adjust.
2731 (find_what_var_points_to): Likewise.
2732 (solve_constraints): Do not dump points-to sets here.
2733 (compute_points_to_sets): Post-process return statements,
2734 amending the escaped solution. Dump points-to sets afterwards.
2735 (ipa_pta_execute): Dump points-to sets.
2737 2019-06-06 Martin Liska <mliska@suse.cz>
2740 * doc/install.texi: Fix HTML headers and
2741 titles for 'Installing GCC' pages.
2743 2019-06-06 Martin Liska <mliska@suse.cz>
2745 * ipa-icf-gimple.h (dump_message_1): Remove.
2746 (dump_message): Likewise.
2747 (return_false_with_message_1): Print also file.
2748 (return_false_with_msg): Likewise.
2749 (return_with_result): Likewise.
2750 (return_with_debug): Likewise.
2751 * ipa-icf.c (sem_function::equals_private): Remove call
2754 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
2756 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
2757 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
2758 memory operand for it.
2759 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
2761 2019-06-05 Martin Sebor <msebor@redhat.com>
2763 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
2764 Adjust quoting and hyphenation.
2765 * convert.c (convert_to_real_1): Same.
2766 * gcc.c (driver_wrong_lang_callback): Same.
2767 (driver::handle_unrecognized_options): Same.
2768 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
2769 * opts-common.c (cmdline_handle_error): Same.
2770 (read_cmdline_option): Same.
2771 * opts-global.c (complain_wrong_lang): Same.
2772 (print_ignored_options): Same.
2773 (handle_common_deferred_options): Same.
2774 * pretty-print.h: Same.
2775 * print-rtl.c (debug_bb_n_slim): Same.
2776 * sched-rgn.c (make_pass_sched_fusion): Same.
2777 * tree-cfg.c (verify_gimple_assign_unary): Same.
2778 (verify_gimple_label): Same.
2779 * tree-ssa-operands.c (verify_ssa_operands): Same.
2780 * varasm.c (do_assemble_alias): Same.
2781 (assemble_alias): Same.
2783 2019-06-05 Richard Henderson <rth@twiddle.net>
2785 * config/alpha/alpha.c (direct_return): Move down after
2786 struct machine_function definition; use saved frame_size;
2788 (struct machine_function): Add sa_mask, sa_size, frame_size.
2789 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
2790 (alpha_compute_frame_layout): ... new function.
2791 (TARGET_COMPUTE_FRAME_LAYOUT): New.
2792 (alpha_initial_elimination_offset): Use saved sa_size.
2793 (alpha_vms_initial_elimination_offset): Likewise.
2794 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
2795 (alpha_expand_prologue): Use saved frame data. Merge integer
2796 and fp register save loops.
2797 (alpha_expand_epilogue): Likewise.
2798 (alpha_start_function): Use saved frame data.
2799 * config/alpha/alpha-protos.h (direct_return): Update.
2800 (alpha_sa_size): Remove.
2802 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
2804 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
2805 multiplication by a power-of-two value.
2806 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
2807 and turn the modulo operation into a masking operation.
2809 2019-06-05 Jakub Jelinek <jakub@redhat.com>
2812 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
2813 with VOIDmode inner operands.
2815 2019-06-05 Richard Biener <rguenther@suse.de>
2818 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
2819 turn an expression graph into a tree.
2821 2019-06-05 Jakub Jelinek <jakub@redhat.com>
2823 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
2825 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
2826 treat it like explicit monotonic schedule modifier.
2827 (expand_omp_for): Initialize has_lastprivate_conditional.
2828 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
2831 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
2832 references, lookup in in hash map MEM_REF operand instead of the
2834 (lower_omp_1): When looking for lastprivate conditional assignments,
2835 handle MEM_REFs with REFERENCE_TYPE operands.
2837 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
2838 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
2839 and references a VLA. Handle references to non-VLAs if is_simd
2840 all privatization clauses like reductions.
2841 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
2842 If omp_is_reference, use always omp simd arrays and set
2843 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
2844 fails, emit reference initialization.
2846 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
2849 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
2850 _mm_mask_fpclass_sd_mask): New intrinsics.
2851 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
2852 * config/i386/i386-builtin.def
2853 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
2855 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
2856 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
2857 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
2858 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
2859 case QI_FTYPE_V2SF_INT): Ditto.
2860 * config/i386/sse.md
2861 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
2862 Extended to insnstructions with mask operands.
2864 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
2866 * config/rs6000/constraints.md (define_register_constraint "wp"):
2868 (define_register_constraint "wq"): Delete.
2869 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
2870 (rs6000_init_hard_regno_mode_ok): Adjust.
2871 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
2872 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
2873 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
2874 (define_mode_attr VSa): Delete.
2875 (define_mode_attr VSisa): New.
2876 (rest of file): Adjust.
2877 * doc/md.texi (Machine Constraints): Adjust.
2879 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
2881 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
2882 (define_attr "enabled"): Handle those new isa values.
2884 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
2886 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
2887 (define_mode_attr VSr5): Delete.
2888 (define_mode_attr VStype_sqrt): Delete.
2889 (define_mode_iterator VSX_SPDP): Delete.
2890 (define_mode_attr VS_spdp_res): Delete.
2891 (define_mode_attr VS_spdp_insn): Delete.
2892 (define_mode_attr VS_spdp_type): Delete.
2893 (*vsx_sqrt<mode>2): Adjust.
2894 (vsx_<VS_spdp_insn>): Delete, split to...
2895 (vsx_xscvdpsp): ... this. New. And...
2896 (vsx_xvcvspdp): ... this. New. And...
2897 (vsx_xvcvdpsp): ... this. New.
2899 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
2901 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
2903 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
2904 (rest of file): Adjust.
2906 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
2908 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
2909 (vsx_extract_<mode>_var): Ditto.
2911 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
2913 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
2916 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
2918 * config/rs6000/constraints.md (define_register_constraint "ww"):
2920 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
2921 (rs6000_init_hard_regno_mode_ok): Adjust.
2922 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
2923 RS6000_CONSTRAINT_ww.
2924 * config/rs6000/rs6000.md: Adjust.
2925 * config/rs6000/vsx.md: Adjust.
2926 * doc/md.texi (Machine Constraints): Adjust.
2928 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
2930 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
2931 (define_mode_attr sd): New.
2932 (define_mode_attr s): New.
2933 (define_mode_attr Ftrad): Delete.
2934 (define_mode_attr Fvsx): Delete.
2935 (define_mode_attr Fs): Delete.
2936 (rest of file): Use the new mode attributes.
2937 * config.rs6000/vsx.md: Use the new mode attributes.
2939 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
2941 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
2944 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
2946 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
2947 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
2948 used with VSX_B, VSX_D, or VSX_F, with just "wa".
2950 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
2953 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
2954 C++ with strict ANSI requirements.
2956 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
2958 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
2959 computations when step is 1.
2961 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
2963 * config/rs6000/constraints.md (define_register_constraint "wf"):
2965 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
2966 (rs6000_init_hard_regno_mode_ok): Adjust.
2967 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
2968 RS6000_CONSTRAINT_wf.
2969 * config/rs6000/rs6000.md: Adjust.
2970 * config/rs6000/vsx.md: Adjust.
2971 * doc/md.texi (Machine Constraints): Adjust.
2973 2019-06-04 Andrew Pinski <apinski@marvell.com>
2975 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
2978 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
2980 * config/rs6000/constraints.md (define_register_constraint "wd"):
2982 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
2983 (rs6000_init_hard_regno_mode_ok): Adjust.
2984 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
2985 RS6000_CONSTRAINT_wd.
2986 * config/rs6000/rs6000.md: Adjust.
2987 * config/rs6000/vsx.md: Adjust.
2988 * doc/md.texi (Machine Constraints): Adjust.
2990 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
2992 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
2993 (rest of file): Adjust.
2995 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
2997 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
2998 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
2999 (vsx_splat_<mode>_reg): Adjust.
3001 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
3003 * config/rs6000/constraints.md (define_register_constraint "ws"):
3005 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
3006 (rs6000_init_hard_regno_mode_ok): Adjust.
3007 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
3008 RS6000_CONSTRAINT_ws.
3009 * config/rs6000/rs6000.md: Adjust.
3010 * config/rs6000/vsx.md: Adjust.
3011 * doc/md.texi (Machine Constraints): Adjust.
3013 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
3015 * config/rs6000/constraints.md (define_register_constraint "wv"):
3017 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
3018 (rs6000_init_hard_regno_mode_ok): Adjust.
3019 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
3020 RS6000_CONSTRAINT_wv.
3021 * config/rs6000/rs6000.md: Adjust.
3022 * config/rs6000/vsx.md: Adjust.
3023 * doc/md.texi (Machine Constraints): Adjust.
3025 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
3027 * config/rs6000/constraints.md (define_register_constraint "wi"):
3029 (define_register_constraint "wt"): Delete.
3030 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
3031 (rs6000_init_hard_regno_mode_ok): Adjust.
3032 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
3033 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
3034 * config/rs6000/rs6000.md: Adjust.
3035 * config/rs6000/vsx.md: Adjust.
3036 * doc/md.texi (Machine Constraints): Adjust.
3038 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
3040 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
3042 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
3043 default_elf_asm_output_external.
3045 2019-06-04 Martin Liska <mliska@suse.cz>
3047 * ipa-icf.c (INCLUDE_LIST): Remove.
3048 (sem_item_optimizer::execute): Remove call to init_wpa.
3049 * ipa-icf.h (init_wpa): Remove.
3051 2019-06-04 Jakub Jelinek <jakub@redhat.com>
3053 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
3054 conditional on combined for simd.
3055 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
3057 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
3058 constructs, don't remove lastprivate_conditional_map, but instead set
3059 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
3060 to parent construct temporaries.
3061 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
3062 like !ctx->lastprivate_conditional_map.
3063 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
3064 use up->outer context instead of up.
3065 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
3066 gimple_omp_for_combined_p.
3067 (expand_omp_for_static_nochunk): Likewise.
3068 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
3069 probably moved over into expand_omp_for_generic rather than being copied
3072 2019-06-04 Martin Liska <mliska@suse.cz>
3074 * value-prof.c (dump_histogram_value): Fix typo.
3075 (gimple_mod_subtract_transform): Likewise.
3077 2019-06-04 Richard Biener <rguenther@suse.de>
3080 * tree-chrec.c (chrec_contains_symbols): Add to visited.
3081 (tree_contains_chrecs): Likewise.
3082 (chrec_contains_symbols_defined_in_loop): Move here and avoid
3083 exponential behaivor from ...
3084 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
3086 (expression_expensive_p): Avoid exponential behavior and compute
3087 expanded size, rejecting any expansion.
3088 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
3089 (idx_contains_abnormal_ssa_name_p): Likewise.
3090 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
3091 (contains_abnormal_ssa_name_p): Simplify and use
3092 walk_tree_without_duplicates.
3094 2019-06-04 Richard Biener <rguenther@suse.de>
3096 PR tree-optimization/90738
3098 2019-06-03 Richard Biener <rguenther@suse.de>
3100 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
3101 full reference tree and record in ref->ref.
3102 (vn_reference_lookup_3): Pass in original ref to
3103 ao_ref_init_from_vn_reference.
3104 (vn_reference_lookup): Likewise.
3105 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
3106 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
3107 Handle non-decl bases in the original reference.
3109 2019-06-04 Martin Liska <mliska@suse.cz>
3111 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
3112 number of references.
3113 (sem_item_optimizer::do_congruence_step):
3114 (sem_item_optimizer::worklist_push): Dump how references
3116 (sem_item_optimizer::worklist_pop): Use heap.
3117 (sem_item_optimizer::process_cong_reduction): Likewise.
3118 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
3120 2019-06-04 Martin Liska <mliska@suse.cz>
3122 * ipa-icf.h (struct sem_usage_pair_hash): New.
3123 (sem_usage_pair_hash::hash): Likewise.
3124 (sem_usage_pair_hash::equal): Likewise.
3125 (struct sem_usage_hash): Likewise.
3126 * ipa-icf.c (sem_item::sem_item): Initialize
3127 referenced_by_count.
3128 (sem_item::add_reference): Register a reference
3129 in ref_map and not in target->usages.
3130 (sem_item::setup): Remove initialization of
3132 (sem_item::~sem_item): Remove usage of dead vectors.
3133 (sem_item::dump): Remove dump of references.
3134 (sem_item_optimizer::sem_item_optimizer): Initialize
3136 (sem_item_optimizer::read_section): Remove useless
3138 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
3139 (sem_item_optimizer::build_graph): Pass m_references
3141 (sem_item_optimizer::verify_classes): Remove usage of dead
3143 (sem_item_optimizer::traverse_congruence_split): Return true
3144 when a class is split.
3145 (sem_item_optimizer::do_congruence_step_for_index): Use
3146 hash_map for look up of (sem_item *, index). That brings
3147 significant speed up.
3148 (sem_item_optimizer::do_congruence_step): Return true
3149 when a split is done.
3150 (congruence_class::is_class_used): Use referenced_by_count.
3152 2019-06-04 Alan Modra <amodra@gmail.com>
3155 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
3158 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
3160 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
3161 * config/rs6000/rs6000.c (direct_move_p): Adjust.
3162 (rs6000_secondary_reload_simple_move): Adjust.
3163 (rs6000_opt_masks): Neuter the "mfpgpr" option.
3164 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
3165 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
3168 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
3169 (floatunssi<mode>2_lfiwzx): Adjust.
3170 (fix_trunc<mode>si2_stfiwx): Adjust.
3171 (fixuns_trunc<mode>si2_stfiwx): Adjust.
3172 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
3173 (mfpgpr): Mark as deprecated.
3174 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
3175 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
3176 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
3178 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
3180 * config/rs6000/constraints.md (define_register_constraint "wg"):
3182 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
3183 RS6000_CONSTRAINT_wg.
3184 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
3185 (rs6000_init_hard_regno_mode_ok): Adjust.
3186 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
3187 Delete "wg" alternatives.
3188 * doc/md.texi (Machine Constraints): Adjust.
3190 2019-06-03 Alan Modra <amodra@gmail.com>
3192 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
3193 (get_uncond_jump_length): Assert length less than INT_MAX and
3196 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
3199 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
3201 (expand_builtin_nonlocal_goto): Likewise.
3203 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
3205 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
3206 (aarch64_asm_output_external): Declare.
3207 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
3208 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
3209 (aarch64_asm_output_alias): New.
3210 (aarch64_asm_output_external): New.
3211 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
3212 (ASM_OUTPUT_EXTERNAL): Define.
3214 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
3215 * tree-vrp.h (value_range_base::nonzero_p): New.
3216 (value_range_base::set_nonnull): Rename to...
3217 (value_range_base::set_nonzero): ...this.
3218 (value_range_base::set_null): Rename to...
3219 (value_range_base::set_zero): ...this.
3220 (value_range::set_nonnull): Remove.
3221 (value_range::set_null): Remove.
3222 * tree-vrp.c (range_is_null): Remove.
3223 (range_is_nonnull): Remove.
3224 (extract_range_from_binary_expr): Use value_range_base::*zero_p
3225 instead of range_is_*null.
3226 (extract_range_from_unary_expr): Same.
3227 (value_range_base::set_nonnull): Rename to...
3228 (value_range_base::set_nonzero): ...this.
3229 (value_range::set_nonnull): Remove.
3230 (value_range_base::set_null): Rename to...
3231 (value_range_base::set_zero): ...this.
3232 (value_range::set_null): Remove.
3233 (extract_range_from_binary_expr): Rename set_*null uses to
3235 (extract_range_from_unary_expr): Same.
3236 (union_helper): Same.
3237 * vr-values.c (get_value_range): Use set_*zero instead of
3239 (vr_values::extract_range_from_binary_expr): Same.
3240 (vr_values::extract_range_basic): Same.
3242 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
3245 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
3247 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3249 * config/aarch64/iterators.md (MAX_OPP): New code attr.
3250 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Rename to...
3251 (aarch64_<su>abd<mode>_3): ... This.
3252 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
3254 2019-06-03 Richard Biener <rguenther@suse.de>
3256 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
3257 full reference tree and record in ref->ref.
3258 (vn_reference_lookup_3): Pass in original ref to
3259 ao_ref_init_from_vn_reference.
3260 (vn_reference_lookup): Likewise.
3261 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
3262 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
3263 Handle non-decl bases in the original reference.
3265 2019-06-03 Martin Liska <mliska@suse.cz>
3267 * doc/generic.texi: Remove Java Trees.
3269 2019-06-03 Martin Liska <mliska@suse.cz>
3271 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
3272 returns 0 when operands are equal.
3274 2019-06-03 Richard Biener <rguenther@suse.de>
3276 PR tree-optimization/90716
3277 * tree-loop-distribution.c (destroy_loop): Process blocks in
3280 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3283 * vector-builder.h (vector_builder::count_dups): New method.
3284 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
3286 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
3287 (vec_init<mode><Vel>): New pattern.
3288 * config/aarch64/aarch64.c (emit_insr): New function.
3289 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
3290 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
3291 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
3292 (aarch64_sve_expand_vector_init): Define two overloaded functions.
3294 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
3296 PR tree-optimization/90681
3297 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
3298 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
3299 special case for SLP, but fail on non-groupped loads.
3301 2019-06-03 Martin Liska <mliska@suse.cz>
3303 * cfg.c (debug): Use TDF_DETAILS for debug and
3304 print edge info only once.
3306 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
3309 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
3311 2019-06-01 Martin Sebor <msebor@redhat.com>
3314 * tree-pretty-print.c (dump_generic_node): Add parentheses.
3316 2019-05-31 Jan Hubicka <jh@suse.cz>
3318 * alias.c: Include ipa-utils.h.
3319 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
3320 * ipa-devirt.c (prevailing_odr_type): New.
3321 * ipa-utils.h (previaling_odr_type): Declare.
3323 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
3324 Hongtao Liu <hongtao.liu@intel.com>
3327 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
3328 NOTE_INSN_DELETED_LABEL check.
3330 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
3331 Robert Suchanek <robert.suchanek@mips.com>
3333 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
3334 and 3rd operands of the fmadd/fmsub/maddv builtin.
3336 2019-05-31 Jakub Jelinek <jakub@redhat.com>
3338 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
3339 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
3340 on OMP_SIMD if not nested inside of worksharing loop that also has
3341 lastprivate conditional clause for the same decl.
3342 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
3343 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
3345 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
3347 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
3349 (lower_lastprivate_clauses): Likewise.
3350 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
3351 calling lower_rec_input_clauses.
3352 (lower_omp_for): Likewise.
3353 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
3354 clause on simd construct.
3355 * omp-expand.c (expand_omp_simd): Initialize cond_var if
3356 OMP_CLAUSE__CONDTEMP_ clause is present.
3358 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
3361 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
3364 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
3365 TEX_D32, TEX_D64 or TEX_D128.
3367 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
3369 * match.pd (~(vec?cst1:cst2)): New transformation.
3371 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
3373 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
3374 ((size_t)(A /[ex] B) CMP C): New transformation.
3376 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
3378 * doc/md.texi: Document define_insn_and_rewrite.
3379 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
3380 * gensupport.c (queue_elem): Update comment.
3381 (replace_operands_with_dups): New function.
3382 (gen_rewrite_sequence): Likewise.
3383 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
3384 * read-rtl.c (apply_subst_iterator): Likewise.
3385 (add_condition_to_rtx, named_rtx_p): Likewise.
3386 (rtx_reader::read_rtx_operand): Likewise.
3387 * config/aarch64/aarch64-sve.md
3388 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
3389 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
3390 define_insn_and_rewrite.
3391 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
3392 Remove separate define_split.
3394 2019-05-31 Jan Hubicka <jh@suse.cz>
3396 * tree-ssa-alias.c (type_has_components_p): New function.
3397 (aliasing_component_refs_p): Use it.
3399 2019-05-31 Martin Liska <mliska@suse.cz>
3401 * gdbhooks.py: Add const_tree to TreePrinter.
3403 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
3406 * common.opt (feliminate-unused-debug-symbols): Enable by default.
3407 * doc/invoke.texi (Debugging Options): Document new default of
3408 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
3410 2019-05-31 Jakub Jelinek <jakub@redhat.com>
3412 PR tree-optimization/90671
3413 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
3414 template_block used to be empty on the first call, don't use
3415 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
3416 seq with bb_seq and set it with set_bb_seq.
3418 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
3420 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
3422 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
3423 Michael Meissner <meissner@linux.ibm.com>
3425 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
3426 (prefixed_mem_operand): Likewise.
3427 (non_prefixed_mem_operand): Likewise.
3428 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
3430 * config/rs6000/rs6000.c (print_operand_address): Handle
3431 PC-relative addresses.
3432 (mode_supports_prefixed_address_p): New function.
3433 (rs6000_prefixed_address): New function.
3434 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
3435 (SYMBOL_REF_PCREL_P): Likewise.
3437 2019-05-30 Jakub Jelinek <jakub@redhat.com>
3439 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
3440 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
3441 (gimplify_omp_for): If worksharing loop with lastprivate conditional
3442 is nested inside of parallel region, add _condtemp_ clause to both.
3443 * tree-nested.c (convert_nonlocal_omp_clauses,
3444 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
3446 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
3448 * omp-general.c (omp_extract_for_data): Compute it.
3449 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
3450 (lower_rec_input_clauses): Likewise.
3451 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
3452 clause is already present, just add one further one after it.
3453 (lower_lastprivate_clauses): Handle cond_ptr with array type.
3454 (lower_send_shared_vars): Clear _condtemp_ vars.
3455 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
3456 or section or taskgroup.
3457 * omp-expand.c (determine_parallel_type): Disallow combining only if
3458 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
3459 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
3460 (expand_omp_for_generic, expand_omp_for_static_nochunk,
3461 expand_omp_for_static_chunk, expand_omp_for): Use
3462 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
3463 determine if a special set of API routines are needed and if condtemp
3464 needs to be initialized, while always initialize cond_var if
3465 fd->lastprivate_conditional is non-zero.
3467 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
3468 Michael Meissner <meissner@linux.ibm.com>
3470 * config/rs6000/constraints.md (eI): New constraint.
3471 * config/rs6000/predicates.md (cint34_operand): New predicate.
3472 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
3473 (SIGNED_34BIT_OFFSET_P): Likewise.
3474 * doc/md.texi (eI): Document constraint.
3476 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
3478 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
3480 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
3481 Michael Meissner <meissner@linux.ibm.com>
3483 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
3484 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
3485 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
3486 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
3487 (OTHER_FUTURE_MASKS): Likewise.
3488 (POWERPC_MASKS): Likewise.
3489 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
3490 specified without -mprefixed-addr or -mcpu=future. Error if
3491 -mprefixed-addr is specified without -mcpu=future.
3492 (rs6000_opt_masks): Add entry for prefixed-addr.
3493 * rs6000.opt (mprefixed-addr): New option.
3495 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
3497 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
3498 cfun->is_thunk check.
3500 2019-05-30 Jakub Jelinek <jakub@redhat.com>
3502 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
3505 2019-05-30 Martin Liska <mliska@suse.cz>
3507 * gdbinit.in: Fix 'ptc' command. Add trt
3508 that prints TREE_TYPE($).
3510 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
3511 Alan Modra <amodra@gmail.com>
3513 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
3515 (rs6000_indirect_call_template_1): ...and here.
3516 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
3517 plt16_ha, plt16_lo, mtctr indirect calls. Use
3519 (rs6000_decl_ok_for_sibcall): New function.
3520 (rs6000_function_ok_for_sibcall): Refactor.
3521 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
3522 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
3523 when pcrel. Reorganize.
3524 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
3525 * rs6000.h (rs6000_pltseq_enum): New enum.
3526 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
3527 (*pltseq_tocsave): Use rs6000_pltseq_enum.
3528 (*pltseq_plt16_ha): Likewise.
3529 (*pltseq_plt16_lo): Likewise.
3530 (*pltseq_mtctr): Likewise.
3531 (*pltseq_plt_pcrel): New insn.
3532 (*call_local_aix): Handle @notoc calls.
3533 (*call_value_local_aix): Likewise.
3534 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
3535 (*call_value_nonlocal_aix): Likewise.
3536 (*call_indirect_pcrel): New insn.
3537 (*call_value_indirect_pcrel): Likewise.
3540 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
3542 * config/i386/sse.md (*save_multiple<mode>): Rename from
3543 save_multiple<mode>.
3544 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
3545 (*restore_multiple_and_return<mode>): Rename from
3546 restore_multiple_and_return<mode>.
3547 (*restore_multiple_leave_return<mode>): Rename from
3548 restore_multiple_leave_return<mode>.
3550 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
3552 * config.gcc (rx-*-linux*): New target.
3553 * config/rx/elf.opt: New file.
3554 * config/rx/linux.h: Likewise.
3555 * config/rx/t-linux: Likewise.
3556 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
3558 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
3559 (ASM_APP_OFF): Likewise.
3560 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
3563 2019-05-29 Jan Hubicka <jh@suse.cz>
3565 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
3566 variants are pointer equivalent.
3568 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
3570 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
3571 * config/aarch64/aarch64-sve2.md: New file.
3572 (<u>avg<mode>3_floor): New pattern.
3573 (<u>avg<mode>3_ceil): Likewise.
3574 (*<sur>h<addsub><mode>): Likewise.
3575 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
3576 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
3578 2019-05-29 Jakub Jelinek <jakub@redhat.com>
3581 * optc-save-gen.awk: In cl_optimization_print, use correct condition
3582 for var_opt_string printing. In cl_optimization_print_diff, print
3583 (null) instead of invoking undefined behavior if one of the
3584 var_opt_string pointers is NULL and use && instead of first || in the
3585 guarding condition. For var_target_other options, handle const char *
3586 target variables similarly to const char * optimize node variables.
3588 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
3590 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
3591 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
3592 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
3593 Add autib1716 and pacib1716 initialisation.
3594 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
3595 for autib1716 and pacib1716.
3596 * config/aarch64/aarch64-protos.h (aarch64_key_type,
3597 aarch64_post_cfi_startproc): Define.
3598 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
3599 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
3600 aarch64_handle_pac_ret_protection): Set default sign key to A.
3601 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
3602 aarch64_expand_prologue): Add check for b-key.
3603 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
3604 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
3605 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
3606 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
3607 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
3608 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
3609 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
3610 * config/aarch64/aarch64.md (do_return): Add check for b-key.
3611 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
3612 pauth_hint_num_a with pauth_hint_num.
3613 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
3614 pauth_hint_num_a with pauth_hint_num.
3615 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
3616 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
3617 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
3618 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
3619 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
3620 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
3621 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
3622 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
3623 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
3624 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
3625 UNSPEC_AUTIA1716 respectively.
3626 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to pauth_hint_num
3627 and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP, UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
3628 * doc/invoke.texi (-mbranch-protection): Add b-key type.
3629 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
3630 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
3632 2019-05-29 Jakub Jelinek <jakub@redhat.com>
3634 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
3635 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
3636 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
3637 explicit clause on combined parallel into implicit shared clause.
3638 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
3639 and firstprivate if the decl has one too from combined parallel to
3640 the worksharing construct.
3642 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
3643 Michael Meissner <meissner@linux.ibm.com>
3645 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
3647 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
3649 * rtl.h (LABEL_REF_P): New #define.
3651 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
3653 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
3655 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
3657 * internal-fn.c: Marked mask_load_direct as vectorizable.
3658 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
3659 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
3660 combined even if masks different with allow_slp_p param.
3661 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
3662 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
3663 dissolve SLP-only vectorizable groups when SLP has been discarded.
3664 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
3665 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
3667 (vect_build_slp_tree_1): Fixed comment typo.
3668 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
3669 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
3671 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
3673 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
3675 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3677 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
3678 Remove obsolete use_thunk reference.
3679 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
3680 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
3681 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
3682 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
3683 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
3684 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
3685 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
3686 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
3687 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
3689 2019-05-28 Nathan Sidwell <nathan@acm.org>
3691 * tree.h (IDENTIFIER_ANON_P): New.
3692 (anon_aggrname_format, anon_aggname_p): Don't declare.
3693 (make_anon_name): Declare.
3694 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
3695 (hash_tree): Likewise.
3696 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
3697 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
3698 (anon_cnt, make_anon_name): New.
3700 2019-05-28 Martin Liska <mliska@suse.cz>
3703 * opts-global.c (decode_options): Print help for all
3704 help_option_arguments.
3705 * opts.c (print_help): Add new argument.
3706 (common_handle_option): Remember all values into
3707 help_option_arguments.
3708 * opts.h (print_help): Add new argument.
3710 2019-05-28 Martin Liska <mliska@suse.cz>
3713 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
3714 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
3715 (func_checker::compare_bb): Call compare_loops.
3717 2019-05-27 Jakub Jelinek <jakub@redhat.com>
3719 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
3720 on sections construct.
3721 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
3723 (lower_omp_sections): Handle lastprivate conditional.
3724 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
3725 lastprivate_conditional_map.
3726 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
3728 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
3729 critical, taskgroup and section regions when looking for a region
3730 with non-NULL lastprivate_conditional_map.
3732 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
3734 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
3735 (*ix86_gen_sub3): Ditto.
3736 (*ix86_gen_sub3_carry): Ditto.
3737 (*ix86_gen_one_cmpl2): Ditto.
3738 (*ix86_gen_andsp): Ditto.
3739 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
3740 (gen_and2_insn): New static function.
3741 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
3742 Use gen_add3_insn instead of ix86_gen_add3.
3743 (ix86_expand_split_stack_prologue): Use gen_add2_insn
3744 instead of ix86_gen_add3.
3745 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
3746 Use gen_sub3_insn instead of ix86_gen_sub3.
3747 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
3748 instead of ix86_gen_add3.
3749 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
3750 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
3751 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
3752 * config/i386/i386-options.c (ix86_option_override_internal):
3753 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
3754 ix86_gen_one_cmpl2 and ix86_gen_andsp.
3756 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
3758 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
3759 and DW_OP_GNU_const_index opcodes.
3761 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
3763 * config/i386/i386.h (STACK_SIZE_MODE): Define.
3765 2019-05-27 Richard Biener <rguenther@suse.de>
3767 PR tree-optimization/90637
3768 * tree-ssa-sink.c (statement_sink_location): Honor the
3769 computed sink location for single-uses.
3771 2019-05-27 Richard Biener <rguenther@suse.de>
3774 * match.pd (vec_perm): Avoid clobbering op0 when not generating
3777 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
3779 * config/i386/i386.md (@sub<mode>3_carry): Rename
3780 from sub<mode>3_carry.
3781 (@leave_<mode>): New expander.
3782 (*leave): Rename from leave.
3783 (*leave_rex64): Rename from leave_rex64.
3784 (@monitorx_<mode>): Rename from monitorx_<mode>.
3785 (@clzero_<mode>): Rename from clzero_<mode>.
3786 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
3787 from sse3_monitor_<mode>.
3788 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
3789 (*ix86_gen_leave): Ditto.
3790 (*ix86_gen_monitor): Ditto.
3791 (*ix86_gen_monitorx): Ditto.
3792 (*ix86_gen_clzero): Ditto.
3793 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
3794 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
3795 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
3796 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
3797 Use gen_sse3_monitor instead of ix86_gen_monitor.
3798 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
3799 instead of ix86_gen_monitorx.
3800 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
3801 instead of ix86_gen_clzero.
3802 * config/i386/i386-options.c (ix86_option_override_internal):
3803 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
3804 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
3806 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
3808 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
3809 Rename from tls_global_dynamic_64_<mode>.
3810 (@tls_local_dynamic_base_64_<mode>): Rename from
3811 tls_local_dynamic_base_64_<mode>.
3812 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
3813 Remove indirect function.
3814 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
3815 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
3816 instead of ix86_gen_tls_global_dynamic_64.
3817 Use gen_tls_local_dynamic_base_64 instead of
3818 ix86_gen_tls_local_dynamic_base_64.
3819 * config/i386/i386-options.c (ix86_option_override_internal):
3820 Do not initialize ix86_gen_tls_global_dynamic_64 and
3821 ix86_gen_tls_local_dynamic_base_64.
3823 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
3825 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
3826 Rename from pro_epilogue_adjust_stack_<mode>_add.
3827 (@pro_epilogue_adjust_stack_sub_<mode>)
3828 Rename from pro_epilogue_adjust_stack_<mode>_sub.
3829 (@allocate_stack_worker_probe_<mode>):
3830 Rename from allocate_stack_worker_probe_<mode>.
3831 (allocate_stack): Use gen_allocate_stack_worker_probe.
3832 (probe_stack): Use gen_probe_stack_1.
3833 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
3834 (@adjust_stack_and_probe_<mode>): Rename from
3835 adjust_stack_and_probe<mode>.
3836 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
3837 (stack_protect_set): Use gen_stack_protect_set_1.
3838 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
3839 (stack_protect_test): Use gen_stack_protect_test_1.
3840 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
3841 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
3842 Remove indirect function.
3843 (*ix86_gen_adjust_stack_and_probe): Ditto.
3844 (*ix86_gen_probe_stack_range): Ditto.
3845 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
3846 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
3847 (ix86_adjust_stack_and_probe_stack_clash): Use
3848 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
3849 (ix86_adjust_stack_and_probe): Ditto.
3850 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
3851 of ix86_gen_probe_stack_range.
3852 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
3853 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
3854 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
3855 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
3856 CODE_FOR_stack_protect_test_{si,di}.
3857 * config/i386/i386-options.c (ix86_option_override_internal):
3858 Do not initialize ix86_gen_allocate_stack_worker,
3859 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
3861 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
3863 * doc/invoke.texi (Link Options): Many editorial changes around
3866 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3868 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
3869 pre-Solaris 11 referene and most Studio compiler details.
3871 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
3874 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
3875 DImode to SImode in floating-point registers on 64-bit target.
3876 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
3877 register_operand in xmpyu patterns.
3879 2019-05-24 Jakub Jelinek <jakub@redhat.com>
3881 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
3882 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
3883 OMP_CLAUSE__REDUCTEMP_.
3884 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
3885 OMP_CLAUSE__CONDTEMP_.
3886 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
3887 * tree-pretty-print.c (dump_omp_clause): Likewise.
3888 * tree-nested.c (convert_nonlocal_omp_clauses,
3889 convert_local_omp_clauses): Likewise.
3890 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
3891 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
3892 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
3894 (gimplify_omp_for): Warn and disable conditional modifier from
3895 lastprivate on loop iterators.
3896 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
3898 * omp-general.c (omp_extract_for_data): Initialize it.
3899 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
3901 (delete_omp_context): Delete it.
3902 (lower_lastprivate_conditional_clauses): New function.
3903 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
3904 handle lastprivate conditional clauses.
3905 (lower_reduction_clauses): Add CLIST argument, emit it into
3906 the critical section if any.
3907 (lower_omp_sections): Adjust lower_lastprivate_clauses and
3908 lower_reduction_clauses callers.
3909 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
3910 to lower_lastprivate_clauses.
3911 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
3912 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
3913 clist into a critical section if not emitted there already by
3914 lower_reduction_clauses.
3915 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
3917 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
3918 conditional variables.
3919 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
3921 (expand_omp_for_generic, expand_omp_for_static_nochunk,
3922 expand_omp_for_static_chunk): Handle lastprivate conditional.
3923 (expand_omp_for): Handle fd.lastprivate_conditional like
3926 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
3928 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
3929 kernel does not exit cleanly.
3930 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
3932 2019-05-24 Jason Merrill <jason@redhat.com>
3935 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
3937 2019-05-24 Richard Biener <rguenther@suse.de>
3940 * tree-loop-distribution.c (struct partition): Add location
3942 (partition_alloc): Initialize all fields.
3943 (generate_memset_builtin): Use the location recorded in the
3944 partition for the generated call.
3945 (generate_memcpy_builtin): Likewise.
3946 (classify_partition): Record the location of a single store
3947 as location for the partition.
3949 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
3951 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
3954 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
3957 * common/config/aarch64/aarch64-common.c
3958 (aarch64_rewrite_selected_cpu): Change local temporary variable
3959 type from unsigned long to uint64_t.
3960 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
3961 aarch64_get_extension_string_for_isa_flags): Change declaration to
3962 match new definition by replacing unsigned long with uint64_t.
3964 2019-05-24 Jakub Jelinek <jakub@redhat.com>
3967 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
3968 gen_attr_type just once instead of 4-7 times. Formatting fixes.
3969 Handle stack_protect_test_<mode> codegen similarly to corresponding
3972 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
3974 * config/i386/darwin.h: Reject -mfentry*.
3975 * doc/sourcebuild.texi: Document mfentry target support.
3977 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
3979 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
3980 Rename to rs6000_global_entry_point_prologue_needed_p. Return
3981 false for PC-relative functions.
3982 (rs6000_output_function_prologue): Change called function name to
3983 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
3984 name,1" for PC-relative functions.
3985 (rs6000_elf_declare_function_name): Change called function name to
3986 rs6000_global_entry_point_prologue_needed_p.
3988 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
3991 * config/i386/i386.c (gen_rtx_cost):
3992 Use ix86_tune_cost instead of ix86_cost.
3994 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
3995 Michael Meissner <meissner@linux.ibm.com>
3996 Segher Boessenkool <segher@kernel.crashing.org>
3998 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
4000 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
4001 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
4002 (rs6000_fndecl_pcrel_p): Likewise.
4003 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
4004 error if -mpcrel is requested without -mcpu=future.
4005 (rs6000_opt_masks): Add entry for pcrel.
4006 (rs6000_fndecl_pcrel_p): New function.
4007 (rs6000_pcrel_p): Likewise.
4008 * config/rs6000/rs6000.opt (mpcrel): New option.
4009 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
4011 2019-05-23 Jan Hubicka <jh@suse.cz>
4012 Martin Liska <mliska@suse.cz>
4014 PR tree-optimization/90576
4015 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
4017 (aliasing_component_refs_p): Fix three way size compare conditional;
4018 give up earlier in case we can not decide on equivalence.
4020 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
4021 Michael Meissner <meissner@linux.ibm.com>
4022 Segher Boessenkool <segher@kernel.crashing.org>
4024 * config.gcc: Add future cpu.
4025 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
4026 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
4028 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
4029 (RS6000_CPU): New instantiation for future cpu.
4030 * config/rs6000/rs6000-opts.h (enum processor_type): Add
4032 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
4033 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
4034 * config/rs6000/rs6000-tables.opt: Regenerate.
4035 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
4036 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
4037 (rs6000_machine_from_flags): Handle future cpu.
4038 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
4039 PROCESSOR_POWER9 for now.
4040 (rs6000_adjust_cost): Likewise.
4041 (rs6000_issue_rate): Likewise.
4042 (rs6000_register_move_cost): Likewise.
4043 (rs6000_opt_masks): Add entry for future.
4044 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
4045 (MASK_FUTURE): New #define.
4046 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
4047 * config/rs6000/rs6000.opt (mfuture): New target option.
4048 * doc/invoke.texi (mcpu): Add future cpu.
4050 2019-05-23 Martin Liska <mliska@suse.cz>
4053 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
4054 operation points to a temporary (pointed via tree_to_wide_ref)
4055 that is out of scope after the &.
4057 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
4060 * doc/extend.texi (Function Names): Add missing word.
4062 2019-05-23 Richard Biener <rguenther@suse.de>
4064 PR tree-optimization/88440
4065 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
4067 * tree-loop-distribution.c (generate_memset_builtin): Fold the
4069 (generate_memcpy_builtin): Likewise.
4070 (distribute_loop): Pass in whether to only distribute patterns.
4071 (prepare_perfect_loop_nest): Also allow size optimization.
4072 (pass_loop_distribution::execute): When optimizing a loop
4073 nest for size allow pattern replacement.
4075 2019-05-23 Jakub Jelinek <jakub@redhat.com>
4078 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
4081 2019-05-23 Martin Liska <mliska@suse.cz>
4084 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
4085 expression similarly to gimplify_decl_expr.
4087 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4089 * cse.c (cse_dump_path): s/dump_file/f.
4091 2019-05-22 David Malcolm <dmalcolm@redhat.com>
4094 * diagnostic-format-json.cc: Include "selftest.h".
4095 (json_from_expanded_location): Only add "file" key for non-NULL
4097 (json_from_location_range): Don't add "start" and "finish"
4098 children if they are UNKNOWN_LOCATION.
4099 (selftest::test_unknown_location): New selftest.
4100 (selftest::test_bad_endpoints): New selftest.
4101 (selftest::diagnostic_format_json_cc_tests): New function.
4102 * json.cc (json::object::get): New function.
4103 (selftest::test_object_get): New selftest.
4104 (selftest::json_cc_tests): Call it.
4105 * json.h (json::object::get): New decl.
4106 * selftest-run-tests.c (selftest::run_tests): Call
4107 selftest::diagnostic_format_json_cc_tests.
4108 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
4111 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
4112 Andrew Stubbs <amd@codesourcery.com>
4114 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
4115 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
4116 (kernel): Rename to...
4117 (main_kernel): ... this.
4118 (load_image): Load _init_array and _fini_array kernels.
4119 (run): Add argument for kernel to run.
4120 (main): Run init_array_kernel before main_kernel, and
4121 fini_array_kernel after.
4122 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
4123 amdgpu_hsa_kernel attribute on functions.
4124 (gcn_disable_constructors): Delete.
4125 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
4126 * config/gcn/crt0.c (size_t): Define.
4127 (_init_array, _fini_array): New.
4128 (__preinit_array_start, __preinit_array_end,
4129 __init_array_start, __init_array_end,
4130 __fini_array_start, __fini_array_end): Declare weak references.
4132 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
4134 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
4136 2019-05-22 Jason Merrill <jason@redhat.com>
4138 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
4140 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
4143 * config/i386/i386-options.c (ix86_init_machine_status): Set
4144 stack_frame_required to true.
4145 * config/i386/i386.c (ix86_get_frame_size): New function.
4146 (ix86_frame_pointer_required): Replace get_frame_size with
4147 ix86_get_frame_size.
4148 (ix86_compute_frame_layout): Likewise.
4149 (ix86_find_max_used_stack_alignment): Changed to void. Set
4150 stack_frame_required.
4151 (ix86_finalize_stack_frame_flags): Always call
4152 ix86_find_max_used_stack_alignment. Replace get_frame_size with
4153 ix86_get_frame_size.
4154 * config/i386/i386.h (machine_function): Add stack_frame_required.
4156 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
4158 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
4160 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
4162 * common/config/aarch64/aarch64-common.c
4163 (struct aarch64_option_extension, struct processor_name_to_arch,
4164 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
4165 aarch64_contains_opt,
4166 aarch64_get_extension_string_for_isa_flags): Change type of
4167 variables storing flags to uint64_t.
4168 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
4169 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
4170 * config/aarch64/aarch64.c (struct processor,
4171 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
4172 aarch64_validate_march, aarch64_override_options,
4173 aarch64_option_print, aarch64_handle_attr_isa_flags,
4174 aarch64_declare_function_name, aarch64_start_file): Make flag
4176 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
4177 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
4178 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
4179 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
4180 * config/aarch64/driver-aarch64.c
4181 (struct aarch64_arch_extension, struct aarch64_core_data,
4182 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
4183 flag variables uint64_t.
4184 * doc/invoke.texi: Add documentation for new arguments.
4186 2019-05-22 Richard Biener <rguenther@suse.de>
4188 * alias.c (ao_ref_from_mem): Move stack-slot sharing
4190 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
4192 2019-05-22 Martin Liska <mliska@suse.cz>
4195 * doc/extend.texi: Document the change.
4197 2019-05-22 Richard Biener <rguenther@suse.de>
4199 PR tree-optimization/90450
4200 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
4201 (mem_ref_hasher::equal): Check it.
4202 (mem_ref_alloc): Initialize it.
4203 (gather_mem_refs_stmt): Set it.
4205 2019-05-22 Richard Biener <rguenther@suse.de>
4207 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
4209 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
4212 2019-05-22 Alan Modra <amodra@gmail.com>
4214 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
4215 (ASM_CPU_SPEC): Conditionally add -many.
4216 * config/rs6000/rs6000.c (rs6000_machine): New static var.
4217 (rs6000_machine_from_flags, emit_asm_machine): New functions..
4218 (rs6000_file_start): ..extracted from here, and modified to
4220 (rs6000_output_function_prologue): Emit .machine as necessary.
4221 * testsuite/gcc.target/powerpc/ppc32-abi-dfp-1.c: Don't use
4223 * testsuite/gcc.dg/vect/O3-pr70130.c: Disable default options
4224 added by check_vect_support_and_set_flags.
4225 * testsuite/gcc.dg/vect/pr48765.c: Likewise.
4226 * testsuite/gfortran.dg/vect/pr45714-b.f: Likewise.
4228 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
4231 * ira-lives.c (process_bb_node_lives): Consider defs
4232 for a call insn to be die before the call, not after.
4234 * function.c (assign_parm_setup_block): Raise alignment of
4235 stacked parameter only for STRICT_ALIGNMENT targets.
4237 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
4239 * config/rs6000/constraints.md (define_register_constraint "wz"):
4241 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
4242 RS6000_CONSTRAINT_wz.
4243 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
4244 (rs6000_init_hard_regno_mode_ok): Adjust.
4245 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
4246 * doc/md.texi (Machine Constraints): Adjust.
4248 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
4250 * config/rs6000/constraints.md (define_register_constraint "wl"):
4252 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
4253 RS6000_CONSTRAINT_wl.
4254 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
4255 (rs6000_init_hard_regno_mode_ok): Adjust.
4256 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
4257 * doc/md.texi (Machine Constraints): Adjust.
4259 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
4261 * config/rs6000/constraints.md (define_register_constraint "wm"):
4263 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
4264 RS6000_CONSTRAINT_wm.
4265 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
4266 (rs6000_init_hard_regno_mode_ok): Adjust.
4267 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
4268 * doc/md.texi (Machine Constraints): Adjust.
4270 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
4272 * config/rs6000/constraints.md (define_register_constraint "wk"):
4274 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
4275 RS6000_CONSTRAINT_wk.
4276 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
4277 (rs6000_init_hard_regno_mode_ok): Adjust.
4278 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
4279 * doc/md.texi (Machine Constraints): Adjust.
4281 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
4283 * config/rs6000/constraints.md (define_register_constraint "wj"):
4285 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
4286 RS6000_CONSTRAINT_wj.
4287 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
4288 (rs6000_init_hard_regno_mode_ok): Adjust.
4289 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
4291 * config/rs6000/vsx.md: Ditto.
4292 * doc/md.texi (Machine Constraints): Adjust.
4294 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
4296 * config/rs6000/constraints.md (define_register_constraint "wh"):
4298 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
4299 RS6000_CONSTRAINT_wh.
4300 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
4301 (rs6000_init_hard_regno_mode_ok): Adjust.
4302 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
4303 * doc/md.texi (Machine Constraints): Adjust.
4305 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
4308 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
4309 Avoid calling gen_lowpart with CONST operand.
4311 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
4313 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
4314 field template_last_to_copy.
4315 (ssa_create_duplicates): Set it, and use it. Attempt to
4316 preserve more debug stmts.
4318 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
4320 * config/i386/sse.md (VF1_AVX2): New mode iterator.
4321 (signbit<mode>2): New expander
4323 2019-05-21 James Clarke <jrtc27@jrtc27.com>
4326 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
4327 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
4329 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
4331 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
4332 %ebx and %ecx bafore calling cpuid with leaf 1 or
4333 non-constant leaf argument.
4335 2019-05-21 Alan Modra <amodra@gmail.com>
4338 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
4339 power9 direct move cost.
4340 * testsuite/gcc.target/powerpc/fold-vec-splats-floatdouble.c:
4341 Correct comments and rename functions to suit parameters.
4343 2019-05-21 Richard Biener <rguenther@suse.de>
4346 * fold-const.c (fold_read_from_vector): New function.
4347 * fold-const.h (fold_read_from_vector): Declare.
4348 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
4349 single-element insert permutations. Canonicalize selector
4350 further and fix issue with last commit.
4352 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
4354 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
4355 parameter with default value false to declaration.
4356 (split_edges_for_insertion): New inline function. Wrapper for
4357 split_critical_edges with for_edge_insertion_p = true.
4358 * tree-cfg.c (split_critical_edges): Don't split non-critical
4359 edges if for_edge_insertion_p is false. Fix whitespace.
4360 * tree-ssa-pre.c (pass_pre::execute): Call
4361 split_edges_for_insertion instead of split_critical_edges.
4362 * gcc/tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
4363 * gcc/tree-ssa-sink.c (pass_sink_code::execute): Ditto.
4364 (pass_data_sink_code): Update function name in the comment.
4366 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
4368 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
4369 around is_value_included_in that knows how to handle BIT_AND_EXPR.
4370 (is_pred_expr_subset_of): Use the new function. Handle more cases where
4371 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
4374 2019-05-21 Martin Liska <mliska@suse.cz>
4376 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
4378 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
4379 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
4381 * config/rs6000/rs6000.c (rs6000_option_override_internal):
4383 (rs6000_function_arg): Likewise.
4384 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
4385 (rs6000_expand_ternop_builtin): Use interval syntax.
4386 (get_element_number): Likewise.
4387 (altivec_expand_builtin): Likewise.
4388 (rs6000_get_function_versions_dispatcher): Quote target_clones.
4392 2019-05-20 Jakub Jelinek <jakub@redhat.com>
4396 * function.h (struct function): Add calls_eh_return member.
4397 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
4398 gimplifying __builtin_eh_return call.
4399 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
4401 (expand_call_inline): Or in src_cfun->calls_eh_return into
4402 dst_cfun->calls_eh_return.
4403 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
4404 cfun->calls_eh_return.
4405 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
4406 * lto-streamer-out.c (output_struct_function_base): Write
4409 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
4411 PR rtl-optimization/43147
4412 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
4413 IX86_BUILTIN_SHUFPD.
4415 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
4417 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
4418 (refs_may_alias_p_1): ... here; update stats.
4419 (refs_may_alias_p): Do not update stats here.
4421 2019-05-20 Richard Biener <rguenther@suse.de>
4423 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
4424 doesn't produce pointers.
4425 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
4426 the first operand points to.
4428 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
4430 * tree-ssa-alias.c (compare_sizes): New function.
4431 (sompare_type_sizes): New function
4432 (aliasing_component_refs_p): Use it.
4433 (indirect_ref_may_alias_decl_p): Likewise.
4435 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4437 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
4439 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4441 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
4442 (LIBLSAN_EARLY_SPEC): Likewise.
4443 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
4445 2019-05-20 Martin Liska <mliska@suse.cz>
4447 * config/i386/i386.c (ix86_libc_has_fast_function):
4448 Add ATTRIBUTE_UNUSED for the argument.
4450 2019-05-20 Richard Biener <rguenther@suse.de>
4452 * gimple-match-head.c: Include vec-perm-indices.h.
4453 * generic-match-head.c: Likewise.
4454 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
4456 * fold-const.c (fold_vec_perm): Export.
4457 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
4458 (match.pd): ...here.
4460 2019-05-20 Jakub Jelinek <jakub@redhat.com>
4462 * cfgloop.h (struct loop): Add simdlen member.
4463 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
4464 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
4465 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
4466 as new argument to autovectorize_vector_sizes target hook. If
4467 loop->simdlen, pick up vector size where the vectorization factor
4468 is equal to loop->simd, and if there is none, fall back to the first
4470 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
4472 * omp-low.c (omp_clause_aligned_alignment): Likewise.
4473 * omp-general.c (omp_max_vf): Likewise.
4474 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
4475 * tree-vect-slp.c (vect_slp_bb): Likewise.
4476 * target.def (autovectorize_vector_sizes): Add ALL argument and
4478 * doc/tm.texi: Adjust documentation.
4479 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
4480 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
4481 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
4483 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
4484 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
4485 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
4486 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
4487 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
4488 preferred vector size is not 512-bit or 256-bit, just put those
4489 unpreferred ones last.
4491 2019-05-20 Martin Liska <mliska@suse.cz>
4493 * targhooks.c (default_libc_has_fast_function): New function.
4494 * targhooks.h (default_libc_has_fast_function): Likewise.
4496 2019-05-20 Martin Liska <mliska@suse.cz>
4499 * builtins.c (expand_builtin_memory_copy_args): When having a
4500 target with fast mempcpy implementation do now use memcpy.
4501 * config/i386/i386.c (ix86_libc_has_fast_function): New.
4502 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
4503 * doc/tm.texi: Likewise.
4504 * doc/tm.texi.in: Likewise.
4506 * expr.c (emit_block_move_hints): Add 2 new arguments.
4507 * expr.h (emit_block_move_hints): Bail out when libcall
4508 to memcpy would be used.
4510 2019-05-20 Martin Liska <mliska@suse.cz>
4512 * profile-count.c: Add vertical spacing in order
4513 to separate functions.
4514 * profile-count.h: Likewise.
4516 2019-05-20 Martin Liska <mliska@suse.cz>
4518 * profile-count.h: Do not use full qualified
4520 * profile-count.c (profile_count::to_frequency): Likewise.
4522 2019-05-20 Martin Liska <mliska@suse.cz>
4524 * profile-count.h (enum profile_quality): Use capital letters
4525 for enum value names. Use the adjusted names.
4526 * profile-count.c: Use the adjusted names.
4528 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
4530 * config/rs6000/constraints.md (define_register_constraint "wH"):
4532 (define_register_constraint "wI"): Delete.
4533 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
4534 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
4535 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
4536 (rs6000_init_hard_regno_mode_ok): Adjust.
4537 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
4538 resp. "d", or with "wa" as appropriate, all with "p8v".
4539 * config/rs6000/vsx.md: Ditto.
4540 * doc/md.texi (Machine Constraints): Adjust.
4542 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
4544 * config/rs6000/constraints.md (define_register_constraint "wy"):
4546 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
4547 RS6000_CONSTRAINT_wy.
4548 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
4549 (rs6000_init_hard_regno_mode_ok): Adjust.
4550 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
4551 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
4552 (define_mode_attr Fisa): New.
4553 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
4554 * doc/md.texi (Machine Constraints): Adjust.
4556 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
4558 * config/rs6000/constraints.md (define_register_constraint "wu"):
4560 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
4561 RS6000_CONSTRAINT_wu.
4562 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
4563 (rs6000_init_hard_regno_mode_ok): Adjust.
4564 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
4566 (define_mode_attr Fa): Delete.
4567 * config/rs6000/vsx.md: Ditto.
4568 * doc/md.texi (Machine Constraints): Adjust.
4570 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
4572 * config/rs6000/constraints.md (define_register_constraint "wJ"):
4574 (define_register_constraint "wK"): Delete.
4575 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
4576 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
4577 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
4578 (rs6000_init_hard_regno_mode_ok): Adjust.
4579 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
4580 Replace "wK" constraint by "wH" with "p9v".
4581 * config/rs6000/vsx.md: Ditto.
4582 * doc/md.texi (Machine Constraints): Adjust.
4584 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
4586 * config/rs6000/constraints.md (define_register_constraint "wb"):
4588 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
4589 RS6000_CONSTRAINT_wb.
4590 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
4591 (rs6000_init_hard_regno_mode_ok): Adjust.
4592 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
4593 * config/rs6000/vsx.md: Ditto.
4594 * doc/md.texi (Machine Constraints): Adjust.
4596 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
4598 * config/rs6000/constraints.md (define_register_constraint "wo"):
4600 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
4601 RS6000_CONSTRAINT_wo.
4602 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
4603 (rs6000_init_hard_regno_mode_ok): Adjust.
4604 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
4605 * config/rs6000/altivec.md: Ditto.
4606 * doc/md.texi (Machine Constraints): Adjust.
4608 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
4610 * config/darwin-c.c (darwin_register_objc_includes): Do not
4611 prepend the sysroot when building gnu-runtime header search
4614 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
4616 * config/darwin.c (darwin_file_end): Use switch_to_section ()
4617 instead of direct output of the asm.
4619 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
4621 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
4622 argument to be type bool (was int before).
4623 (rs6000_emit_epilogue): Simplify some code. Declare some variables
4624 at first use. Use type bool for some variables. Fix a theoretical
4625 eh_return bug for svr4.
4627 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
4629 * config/rs6000/rs6000.md (isa): New attribute.
4630 (enabled): New attribute.
4632 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
4634 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
4635 assemble_start_function and assemble_end_function.
4637 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
4640 * omp-general.c (oacc_verify_routine_clauses): Change formal
4641 parameters. Add checking if already marked with an OpenACC
4642 'routine' directive. Adjust all users.
4645 * omp-general.c (oacc_build_routine_dims): Move some of its
4647 (oacc_verify_routine_clauses): ... this new function.
4648 * omp-general.h (oacc_verify_routine_clauses): New prototype.
4650 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
4652 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
4653 formating of picbase labels to match other ports.
4655 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
4657 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
4658 in the generated code.
4660 2019-05-16 Martin Sebor <msebor@redhat.com>
4662 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
4663 identifiers, keywords, operators, and types in diagnostics. Correct
4664 quoting, spelling, and sentence capitalization issues.
4665 (expand_builtin_atomic_is_lock_free): Same.
4666 (fold_builtin_next_arg): Same.
4667 * cfgexpand.c (expand_one_var): Same.
4668 (tree_conflicts_with_clobbers_p): Same.
4669 (expand_asm_stmt): Same.
4670 (verify_loop_structure): Same.
4671 * cgraphunit.c (process_function_and_variable_attributes): Same.
4672 * collect-utils.c (collect_execute): Same.
4673 * collect2.c (maybe_run_lto_and_relink): Same.
4674 (is_lto_object_file): Same.
4675 (scan_prog_file): Same.
4676 * convert.c (convert_to_real_1): Same.
4677 * dwarf2out.c (dwarf2out_begin_prologue): Same.
4678 * except.c (verify_eh_tree): Same.
4679 * gcc.c (execute): Same.
4680 (eval_spec_function): Same.
4681 (run_attempt): Same.
4682 (driver::set_up_specs): Same.
4683 (compare_debug_auxbase_opt_spec_function): Same.
4684 * gcov-tool.c (unlink_gcda_file): Same.
4687 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
4688 * gimplify.c (gimplify_asm_expr): Same.
4689 (gimplify_adjust_omp_clauses): Same.
4690 * hsa-gen.c (gen_hsa_addr_insns): Same.
4691 (gen_hsa_insns_for_load): Same.
4692 (gen_hsa_cmp_insn_from_gimple): Same.
4693 (gen_hsa_insns_for_operation_assignment): Same.
4694 (gen_get_level): Same.
4695 (gen_hsa_alloca): Same.
4696 (omp_simple_builtin::generate): Same.
4697 (gen_hsa_atomic_for_builtin): Same.
4698 (gen_hsa_insns_for_call): Same.
4699 * input.c (dump_location_info): Same.
4700 * ipa-devirt.c (compare_virtual_tables): Same.
4701 * ira.c (ira_setup_eliminable_regset): Same.
4702 * lra-assigns.c (lra_assign): Same.
4703 * lra-constraints.c (lra_constraints): Same.
4704 * lto-streamer-in.c (lto_input_mode_table): Same.
4705 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
4706 (merge_and_complain): Same.
4707 (compile_offload_image): Same.
4708 (compile_images_for_offload_targets): Same.
4709 (debug_objcopy): Same.
4712 * opts.c (print_specific_help): Same.
4713 (parse_no_sanitize_attribute): Same.
4715 (handle_param): Same.
4716 * plugin.c (add_new_plugin): Same.
4717 (parse_plugin_arg_opt): Same.
4718 (try_init_one_plugin): Same.
4719 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
4720 operators, and types in diagnostics. Correct quoting and spelling
4722 * read-rtl-function.c (parse_edge_flag_token): Same.
4723 (function_reader::parse_enum_value): Same.
4724 * reg-stack.c (check_asm_stack_operands): Same.
4725 * regcprop.c (validate_value_data): Same.
4726 * sched-rgn.c (make_pass_sched_fusion): Same.
4727 * stmt.c (check_unique_operand_names): Same.
4728 * targhooks.c (default_target_option_pragma_parse): Same.
4729 * tlink.c (recompile_files): Same.
4730 * toplev.c (process_options): Same.
4732 * trans-mem.c (diagnose_tm_1): Same.
4733 (ipa_tm_scan_irr_block): Same.
4734 (ipa_tm_diagnose_transaction): Same.
4735 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
4736 format a tree code name in a diagnostic.
4737 (verify_types_in_gimple_min_lval): Same.
4738 (verify_types_in_gimple_reference): Same.
4739 (verify_gimple_call): Same.
4740 (verify_gimple_assign_unary): Same.
4741 (verify_gimple_assign_binary): Same.
4742 (verify_gimple_assign_ternary): Same.
4743 (verify_gimple_assign_single): Same.
4744 (verify_gimple_switch): Same.
4745 (verify_gimple_label): Same.
4746 (verify_gimple_phi): Same.
4747 (verify_gimple_in_seq): Same.
4748 (verify_eh_throw_stmt_node): Same.
4749 (collect_subblocks): Same.
4750 (gimple_verify_flow_info): Same.
4751 (do_warn_unused_result): Same.
4752 * tree-inline.c (expand_call_inline): Same.
4753 * tree-into-ssa.c (update_ssa): Same.
4754 * tree.c (tree_int_cst_elt_check_failed): Same.
4755 (tree_vec_elt_check_failed): Same.
4756 (omp_clause_operand_check_failed): Same.
4757 (verify_type_variant): Same.
4758 (verify_type): Same.
4759 * value-prof.c (verify_histograms): Same.
4760 * varasm.c (assemble_start_function): Same.
4762 2019-05-16 Martin Sebor <msebor@redhat.com>
4764 * config/i386/i386-expand.c (get_element_number): Quote keywords
4765 and other internal names in diagnostics. Adjust other diagnostic
4766 formatting issues noted by -Wformat-diag.
4767 * config/i386/i386-features.c
4768 (ix86_mangle_function_version_assembler_name): Same.
4769 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
4770 * config/i386/i386.c (ix86_function_type_abi): Same.
4771 (ix86_function_ms_hook_prologue): Same.
4772 (classify_argument): Same.
4773 (ix86_expand_prologue): Same.
4774 (ix86_md_asm_adjust): Same.
4775 (ix86_memmodel_check): Same.
4777 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
4779 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
4780 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
4783 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
4786 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
4787 intrinsics without SSE/SSE2/SSSE3.
4788 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
4790 (*mmx_uavgv8qi3): Likewise.
4792 2019-05-17 Richard Biener <rguenther@suse.de>
4794 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
4795 VEC_PERM_EXPR as __VEC_PERM with -gimple.
4797 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
4799 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
4800 vec_sldw insn pattern.
4802 2019-05-17 Richard Biener <rguenther@suse.de>
4804 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
4806 2019-05-17 Martin Liska <mliska@suse.cz>
4809 * toplev.c (output_stack_usage): With LTO and sanitizer it
4810 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
4811 has no file location.
4813 2019-05-16 Jakub Jelinek <jakub@redhat.com>
4816 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
4817 sz0 is equal to sz1, instead return false in that case.
4819 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
4820 has non-constant expression, force sctx.lane and use two
4821 argument IFN_GOMP_SIMD_LANE instead of single argument.
4822 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
4823 two argument IFN_GOMP_SIMD_LANE without lhs.
4824 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
4826 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
4828 (LOOP_REQUIRES_VERSIONING): Or in
4829 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
4830 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
4832 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
4833 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
4834 from simd if clause if needed.
4836 2019-05-16 Richard Biener <rguenther@suse.de>
4838 * tree-affine.c (expr_to_aff_combination): New function split
4840 (tree_to_aff_combination): ... here.
4841 (aff_combination_expand): Avoid building a GENERIC tree.
4843 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
4845 * cgraphunit.c (cgraph_node::expand_thunk): Remove
4846 assemble_start_function and assemble_end_function calls.
4847 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
4848 assemble_start_function and assemble_end_function.
4849 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
4850 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
4851 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
4852 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
4853 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
4854 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
4855 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
4856 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
4857 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
4858 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
4859 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
4860 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
4862 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
4863 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
4864 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
4865 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
4866 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
4867 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
4868 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
4869 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
4870 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
4871 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
4872 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
4873 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
4874 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
4875 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
4877 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
4878 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
4879 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
4881 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
4883 * tree-ssa-alias.c (alias_stats): Add
4884 aliasing_component_refs_p_may_alias and
4885 aliasing_component_refs_p_no_alias.
4886 (dump_alias_stats): Print aliasing_component_refs_p stats.
4887 (aliasing_component_refs_p): Update stats.
4889 2019-05-16 Martin Liska <mliska@suse.cz>
4892 * multiple_target.c (expand_target_clones): Do not allow
4893 target_clones being used with a symbol that is an alias.
4895 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
4897 PR tree-optimization/90394
4898 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
4899 positives rather than ICE for cases where (code2 == NE_EXPR
4900 && code1 == BIT_AND_EXPR).
4902 2019-05-16 Jakub Jelinek <jakub@redhat.com>
4905 * tree-core.h (struct tree_decl_common): Document
4906 decl_nonshareable_flag for PARM_DECLs.
4907 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
4908 * calls.c (expand_call): Don't try tail call if caller
4909 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
4910 passed on the stack and callee needs to pass any arguments on the
4912 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
4913 else if instead of series of mutually exclusive ifs. Handle
4914 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
4915 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
4917 * lto-streamer.h (LTO_major_version): Bump to 9.
4919 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
4921 PR tree-optimization/90106
4922 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
4923 new parameter as new internal function call, also move it to new
4925 (use_internal_fn): Pass internal function call to
4926 shrink_wrap_one_built_in_call_with_conds.
4928 2019-05-15 Jakub Jelinek <jakub@redhat.com>
4930 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
4932 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
4933 safelen_int and set loop->dont_vectorize.
4935 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
4938 * config/i386/i386-builtin.def: Enable MMX intrinsics with
4940 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
4942 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
4943 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
4944 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
4947 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
4950 * config/i386/mmx.md (*vec_dupv2sf): Changed to
4951 define_insn_and_split to support SSE emulation.
4952 (*vec_extractv2sf_0): Likewise.
4953 (*vec_extractv2sf_1): Likewise.
4954 (*vec_extractv2si_0): Likewise.
4955 (*vec_extractv2si_1): Likewise.
4956 (*vec_extractv2si_zext_mem): Likewise.
4957 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
4958 (vec_extractv2sf_1 splitter): Likewise.
4959 (vec_extractv2sfsf): Likewise.
4960 (vec_setv2si): Likewise.
4961 (vec_extractv2si_1 splitter): Likewise.
4962 (vec_extractv2sisi): Likewise.
4963 (vec_setv4hi): Likewise.
4964 (vec_extractv4hihi): Likewise.
4965 (vec_setv8qi): Likewise.
4966 (vec_extractv8qiqi): Likewise.
4967 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
4968 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
4969 (vec_extractv2sisi): Likewise.
4970 (vec_extractv4hihi): Likewise.
4971 (vec_extractv8qiqi): Likewise.
4972 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
4973 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
4974 (vec_initv2sisi): Likewise.
4975 (vec_initv4hihi): Likewise.
4976 (vec_initv8qiqi): Likewise.
4977 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
4978 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
4979 (vec_setv4hi): Likewise.
4980 (vec_setv8qi): Likewise.
4982 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
4985 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
4986 TARGET_MMX_WITH_SSE.
4987 (MMXMODE:*mov<mode>_internal): Likewise.
4988 (MMXMODE:movmisalign<mode>): Likewise.
4990 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
4993 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
4994 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
4995 (sse2_cvtpd2pi): Ditto.
4996 (sse2_cvttpd2pi): Ditto.
4997 (*vec_concatv2sf_sse4_1): Ditto.
4998 (*vec_concatv2sf_sse): Ditto.
4999 (*vec_concatv2si_sse4_1): Ditto.
5000 (*vec_concatv2si): Ditto.
5001 (*vec_concatv4si_0): Ditto.
5002 (*vec_concatv2di_0): Ditto.
5004 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5007 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
5009 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5012 * config/i386/sse.md (ssse3_palignrdi): Changed to
5013 define_insn_and_split to support SSE emulation.
5015 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5018 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
5020 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5023 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
5024 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
5027 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5030 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
5031 or TARGET_MMX_WITH_SSE.
5032 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
5034 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5037 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
5039 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5042 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
5043 Changed to define_insn_and_split to support SSE emulation.
5045 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5048 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
5049 Changed to define_insn_and_split to support SSE emulation.
5051 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5054 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
5055 (*mmx_<emms>): This.
5056 (mmx_<emms>): New expander.
5058 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5061 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
5063 (*sse2_umulv1siv1di3): Add SSE2 emulation.
5065 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5068 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
5070 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5073 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
5075 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5078 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
5079 TARGET_MMX_WITH_SSE.
5080 (*mmx_uavgv4hi3): Add SSE emulation.
5082 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5085 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
5086 and TARGET_MMX_WITH_SSE.
5087 (*mmx_uavgv8qi3): Add SSE emulation.
5089 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5092 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
5093 maskmovdqu for __MMX_WITH_SSE__.
5095 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5098 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
5099 TARGET_MMX and TARGET_MMX_WITH_SSE.
5100 (*mmx_umulv4hi3_highpart): Add SSE emulation.
5102 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5105 * config/i386/mmx.md (mmx_pmovmskb): Changed to
5106 define_insn_and_split to support SSE emulation.
5108 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5111 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
5112 and TARGET_MMX_WITH_SSE.
5113 (mmx_<code>v8qi3): Likewise.
5114 (smaxmin:<code>v4hi3): New.
5115 (umaxmin:<code>v8qi3): Likewise.
5116 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
5117 (umaxmin:*mmx_<code>v8qi3): Likewise.
5119 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5122 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
5123 TARGET_MMX_WITH_SSE.
5124 (*mmx_pinsrw): Add SSE emulation.
5126 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5129 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
5131 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5134 * config/i386/sse.md (sse_cvtpi2ps): Changed to
5135 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
5138 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5141 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
5142 (sse_cvttps2pi): Likewise.
5144 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5147 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
5148 TARGET_MMX_WITH_SSE.
5149 (mmx_pshufw_1): Add SSE emulation.
5150 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
5151 TARGET_MMX_WITH_SSE to support SSE emulation.
5153 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5156 * config/i386/constraints.md (Yw): New constraint.
5157 * config/i386/mmx.md (*vec_dupv2si): Changed to
5158 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
5159 support SSE emulation.
5161 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5164 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
5165 TARGET_MMX_WITH_SSE.
5166 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
5168 (mmx_gt<mode>3): Likewise.
5170 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5173 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
5174 TARGET_MMX_WITH_SSE. Add SSE support.
5176 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5179 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
5180 TARGET_MMX_WITH_SSE.
5181 (any_logic:<code><mode>3): New.
5182 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
5185 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5188 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
5189 TARGET_MMX_WITH_SSE. Add SSE emulation.
5190 (mmx_<shift_insn><mode>3): Likewise.
5192 (<shift_insn><mode>3): Likewise.
5194 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5197 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
5198 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
5200 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5203 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
5204 TARGET_MMX_WITH_SSE.
5205 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
5208 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5211 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
5212 TARGET_MMX_WITH_SSE.
5214 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
5217 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5220 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
5221 (plusminus:mmx_<plusminus_insn><mode>3): Check
5222 TARGET_MMX_WITH_SSE.
5223 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
5224 (<plusminus_insn><mode>3): New.
5225 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
5226 (*mmx_<plusminus_insn><mode>3): Likewise.
5228 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5231 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
5232 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
5234 * config/i386/mmx.m (mmx_punpckhbw): Changed to
5235 define_insn_and_split to support SSE emulation.
5236 (mmx_punpcklbw): Likewise.
5237 (mmx_punpckhwd): Likewise.
5238 (mmx_punpcklwd): Likewise.
5239 (mmx_punpckhdq): Likewise.
5240 (mmx_punpckldq): Likewise.
5242 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5243 Uros Bizjak <ubizjak@gmail.com>
5246 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
5248 (ix86_split_mmx_pack): Likewise.
5249 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
5251 (ix86_split_mmx_pack): Likewise.
5252 * config/i386/i386.md (mmx_isa): New.
5253 (enabled): Also check mmx_isa.
5254 * config/i386/mmx.md (any_s_truncate): New code iterator.
5255 (s_trunsuffix): New code attr.
5256 (mmx_packsswb): Removed.
5257 (mmx_packssdw): Likewise.
5258 (mmx_packuswb): Likewise.
5259 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
5260 MMX packsswb/packuswb with SSE2.
5261 (mmx_packssdw): Likewise.
5262 * config/i386/predicates.md (register_mmxmem_operand): New.
5264 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
5267 * config/i386/i386-c.c (ix86_target_macros_internal): Define
5268 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
5269 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
5270 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
5271 (ix86_vector_mode_supported_p): Likewise.
5272 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
5274 2019-05-15 Martin Liska <mliska@suse.cz>
5277 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
5280 2019-05-15 Richard Biener <rguenther@suse.de>
5282 * tree-into-ssa.c (pass_build_ssa::execute): Run
5283 update_address_taken before going into SSA.
5285 2019-05-15 Richard Biener <rguenther@suse.de>
5287 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
5288 as __BIT_FIELD_REF with type with -gimple.
5290 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
5292 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
5293 semantically equivalent branches (left over after prior refactorings).
5295 2019-05-15 Richard Biener <rguenther@suse.de>
5297 PR tree-optimization/88828
5298 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
5301 2019-05-14 Richard Biener <rguenther@suse.de>
5303 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
5304 as __VIEW_CONVERT with -gimple.
5306 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
5309 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
5312 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
5314 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
5315 define_split to become a define_insn_and_split.
5317 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
5319 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
5321 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
5322 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
5323 (sibcall_epilogue): Adjust.
5326 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5328 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
5329 to unsupported ones.
5330 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
5331 * config.host: Likewise.
5332 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
5333 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
5334 __svr4__]: Remove "brand" fallback.
5335 [!KSTAT_DATA_STRING]: Remove.
5336 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
5338 (comdat_group): Likewise.
5339 (set_have_as_tls): Likewise.
5340 (gcc_cv_target_dl_iterate_phdr): Likewise.
5341 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
5342 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
5343 * configure: Regenerate.
5344 * doc/install.texi: Simplify Solaris target triplets.
5345 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
5346 (Specific, *-*-solaris2*): Document Solaris 10 removal.
5347 Remove Solaris 10 references.
5348 Remove obsolete Solaris bug reference.
5349 (Specific, sparc-sun-solaris2.10): Remove.
5351 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
5353 * config/i386/i386.md (any_div): New code iterator.
5354 (paired_mod): New code attribute.
5355 (sgnprefix): Handle DIV and UDIV RTXes.
5357 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
5358 and udivmod<mode>4 patterns using any_div code iterator.
5359 (divmod splitters): Macroize splitters using any_div code iterator.
5360 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
5361 (*udivmodsi4_pow2_zext_2): Ditto.
5362 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
5363 and *udivmod<mode>4_noext patterns using any_div code iterator.
5364 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
5365 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
5366 patterns using any_div code iterator.
5367 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
5368 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
5369 patterns using any_div code iterator.
5370 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
5371 udivmodhiqi3 patterns using any_extend code iterator.
5373 2019-05-14 Richard Biener <rguenther@suse.de>
5374 H.J. Lu <hongjiu.lu@intel.com>
5376 PR tree-optimization/88828
5377 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
5378 permuting in a single non-constant element not extracted
5381 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
5383 * internal-fn.def (SIGNBIT): New.
5384 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
5386 (signbitv4sf2): Likewise.
5388 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
5391 * config/mips/mips.c (mips_split_move): Skip forward SRC into
5392 next insn when the SRC reg is dead.
5394 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
5396 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
5397 (alloc_cand_and_find_basis): Ditto.
5398 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
5399 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
5400 (create_add_imm_cand, slsr_process_cast): Ditto.
5401 (slsr_process_copy, replace_mult_candidate): Ditto.
5402 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
5403 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
5404 (pass_strength_reduction::execute): Init the first NULL element.
5406 2019-05-13 Nathan Sidwell <nathan@acm.org>
5408 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
5409 (run_attempt): Reformat line break.
5411 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
5414 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
5415 data registers in sibcall epilogues.
5416 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
5418 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
5421 * configure.ac (--enable-frame-pointer):
5422 Disable by default for cygwin and mingw.
5423 * configure: Regenerate.
5425 2019-05-13 Nathan Sidwell <nathan@acm.org>
5427 * dwarf2out.c (breakout_comdat_types): Move comment to correct
5429 (const_ok_for_output_1): Balance parens around #if/#else/#endif
5430 (gen_member_die): Move abstract origin check earlier. Only VARs
5431 can be static_inline_p. Simplify splicing control flow.
5433 2019-05-13 Richard Biener <rguenther@suse.de>
5435 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
5437 (vect_build_slp_tree_1): Likewise.
5439 2019-05-13 Richard Biener <rguenther@suse.de>
5441 PR tree-optimization/90402
5442 * tree-if-conv.c (tree_if_conversion): Value number only
5443 the loop body by making the latch an exit of the region
5445 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
5447 (do_rpo_vn): Deal with multiple edges into the entry block
5448 that are not backedges inside the region by skipping PHIs
5451 2019-05-13 Richard Biener <rguenther@suse.de>
5453 PR tree-optimization/90316
5454 * tree-ssa-pre.c (insert_aux): Fold into ...
5455 (insert): ... this function. Use a RPO walk to reduce the
5456 number of required iterations.
5458 2019-05-13 Martin Liska <mliska@suse.cz>
5460 PR tree-optimization/90416
5461 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
5462 string instead of passing the second part as va_arg argument.
5464 2019-05-13 Martin Liska <mliska@suse.cz>
5466 PR gcov-profile/90380
5467 * gcov.c (handle_cycle): Do not support zero cycle count,
5468 it should not be possible.
5469 (path_contains_zero_cycle_arc): New function.
5470 (circuit): Ignore zero cycle arc counts.
5472 2019-05-13 Martin Liska <mliska@suse.cz>
5474 PR gcov-profile/90380
5475 * gcov.c (enum loop_type): Remove the enum and
5477 (handle_cycle): Assert that we should not reach
5479 (circuit): Use loop_found instead of a tri-state loop_type.
5480 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
5483 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
5486 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
5487 (ix86_output_indirect_branch_via_reg): Use output mechanism
5488 accounting for __USER_LABEL_PREFIX__.
5489 (ix86_output_indirect_branch_via_push): Likewise.
5490 (ix86_output_function_return): Likewise.
5491 (ix86_output_indirect_function_return): Likewise.
5493 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
5495 * doc/md.texi: Document use of code attributes in rtx patterns.
5496 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
5497 * read-rtl.c (find_code): Split out search loops into...
5498 (maybe_find_code): ...this new function.
5499 (check_code_iterator): Make the error message more informative.
5500 (check_code_attribute): New function.
5501 (rtx_reader::rtx_alloc_for_name): Likewise.
5502 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
5503 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
5504 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
5505 <max_opp> directly as an rtx code instead of via a match_operator.
5506 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
5507 (<su>abd<mode>_3): Update accordingly.
5509 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
5511 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
5512 is given, print the state of the EH "save world" computation for
5515 2019-05-11 Jakub Jelinek <jakub@redhat.com>
5518 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
5519 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
5521 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
5523 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
5524 Use pinsrd for TARGET_SSE4_1.
5525 * config/i386/sse.md (movdi_to_sse): Ditto.
5527 2019-05-10 Richard Biener <rguenther@suse.de>
5529 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
5530 (do_rpo_vn): Initialize next_value_id.
5532 2019-05-10 Martin Liska <mliska@suse.cz>
5534 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
5537 2019-05-10 Jakub Jelinek <jakub@redhat.com>
5539 PR tree-optimization/90385
5540 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
5541 arguments of the exit phis.
5544 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
5545 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
5547 (copy_tree_body_r): Likewise.
5548 (copy_fn): Set id.do_not_fold to true.
5550 2019-05-10 Martin Liska <mliska@suse.cz>
5552 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
5553 Reapply changes from r269790.
5555 2019-05-10 Martin Liska <mliska@suse.cz>
5558 * doc/invoke.texi: New params.
5559 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
5560 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
5561 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
5563 * tree-switch-conversion.h (struct jump_table_cluster):
5566 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
5568 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
5570 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
5572 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
5574 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
5576 PR rtl-optimization/88879
5577 * sel-sched.c (sel_target_adjust_priority): Remove assert.
5579 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
5582 * config/arm/arm.c (callee_saved_reg_p): Move before
5583 thumb_find_work_register.
5584 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
5585 thumb_find_work_register. Only call df_get_live_out once.
5586 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
5587 (thumb_find_work_register): Use
5588 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
5589 algorithms to locate a spare call clobbered reg.
5591 2019-05-09 Martin Liska <mliska@suse.cz>
5593 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
5594 and MAX_EXPR in GIMPLE FE format.
5596 2019-05-09 Martin Liska <mliska@suse.cz>
5598 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
5599 * gimple-pretty-print.c (dump_gimple_bb_header):
5601 (pp_cfg_jump): Dump edge probability.
5602 * profile-count.c (profile_quality_as_string): Simplify
5603 with a static array.
5604 (parse_profile_quality): New function.
5605 (profile_count::dump): Simplify with a static array.
5606 (profile_count::from_gcov_type): Add new argument.
5607 * profile-count.h (parse_profile_quality): Likewise.
5608 * predict.h (set_hot_bb_threshold): New.
5609 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
5611 * predict.c (get_hot_bb_threshold): Set from the new param.
5612 (set_hot_bb_threshold): New.
5614 2019-05-09 Richard Biener <rguenther@suse.de>
5616 PR tree-optimization/90395
5617 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
5618 rewrite vector stores that throw internally.
5620 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
5622 * cif-code.def (CHKP): Remove.
5625 * configure.ac (--enable-frame-pointer): Disable by default for
5627 * configure: Regenerate.
5629 2019-05-09 Alan Modra <amodra@gmail.com>
5632 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
5633 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
5634 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
5635 cost for general <-> vsx when direct moves are available.
5636 Cost union classes at minimal cost for any reg in the class.
5637 Correct calculation for moves between vsx, float, and altivec.
5638 Don't return a low cost for moves between special regs. Don't
5639 use hard coded register numbers.
5640 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
5641 (rs6000_ira_change_pseudo_allocno_class): New function.
5642 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
5643 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
5645 (movsi_internal1): Don't disparage vector alternatives.
5646 (mov<mode>_internal): Likewise, excepting alternative that
5648 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
5649 we <- b alternative.
5651 2019-05-08 Jakub Jelinek <jakub@redhat.com>
5654 PR tree-optimization/89060
5655 * tree-ssa-live.h (live_vars_map): New typedef.
5656 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
5657 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
5658 (struct compute_live_vars_data): New type.
5659 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
5660 live_vars_at_stmt, destroy_live_vars): New functions.
5661 * tree-tailcall.c: Include tree-ssa-live.h.
5662 (live_vars, live_vars_vec): New global variables.
5663 (find_tail_calls): Perform variable life analysis before punting.
5664 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
5665 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
5667 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
5668 Perform variable life analysis to select variables that really need
5670 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
5671 instead set id->eh_landing_pad_dest and assert it is the same.
5672 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
5674 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
5675 Richard Earnshaw <rearnsha@arm.com>
5678 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
5680 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
5681 (thumb1_compute_save_core_reg_mask): Don't force a spare work
5682 register if both the epilogue and prologue can use call-clobbered
5684 (thumb1_unexpanded_epilogue): Use
5685 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
5686 picking temporaries for restoring high regs to match that of the
5687 prologue where possible.
5688 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
5689 the list of work registers. Detect if the return address is still live
5690 at the end of the prologue and avoid using it for a work register if so.
5691 If the return address is not live, add LR to the list of pushable regs
5692 after the first pass.
5694 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
5696 PR tree-optimization/90078
5697 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
5698 (INFTY): Increase the value for infinite cost.
5699 (struct comp_cost): Promote type of members to int64_t.
5700 (infinite_cost): Don't set complexity in initialization.
5701 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
5702 overflows to infinite_cost.
5703 (adjust_setup_cost): Promote type of parameter and cost computation
5705 (struct ainc_cost_data, struct iv_ca): Promote type of member to
5707 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
5708 cost computation to int64_t.
5709 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
5710 int64_t's format specifier in dump.
5712 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
5714 PR tree-optimization/90240
5715 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
5716 with respect to scaling factor pre-computed for each basic block.
5717 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
5718 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
5719 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
5720 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
5721 live range for array of loop's basic blocks. Cleanup aux field of
5722 loop's basic blocks.
5724 2019-05-08 Jakub Jelinek <jakub@redhat.com>
5726 PR tree-optimization/90356
5727 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
5729 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
5731 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
5732 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
5733 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
5734 (ix86_handle_option): Handle -mavx512bf16.
5735 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
5737 * config/i386/avx512bf16vlintrin.h: New.
5738 * config/i386/avx512bf16intrin.h: New.
5739 * config/i386/cpuid.h (bit_AVX512BF16): New.
5740 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
5741 * config/i386/i386-builtin-types.def: Add new types.
5742 * config/i386/i386-builtin.def: Add new builtins.
5743 * config/i386/i386-c.c (ix86_target_macros_internal): Define
5745 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
5746 (ix86_option_override_internal): Handle BF16.
5747 (ix86_valid_target_attribute_inner_p): Ditto.
5748 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
5749 * config/i386/i386-builtin.c (enum processor_features): Add
5751 (static const _isa_names_table isa_names_table): Ditto.
5752 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
5753 (PTA_AVX512BF16): Ditto.
5754 * config/i386/i386.opt: Add -mavx512bf16.
5755 * config/i386/immintrin.h: Include avx512bf16intrin.h
5756 and avx512bf16vlintrin.h.
5757 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
5758 avx512f_cvtneps2bf16_<mode><mask_name>,
5759 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
5760 * config/i386/subst.md (mask_half): Add new subst.
5761 * doc/invoke.texi: Document -mavx512bf16.
5763 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
5765 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
5767 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
5768 (rs6000_debug_legitimize_reload_address): Delete.
5769 (rs6000_legitimize_reload_address_ptr): Delete.
5770 (rs6000_option_override_internal): Adjust.
5771 (mem_operand_gpr): Adjust comment.
5772 (legitimate_lo_sum_address_p): Ditto.
5773 (rs6000_legitimize_reload_address): Delete.
5774 (rs6000_debug_legitimize_reload_address): Delete.
5775 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
5777 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
5780 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
5781 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
5782 to compute vector element selector for both constant and variable
5785 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
5787 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
5788 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
5789 ashrdi3_cvt using SWI48 mode iterator.
5791 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
5793 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
5794 (aarch64_<su>abd<mode>_3): Likewise.
5795 (*aarch64_<su>abd<mode>_3): New define_insn.
5796 (<sur>sad<vsi2qi>): New define_expand.
5797 * config/aarch64/iterators.md: Added MAX_OPP attribute.
5798 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
5799 (build_vect_cond_expr): Likewise.
5801 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
5803 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
5804 clobbers outside of accessible_reg_set.
5805 * config/i386/i386.c (ix86_conditional_register_usage):
5806 Disable register sets by clearing corresponding bits in
5807 accessible_reg_set. Do not set corresponding bits in fixed_regs,
5808 call_used_regs and don't clear corresponding reg_names array members.
5810 2019-05-07 Richard Biener <rguenther@suse.de>
5812 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
5813 not specified still compute a comp_vectype for invariant
5816 2019-05-07 Richard Biener <rguenther@suse.de>
5818 PR tree-optimization/90316
5819 * tree-ssa-pre.c (translate_vuse_through_block): When
5820 same_valid is NULL do not bother to search for a virtual
5822 (phi_translate_1): When operands changed we cannot keep
5823 the same value-number so do not bother to ask whether
5824 that's possible from translate_vuse_through_block.
5826 2019-05-07 Martin Liska <mliska@suse.cz>
5828 * bitmap.c (bitmap_register): Come up with
5829 alloc_descriptor_max_uid and assign it for
5831 (register_overhead): Use get_descriptor as
5833 (release_overhead): New.
5834 (bitmap_elem_to_freelist): Call it.
5835 (bitmap_elt_clear_from): Likewise.
5836 (bitmap_obstack_free): Likewise.
5837 (bitmap_move): Sensitively release memory.
5838 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
5839 (bitmap_initialize): Initialize alloc_descriptor to zero.
5840 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
5842 2019-05-07 Richard Biener <rguenther@suse.de>
5844 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
5845 we build a SLP node. Remove max_size and limiting.
5846 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
5848 2019-05-07 Richard Biener <rguenther@suse.de>
5850 PR tree-optimization/90316
5851 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
5853 (walk_non_aliased_vuses): Take walking limit argument.
5854 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
5855 walking if it is reached instead of just counting.
5856 (get_continuation_for_phi): Likewise.
5857 (walk_non_aliased_vuses): Likewise, instead of leaving counter
5858 limiting to the callback.
5859 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
5860 (vn_reference_lookup_3): Likewise.
5861 (vn_reference_lookup_pieces): Likewise.
5862 (vn_reference_lookup): Likewise.
5863 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
5864 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
5865 (avail_exprs_stack::lookup_avail_expr): Likewise.
5867 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
5869 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
5870 for comparaible types in the second direction even if first one
5871 hits incomparable type.
5873 2019-05-07 Richard Biener <rguenther@suse.de>
5876 * lto-wrapper.c (debug_objcopy): Use the original filename
5877 including archive offset for the filename used for -save-temps.
5879 2019-05-07 Li Jia He <helijia@linux.ibm.com>
5881 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
5884 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
5885 Hongtao Liu <hongtao.liu@intel.com>
5889 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
5890 Modified, original implementation isn't correct.
5892 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
5894 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
5895 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
5896 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
5897 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
5898 (FRAME_POINTER_REGNUM): Change numbering.
5899 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
5900 (alt_reg_names): Adjust.
5901 (rs6000_conditional_register_usage): Don't mark hard register 64 as
5903 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
5904 (DWARF_FRAME_REGISTERS): Delete.
5905 (DWARF2_FRAME_REG_OUT): Fix whitespace.
5906 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
5908 (REG_ALLOC_ORDER): Adjust.
5909 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
5910 (REG_CLASS_CONTENTS): Adjust.
5911 (RETURN_ADDR_RTX): Change comment.
5912 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
5914 (REGISTER_NAMES): Adjust.
5915 (ADDITIONAL_REGISTER_NAMES): Adjust.
5916 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
5918 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
5920 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
5922 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
5923 (DWARF_FRAME_REGISTERS): Adjust.
5924 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
5926 (REG_ALLOC_ORDER): Adjust.
5927 (enum reg_class): Delete SPR_REGS.
5928 (REG_CLASS_NAMES): Delete SPR_REGS.
5929 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
5930 (REGISTER_NAMES): Adjust.
5931 (ADDITIONAL_REGISTER_NAMES): Adjust.
5932 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
5933 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
5934 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
5935 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
5936 (htm_spr_regno): Delete.
5937 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
5939 (rs6000_dbx_register_number): Adjust.
5941 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
5943 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
5945 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
5947 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
5948 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
5950 2019-05-06 Jakub Jelinek <jakub@redhat.com>
5952 PR tree-optimization/88709
5953 PR tree-optimization/90271
5954 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
5955 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
5956 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
5958 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
5959 of the store merging group is larger than
5960 PARAM_STORE_MERGING_MAX_SIZE parameter.
5961 (split_group): Add bzero_first argument. If set, always emit first
5962 the first store which must be = {} of the whole area and then for the
5963 rest of the stores consider all zero bytes as paddings.
5964 (imm_store_chain_info::output_merged_store): Check if first store
5965 is = {} of the whole area and if yes, determine which setting of
5966 bzero_first for split_group gives smaller number of stores. Adjust
5967 split_group callers.
5968 (lhs_valid_for_store_merging_p): Allow decls.
5969 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
5971 (pass_store_merging::process_store): Likewise.
5973 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
5976 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
5977 handling of V1TImode.
5979 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
5982 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
5983 and enable_frame_pointer ...
5984 * configure.ac: ... here. Update help strings for
5985 --enable-frame-pointer.
5986 * configure: Regenerate.
5987 * config/i386/i386-options.c (ix86_option_override_internal): Remove
5988 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
5989 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
5990 (USE_X86_64_FRAME_POINTER): Ditto.
5992 2019-05-06 Martin Liska <mliska@suse.cz>
5994 * config.gcc: Append to target_gtfiles and fix indentation.
5996 2019-05-06 Richard Biener <rguenther@suse.de>
5998 PR tree-optimization/90358
5999 * tree-vect-stmts.c (get_group_load_store_type): Properly
6000 detect unused upper half of load.
6001 (vectorizable_load): Likewise.
6003 2019-05-06 Richard Biener <rguenther@suse.de>
6005 PR tree-optimization/88828
6006 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
6007 (simplify_vector_constructor): ...here. Handle constants in
6010 2019-05-06 Richard Biener <rguenther@suse.de>
6012 PR tree-optimization/90328
6013 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
6014 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
6015 is valid in the loop nest before using it.
6016 (initialize_data_dependence_relation): Adjust.
6017 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
6018 loop as loop-nest to dr_may_alias_p.
6020 2019-05-06 Richard Biener <rguenther@suse.de>
6022 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
6024 2019-05-06 Richard Biener <rguenther@suse.de>
6026 PR tree-optimization/90316
6027 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
6028 compute target on demand.
6029 (get_continuation_for_phi): Remove code walking stmts to
6030 get to a target virtual operand which could end up being
6033 2019-05-06 Martin Liska <mliska@suse.cz>
6036 * config/i386/i386-options.c (ix86_option_override_internal): Error only
6037 when -mabi is selected to a non-default version.
6039 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
6040 Martin Liska <mliska@suse.cz>
6042 * Makefile.in: Add lto-dump.texi.
6043 * cgraph.h: Add new functions get_visibility_string and
6044 get_symtab_type_string.
6045 * doc/gcc.texi: Include lto-dump section.
6046 * doc/lto-dump.texi: New file.
6047 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
6048 (parse_dump_option): Factor out this function.
6049 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
6050 (parse_dump_option): Export the function.
6051 * symtab.c (symtab_node::get_visibility_string): New function.
6052 (symtab_node::get_symtab_type_string): Likewise.
6054 2019-05-06 Martin Liska <mliska@suse.cz>
6056 * config/i386/i386-builtins.c: New file.
6057 * config/i386/i386-builtins.h: New file.
6058 * config/i386/i386-expand.c: New file.
6059 * config/i386/i386-expand.h: New file.
6060 * config/i386/i386-features.c: New file.
6061 * config/i386/i386-features.h: New file.
6062 * config/i386/i386-options.c: New file.
6063 * config/i386/i386-options.h: New file.
6064 * config.gcc: Add new files into extra_objs and
6066 * config/i386/i386.c: Split content of the file
6067 into newly introduced files.
6068 * config/i386/i386.h: Declare common variables
6070 * config/i386/t-i386: Define dependencies for new files.
6072 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
6075 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
6076 Restrict 'all' variant to 32-bit configurations.
6077 (unaligned_loadhiu): Likewise.
6078 (unaligned_storehi): Likewise.
6079 (unaligned_storesi): Likewise.
6080 (unaligned_loadhis): Disable when compiling for thumb1.
6082 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
6084 PR tree-optimization/90269
6085 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
6088 2019-05-03 Martin Liska <mliska@suse.cz>
6090 * hash-map.h: Add is_empty function.
6091 * hash-set.h: Likewise.
6092 * hash-table.h: Likewise.
6093 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
6094 elements () == 0 (and similar usages).
6095 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
6096 * gimplify.c (gimplify_bind_expr): Likewise.
6097 (gimplify_switch_expr): Likewise.
6098 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
6099 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
6100 * postreload-gcse.c (dump_hash_table): Likewise.
6101 (gcse_after_reload_main): Likewise.
6102 * predict.c (combine_predictions_for_bb): Likewise.
6103 * tree-parloops.c (reduction_phi): Likewise.
6104 (separate_decls_in_region): Likewise.
6105 (transform_to_exit_first_loop): Likewise.
6106 (gen_parallel_loop): Likewise.
6107 (gather_scalar_reductions): Likewise.
6108 (try_create_reduction_list): Likewise.
6109 * var-tracking.c (dump_vars): Likewise.
6110 (emit_notes_for_changes): Likewise.
6111 (vt_emit_notes): Likewise.
6113 2019-05-03 Richard Biener <rguenther@suse.de>
6115 PR tree-optimization/90316
6116 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
6119 2019-05-03 Richard Biener <rguenther@suse.de>
6121 * tree-vect-stmts.c (get_group_load_store_type): Avoid
6122 peeling for gaps by loading only lower halves of vectors
6124 (vectorizable_load): Likewise.
6126 2019-05-03 Richard Biener <rguenther@suse.de>
6129 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
6131 2019-05-03 Richard Biener <rguenther@suse.de>
6134 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
6135 Handle STRING_CST vs DECL or STRING_CST.
6137 2019-05-03 Richard Biener <rguenther@suse.de>
6139 PR tree-optimization/88963
6140 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
6141 vector loads feeding only BIT_FIELD_REFs to component
6142 loads. Rewrite stores fed by CONSTRUCTORs to component
6145 2019-05-03 Jakub Jelinek <jakub@redhat.com>
6147 * opts.h (finish_options): Remove lang_mask argument.
6148 (print_help, help_option_argument): Declare.
6149 * opts.c (print_help): Remove forward declaration, no longer static.
6150 (finish_options): Remove lang_mask argument, don't call print_help
6152 * opts-global.c (decode_options): Adjust finish_option caller, call
6155 PR tree-optimization/90303
6156 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
6157 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
6159 2019-05-03 Richard Biener <rguenther@suse.de>
6161 PR tree-optimization/89698
6162 * gimple-fold.c (canonicalize_constructor_val): Early out
6163 for constants, handle unfolded INTEGER_CSTs as they appear in
6164 C++ virtual table ctors.
6166 2019-05-03 Richard Biener <rguenther@suse.de>
6168 * passes.c (execute_function_todo): Remove dead code.
6170 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
6172 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
6173 the internal register number, for any "real" register.
6175 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
6177 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
6178 correct numbers for TFHAR, TFIAR, TEXASR.
6180 2019-05-02 Richard Biener <rguenther@suse.de>
6182 PR tree-optimization/89653
6183 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
6184 update-address-taken before the pass.
6185 * passes.def (pass_tree_loop_init): Put comment before it.
6187 2019-05-02 Richard Biener <rguenther@suse.de>
6189 PR tree-optimization/89509
6190 * tree-ssa-structalias.c (compute_dependence_clique): Look
6191 at the first subvar when determining whether it is restrict.
6193 2019-05-02 Richard Biener <rguenther@suse.de>
6195 PR tree-optimization/90273
6196 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
6197 useless debug stmts.
6199 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
6201 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
6203 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
6205 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
6206 VEC_COND_EXPR be inserted to emulate a conditional internal function.
6207 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
6208 (vectorizable_reduction): Use the functions above to vectorize in a
6209 fully masked loop codes that don't have a conditional internal
6212 2019-05-02 Martin Liska <mliska@suse.cz>
6214 * cgraphclones.c: Call valid_attribute_p with 1 for
6216 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
6217 it's for target attribute.
6218 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
6219 Add new boolean argument.
6220 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
6222 (ix86_valid_target_attribute_tree): Pass target_clone_attr
6223 to ix86_valid_target_attribute_inner_p.
6224 (ix86_valid_target_attribute_p): Pass flags argument to
6225 ix86_valid_target_attribute_inner_p.
6226 (get_builtin_code_for_version): Use 0 as it's target attribute.
6228 2019-05-02 Martin Liska <mliska@suse.cz>
6230 * gcc.c (process_command): Add dummy file only
6232 * opts-global.c (decode_options): Pass lang_mask.
6233 * opts.c (print_help): New function.
6234 (finish_options): Print --help if help_option_argument
6236 (common_handle_option): Factor out content of OPT__help_
6238 * opts.h (finish_options): Add new argument.
6240 2019-05-02 Martin Liska <mliska@suse.cz>
6243 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
6244 With -minline-all-stringops use inline expansion using 4B loop.
6245 * doc/invoke.texi: Document the change of
6246 -minline-all-stringops.
6248 2019-05-01 Jeff Law <law@redhat.com>
6250 PR tree-optimization/88797
6251 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
6252 PHI feeds a conditional on the RHS of an assignment.
6254 2019-04-30 Andrew Waterman <andrew@sifive.com>
6255 Jim Wilson <jimw@sifive.com>
6257 * config/riscv/constraints.md (L): New.
6258 * config/riscv/predicates.md (lui_operand): New.
6259 (sfb_alu_operand): New.
6260 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
6261 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
6262 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
6263 * config/riscv/risc.md (type): Add sfb_alu.
6264 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
6265 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
6266 (branch_zero<mode>): Delete.
6268 (mov<GPR:mode><X:mode>cc): Likewise.
6269 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
6271 2019-04-30 Nathan Sidwell <nathan@acm.org>
6273 * tree.h (MARK_TS_EXP): New.
6275 2019-04-30 Martin Liska <mliska@suse.cz>
6277 * opts.c (enable_warning_as_error): Provide hints
6278 for unknown options.
6280 2019-04-30 Martin Liska <mliska@suse.cz>
6283 * doc/invoke.texi: Add missing dash for gas-locview-support
6284 and gno-as-locview-support.
6286 2019-04-30 Jakub Jelinek <jakub@redhat.com>
6289 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
6290 whitespace at the start of target attribute string.
6292 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6295 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
6296 Define __ARM_FEATURE_ATOMICS.
6298 2019-04-30 Martin Liska <mliska@suse.cz>
6300 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
6301 into built_in_function enum. Remove code for endp == 2 and
6302 use BUILT_IN_* constants.
6303 (gimple_fold_builtin): Call the function with fcode.
6305 2019-04-30 Martin Liska <mliska@suse.cz>
6307 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
6308 DECL_FUNCTION_CODE into ix86_builtins enum before
6309 the switch statement.
6311 2019-04-30 Jakub Jelinek <jakub@redhat.com>
6313 PR tree-optimization/89475
6314 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
6317 2019-04-30 Martin Liska <mliska@suse.cz>
6319 PR translation/90274
6320 * opts.c (print_filtered_help): Wrap string in _(...).
6322 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
6324 PR tree-optimization/90240
6326 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
6328 PR tree-optimization/90078
6329 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
6330 checks for infinite_cost overflow.
6332 2019-04-29 Jeff Law <law@redhat.com>
6334 * passes.def: Move -Wrestrict pass after copy propagation.
6336 2019-04-29 Maya Rashish <coypu@sdf.org>
6338 * config.gcc (default_gnu_indirect_function): Default to yes
6339 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
6340 sparc*-*-netbsd*, x86_64-*-netbsd*.
6342 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
6344 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
6345 where cond2 is NE_EXPR.
6346 (is_value_included_in): Update comment.
6348 2019-04-29 Richard Biener <rguenther@suse.de>
6350 PR tree-optimization/90278
6351 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
6352 EH on comparison simplification.
6354 2019-04-29 Jason Merrill <jason@redhat.com>
6356 PR c++/82081 - tail call optimization breaks noexcept
6357 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
6358 nothrow function to a might-throw function into a tail call.
6360 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
6362 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
6363 (DDR_INNER_LOOP): Likewise.
6364 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
6365 (initialize_data_dependence_relation): Likewise.
6366 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
6368 2019-04-29 Jakub Jelinek <jakub@redhat.com>
6370 PR rtl-optimization/90257
6371 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
6375 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
6379 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
6382 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
6385 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
6387 * lra-spills.c (lra_final_code_change): Remove useless move insns.
6389 2019-04-29 Richard Biener <rguenther@suse.de>
6391 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
6394 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
6396 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
6397 varasm.h, and netbsd-protos.h.
6399 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
6402 * config/i386/i386-protos.h (ix86_data_alignment): Change
6403 the second argument type to unsigned int.
6404 * config/i386/i386.c (ix86_data_alignment): Change "align"
6405 argument type to unsigned int.
6407 2019-04-27 Martin Liska <mliska@suse.cz>
6410 * opt-suggestions.c (option_proposer::build_option_suggestions):
6411 When get_valid_option_values returns empty values, add the
6412 misspelling candidate.
6414 2019-04-26 Jim Wilson <jimw@sifive.com>
6416 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
6418 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
6419 Pass orig_mode to riscv_build_integer.
6420 (riscv_split_integer): Pass mode to riscv_move_integer.
6421 (riscv_legitimize_const_move): Likewise.
6422 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
6423 promoted_mode. Replace force_reg call with code to load constant into
6424 promoted reg and then subreg it for the store.
6425 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
6428 2018-04-26 Eugene Sharygin <eush@ispras.ru>
6430 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
6433 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
6435 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
6436 commentary about the encoding of precision.
6438 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
6440 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
6441 * config/i386/t-freebsd64: New file.
6442 * config.gcc: Add the t-freebsd64 for multilib support.
6444 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
6446 * doc/extend.texi (vector_size): Add missing comma after @xref.
6448 2019-04-25 Jakub Jelinek <jakub@redhat.com>
6450 * BASE-VER: Set to 10.0.0.
6452 2019-04-25 Richard Biener <rguenther@suse.de>
6455 * gimplify.c (gimplify_expr): Avoid turning a lvalue
6456 VIEW_CONVERT_EXPR into one operating on an rvalue.
6458 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
6461 * config/i386/i386.c (feature_priority): Moved to file scope.
6462 (processor_features): Likewise.
6463 (processor_model): Likewise.
6464 (_arch_names_table): Likewise.
6465 (arch_names_table): Likewise.
6466 (_feature_list): Removed.
6467 (feature_list): Likewise.
6468 (_isa_names_table): Moved to file scope. Add priority.
6469 (isa_names_table): Likewise.
6470 (get_builtin_code_for_version): Replace feature_list with
6471 isa_names_table. Update error message for P_ZERO priority.
6473 2019-04-25 Richard Biener <rguenther@suse.de>
6475 * tree-pass.h (make_pass_phi_only_cprop): Remove.
6476 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
6478 2019-04-24 Jeff Law <law@redhat.com>
6480 PR tree-optimization/90037
6481 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
6482 * passes.def: Replace all instance of phi-only cprop with the
6483 lattice propagator. Move propagation pass from after erroneous
6484 path isolation to before erroneous path isolation.
6485 * tree-ssa-phionlycprop.c: Remove.
6487 2019-04-24 Richard Biener <rguenther@suse.de>
6490 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
6491 by size and BITS_PER_UNIT on poly-wide-ints.
6493 2019-04-25 Richard Biener <rguenther@suse.de>
6496 * match.pd: Add pattern to simplify view-conversion of an
6499 2019-04-24 Clement Chigot <clement.chigot@atos.net>
6501 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
6502 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
6503 for Go on 32 bit AIX.
6504 * config/rs6000/aix72.h: Likewise.
6506 2019-04-24 Jakub Jelinek <jakub@redhat.com>
6509 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
6510 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
6512 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
6515 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
6516 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
6517 for restored hard frame pointer.
6518 (s390_sched_dependencies_evaluation): Implement new target hook.
6519 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
6521 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
6523 * config/arc/arc-options.def: Fix typos and spelling mistakes.
6524 * config/arc/arc.c (arc_init): Cleanup warning message.
6525 (arc_override_options): Likewise.
6527 2019-04-24 Jakub Jelinek <jakub@redhat.com>
6530 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
6531 a register if both if_true and if_false are MEMs.
6533 PR tree-optimization/90208
6534 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
6535 after labels of new_bb, not before them.
6537 PR tree-optimization/90211
6538 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
6539 which are not SSA_NAMEs.
6541 2018-04-23 Sudakshina Das <sudi.das@arm.com>
6543 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
6545 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
6547 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
6549 PR rtl-optimization/87979
6550 * modulo-sched.c (sms_schedule): Start ii value "mii" should
6553 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
6555 PR rtl-optimization/84032
6556 * modulo-sched.c (ps_insn_find_column): Change condition so that
6557 branch will always be the last insn in a row inside partial
6560 2019-04-23 Richard Biener <rguenther@suse.de>
6563 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
6564 dest_single_pred_p argument.
6565 (remove_forwarder_block): Adjust.
6566 (remove_forwarder_block_with_phi): Likewise.
6568 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6569 Bernd Edlinger <bernd.edlinger@hotmail.de>
6570 Jakub Jelinek <jakub@redhat.com>
6573 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
6574 if used with general-regs-only.
6575 (arm_conditional_register_usage): Don't add non-general regs if
6577 (arm_valid_target_attribute_rec): Handle general-regs-only.
6578 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
6580 (TARGET_HARD_FLOAT_SUB): Define.
6581 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
6582 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
6583 (TARGET_REALLY_IWMMXT2): Likewise.
6584 * config/arm/arm.opt: Add -mgeneral-regs-only.
6585 * doc/extend.texi: Document ARM general-regs-only target.
6586 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
6588 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
6590 PR tree-optimization/90078
6591 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
6592 checks for infinite_cost overflow.
6594 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
6596 PR tree-optimization/90021
6597 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
6598 and check univariate against it.
6599 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
6600 * tree-data-ref.c (add_other_self_distances): Pass new argument.
6602 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
6606 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
6609 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
6612 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
6614 * lra-spills.c (lra_final_code_change): Remove useless move insns.
6616 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
6618 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
6619 names using operand format, rather than hard-wired.
6620 (speculation_barrier): Likewise.
6622 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
6624 PR tree-optimization/88055
6625 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
6626 (gen_one_condition): Use it if !HONOR_NANS.
6628 2019-04-19 Jakub Jelinek <jakub@redhat.com>
6631 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
6632 assign_temp instead of gen_reg_rtx.
6634 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
6636 PR translation/90118
6637 * config/aarch64/aarch64.c (aarch64_override_options_internal):
6638 Add missing space before %<.
6640 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
6642 PR rtl-optimization/87871
6643 * ira-lives.c (make_object_dead): Don't add conflicts to
6644 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
6646 2019-04-18 Martin Sebor <msebor@redhat.com>
6649 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
6650 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
6651 assuming type size fits in SHWI.
6653 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
6656 * ipa-inline.c (flatten_function): New parameter UPDATE.
6657 (ipa_inline, early_inliner): Use it.
6659 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
6661 * fold-const.c (int_const_binop): Return early on failure.
6663 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
6666 * combine.c (force_int_to_mode): Cast the argument rather than
6667 the result of known_alignment.
6668 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
6670 2019-04-18 Richard Biener <rguenther@suse.de>
6673 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
6675 (remove_forwarder_block): ... here.
6676 (remove_forwarder_block_with_phi): Also move debug stmts here.
6678 2019-04-18 Jakub Jelinek <jakub@redhat.com>
6680 PR translation/79183
6681 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
6682 inform where appropriate.
6684 2019-04-18 Richard Biener <rguenther@suse.de>
6686 * tree.c (get_qualified_type): Put found type variants at the
6687 head of the variant list.
6689 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
6691 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
6693 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
6696 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
6697 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
6698 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
6699 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
6700 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
6702 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
6704 * ira-conflicts.c (print_allocno_conflicts): Always print something,
6705 even for allocno's with no conflicts.
6706 (print_conflicts): Print an extra newline.
6708 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
6710 * auto-inc-dec.c (attempt_change): Set the alignment of the
6711 temporary memory to that of the original.
6713 2019-04-17 Joao Moreira <jmoreira@suse.de>
6715 * targhooks.c (default_print_patchable_function_entry): Emit
6716 __patchable_function_entries section with writable flags to allow
6717 relocation resolution.
6719 2019-04-17 Jonny Grant <jg@jguk.org>
6721 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
6723 2019-04-17 Jakub Jelinek <jakub@redhat.com>
6726 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
6729 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
6731 * config/arc/arc.c (arc_init): Format diagnostic string.
6732 (arc_override_options): Likewise.
6733 (check_if_valid_regno_const): Likewise.
6734 (arc_reorg): Likewise.
6736 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
6739 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
6741 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
6743 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
6744 (*movdi_update1): Use Pmode.
6745 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
6746 (movdi_<mode>_update_stack): Rename to ...
6747 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
6749 (*movsi_update1): Use Pmode.
6750 (*movsi_update2): Use Pmode.
6751 (movsi_update): Rename to ...
6752 (movsi_<mode>_update): ... this. Use Pmode.
6753 (movsi_update_stack): Fix condition.
6754 (*movhi_update1): Use Pmode. Fix argument to
6755 avoiding_indexed_address_p.
6756 (*movhi_update2): Ditto.
6757 (*movhi_update3): Ditto.
6758 (*movhi_update4): Ditto.
6759 (*movqi_update1): Ditto.
6760 (*movqi_update2): Ditto.
6761 (*movqi_update3): Ditto.
6762 (*movsf_update1, *movdf_update1): Merge, rename to...
6763 (*mov<mode>_update1): This. Use Pmode. Fix argument to
6764 avoiding_indexed_address_p. Add "size" attribute.
6765 (*movsf_update2, *movdf_update2): Merge, rename to...
6766 (*mov<mode>_update2): This. Ditto.
6767 (*movsf_update3): Use Pmode. Fix argument to
6768 avoiding_indexed_address_p.
6769 (*movsf_update4): Ditto.
6770 (allocate_stack): Simplify condition. Adjust pattern names.
6772 2019-04-17 Jakub Jelinek <jakub@redhat.com>
6775 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
6776 whitespace at the start of target attribute string.
6778 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
6781 * config/rs6000/power9.md: Add store forwarding bypass.
6783 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
6786 * valtrack.c (dead_debug_insert_temp): Reset debug references
6787 to the return value of a call being removed.
6789 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
6791 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
6792 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
6793 implement target hook.
6794 (arc_memory_move_cost): New function.
6795 (TARGET_REGISTER_MOVE_COST): Define.
6796 (TARGET_MEMORY_MOVE_COST): Likewise.
6797 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
6798 (MEMORY_MOVE_COST): Likewise.
6800 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
6802 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
6803 (sibcall_value_insn): Likewise.
6804 * config/arc/constraints.md (Rs5): Remove.
6806 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
6808 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
6809 for last two fake registers.
6810 (arc_conditional_register_usage): Make sure fake frame and arg
6811 pointer regs are in general regs class.
6812 (FRAME_POINTER_MASK): Remove.
6813 (RETURN_ADDR_MASK): Remove.
6814 (arc_must_save_register): Use hard frame regnum.
6815 (frame_restore_reg): Use hard_frame_pointer_rtx.
6816 (arc_save_callee_saves): Likewise.
6817 (arc_restore_callee_saves): Likewise.
6818 (arc_save_callee_enter): Likewise.
6819 (arc_restore_callee_leave): Likewise.
6820 (arc_save_callee_milli): Likewise.
6821 (arc_eh_return_address_location): Likewise.
6822 (arc_check_multi): Use hard frame regnum.
6823 (arc_can_eliminate): Likewise.
6824 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
6825 for register allocator.
6826 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
6827 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
6828 (FRAME_POINTER_REGNUM): Change it to a fake register.
6829 (HARD_FRAME_POINTER_REGNUM): Defined.
6830 (ARG_POINTER_REGNUM): Change it to a new fake register.
6831 (ELIMINABLE_REGS): Update.
6832 (REGISTER_NAMES): Update names.
6833 * config/arc/arc.md (LP_START): Remove.
6835 (shift_si3_loop): Update pattern.
6837 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
6839 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
6840 to avoid delay slot scheduling.
6841 (arc_must_save_register): Don't save SP.
6842 * config/arc/arc.md (stack_tie): Remove.
6843 (UNSPEC_ARC_STKTIE): Likewise.
6845 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
6846 Shiva Chen <shiva0217@gmail.com>
6848 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
6849 code gen with large shift amount.
6851 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
6853 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
6856 2019-04-16 Jakub Jelinek <jakub@redhat.com>
6859 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
6860 print -m64/-mx32/-m32 if it is true.
6861 (ix86_debug_options, ix86_function_specific_print): Pass true as
6862 ADD_ABI_P to ix86_target_string.
6863 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
6864 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
6865 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
6867 PR rtl-optimization/90082
6868 * dce.c (can_delete_call): New function.
6869 (deletable_insn_p, mark_insn): Use it.
6871 PR tree-optimization/90090
6872 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
6874 (is_division_by_square): Likewise. Formatting fix.
6876 2019-04-16 Richard Biener <rguenther@suse.de>
6878 PR tree-optimization/56049
6879 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
6880 equality check if alias-set zero will prevail.
6882 2019-04-15 Jeff Law <law@redhat.com>
6884 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
6885 size and alignment as unsigned.
6887 2019-04-15 Richard Biener <rguenther@suse.de>
6890 * tree-loop-distribution.c (destroy_loop): Preserve correct
6893 2019-04-15 Richard Biener <rguenther@suse.de>
6895 PR tree-optimization/90071
6896 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
6897 abnormal operands from def stmts.
6899 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
6901 PR rtl-optimization/89794
6902 * combine.c (count_auto_inc): New function.
6903 (try_combine): Count how many auto_inc expressions there were in the
6904 original instructions. Ensure we have the same number in the new
6905 instructions. Remove the code that tried to ensure auto_inc side
6906 effects on i1 and i0 are not lost.
6908 2019-04-15 Richard Biener <rguenther@suse.de>
6911 * tree.h (auto_var_p): Declare.
6912 * tree.c (auto_var_p): New function, split out from ...
6913 (auto_var_in_fn_p): ... here.
6914 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
6916 (new_var_info): Initialize it.
6917 (set_uids_in_ptset): Also set the shadow variable uid if required.
6918 (ipa_pta_execute): Postprocess points-to solutions assigning
6919 shadow variable uids for locals that may reach their containing
6920 function recursively.
6921 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
6922 assert but instead check whether the points-to solution is
6925 2019-04-15 Martin Jambor <mjambor@suse.cz>
6928 * cgraph.c (clone_of_p): Loop over clone chain for each step in
6931 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
6933 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
6935 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
6936 Kito Cheng <kito.cheng@gmail.com>
6937 Shiva Chen <shiva0217@gmail.com>
6939 * config/nds32/nds32-md-auxiliary.c
6940 (nds32_legitimize_pic_address): Use new PIC pattern.
6941 (nds32_legitimize_tls_address): Use new TLS pattern.
6942 (nds32_output_symrel): New.
6943 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
6944 (nds32_alloc_relax_group_id): Ditto.
6945 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
6946 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
6948 (nds32_group_tls_insn): Ditto.
6949 (nds32_group_float_insns): Ditto.
6950 * config/nds32/nds32.md (tls_le): New.
6953 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
6955 * configure: Add nds32 target for dwarf2 debug_line checking.
6956 * configure.ac: Regenerated.
6958 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
6961 * ipa-devirt.c (skip_in_fields_list_p): New.
6962 (odr_types_equivalent_p): Use it.
6964 2019-04-13 Jakub Jelinek <jakub@redhat.com>
6967 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
6968 instead of strncmp when checking for thumb and arm. Formatting fixes.
6970 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
6972 * doc/install.texi: Document --with-target-system-zlib.
6974 2019-04-12 Martin Sebor <msebor@redhat.com>
6980 * targhooks.c (default_vector_alignment): Avoid assuming
6981 argument fits in SHWI.
6982 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
6984 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
6986 2019-04-12 Jakub Jelinek <jakub@redhat.com>
6988 PR rtl-optimization/89965
6989 * dce.c: Include rtl-iter.h.
6990 (struct check_argument_load_data): New type.
6991 (check_argument_load): New function.
6992 (find_call_stack_args): Check for loads from stack slots still tracked
6993 in sp_bytes and punt if any is found.
6995 * config/mips/loongson-mmiintrin.h: Fix up #error message.
6997 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
6999 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
7000 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
7002 2019-04-12 Martin Liska <mliska@suse.cz>
7005 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
7007 (separate_attrs): Handle multiple 'default's.
7008 (expand_target_clones): Rework error handling code.
7010 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
7013 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
7014 mode of vector rather than mode of destination for move instruction.
7015 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
7016 Use QI inner mode with V16QI vector mode.
7018 2019-04-12 Jakub Jelinek <jakub@redhat.com>
7021 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
7022 "invalid %%t operand" in output_operand_lossage message.
7024 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
7026 * config/s390/predicates.md (permute_pattern_operand): New
7028 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
7029 operand for the permute pattern.
7030 ("*vec_perm<mode>"): New insn definition.
7031 ("bswap<mode>"): Generate the permute pattern operand in the
7032 expander and perform the operand reloads for pre arch13 level
7034 ("*bswap<mode>_emu"): Rename to ...
7035 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
7036 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
7037 Add the USE operand for the permute pattern.
7038 ("*vec_set_bswap_vec<mode>"): Likewise.
7040 2019-04-12 Jakub Jelinek <jakub@redhat.com>
7043 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
7044 and gcc_unreachable if it fails, just call tree_to_uhwi which
7045 verifies that too. Test TREE_CHAIN instead of list_length > 1.
7046 Start warning message with a lower-case letter. Formatting fixes.
7048 PR rtl-optimization/90026
7049 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
7050 successors, look for BARRIERs inside of the whole BB_FOOTER chain
7051 rather than just at the start of it. If e->src BB_FOOTER is not NULL
7052 in cfglayout mode, use emit_barrier_after_bb.
7054 2018-04-11 Steve Ellcey <sellcey@marvell.com>
7056 PR rtl-optimization/87763
7057 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
7060 2019-04-11 Tom de Vries <tdevries@suse.de>
7062 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
7063 max macro using statement expression.
7065 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
7067 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
7068 * xcoffout.c (xcoff_private_rodata_section_name): Define.
7069 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
7070 read_only_private_data_section using xcoff_private_rodata_section_name.
7071 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
7073 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
7076 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
7078 2019-04-11 Jakub Jelinek <jakub@redhat.com>
7080 PR rtl-optimization/89965
7081 * dce.c (sp_based_mem_offset): New function.
7082 (find_call_stack_args): Use sp_based_mem_offset.
7084 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
7086 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
7088 2019-04-11 Richard Biener <rguenther@suse.de>
7090 PR tree-optimization/90020
7091 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
7092 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
7093 * tree-ssa-pre.c (compute_avail): Use it to not put
7094 possibly trapping references after a call that might not
7095 return into EXP_GEN.
7096 * gcse.c (compute_hash_table_work): Do not elide
7097 marking a block containing a call if the call might not
7100 2019-04-11 Richard Biener <rguenther@suse.de>
7102 PR tree-optimization/90018
7103 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
7104 Test both SLP and interleaving variants.
7106 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
7108 * config/s390/8561.md: New file.
7109 * config/s390/driver-native.c (s390_host_detect_local_cpu):
7110 Add arch13 cpu model.
7111 * config/s390/s390-opts.h (enum processor_type): Likewise.
7112 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
7113 (s390_get_unit_mask): Likewise.
7114 (s390_is_fpd): Likewise.
7115 (s390_is_fxd): Likewise.
7116 * config/s390/s390.h (s390_tune_attr): Likewise.
7117 * config/s390/s390.md: Include arch13 pipeline description.
7118 * config/s390/s390.opt: Add arch13.
7120 2018-04-10 Steve Ellcey <sellcey@marvell.com>
7122 PR rtl-optimization/87763
7123 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
7125 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
7127 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
7129 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
7130 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
7131 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
7132 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
7134 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
7136 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
7137 "Although" in -fipa-icf documentation.
7139 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
7140 of using multiple -g options.
7142 2019-04-10 Martin Liska <mliska@suse.cz>
7144 PR gcov-profile/89959
7145 * doc/gcov.texi: Make documentation of -x option
7148 2019-04-10 Richard Biener <rguenther@suse.de>
7150 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
7152 (DR_GROUP_SAME_DR_STMT): Remove.
7153 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
7154 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
7155 replace with assert.
7156 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
7157 (vect_record_grouped_load_vectors): Remove unreachable code.
7159 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
7162 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
7163 obsolete reference to N.
7165 2019-04-10 Jakub Jelinek <jakub@redhat.com>
7168 * expr.c (store_expr): Set properly size on the MEM passed to
7172 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
7173 with strlen in between hostsz-3 and hostsz-1 inclusive when no
7174 translation is needed, and when translation is needed, only append
7175 ... if the string length is hostsz or more bytes long. Avoid using
7178 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
7181 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
7182 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
7184 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
7185 differences directly.
7186 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
7188 2019-04-09 Jakub Jelinek <jakub@redhat.com>
7190 PR translation/90011
7191 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
7193 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
7195 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
7196 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
7197 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
7198 trailing space from -gsplit-dwarf diagnostics.
7200 PR tree-optimization/89998
7201 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
7202 instead of integer_type_node if possible, don't add ranges if return
7203 type is not compatible with int.
7204 * gimple-fold.c (gimple_fold_builtin_sprintf,
7205 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
7208 2019-04-09 Martin Liska <mliska@suse.cz>
7210 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
7211 * doc/install.texi: Document the new config.
7213 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
7215 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
7216 use gimple_expr_type for load and store calls. Skip over the
7217 condition argument in a conditional internal function.
7218 Protect use of TREE_INT_CST_LOW.
7220 2019-04-09 Jakub Jelinek <jakub@redhat.com>
7223 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
7224 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
7225 trailing period from it too.
7227 2019-04-08 wu yuan <wuyuan5@huawei.com>
7229 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
7230 * config/aarch64/aarch64.md : Add "tsv110.md"
7231 * config/aarch64/tsv110.md: New file.
7233 2019-04-08 Richard Biener <rguenther@suse.de>
7235 PR tree-optimization/90006
7236 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
7239 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
7242 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
7244 (fma_root_node): Likewise.
7245 (func_fma_steering): Likewise.
7247 2019-04-08 Jakub Jelinek <jakub@redhat.com>
7249 PR rtl-optimization/89865
7250 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
7252 PR rtl-optimization/89865
7253 * config/i386/i386.md
7254 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
7255 numbers not to clash with the additional operands[4].
7256 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
7257 with extra register copy in the middle.
7259 2019-04-08 Martin Liska <mliska@suse.cz>
7261 PR gcov-profile/89961
7262 * doc/gcov.texi: Document data_file.
7263 * gcov.c (generate_results): Add data_info into JSON output.
7265 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
7267 PR tree-optimization/89725
7268 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
7269 loop's chrec as invariant symbol.
7270 * tree-chrec.h (chrec_contains_symbols): New parameter.
7271 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
7272 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
7273 function of loops not in DDR's loop_nest.
7274 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
7276 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
7279 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
7282 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
7285 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
7286 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
7288 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
7290 * sched-deps.c (sched_macro_fuse_insns): Check return value of
7291 targetm.fixed_condition_code_regs.
7293 2019-04-05 Richard Biener <rguenther@suse.de>
7297 * tree-cfgcleanup.c (remove_forwarder_block): Always move
7298 debug bind stmts but reset them if they are not valid at the
7301 2019-04-05 Martin Liska <mliska@suse.cz>
7303 PR translation/89936
7304 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
7305 order to wrap keywords or arguments.
7306 * collect2.c (main): Likewise.
7307 (scan_prog_file): Likewise.
7308 (scan_libraries): Likewise.
7309 * common/config/riscv/riscv-common.c
7310 (riscv_subset_list::parsing_subset_version): Likewise.
7311 (riscv_subset_list::parse_std_ext): Likewise.
7312 * config/aarch64/aarch64.c (aarch64_override_options_internal):
7314 * config/arm/arm.c (arm_option_override): Likewise.
7315 * config/cris/cris.c (cris_print_operand): Likewise.
7316 * config/darwin-c.c (darwin_pragma_options): Likewise.
7317 (darwin_pragma_unused): Likewise.
7318 (darwin_pragma_ms_struct): Likewise.
7319 * config/ft32/ft32.c (ft32_print_operand): Likewise.
7320 * config/i386/i386.c (print_reg): Likewise.
7321 (ix86_print_operand): Likewise.
7322 * config/i386/xm-djgpp.h: Likewise.
7323 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
7324 * config/m32c/m32c.c (m32c_option_override): Likewise.
7325 * config/msp430/msp430.c (msp430_option_override): Likewise.
7326 * config/nds32/nds32.c (nds32_option_override): Likewise.
7327 * config/nvptx/mkoffload.c (main): Likewise.
7328 * config/rx/rx.c (rx_print_operand): Likewise.
7329 (valid_psw_flag): Likewise.
7330 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
7331 (vms_pragma_nomember_alignment): Likewise.
7332 (vms_pragma_extern_model): Likewise.
7333 * lto-wrapper.c (compile_offload_image): Likewise.
7334 * omp-offload.c (oacc_parse_default_dims): Likewise.
7335 * symtab.c (symtab_node::verify_base): Likewise.
7336 * tlink.c (recompile_files): Likewise.
7337 (start_tweaking): Likewise.
7338 * tree-profile.c (parse_profile_filter): Likewise.
7340 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
7342 PR tree-optimization/89956
7343 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
7344 multiple negates of the same value.
7346 2019-04-04 Martin Sebor <msebor@redhat.com>
7350 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
7351 have the same precision since the function crashes otherwise.
7352 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
7353 has non-zero arguments.
7355 2019-04-04 Martin Sebor <msebor@redhat.com>
7358 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
7359 out if the number of arguments is less than expected.
7361 2019-04-04 Jeff Law <law@redhat.com>
7363 PR rtl-optimization/89399
7364 * ree.c (combine_set_extension): Use single_set rather than
7365 digging into PATTERN for items on the candidate list.
7366 (combine_reaching_defs): Likewise.
7368 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
7370 PR rtl-optimization/46590
7371 * loop-invariant.c (find_defs): Move df_remove_problem and
7372 df_process_deferred_rescans to move_invariants.
7373 Move df_live_add_problem and df_live_set_all_dirty calls
7375 (move_invariants): Likewise.
7376 (move_loop_invariants): Likewise, making the df_live calls
7377 conditional on -O. Remove the problem again if we added it
7380 2019-04-03 qing zhao <qing.zhao@oracle.com>
7382 PR tree-optimization/89730
7383 * ipa-inline.c (can_inline_edge_p): Delete the checking for
7384 -flive-patching=inline-only-static.
7385 (can_inline_edge_by_limits_p): Add the checking for
7386 -flive-patching=inline-only-static and grant always_inline
7387 even when -flive-patching=inline-only-static is specified.
7389 2019-04-03 Jeff Law <law@redhat.com>
7391 PR rtl-optimization/81025
7392 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
7394 2019-04-03 Richard Biener <rguenther@suse.de>
7396 PR tree-optimization/84101
7397 * tree-vect-stmts.c: Include explow.h for hard_function_value,
7398 regs.h for hard_regno_nregs.
7399 (cfun_returns): New helper.
7400 (vect_model_store_cost): When vectorizing a store to a decl
7401 we return and the function ABI returns in a multi-reg location
7402 account for the possible spilling that will happen.
7404 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
7406 * config/s390/s390.c (s390_legitimate_address_p): Reject long
7407 displacement addresses for vector mode operands.
7409 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
7411 * config/arc/arc.c (GMASK_LEN): Define.
7412 (arc_restore_callee_saves): Restore first blink when
7415 2019-04-03 Sudakshina Das <sudi.das@arm.com>
7417 * doc/extend.texi: Add deprecated comment on sign-return-address
7418 function attribute and add mbranch-protection.
7419 * doc/invoke.texi: Add bti to the options for mbranch-protection.
7421 2019-04-03 Richard Biener <rguenther@suse.de>
7424 * lto-wrapper.c (run_gcc): Avoid implicit rules making
7425 the all target phony.
7427 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
7431 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
7432 Return false for variable DImode shifts.
7433 (dimode_scalar_chain::compute_convert_gain): Do not handle
7434 register count operand in variable DImode shifts.
7435 (dimode_scalar_chain::make_vector_copies): Remove support to copy
7436 count argument of a variable shift instruction to a vector register.
7437 (dimode_scalar_chain::convert_reg): Remove support to convert
7438 count argument of a variable shift instruction.
7440 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
7442 PR rtl-optimization/84206
7443 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
7444 iterating over loop headers.
7446 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
7448 PR rtl-optimization/85876
7449 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
7450 beyond the original fence.
7452 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
7454 * config.gcc: Mark spu* targets as deprecated/obsolete.
7456 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
7458 * config/s390/s390-builtin-types.def: New builtin function type
7459 definitions. Remove unused types.
7460 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
7461 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
7462 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
7463 overloaded builtins.
7464 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
7465 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
7466 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
7467 (vec_double, vec_signed, vec_unsigned): Define to use the new
7468 overloaded builtins.
7469 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
7472 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
7474 * config/s390/s390-builtin-types.def: New builtin function type
7476 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
7477 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
7478 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
7479 (s390_vstrszh, s390_vstrszf): New low-level builtins.
7480 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
7481 constant definitions.
7482 * config/s390/vecintrin.h (vec_search_string_cc)
7483 (vec_search_string_until_zero_cc): New builtin name definitions.
7484 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
7486 ("vec_vstrs<mode>"): New insn definition.
7488 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
7490 * config/s390/s390-builtin-types.def: Add new builtin function
7492 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
7493 New overloaded builtins.
7494 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
7496 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
7497 (UNSPEC_VEC_SLDBYTE): ... this.
7498 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
7499 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
7501 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
7502 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
7503 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
7505 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
7507 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
7508 New insn definition.
7509 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
7510 * config/s390/vector.md (V_HW_HSD): ... here.
7512 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
7514 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
7515 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
7516 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
7517 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
7518 New insn definitions.
7520 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
7522 * config/s390/s390-builtin-types.def: Add new builtin function type.
7523 * config/s390/s390-builtins.def: Add overloaded builtin
7524 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
7525 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
7526 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
7527 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
7528 ("eltswap<mode>"): New expander.
7529 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
7532 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
7534 * config/s390/s390-builtin-types.def: Add new builtin function types.
7535 * config/s390/s390-builtins.def: Add overloaded builtin
7536 s390_vec_revb. Add low-level builtins for vlbr and vstbr
7538 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
7539 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
7540 ("bswap<mode>"): New expander.
7541 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
7543 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
7545 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
7546 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
7547 vector builtin version number in __VEC__.
7549 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
7551 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
7553 (SFSI): New mode attribute.
7554 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
7555 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
7557 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
7558 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
7559 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
7560 ("floatsi<mode>2"): Add wcefb instruction.
7562 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
7564 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
7565 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
7567 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
7568 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
7569 support 32 bit fp-int conversions. Rename to ...
7570 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
7571 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
7572 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
7573 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
7576 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
7578 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
7579 if-then-else constructs if we can use the select instruction.
7580 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
7582 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
7584 * config/s390/s390.md ("*popcountdi_arch13_cc")
7585 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
7587 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
7588 Append _z196 to make it ...
7589 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
7590 ("popcounthi2_z196"): ... this.
7591 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
7592 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
7594 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
7596 * config/s390/s390.c (s390_canonicalize_comparison): Convert
7597 certain compares for arch13 in order to make use of the condition
7598 code result produced by the new instructions.
7599 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
7600 nxrk, and nxgrk instruction patterns.
7601 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
7602 (inv_no): Add new code iterator together with some attributes.
7603 ("*andc_split_<mode>"): Disable splitter for arch13.
7604 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
7605 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
7606 ("*<ANDOR:bitops_name>c<GPR:mode>")
7607 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
7608 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
7609 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
7610 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
7612 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
7614 * common/config/s390/s390-common.c (processor_flags_table): New
7616 * config.gcc: Support arch13 with the --with-arch= configure flag.
7617 * config/s390/driver-native.c (s390_host_detect_local_cpu):
7618 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
7619 * config/s390/s390.c (s390_get_sched_attrmask)
7620 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
7621 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
7622 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
7623 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
7624 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
7626 * config/s390/s390.opt: Support arch13 as processor type in
7627 command line options.
7629 2019-04-02 Martin Liska <mliska@suse.cz>
7631 PR translation/89912
7632 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
7633 Fix param description of graphite-max-arrays-per-scop.
7635 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
7637 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
7638 (ASAN_CC1_SPEC): Use it in 64-bit mode.
7639 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
7641 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
7643 PR rtl-optimization/85412
7644 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
7645 sel_sched_region_1, not after.
7647 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
7649 PR rtl-optimization/86928
7650 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
7651 compute_live if necessary.
7652 (sel_redirect_edge_and_branch): Likewise.
7654 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
7656 PR rtl-optimization/89865
7657 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
7658 register if it is a part of small class.
7660 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
7662 PR rtl-optimization/87273
7663 * sel-sched-ir.c (merge_fences): Remove assert.
7665 2019-04-01 Richard Biener <rguenther@suse.de>
7667 PR tree-optimization/46590
7668 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
7669 (dom_walker::m_reachability): Add in place of...
7670 (dom_walker::m_skip_unreachable_blocks): ...this.
7671 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
7672 Move complex initialization ...
7673 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
7674 lazily and initialize edge flags on each invocation.
7675 (dom_walker::bb_reachable): Use m_reachability.
7677 2019-04-01 Martin Liska <mliska@suse.cz>
7680 * opt-suggestions.c (option_proposer::build_option_suggestions):
7681 Add variant without any argument in order to provide better
7684 2019-04-01 Richard Biener <rguenther@suse.de>
7687 * gimple.c: Include langhooks.h.
7688 (gimple_get_alias_set): Treat enumeral types as the underlying
7691 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
7692 Eric Botcazou <ebotcazou@adacore.com>
7694 PR rtl-optimization/89862
7695 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
7696 that operates on the full registers for WORD_REGISTER_OPERATIONS
7699 2019-03-29 Jim Wilson <jimw@sifive.com>
7701 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
7702 Clear MASK_RVC and then set if C subset supported.
7704 2019-03-29 Jakub Jelinek <jakub@redhat.com>
7707 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
7708 non-addressable complit into its initializer if it is volatile.
7710 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
7712 * opts-common.c (integral_argument): Set errno properly in one case.
7714 2019-03-29 Martin Liska <mliska@suse.cz>
7716 * doc/invoke.texi: Remove -Wchkp from documentation.
7718 2019-03-29 Martin Liska <mliska@suse.cz>
7720 * dbgcnt.c (print_limit_reach): New function.
7723 2019-03-29 Martin Liska <mliska@suse.cz>
7725 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
7726 (dbg_cnt_process_opt): Parse first tokens aas
7727 dbg_cnt_process_single_pair is also using strtok.
7729 2019-03-29 Jakub Jelinek <jakub@redhat.com>
7731 PR rtl-optimization/87485
7732 * function.c (expand_function_end): Move stack_protect_epilogue
7733 before loading of return value into hard register(s).
7735 2019-03-28 Jakub Jelinek <jakub@redhat.com>
7738 * tree-inline.h (struct copy_body_data): Add
7739 dont_remap_vla_if_no_change flag.
7740 * tree-inline.c (remap_type_3, remap_type_2): New functions.
7741 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
7742 and remap_type_2 returns false.
7743 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
7744 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
7745 only from where it is copied to nested contexts.
7747 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
7750 * config/i386/i386.md (RMW operation with LEA peephole):
7751 Use LEAMODE mode attribute instead of SWI mode iterator for
7754 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
7757 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
7758 Also process XEXP (src, 0) of a shift insn.
7760 2019-03-28 David Malcolm <dmalcolm@redhat.com>
7763 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
7764 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
7766 2019-03-28 Jakub Jelinek <jakub@redhat.com>
7768 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
7770 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
7771 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
7772 immediately after first one with df_analyze in between, but rather
7773 process all bbs, queueing ones that need second pass in a worklist,
7774 df_analyze, process queued debug insn changes and if second pass is
7775 needed, process bbs from worklist, df_analyze, process queued debug
7778 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
7779 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
7780 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
7782 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
7785 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
7788 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
7791 * config/i386/i386.c (ix86_function_value_1): Call the newly added
7792 function for 32-bit MS_ABI.
7793 (function_value_ms_32): New function.
7795 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
7797 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
7798 (movdi): Call gen_movdi_symbol_save_scc.
7799 (gen_movdi_symbol_save_scc): New insn and split.
7801 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
7803 PR rtl-optimization/89313
7804 * function.c (matching_constraint_num): New static function.
7805 (match_asm_constraints_1): Use it. Fixup white space and comment.
7806 Don't replace inputs with non-matching constraints which conflict
7807 with early clobber outputs.
7809 2019-03-27 Jeff Law <law@redhat.com>
7812 PR rtl-optimization/87761
7813 PR rtl-optimization/89826
7814 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
7816 (pass_cprop_hardreg::execute): Call df_analyze after adding the
7817 note problem to get REG_DEAD/REG_UNUSED notes updated.
7819 2019-03-27 Richard Biener <rguenther@suse.de>
7821 PR tree-optimization/89463
7822 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
7823 queue edges to remove.
7824 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
7825 dead stmts. Delay edge removal until PHIs are removed to
7826 make debug-stmt creation not confused by seemingly degenerate
7829 2019-03-27 Alan Modra <amodra@gmail.com>
7831 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
7833 * config/rs6000/darwin.h: Likewise.
7834 * config/rs6000/rs6000.c: Likewise.
7836 2019-03-27 Alan Modra <amodra@gmail.com>
7838 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
7839 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
7841 2019-03-26 Andrew Waterman <andrew@sifive.com>
7842 Jim Wilson <jimw@sifive.com>
7844 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
7845 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
7846 (generic_idivdi, generic_fmul_single, generic_fmul_double)
7847 (generic_fdiv, generic_fsqrt): Add check for generic tune.
7848 (generic_alu): Add auipc to type list.
7849 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
7850 (riscv_microarchitecture): Declare.
7851 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
7852 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
7854 (riscv_microarchitecture): New.
7855 (sifive_7_tune_info): New.
7856 (riscv_cpu_info_table): Add microarchitecture value for rocket and
7857 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
7859 (riscv_store_data_bypass_p): New.
7860 (riscv_option_override): Set riscv_microarchitecture from
7861 cpu->microarchitecture.
7862 * config/riscv/riscv.md: Include sifive-7.md.
7865 (auipc<mode>): Change type to auipc.
7866 (restore_stack_nonlocal): New.
7867 * config/riscv/sifive-7.md: New.
7868 * doc/invoke.texi (RISC-V Options): Update mtune docs.
7870 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
7873 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
7874 Also process XEXP (src, 0) of a shift insn.
7876 2019-03-26 Richard Biener <rguenther@suse.de>
7878 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
7879 (copy_debug_stmt): Likewise.
7880 (expand_call_inline): Likewise.
7881 (copy_bb): Avoid redundant lookup & set of gimple_block.
7882 * gimple-low.c (lower_gimple_return): Likewise.
7883 (lower_builtin_setjmp): Likewise.
7885 2019-03-26 Jakub Jelinek <jakub@redhat.com>
7887 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
7888 is constant 0, turn into static const data member initialized to false.
7889 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
7890 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
7892 2019-03-26 Jason Merrill <jason@redhat.com>
7893 Jakub Jelinek <jakub@redhat.com>
7895 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
7897 (mem_alloc_description::release_object_overhead): Fix comment typos.
7898 * hash-table.h (hash_table::~hash_table): Call
7899 release_instance_overhead only if m_entries is non-NULL, otherwise
7900 call unregister_descriptor.
7902 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
7904 PR tree-optimization/81740
7905 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
7906 In case of outer loop vectorization, check for backward dependence
7907 at the inner loop if outer loop dependence is reversed.
7909 2019-03-26 Alan Modra <amodra@gmail.com>
7911 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
7912 rs6000_vector_mem init. Correct wI and wJ comment.
7914 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
7916 PR rtl-optimization/88347
7917 PR rtl-optimization/88423
7918 * sched-deps.c (sched_analyze_insn): Take into account that for
7919 tablejumps the barrier appears after a label and a jump_table_data.
7921 2019-03-25 Martin Sebor <msebor@redhat.com>
7924 * c-common.c (check_user_alignment): Rename local. Correct maximum
7925 alignment in diagnostic. Avoid assuming argument fits in SHWI,
7926 convert it to UHWI when it fits.
7928 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
7931 * dwarf2out.c (premark_used_variables): New function.
7932 (prune_unused_types_walk): Do not mark not premarked external
7934 (prune_unused_types): Call premark_used_variables.
7936 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
7938 PR rtl-optimization/89676
7939 * lra-constraints.c (curr_insn_transform): Do match reload for
7940 early clobbers when the match was successful only for different
7943 2019-03-25 Martin Sebor <msebor@redhat.com>
7945 * doc/extend.texi (Common Type Attributes): Document vector_size.
7946 (Common Variable Attributes): Mention size constraint. Correct
7948 (Vector Extensions): Use @dfn when defining bas type. Clarify
7949 base type and size constraints.
7951 2019-03-25 Richard Biener <rguenther@suse.de>
7953 PR tree-optimization/89789
7954 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
7955 changes from non-undefined back to undefined.
7957 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
7959 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
7960 heap string and a gc string, but since this variable is unknown to
7961 ggc the gc string might get reused and corrupted. Fixed by always
7962 using a heap string.
7964 2019-03-25 Richard Biener <rguenther@suse.de>
7966 PR tree-optimization/89779
7967 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
7968 to remove IV defs, delay actual removal.
7969 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
7970 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
7971 very end, properly also reset loop control IV information.
7973 2019-03-25 Richard Biener <rguenther@suse.de>
7975 PR tree-optimization/89802
7976 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
7977 move EH data to folded stmt.
7979 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
7981 * config/s390/s390-builtin-types.def: Remove few unused types and
7982 fix sort order for others.
7984 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
7986 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
7987 expected and found types with -mdebug during builtin matching.
7989 2019-03-25 Richard Biener <rguenther@suse.de>
7992 * fold-const.c (operand_equal_p): Revert last change with
7995 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
7997 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
7998 notes for the result of the __tls_get_addr calls.
7999 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
8001 2019-03-24 Jeff Law <law@redhat.com>
8003 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
8005 PR rtl-optimization/87761
8006 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
8007 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
8009 (pass_cprop_hardreg::execute): Add df note problem and defer insn
8010 rescans. Reprocess blocks as needed, calling df_analyze before
8011 reprocessing. Always call df_analyze before fixing up debug bind
8014 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
8016 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
8019 2019-03-22 Andrew Pinski <apinski@marvell.com>
8021 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
8022 attrribute for uxtw.
8024 2019-03-26 Jeff Law <law@redhat.com>
8026 PR rtl-optimization/87761
8027 * config/mips/mips-protos.h (mips_split_move): Add new argument.
8028 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
8029 (mips_split_move): Accept new INSN argument. Try to forward SRC
8030 into the next instruction.
8031 (mips_split_move_insn): Pass INSN through to mips_split_move.
8033 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
8035 PR rtl-optimization/89676
8036 * lra-constraints.c (curr_insn_transform): Do match reload for
8037 early clobbers even if the match was successful.
8039 2019-03-22 Jakub Jelinek <jakub@redhat.com>
8042 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
8044 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
8046 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
8048 2019-03-22 Jakub Jelinek <jakub@redhat.com>
8050 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
8051 <avx512>_fmsub_<mode>_mask3<round_name>,
8052 <avx512>_fnmadd_<mode>_mask3<round_name>,
8053 <avx512>_fnmsub_<mode>_mask3<round_name>,
8054 avx512f_vmfmadd_<mode>_mask3<round_name>,
8055 avx512f_vmfmsub_<mode>_mask3<round_name>,
8056 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
8057 instead of register_operand and %v instead of v for match_operand 1.
8058 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
8059 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
8060 <round_nimm_predicate> instead of register_operand and %v instead of v
8061 for match_operand 1.
8063 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
8064 <avx512>_fmadd_<mode>_mask3<round_name>,
8065 <avx512>_fmsub_<mode>_mask<round_name>,
8066 <avx512>_fmsub_<mode>_mask3<round_name>,
8067 <avx512>_fnmadd_<mode>_mask<round_name>,
8068 <avx512>_fnmadd_<mode>_mask3<round_name>,
8069 <avx512>_fnmsub_<mode>_mask<round_name>,
8070 <avx512>_fnmsub_<mode>_mask3<round_name>,
8071 <avx512>_fmaddsub_<mode>_mask<round_name>,
8072 <avx512>_fmaddsub_<mode>_mask3<round_name>,
8073 <avx512>_fmsubadd_<mode>_mask<round_name>,
8074 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
8075 <round_nimm_predicate> instead of nonimmediate_operand.
8076 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
8077 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
8078 Use register_operand instead of <round_nimm_predicate> for the
8079 operand that needs to match output.
8080 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
8081 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
8082 Likewise. Formatting fixes.
8085 * config/i386/i386.c (enum ix86_builtins): Remove
8086 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
8087 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
8088 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
8089 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
8090 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
8091 __builtin_ia32_vfmsubss3_mask3): New builtins.
8092 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
8093 avx512f_vmfmadd_<mode>_mask3<round_name>,
8094 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
8095 *avx512f_vmfmsub_<mode>_mask<round_name>,
8096 avx512f_vmfmsub_<mode>_mask3<round_name>,
8097 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
8098 *avx512f_vmfnmadd_<mode>_mask<round_name>,
8099 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
8100 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
8101 *avx512f_vmfnmsub_<mode>_mask<round_name>,
8102 avx512f_vmfnmsub_<mode>_mask3<round_name>,
8103 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
8104 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
8105 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
8106 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
8107 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
8108 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
8109 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
8110 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
8111 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
8112 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
8113 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
8114 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
8115 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
8116 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
8117 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
8118 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
8119 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
8120 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
8121 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
8122 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
8123 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
8124 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
8126 2019-03-21 Martin Sebor <msebor@redhat.com>
8128 PR tree-optimization/89350
8129 * builtins.c (compute_objsize): Also ignore offsets whose upper
8131 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
8132 (builtin_memref::builtin_memref): Initialize new member.
8133 Allow EXPR to be null.
8134 (builtin_memref::extend_offset_range): Replace local with a member.
8135 Avoid assuming pointer offsets are unsigned.
8136 (builtin_memref::set_base_and_offset): Determine base object
8137 before computing offset range.
8138 (builtin_access::builtin_access): Handle memset.
8139 (builtin_access::generic_overlap): Replace local with a member.
8140 (builtin_access::strcat_overlap): Same.
8141 (builtin_access::overlap): Same.
8142 (maybe_diag_overlap): Same.
8143 (maybe_diag_access_bounds): Same.
8144 (wrestrict_dom_walker::check_call): Handle memset.
8145 (check_bounds_or_overlap): Same.
8147 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
8148 Jakub Jelinek <jakub@redhat.com>
8151 * tree.c (fld_type_variant, fld_incomplete_type_of,
8152 fld_process_array_type): Call fld->pset.add and don't call
8153 add_tree_to_fld_list if it returns true.
8154 (free_lang_data_in_type): Similarly with self-recursive call. Purge
8155 non-marked types from TYPE_NEXT_VARIANT list.
8156 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
8158 2019-03-21 Jakub Jelinek <jakub@redhat.com>
8160 * hash-table.h (hash_table): Add Lazy template parameter defaulted
8161 to false, if true, don't alloc_entries during construction, but defer
8162 it to the first method that needs m_entries allocated.
8163 (hash_table::hash_table, hash_table::~hash_table,
8164 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
8165 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
8166 hash_table::clear_slot, hash_table::traverse_noresize,
8167 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
8168 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
8170 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
8171 NO_INSERT instead of find_with_hash.
8172 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
8173 hash_set::m_table): Add Lazy to template params of hash_table.
8174 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
8175 * attribs.c (test_attribute_exclusions): Likewise.
8176 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
8177 hash_set. Add tests for hash_set with Lazy = true.
8179 2019-03-21 Richard Biener <rguenther@suse.de>
8181 PR tree-optimization/89779
8182 * tree.c (tree_nop_conversion): Consolidate and fix defensive
8183 checks with respect to released SSA names now having error_mark_node
8185 * fold-const.c (operand_equal_p): Likewise.
8187 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
8190 * config/s390/s390.c (global_not_special_regno_p): Move to make it
8192 (s390_optimize_register_info): Use global_not_special_regno_p to
8193 check for global regs.
8195 2019-03-20 Jakub Jelinek <jakub@redhat.com>
8198 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
8199 update this_alternative nor this_alternative_set.
8201 2019-03-19 Jim Wilson <jimw@sifive.com>
8204 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
8205 align, size, offset. Use them to handle a BLKmode reference. Update
8207 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
8209 2019-03-19 Jakub Jelinek <jakub@redhat.com>
8211 PR rtl-optimization/89768
8212 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
8214 (unroll_loop_runtime_iterations): Likewise.
8216 2019-03-19 Martin Sebor <msebor@redhat.com>
8218 PR tree-optimization/89644
8219 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
8220 rather than endptr as an indicator of nul-termination.
8222 PR tree-optimization/89644
8223 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
8224 arrays in determining sequence sizes in strncpy and stpncpy.
8226 2019-03-19 Martin Liska <mliska@suse.cz>
8229 * predict.c (combine_predictions_for_bb): Empty likely_edges and
8230 unlikely_edges if there's an edge that belongs to both these sets.
8232 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
8235 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
8236 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
8237 go via a stack temporary.
8239 2019-03-19 Jakub Jelinek <jakub@redhat.com>
8242 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
8243 instead of gen_rtx_SUBREG.
8244 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
8246 2019-03-19 Richard Biener <rguenther@suse.de>
8249 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
8251 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
8255 * tree.c (free_lang_data_in_decl): Do not free context of C++
8258 2019-03-19 Jakub Jelinek <jakub@redhat.com>
8261 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
8262 subs for the first alternative except when operands[3] is 1.
8265 * gimplify.c (gimplify_asm_expr): For output argument with
8266 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
8269 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
8271 PR rtl-optimization/89753
8272 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
8273 explicit unrolling factor even more robust.
8275 2019-03-19 Jakub Jelinek <jakub@redhat.com>
8278 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
8279 compensation use x2 += 1 instead of x2 -= -1 and when honoring
8280 signed zeros, do another copysign after the compensation.
8282 2019-03-18 Martin Sebor <msebor@redhat.com>
8284 PR tree-optimization/89720
8285 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
8286 more conservatively, the same as anti-range.
8288 2019-03-18 Richard Biener <rguenther@suse.de>
8291 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
8292 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
8293 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
8294 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
8296 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
8298 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
8299 Extend queue to 1024 entries.
8300 Add "consumed" field.
8301 (gomp_print_output): Remove print_index parameter.
8302 Add final parameter.
8303 Change limit to unsigned.
8304 Use consumed field to implement circular buffer.
8305 Detect interrupted print in final pass.
8306 Flush output at the end.
8307 (run): Update gomp_print_output usage.
8308 (main): Initialize kernargs->output_data.consumed.
8310 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
8312 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
8313 calculation of the minimum number of scalar iterations for
8314 fully-predicated loops.
8316 2019-03-18 Martin Jambor <mjambor@suse.cz>
8318 PR tree-optimization/89546
8319 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
8320 any propagation to its children took place.
8322 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
8325 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
8326 parameter, and make use of it.
8327 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
8329 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
8331 * config/arc/arc.opt (mcode-density-frame): Get the inital value
8332 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
8333 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
8334 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
8335 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
8336 match what the ops is doing.
8337 (push_multi_fp_blink): Likewise.
8338 * config/arc/arc.c (arc_override_options): Enable enter/leave when
8339 compiling for size and elf target.
8340 (arc_save_callee_enter): Adjust note to match what enter/leave
8343 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
8345 * config/arc/arc.md (tst_movb): Fix constraint.
8347 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
8349 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
8351 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
8353 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
8354 * config/arc/arc.c (arc_conditional_register_usage): Remove all
8355 reg_alloc_order references.
8356 (size_alloc_order): Define.
8357 (arc_adjust_reg_alloc_order): New function.
8358 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
8360 (ADJUST_REG_ALLOC_ORDER): Define.
8361 (HONOR_REG_ALLOC_ORDER): Likewise.
8363 2019-03-18 Richard Biener <rguenther@suse.de>
8366 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
8367 loads and stores a bit more.
8369 2019-03-18 Richard Biener <rguenther@suse.de>
8372 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
8373 load pessimization to stores as well.
8375 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
8378 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
8379 successor, use NULL as its av set.
8381 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
8383 PR rtl-optimization/89721
8384 * lra-constraints (invariant_p): Return false if side_effects_p holds.
8386 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
8389 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8390 When handling vec_extract, use modular arithmetic to allow
8391 constant selectors greater than vector length.
8392 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
8393 V1TImode vectors to have constant selector values greater than 0.
8394 Use modular arithmetic to compute vector index.
8395 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
8396 index for in-memory vectors. Correct code generation for
8397 in-register vectors.
8398 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
8401 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
8405 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
8408 2019-03-15 Jakub Jelinek <jakub@redhat.com>
8411 * tree.c (inchash::add_expr): Strip any location wrappers.
8412 * fold-const.c (operand_equal_p): Move stripping of location wrapper
8413 after hash verification.
8416 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
8417 SIGN_EXTEND and ZERO_EXTEND.
8419 2019-03-14 Jason Merrill <jason@redhat.com>
8420 Jakub Jelinek <jakub@redhat.com>
8422 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
8423 than if is_empty (*slot).
8424 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
8425 existing elt and for elt removal.
8426 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
8427 of already removed elt.
8429 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
8432 * config/i386/i386.c (remove_partial_avx_dependency): Handle
8435 2019-03-14 Martin Liska <mliska@suse.cz>
8438 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
8440 2019-03-14 Richard Biener <rguenther@suse.de>
8443 * config/i386/i386.c (make_resolver_func): Properly set
8444 DECL_CONTEXT on the RESULT_DECL.
8445 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
8447 2019-03-14 Richard Biener <rguenther@suse.de>
8449 * gimple-pretty-print.c: Include cfgloop.h.
8450 (dump_gimple_phi): Adjust.
8451 (dump_gimple_bb_header): Dump loop header for GIMPLE.
8452 (pp_cfg_jump): Adjust.
8453 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
8454 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
8455 (lower_phi_internal_fn): Remove.
8456 (verify_gimple_call): Remove IFN_PHI special-casing.
8457 (dump_function_to_file): Dump IL state.
8458 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
8459 done to deal with PHI nodes being present in non-SSA state.
8461 2019-03-14 Jakub Jelinek <jakub@redhat.com>
8464 * multiple_target.c (create_dispatcher_calls): Change
8465 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
8466 In the node->iterate_referring loop, push *ref rather than ref, call
8467 ref->remove_reference () and always pass 0 to iterate_referring.
8469 PR rtl-optimization/89679
8470 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
8471 would contain a paradoxical SUBREG.
8473 2019-03-14 Richard Biener <rguenther@suse.de>
8475 PR tree-optimization/89710
8476 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
8479 2019-03-14 Martin Liska <mliska@suse.cz>
8481 * coverage.c (coverage_begin_function): Stream also
8483 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
8484 documentation about function declaration location.
8485 * gcov-dump.c (tag_function): Print whole range
8486 of function declaration.
8487 * gcov.c (struct function_info): Add end_column field.
8488 (function_info::function_info): Initialize it.
8489 (output_json_intermediate_file): Output {start,end}_column
8491 (read_graph_file): Read end_column.
8493 2019-03-14 Richard Biener <rguenther@suse.de>
8496 * fold-const.c (operand_equal_p): For INDIRECT_REF check
8497 that the access types are similar.
8499 2019-03-14 Jakub Jelinek <jakub@redhat.com>
8501 PR tree-optimization/89703
8502 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
8503 aren't compatible also with builtin_decl_explicit. Check pure
8504 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
8505 and BUILT_IN_STPNCPY{,_CHK}.
8507 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
8510 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
8511 addr32 prefix to VSIB address for X32.
8512 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
8514 (*avx512pf_gatherpf<mode>df_mask): Likewise.
8515 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
8516 (*avx512pf_scatterpf<mode>df_mask): Likewise.
8517 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
8518 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
8519 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
8520 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
8521 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
8522 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
8523 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
8524 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
8525 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
8526 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
8527 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
8528 (*avx512f_scatterdi<mode>): Likewise.
8530 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
8533 * lra-constraints.c (inherit_in_ebb): Update
8534 potential_reload_hard_regs along with live_hard_regs.
8536 2019-03-13 Jakub Jelinek <jakub@redhat.com>
8539 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
8541 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
8543 2019-03-13 Martin Sebor <msebor@redhat.com>
8545 PR tree-optimization/89662
8546 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
8549 2019-03-13 Richard Biener <rguenther@suse.de>
8552 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
8553 throw FP expressions at tree-affine.
8555 2019-03-14 Richard Biener <rguenther@suse.de>
8557 * tree-pretty-print.c (dump_generic_node): For -gimple properly
8558 dump negative integer constants using _Literal (type) -num.
8560 2019-03-13 Jakub Jelinek <jakub@redhat.com>
8562 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
8563 nonlocal_value member.
8566 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
8567 (ipa_simd_modify_function_body): Handle PHIs.
8569 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
8571 * config/s390/s390.c (s390_option_override_internal): Use more
8572 aggressive inlining parameters.
8574 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
8576 * config/s390/3906.md: New file.
8577 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
8578 (LONGRUNNING_THRESHOLD): Remove.
8579 (MAX_SCHED_MIX_SCORE): Decrease.
8580 (MAX_SCHED_MIX_DISTANCE): Decrease.
8581 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
8582 (struct s390_sched_state): New struct to hold scheduling state.
8583 (S390_SCHED_STATE_NORMAL): Remove.
8584 (S390_SCHED_STATE_CRACKED): Remove.
8585 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
8586 (s390_get_sched_attrmask): Use new attribute.
8587 (s390_get_unit_mask): Use new units.
8588 (s390_is_fpd): New function.
8589 (s390_is_fxd): New function.
8590 (s390_is_longrunning): New function.
8591 (s390_sched_score): Use new functions.
8592 (s390_sched_reorder): Likewise.
8593 (s390_sched_variable_issue): Rework and use new functions.
8594 (s390_sched_init): Use new functions.
8595 * config/s390/s390.h (s390_tune_attr): Add z14.
8596 * config/s390/s390.md: Add z14.
8598 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
8600 * config/s390/2964.md: Update pipeline description.
8601 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
8602 (LONGRUNNING_THRESHOLD): Remove.
8603 (LATENCY_FACTOR): Remove.
8604 (s390_get_unit_mask): Add unit.
8605 (s390_sched_score): Use fxd/fpd.
8606 (s390_sched_variable_issue): Use fxd/fpd.
8608 2019-03-12 Martin Liska <mliska@suse.cz>
8610 * config/i386/i386.c: Reword an error message.
8612 2019-03-12 Martin Jambor <mjambor@suse.cz>
8614 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
8615 terminate with newline.
8617 2019-03-12 Jakub Jelinek <jakub@redhat.com>
8620 * config/s390/s390.md (tabort): Use %wd instead of
8621 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
8622 letters and periods.
8623 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
8624 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
8628 * builtins.c (expand_builtin_int_roundingfn,
8629 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
8630 gcc_unreachable if validate_arglist fails.
8632 2019-03-12 Richard Biener <rguenther@suse.de>
8634 PR tree-optimization/89664
8635 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
8636 free the occurance tree after the early out.
8638 2019-03-11 Jakub Jelinek <jakub@redhat.com>
8642 * vr-values.c (vr_values::update_value_range): If
8643 old_vr->varying_p (), don't update it, make new_vr also VARYING
8646 2019-03-11 Martin Liska <mliska@suse.cz>
8648 * config/aarch64/aarch64.c (aarch64_override_options_internal):
8649 Fix double string quoting.
8651 2019-03-11 Martin Liska <mliska@suse.cz>
8653 * collect-utils.c (collect_wait): Wrap apostrophes
8654 in gcc internal format with %'.
8655 * collect2.c (main): Likewise.
8656 (scan_prog_file): Likewise.
8657 (scan_libraries): Likewise.
8658 * config/i386/i386.c (ix86_expand_call): Likewise.
8659 (ix86_handle_interrupt_attribute): Likewise.
8660 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
8661 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
8662 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
8663 * lto-wrapper.c (find_crtoffloadtable): Likewise.
8664 * symtab.c (symtab_node::verify_base): Likewise.
8665 * tree-cfg.c (verify_gimple_label): Likewise.
8666 * tree.c (verify_type_variant): Likewise.
8668 2019-03-11 Martin Liska <mliska@suse.cz>
8670 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
8671 in a string format message and fix GNU coding style.
8672 (expand_builtin_set_thread_pointer): Likewise.
8673 * common/config/aarch64/aarch64-common.c
8674 (aarch64_rewrite_selected_cpu): Likewise.
8675 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
8676 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
8677 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
8678 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
8679 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
8680 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
8681 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
8682 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
8683 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
8684 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
8686 * common/config/riscv/riscv-common.c
8687 (riscv_subset_list::parsing_subset_version): Likewise.
8688 (riscv_subset_list::parse_std_ext): Likewise.
8689 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
8690 (riscv_subset_list::parse): Likewise.
8691 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
8692 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
8693 (aarch64_override_options_internal): Likewise.
8694 (aarch64_validate_mcpu): Likewise.
8695 (aarch64_validate_march): Likewise.
8696 (aarch64_validate_mtune): Likewise.
8697 (aarch64_override_options): Likewise.
8698 * config/alpha/alpha.c (alpha_option_override): Likewise.
8699 * config/arc/arc.c (arc_init): Likewise.
8700 (parse_mrgf_banked_regs_option): Likewise.
8701 (arc_override_options): Likewise.
8702 (arc_expand_builtin_aligned): Likewise.
8703 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
8704 (arm_expand_builtin): Likewise.
8705 * config/arm/arm.c (arm_option_check_internal): Likewise.
8706 (arm_configure_build_target): Likewise.
8707 (arm_option_override): Likewise.
8708 (arm_options_perform_arch_sanity_checks): Likewise.
8709 (arm_handle_cmse_nonsecure_entry): Likewise.
8710 (arm_handle_cmse_nonsecure_call): Likewise.
8711 (arm_tls_referenced_p): Likewise.
8712 (thumb1_expand_prologue): Likewise.
8713 * config/avr/avr.c (avr_option_override): Likewise.
8714 * config/bfin/bfin.c (bfin_option_override): Likewise.
8715 * config/c6x/c6x.c (c6x_option_override): Likewise.
8716 * config/cr16/cr16.c (cr16_override_options): Likewise.
8717 * config/cris/cris.c (cris_option_override): Likewise.
8718 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
8719 * config/darwin-c.c (macosx_version_as_macro): Likewise.
8720 * config/darwin.c (darwin_override_options): Likewise.
8721 * config/frv/frv.c (frv_expand_builtin): Likewise.
8722 * config/h8300/h8300.c (h8300_option_override): Likewise.
8723 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
8724 (ix86_option_override_internal): Likewise.
8725 (warn_once_call_ms2sysv_xlogues): Likewise.
8726 (ix86_expand_prologue): Likewise.
8727 (split_stack_prologue_scratch_regno): Likewise.
8728 (ix86_warn_parameter_passing_abi): Likewise.
8729 * config/ia64/ia64.c (fix_range): Likewise.
8730 * config/m68k/m68k.c (m68k_option_override): Likewise.
8731 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
8732 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
8733 (mips_set_compression_mode): Likewise.
8734 * config/mmix/mmix.c (mmix_option_override): Likewise.
8735 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
8736 * config/msp430/msp430.c (msp430_option_override): Likewise.
8737 * config/nds32/nds32.c (nds32_option_override): Likewise.
8738 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
8739 (nios2_option_override): Likewise.
8740 (nios2_expand_custom_builtin): Likewise.
8741 * config/nvptx/mkoffload.c (main): Likewise.
8742 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
8743 * config/pa/pa.c (fix_range): Likewise.
8744 (pa_option_override): Likewise.
8745 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
8746 (riscv_option_override): Likewise.
8747 * config/rl78/rl78.c (rl78_option_override): Likewise.
8748 * config/rs6000/aix61.h: Likewise.
8749 * config/rs6000/aix71.h: Likewise.
8750 * config/rs6000/aix72.h: Likewise.
8751 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
8752 * config/rs6000/freebsd64.h: Likewise.
8753 * config/rs6000/linux64.h: Likewise.
8754 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
8755 (rs6000_expand_zeroop_builtin): Likewise.
8756 (rs6000_expand_mtfsb_builtin): Likewise.
8757 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
8758 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
8759 (rs6000_invalid_builtin): Likewise.
8760 (rs6000_expand_split_stack_prologue): Likewise.
8761 * config/rs6000/rtems.h: Likewise.
8762 * config/rx/rx.c (valid_psw_flag): Likewise.
8763 (rx_expand_builtin): Likewise.
8764 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
8765 * config/s390/s390.c (s390_expand_builtin): Likewise.
8766 (s390_function_profiler): Likewise.
8767 (s390_option_override_internal): Likewise.
8768 (s390_option_override): Likewise.
8769 * config/sh/sh.c (sh_option_override): Likewise.
8770 (sh_builtin_saveregs): Likewise.
8771 (sh_fix_range): Likewise.
8772 * config/sh/vxworks.h: Likewise.
8773 * config/sparc/sparc.c (sparc_option_override): Likewise.
8774 * config/spu/spu.c (spu_option_override): Likewise.
8775 (fix_range): Likewise.
8776 * config/visium/visium.c (visium_option_override): Likewise.
8777 (visium_handle_interrupt_attr): Likewise.
8778 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
8779 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
8780 (dbg_cnt_process_opt): Likewise.
8781 * dwarf2out.c (output_dwarf_version): Likewise.
8782 * except.c (expand_eh_return): Likewise.
8783 * gcc.c (defined): Likewise.
8784 (driver_handle_option): Likewise.
8785 (process_command): Likewise.
8786 (compare_files): Likewise.
8787 (driver::prepare_infiles): Likewise.
8788 (driver::do_spec_on_infiles): Likewise.
8789 (driver::maybe_run_linker): Likewise.
8790 * omp-offload.c (oacc_parse_default_dims): Likewise.
8791 * opts-global.c (handle_common_deferred_options): Likewise.
8792 * opts.c (parse_sanitizer_options): Likewise.
8793 (common_handle_option): Likewise.
8794 (enable_warning_as_error): Likewise.
8795 * passes.c (enable_disable_pass): Likewise.
8796 * plugin.c (parse_plugin_arg_opt): Likewise.
8797 (default_plugin_dir_name): Likewise.
8798 * targhooks.c (default_expand_builtin_saveregs): Likewise.
8799 (default_pch_valid_p): Likewise.
8800 * toplev.c (init_asm_output): Likewise.
8801 (process_options): Likewise.
8802 (toplev::run_self_tests): Likewise.
8803 * tree-cfg.c (verify_gimple_call): Likewise.
8804 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
8805 (tree_inlinable_function_p): Likewise.
8806 * var-tracking.c (vt_find_locations): Likewise.
8808 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
8810 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
8811 only on the else branch.
8813 2019-03-11 Martin Liska <mliska@suse.cz>
8815 * gcov.c (output_intermediate_json_line): Print function
8817 (output_json_intermediate_file): Add new argument.
8818 * doc/gcov.texi: Document the change.
8820 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
8822 PR rtl-optimization/89588
8823 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
8824 explicit unrolling factor more robust.
8826 2019-03-11 Richard Biener <rguenther@suse.de>
8828 PR tree-optimization/89649
8829 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
8830 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
8831 on the prolog and epilog loops.
8832 (vect_loop_versioning): Return copy of loop.
8833 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
8834 on the non-vectorized version of the loop.
8836 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
8839 * config/i386/sse.md (*vec_extractv2di_0_sse):
8840 Add (=r,x) alternative and corresponding splitter.
8842 2019-03-10 Martin Jambor <mjambor@suse.cz>
8844 PR tree-optimization/85762
8845 PR tree-optimization/87008
8846 PR tree-optimization/85459
8847 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
8848 it points to if there is a type changing MEM_REF. Adjust all callers.
8849 (build_accesses_from_assign): Disable total scalarization if
8850 contains_vce_or_bfcref_p returns true through the new parameter, for
8853 2019-03-09 Jakub Jelinek <jakub@redhat.com>
8856 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
8857 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
8860 * common.opt (fdiagnostics-show-labels,
8861 fdiagnostics-show-line-numbers, fdiagnostics-format=,
8862 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
8863 gas-locview-support, ginline-points, ginternal-reset-location-views):
8864 Terminate description text with a dot.
8865 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
8866 * config/mcore/mcore.opt (m210, m340): Likewise.
8867 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
8868 mnops=): Start description text with a capital letter.
8869 * config/arc/arc.opt (msize-level=): Likewise.
8870 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
8871 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
8873 * config/ft32/ft32.opt (msim): Likewise.
8874 (mft32b, mcompress): Likewise. Terminate description text with a dot.
8875 (mnodiv, mnopm): Terminate description text with a dot.
8876 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
8878 * config/i386/i386.opt (prefer_vector_width, instrument_return):
8880 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
8883 PR rtl-optimization/89634
8884 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
8885 are modified in BB_END (e->src) instruction.
8887 2019-03-08 David Malcolm <dmalcolm@redhat.com>
8890 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
8891 messages more amenable to translation, and improve wording.
8893 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
8895 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
8896 ud- and du-chains between phases.
8898 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
8901 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
8902 instead of POLY_INT_CST.
8904 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
8906 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
8909 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
8914 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
8915 (_mm_storeu_si64): Ditto.
8917 2019-03-08 Martin Liska <mliska@suse.cz>
8920 * config/i386/i386.c (ix86_option_override_internal): Disable
8921 jump tables when retpolines are used.
8923 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
8926 * ipa-split.c (execute_split_functions): Do not split
8927 'noinline' or 'section' function.
8929 2019-03-08 Jakub Jelinek <jakub@redhat.com>
8932 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
8933 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
8934 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
8937 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
8938 from diagnostics. Formatting fixes.
8941 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
8942 warn_odr diagnostics.
8945 * lra-constraints.c (process_alt_operands): Avoid one space before
8946 " at the end of line and another after " on another line in a string
8948 * attribs.c (handle_dll_attribute): Likewise.
8949 * config/avr/avr-devices.c (avr_texinfo): Likewise.
8951 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
8952 warning_at or inform messages in G_() if there is no ?:.
8954 PR tree-optimization/89550
8955 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
8956 returned true. Formatting fixes.
8957 (expand_builtin_strnlen): Formatting fixes.
8958 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
8959 if warning_at returned true.
8960 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
8962 2019-03-08 Richard Biener <rguenther@suse.de>
8965 * cfgloop.h (struct loop): Add owned_clique field.
8966 * cfgloopmanip.c (copy_loop_info): Copy it.
8967 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
8969 * tree-inline.c (copy_loops): Remap owned_clique.
8970 * lto-streamer-in.c (input_cfg): Stream owned_clique.
8971 * lto-streamer-out.c (output_cfg): Likewise.
8973 2019-03-08 Jakub Jelinek <jakub@redhat.com>
8976 * config/darwin.c: Include intl.h.
8977 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
8978 composing the message out of two separate parts.
8980 2019-03-07 Jakub Jelinek <jakub@redhat.com>
8983 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
8984 doesn't start with a capital letter and doesn't end with a dot.
8985 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
8986 with a capital letter.
8987 (ix86_mangle_function_version_assembler_name): Likewise.
8988 (ix86_generate_version_dispatcher_body): Likewise.
8989 (fold_builtin_cpu): Likewise.
8990 (get_builtin_code_for_version): Likewise. Remove extraneous space.
8991 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
8992 translators, wrap full type name in %qs.
8994 PR translation/79999
8995 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
8996 depend clause with source (or sink) modifier.
8997 * omp-expand.c (expand_omp_ordered_sink): Likewise.
9000 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
9001 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
9002 (avx512f_load<mode>_mask): New define_expand.
9003 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
9004 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
9005 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
9006 __builtin_ia32_movess_mask): New builtins.
9007 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
9008 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
9009 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
9010 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
9012 2019-03-07 Martin Jambor <mjambor@suse.cz>
9015 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
9016 for extern inline functions.
9018 2019-03-07 Martin Jambor <mjambor@suse.cz>
9021 * cgraph.h (cgraph_node): New inline method former_thunk_p.
9022 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
9023 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
9024 have multiple callees. At the end check if declarations match as
9025 opposed to cgraph_nodes.
9027 2019-03-07 Martin Liska <mliska@suse.cz>
9029 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
9030 which is equivalent to searching for this in clones chain.
9031 * symtab.c (symtab_node::verify_base): Similarly compare ASM
9032 names with a neighbour and special case first node in a chain.
9034 2019-01-25 Jason Merrill <jason@redhat.com>
9036 PR c++/80916 - spurious "static but not defined" warning.
9037 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
9038 for an internal symbol with DECL_EXTERNAL.
9040 2019-04-07 Richard Biener <rguenther@suse.de>
9043 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
9044 * tree-inline.c (copy_loops): Simplify.
9046 2019-03-07 Martin Liska <mliska@suse.cz>
9048 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
9050 2019-03-07 Richard Biener <rguenther@suse.de>
9052 PR tree-optimization/89595
9053 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
9054 stmt iterator as reference, take boolean output parameter to
9055 indicate whether the stmt was removed and thus the iterator
9057 (dom_opt_dom_walker::before_dom_children): Re-iterate over
9058 stmts created by folding.
9060 2019-03-07 Jakub Jelinek <jakub@redhat.com>
9063 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
9066 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
9068 PR rtl-optimization/88845
9069 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
9071 * lra.c (remove_scratches_1): New function.
9072 (remove_scratches): Use it.
9073 (lra_emit_move): Likewise.
9075 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
9077 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
9078 unaligned_access variable.
9079 * config/arc/arc.c (arc_override_options): Set unaligned access
9080 default on for HS CPUs.
9081 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
9083 2019-03-06 Martin Liska <mliska@suse.cz>
9085 PR gcov-profile/89577
9086 * doc/gcov.texi: Prefer to use --coverage.
9087 * doc/sourcebuild.texi: Likewise.
9089 2019-03-02 Jason Merrill <jason@redhat.com>
9091 PR c++/86485 - -Wmaybe-unused with empty class ?:
9092 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
9094 2019-03-05 Jakub Jelinek <jakub@redhat.com>
9097 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
9101 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
9102 exactly one argument.
9104 2019-03-05 Jakub Jelinek <jakub@redhat.com>
9105 Richard Sandiford <richard.sandiford@arm.com>
9107 PR tree-optimization/89570
9108 * match.pd (vec_cond into cond_op simplification): Don't use
9109 get_conditional_internal_fn, use as_internal_fn (cond_op).
9111 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
9114 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
9115 to decide when to split off a non-zero offset from a symbol.
9116 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
9117 in function symbols.
9119 2019-03-05 Richard Biener <rguenther@suse.de>
9121 PR tree-optimization/89594
9122 * tree-if-conv.c (pass_if_conversion::execute): Handle
9123 case where .LOOP_VECTORIZED_FUNCTION was removed.
9125 2019-03-05 Jakub Jelinek <jakub@redhat.com>
9128 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
9129 instead alloca it only when needed with the needed size.
9131 PR tree-optimization/89570
9132 * match.pd (vec_cond into cond_op simplification): Guard with
9133 vectorized_internal_fn_supported_p test and #if GIMPLE.
9135 PR tree-optimization/89566
9136 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
9137 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
9138 Punt if get_user_idx_format succeeds, but idx_format argument is
9139 not provided or doesn't have pointer type, or if idx_args is above
9140 number of provided arguments.
9142 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
9144 PR tree-optimization/89437
9145 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
9147 2019-03-04 Richard Biener <rguenther@suse.de>
9150 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
9153 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
9155 PR tree-optimization/89487
9156 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
9157 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
9158 (distribute_loop): Don't do runtime alias check if there is non-
9159 addressable data reference.
9160 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
9161 is a register variable.
9163 2019-03-02 Jakub Jelinek <jakub@redhat.com>
9166 * config/arm/arm.md (cmpsi2_addneg): Use
9167 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
9168 If operands[2] is 0 or INT_MIN, force use of subs.
9169 (*compare_scc splitter): Use gen_int_mode.
9170 (*negscc): Likewise.
9171 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
9173 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
9174 Monk Chiang <sh.chiang04@gmail.com>
9176 * common/config/riscv/riscv-common.c: Include sstream.
9177 (riscv_subset_list::to_string): New.
9178 (riscv_arch_str): Likewise.
9179 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
9181 * config/riscv/riscv-protos.h (riscv_arch_str): New.
9182 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
9183 (riscv_emit_attribute): New.
9184 (riscv_file_start): Emit attribute if needed.
9185 (riscv_option_override): Init riscv_emit_attribute_p.
9186 * config/riscv/riscv.opt (mriscv-attribute): New option.
9187 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
9189 * doc/install.texi: Document --with-riscv-attribute.
9190 * doc/invoke.texi: Document -mriscv-attribute.
9192 * common/config/riscv/riscv-common.c:
9193 Include config/riscv/riscv-protos.h.
9194 (INCLUDE_STRING): Defined.
9195 (RISCV_DONT_CARE_VERSION): Defined.
9196 (riscv_subset_t): Declare.
9197 (riscv_subset_t::riscv_subset_t): New.
9198 (riscv_subset_list): Declare.
9199 (riscv_subset_list::riscv_subset_list): New.
9200 (riscv_subset_list::~riscv_subset_list): Likewise.
9201 (riscv_subset_list::parsing_subset_version): Likewise.
9202 (riscv_subset_list::parse_std_ext): Likewise.
9203 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
9204 (riscv_subset_list::add): Likewise.
9205 (riscv_subset_list::lookup): Likewise.
9206 (riscv_subset_list::xlen): Likewise.
9207 (riscv_subset_list::parse): Likewise.
9208 (riscv_supported_std_ext): Likewise.
9209 (current_subset_list): Likewise.
9210 (riscv_parse_arch_string): Using riscv_subset_list::parse to
9213 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
9215 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
9216 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
9217 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
9219 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
9221 PR rtl-optimization/85899
9222 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
9223 fallthru edges leading to the exit block.
9225 2019-03-01 Tamar Christina <tamar.christina@arm.com>
9228 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
9229 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
9231 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
9233 PR tree-optimization/89535
9234 * tree-vect-stmts.c (vectorizable_call): Record the vector types
9235 for each operand. Calculate the fallback choice for mask operands
9236 and pass it to vect_get_vec_def_for_operand.
9238 2019-03-01 Richard Biener <rguenther@suse.de>
9241 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
9242 get virtual operands.
9243 (get_expr_operands): Handle CONST_DECL like other decls.
9245 2019-03-01 Jakub Jelinek <jakub@redhat.com>
9248 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
9249 on DECL_P and EXPR_P.
9251 2019-03-01 Richard Biener <rguenther@suse.de>
9254 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
9255 argument, defaulted to zero.
9256 * passes.c (execute_function_todo): Pass down SSA update flags
9257 to cleanup_tree_cfg.
9258 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
9259 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
9261 (cleanup_tree_cfg): Get and pass down SSA update flags.
9263 2019-03-01 Jakub Jelinek <jakub@redhat.com>
9266 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
9267 early_lto_debug argument.
9269 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
9271 PR tree-optimization/89536
9272 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
9273 only whether bit #0 of the value is 0 instead of the entire value.
9275 2019-02-28 Marek Polacek <polacek@redhat.com>
9277 PR c++/87068 - missing diagnostic with fallthrough statement.
9278 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
9279 at the end of a seq, save its location to walk_stmt_info.
9280 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
9283 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
9286 * tree.c (find_atomic_core_type): Move ahead in file.
9287 (check_base_type): Correctly compare alignments of atomic types.
9289 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
9292 * config/i386/i386.c (get_builtin_code_for_version): Identify
9293 Westmere from PCLMUL, instead of AES.
9295 2019-02-28 Jakub Jelinek <jakub@redhat.com>
9298 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
9299 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
9302 2019-02-28 Tamar Christina <tamar.christina@arm.com>
9305 * config/aarch64/aarch64-option-extensions.def: Document it.
9306 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
9309 2019-02-28 Jakub Jelinek <jakub@redhat.com>
9312 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
9313 builtins if they don't have a single scalar floating point argument.
9316 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
9318 PR rtl-optimization/89490
9319 * varasm.c (get_block_for_section): Bail out for mergeable sections.
9320 (default_use_anchors_for_symbol_p, output_object_block): Assert the
9321 block section is not mergeable.
9323 2019-02-27 Jakub Jelinek <jakub@redhat.com>
9326 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
9327 old define_insn to ...
9328 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
9329 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
9330 Rename old define_insn to ...
9331 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
9332 (thumb2_casesi_internal_pic): New define_expand. Rename old
9334 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
9335 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
9336 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
9338 2019-02-27 Richard Biener <rguenther@suse.de>
9341 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
9343 2019-02-27 Richard Biener <rguenther@suse.de>
9345 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
9348 2019-02-27 Richard Biener <rguenther@suse.de>
9351 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
9352 parameter, prefix section name with .gnu.debuglto_ if true.
9353 (dwarf2out_finish): Pass false to output_comdat_type_unit.
9354 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
9356 2019-02-27 Richard Biener <rguenther@suse.de>
9359 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
9360 rather than on use_debug_types, doing what output_die does.
9361 (value_format): Likewise.
9363 2019-02-27 Martin Jambor <mjambor@suse.cz>
9364 Martin Sebor <msebor@redhat.com>
9366 * doc/invoke.texi (Warning Options): Reword description of
9367 -Wno-absolute-value.
9369 2019-02-27 Jakub Jelinek <jakub@redhat.com>
9371 PR tree-optimization/89280
9372 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
9373 builtin_setjmp_setup_bb): New functions.
9374 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
9375 When visiting __builtin_setjmp_setup block, queue in special
9376 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
9377 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
9378 from visited after the loop if they don't have any visited successor
9381 2018-02-26 Steve Ellcey <sellcey@marvell.com>
9383 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
9385 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
9387 2019-02-26 Jakub Jelinek <jakub@redhat.com>
9390 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
9391 with types other than sizetype/ssizetype.
9393 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
9395 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
9396 (enum sparc_processor_type): ...this.
9397 (enum sparc_code_model_type): New enumeration type.
9398 (enum sparc_memory_model_type): Tweak comments.
9399 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
9401 (mcmodel): Use sparc_code_model enumeration and variable.
9402 (sparc_code_model): New enumeration.
9403 (mdebug): Add Undocumented marker.
9404 * config/sparc/sparc.h (enum cmodel): Delete.
9405 (sparc_cmodel): Likewise.
9406 (TARGET_CM_MEDLOW): Adjust to above renaming.
9407 (TARGET_CM_MEDMID): Likewise.
9408 (TARGET_CM_MEDANY): Likewise.
9409 (TARGET_CM_EMBMEDANY): Likewise.
9410 * config/sparc/sparc.c (sparc_cmodel): Delete.
9411 (sparc_option_override): Remove string/value mapping support for the
9412 code model. Move code and memory model support to after the handling
9413 of target flags. Do private machine setup last.
9414 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
9415 (sparc_legitimize_reload_address): Likewise.
9416 (sparc_output_mi_thunk): Likewise.
9417 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
9419 2019-02-26 Jakub Jelinek <jakub@redhat.com>
9421 PR tree-optimization/89500
9422 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
9423 (handle_builtin_strlen): Remove noncst_bound variable. Always
9424 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
9425 cst if the first cst bytes starting at x are known to be non-zero,
9426 even if the string is not zero terminated. Don't try to modify
9427 *si for strnlen. Update strlen_to_stridx only for strlen or if
9428 we can prove strnlen returns the same value as strlen would.
9430 2019-02-26 Martin Liska <mliska@suse.cz>
9432 * alloc-pool.h (struct pool_usage): Remove extra
9434 * bitmap.h (struct bitmap_usage): Likewise.
9435 * ggc-common.c (struct ggc_usage): Likewise.
9436 * mem-stats.h (struct mem_usage): Likewise.
9437 (mem_alloc_description::dump): Print dash lines
9438 here and repeat header at the end of a table report.
9439 It's then more readable.
9440 * tree-phinodes.c (phinodes_print_statistics): Make
9441 horizontal alignment.
9442 * tree-ssanames.c (ssanames_print_statistics): Likewise.
9443 * vec.c (struct vec_usage): Remove extra print_dash_line.
9444 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
9446 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
9448 * doc/extend.texi (__builtin_object_size):
9449 Use @pxref instead of @xref inside parenthesis.
9450 (__builtin_has_attribute): Add missing comma after @xref.
9451 (__builtin_object_size): Ditto.
9452 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
9453 * fortran/invoke.texi (-ffpe-trap): Use @var for every item
9456 2019-02-26 Jeff Law <law@redhat.com>
9458 PR rtl-optimization/87761
9459 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
9460 detect obviously dead insns and delete them.
9462 2019-02-26 Richard Biener <rguenther@suse.de>
9464 PR tree-optimization/89505
9465 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
9466 to handle restrict pointed-to vars with multiple subvars
9469 2019-02-26 Richard Biener <rguenther@suse.de>
9471 PR tree-optimization/89489
9472 * tree-parloops.c (create_loop_fn): Copy over last_clique.
9474 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
9476 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
9477 and move around comment.
9478 <BIT_AND_EXPR>: Likewise.
9479 <BIT_NOT_EXPR>: Add specific handling for boolean types.
9481 2019-02-26 Jakub Jelinek <jakub@redhat.com>
9484 * config/i386/i386.c (remove_partial_avx_dependency): Call
9485 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
9486 after changing possibly many instructions to use that pseudo. Fix up
9487 insertion of v4sf_const0 setter at the start of bb.
9489 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
9492 * doc/extend.texi (Variadic Pointer Args): New section.
9494 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
9495 Martin Sebor <msebor@gmail.com>
9497 * common.opt (Wattribute-alias): Likewise.
9498 * doc/invoke.texi (Option Summary): List general form of
9499 -Wattribute-alias=. List positive form of -Wmissing-attributes.
9500 (-Wmissing-attributes): Invert entry, rewrite and correct default.
9501 Add cross-references.
9502 (-Wattribute-alias): Rewrite and correct default. Mention
9503 considered attributes (same as for -Wmissing-attributes).
9505 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
9507 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
9508 (_mm_cvtpd_ps): Likewise.
9509 (_mm_cvttpd_epi32): Likewise.
9512 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
9513 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
9516 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
9518 2019-02-25 Tamar Christina <tamar.christina@arm.com>
9521 * common/config/aarch64/aarch64-common.c
9522 (struct aarch64_option_extension): Add is_synthetic.
9523 (all_extensions): Use it.
9524 (TARGET_OPTION_INIT_STRUCT): Define hook.
9525 (struct gcc_targetm_common): Moved to end.
9526 (all_extensions_by_on): New.
9527 (opt_ext_cmp, typedef opt_ext): New.
9528 (aarch64_option_init_struct): New.
9529 (aarch64_contains_opt): New.
9530 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
9531 * config/aarch64/aarch64-option-extensions.def
9532 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
9533 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
9534 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
9535 Set is_synthetic to false.
9536 (crypto): Set is_synthetic to true.
9537 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
9540 2019-02-25 Tamar Christina <tamar.christina@arm.com>
9542 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
9543 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
9544 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
9545 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
9546 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
9547 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
9548 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
9549 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
9551 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
9552 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
9553 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
9554 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
9555 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
9556 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
9557 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
9558 vfmlsl_laneq_high_f16): ... To this.
9559 * config/arm/neon.md: Update comments.
9561 2019-02-25 Tamar Christina <tamar.christina@arm.com>
9563 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
9564 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
9565 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
9566 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
9567 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
9568 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
9569 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
9570 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
9572 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
9573 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
9574 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
9575 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
9576 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
9577 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
9578 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
9579 vfmlslq_laneq_high_f16): ... To this.
9581 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
9583 PR rtl-optimization/86096
9584 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
9585 comparing mw_order values.
9587 2019-02-25 Jakub Jelinek <jakub@redhat.com>
9590 * config/arm/arm.md (*subsi3_carryin_const): Use
9591 arm_neg_immediate_operand predicate instead of
9592 arm_not_immediate_operand, "L" constraint instead of "K" and
9593 print it using %n2 instead of %B2.
9594 (*subsi3_carryin_const0): New define_insn.
9595 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
9596 instead of arm_not_operand and "I" constraint instead of "K" and
9597 print it using %n3 instead of %B2. Instead of using match_dup 2 add
9598 another match_operand and in the condition check that it is negation
9600 (*subsi3_carryin_compare_const0): New define_ins.
9601 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
9602 *subsi3_carryin_const.
9603 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
9604 split into *subsi3_carryin_compare_const0 if the highpart is zero.
9607 * config/arm.vfp.md (*negdf2_vfp): Use
9608 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
9609 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
9611 2019-02-24 Jakub Jelinek <jakub@redhat.com>
9613 PR rtl-optimization/89445
9614 * simplify-rtx.c (simplify_ternary_operation): Don't use
9615 simplify_merge_mask on operands that may trap.
9616 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
9617 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
9618 second operand is CONST_VECTOR, check if any element could be zero.
9619 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
9620 their operands can trap.
9622 2019-02-23 Martin Sebor <msebor@redhat.com>
9624 * gimple-ssa-sprintf.c (target_strtol): Rename...
9625 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
9626 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
9627 check for range error.
9629 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
9632 * opts-common.c (prune_options): Also prune joined switches
9633 with Negative and RejectNegative.
9634 * config/i386/i386.opt (march=): Add Negative(march=).
9635 (mtune=): Add Negative(mtune=).
9636 * doc/options.texi: Document Negative used together with Joined
9639 2019-02-22 Martin Sebor <msebor@redhat.com>
9641 * doc/extend.texi (Other Builtins): Add
9642 __builtin_is_constant_evaluated.
9644 2019-02-22 Richard Biener <rguenther@suse.de>
9646 PR tree-optimization/87609
9647 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
9649 2019-02-22 Jeff Law <law@redhat.com>
9651 PR rtl-optimization/87761
9652 * config/mips/mips.md: Add new combiner pattern to recognize
9653 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
9655 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
9658 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
9659 destination register in peepholes generating patterns for ADDS/SUBS.
9660 (add<mode>3_compare0,
9661 *addsi3_compare0_uxtw, add<mode>3_compareC,
9662 add<mode>3_compareV_imm, add<mode>3_compareV,
9663 *adds_<optab><ALLX:mode>_<GPI:mode>,
9664 *subs_<optab><ALLX:mode>_<GPI:mode>,
9665 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
9666 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
9667 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
9668 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
9669 sub<mode>3_compare1): Allow stack pointer for source register.
9670 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
9672 2019-02-22 Martin Sebor <msebor@redhat.com>
9674 PR tree-optimization/88993
9675 PR tree-optimization/88853
9676 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
9678 (sprintf_dom_walker::call_info::is_string_func): New helper.
9679 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
9680 for formatted string functions.
9681 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
9683 2019-02-22 Martin Sebor <msebor@redhat.com>
9686 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
9687 unreachable subexpressions.
9689 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
9690 Hongtao Liu <hongtao.liu@intel.com>
9691 Sunil K Pandey <sunil.k.pandey@intel.com>
9694 * config/i386/i386-passes.def: Add
9695 pass_remove_partial_avx_dependency.
9696 * config/i386/i386-protos.h
9697 (make_pass_remove_partial_avx_dependency): New.
9698 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
9700 (pass_data_remove_partial_avx_dependency): New.
9701 (pass_remove_partial_avx_dependency): Likewise.
9702 (make_pass_remove_partial_avx_dependency): Likewise.
9703 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
9704 (*extendsfdf2): Add avx_partial_xmm_update.
9705 (truncdfsf2): Likewise.
9706 (*float<SWI48:mode><MODEF:mode>2): Likewise.
9707 (SF/DF conversion splitters): Disabled for TARGET_AVX.
9709 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
9712 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
9715 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
9718 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
9719 (PTA_SKYLAKE): Add PTA_AES.
9720 (PTA_GOLDMONT): Likewise.
9722 2019-02-22 Sudakshina Das <sudi.das@arm.com>
9724 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
9725 instruction if enabled.
9726 (aarch64_override_options): Remove reference to return address key.
9728 2019-02-22 Richard Biener <rguenther@suse.de>
9730 PR tree-optimization/89440
9731 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
9732 not necessary assert.
9734 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
9737 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
9738 (oacc_replace_fn_attrib_attr): ... this new function.
9739 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
9740 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
9742 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9744 * config/arm/arm-cpus.in (ares): Rename to...
9745 (neoverse-n1): ... This. Add ares as alias.
9746 * config/arm/arm-tables.opt: Regenerate.
9747 * config/arm/arm-tune.md: Likewise.
9748 * doc/invoke.txt (ARM Options): Document neoverse-n1.
9750 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9752 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
9753 * config/aarch64/aarch64-tune.md: Regenerate.
9754 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
9756 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9758 * config/aarch64/aarch64.c (ares_tunings): Rename to...
9759 (neoversen1_tunings): ... This.
9760 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
9761 (neoverse-n1): New CPU.
9762 * config/aarch64/aarch64-tune.md: Regenerate.
9763 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
9765 2019-02-22 Richard Biener <rguenther@suse.de>
9768 * cfghooks.h (dependence_hash): New typedef.
9769 (struct copy_bb_data): New type.
9770 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
9771 (duplicate_block): Likewise.
9772 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
9773 (copy_bbs): Create and pass down copy_bb_data.
9774 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
9775 (rtl_duplicate_bb): Likewise.
9776 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
9777 remap dependence info.
9779 2019-02-22 Richard Biener <rguenther@suse.de>
9781 PR tree-optimization/87609
9782 * tree-core.h (tree_base): Document special clique values.
9783 * tree-inline.c (remap_dependence_clique): Do not use the
9784 special clique value of one.
9785 (maybe_set_dependence_info): Use clique one.
9786 (clear_dependence_clique): New callback.
9787 (compute_dependence_clique): Clear clique one from all refs
9788 before assigning it (again).
9790 2019-02-21 Martin Sebor <msebor@redhat.com>
9792 * doc/extend.texi (__clear_cache): Correct signature.
9794 2019-02-21 Ian Lance Taylor <iant@golang.org>
9797 * varasm.c (decode_addr_const): Call lookup_constant_def rather
9798 than output_constant_def.
9799 (add_constant_to_table): New static function.
9800 (output_constant_def): Call add_constant_to_table.
9801 (tree_output_constant_def): Likewise.
9803 2019-02-21 Jakub Jelinek <jakub@redhat.com>
9806 * builtins.c (fold_builtin_arith_overflow): If first two args are
9807 INTEGER_CSTs, set intres and ovfres to constants rather than calls
9810 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
9813 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
9814 error for -mindirect-branch/-mfunction-return with incompatible
9817 2019-02-21 Jakub Jelinek <jakub@redhat.com>
9820 * constraints.md (q): Remove.
9821 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
9824 2019-02-21 Martin Jambor <mjambor@suse.cz>
9827 * omp-general.c (omp_extract_for_data): Removed a duplicate call
9828 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
9829 (omp_adjust_for_condition): ...here. Added necessary parameters.
9830 * omp-general.h (omp_adjust_for_condition): Updated declaration.
9831 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
9832 proper values to new parameters of omp_adjust_for_condition.
9834 2019-02-20 Jakub Jelinek <jakub@redhat.com>
9837 * expr.c (expand_assignment): If result is a MEM, use change_address
9838 instead of simplify_gen_subreg.
9840 2019-02-20 Jakub Jelinek <jakub@redhat.com>
9841 David Malcolm <dmalcolm@redhat.com>
9844 * fold-const.c (decode_field_reference): Return NULL_TREE if
9845 lang_hooks.types.type_for_size returns NULL. Check it before
9846 overwriting *exp_. Use return NULL_TREE instead of return 0.
9848 2019-02-20 Jakub Jelinek <jakub@redhat.com>
9852 * toplev.c (do_compile): Double the emin/emax exponents to workaround
9855 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
9858 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
9859 TARGET_SSE in addition to TARGET_SSE_MATH.
9861 (ix86_excess_precision): Ditto.
9862 (ix86_float_exceptions_rounding_supported_p): Ditto.
9863 (use_rsqrt_p): Ditto.
9864 * config/i386/sse.md (rsqrt<mode>2): Ditto.
9866 2019-02-20 David Malcolm <dmalcolm@redhat.com>
9869 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
9870 linenum_arith_t when determining if two adjacent line spans are
9871 close enough to merge.
9872 (diagnostic_show_locus): Use linenum_arith_t when iterating over
9873 lines within each line_span.
9875 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
9878 * lra-constraints.c(uses_hard_regs_p): Fix handling of
9879 paradoxical SUBREGS.
9881 2019-02-20 Li Jia He <helijia@linux.ibm.com>
9884 * gcc/config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
9885 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
9886 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
9889 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
9891 * config/gcn/gcn.c (print_operand): Fix typo.
9893 2019-02-19 Richard Biener <rguenther@suse.de>
9896 * toplev.c (do_compile): Initialize mpfr's exponent range
9897 based on available float modes.
9899 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
9901 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
9902 as long as the epilogue isn't completed.
9904 2019-02-18 Martin Sebor <msebor@redhat.com>
9906 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
9907 __has_cpp_attribute, and __has_include.
9909 2019-02-18 Martin Sebor <msebor@redhat.com>
9911 * doc/invoke.texi (-Wreturn-type): Correct and expand.
9913 2019-02-18 Martin Sebor <msebor@redhat.com>
9916 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
9918 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
9920 2019-02-18 Richard Biener <rguenther@suse.de>
9922 PR tree-optimization/89296
9923 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
9924 of no-warning flag to cases that might emit the bogus warning.
9926 2019-02-18 Jakub Jelinek <jakub@redhat.com>
9929 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
9931 * config/arm/vfp.md (*movdi_vfp): Likewise.
9932 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
9933 "q" constraint for operands[0].
9936 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
9937 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
9938 pattern in a temporary buffer.
9939 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
9940 than 64-operands[2].
9943 * config/s390/s390.c (s390_indirect_branch_attrvalue,
9944 s390_indirect_branch_settings): Define unconditionally.
9945 (s390_set_current_function): Likewise, but guard the whole body except
9946 the s390_indirect_branch_settings call with
9947 #if S390_USE_TARGET_ATTRIBUTE.
9948 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
9950 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
9951 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
9952 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
9953 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
9954 HOST_WIDE_INT_1U instead of 1ULL.
9955 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
9956 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
9957 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
9958 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
9960 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
9963 2019-02-18 Martin Jambor <mjambor@suse.cz>
9965 PR tree-optimization/89209
9966 * tree-sra.c (create_access_replacement): New optional parameter
9967 reg_tree. Use it as a type if non-NULL and access type is not of
9969 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
9970 to create_access_replacement.
9971 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
9972 Check lacc is non-NULL before attempting to re-create it on the RHS.
9974 2019-02-18 Martin Liska <mliska@suse.cz>
9977 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
9979 (symbol_table::free_edge): Recycle m_summary_id.
9980 * cgraph.h (get_summary_id): New.
9981 (symbol_table::release_symbol): Set m_summary_id to -1
9983 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
9984 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
9985 function_summary to fast_function_summary.
9986 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
9987 * ipa-pure-const.c (class funct_state_summary_t):
9988 Switch from function_summary to fast_function_summary.
9989 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
9990 (class ipa_ref_opt_summary_t): Switch from function_summary
9991 to fast_function_summary.
9992 * symbol-summary.h (class function_summary_base): New class
9993 that is created from base of former function_summary.
9994 (function_summary_base::unregister_hooks): New.
9995 (class function_summary): Inherit from function_summary_base.
9996 (class call_summary_base): New class
9997 that is created from base of former call_summary.
9998 (class call_summary): Inherit from call_summary_base.
9999 (struct is_same): New.
10000 (class fast_function_summary): New summary class.
10001 (class fast_call_summary): New summary class.
10002 * vec.h (vec_safe_grow_cleared): New function.
10004 2019-02-18 Martin Liska <mliska@suse.cz>
10006 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
10007 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
10008 * doc/tm.texi: Document new target hook.
10009 * doc/tm.texi.in: Likewise.
10010 * target.def: Add new target macro.
10011 * gcc.c (find_fortran_preinclude_file): Do not search multilib
10014 2019-02-17 Alan Modra <amodra@gmail.com>
10017 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
10018 output reg on add insn.
10019 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
10021 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
10024 * config/i386/sse.md (ssedoublemode): Remove V4HI.
10025 (PMULHRSW): Likewise.
10026 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
10028 (ssse3_pmulhrswv4hi3): New expander.
10030 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
10032 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
10033 MMX. Add isa attribute.
10035 2019-02-16 Jakub Jelinek <jakub@redhat.com>
10037 PR rtl-optimization/66152
10038 * builtins.h (c_readstr): Declare.
10039 * builtins.c (c_readstr): Remove forward declaration. Add
10040 null_terminated_p argument, if false, read all bytes from the
10041 string instead of stopping after '\0'.
10042 * expr.c (string_cst_read_str): New function.
10043 (store_expr): Use string_cst_read_str instead of
10044 builtin_strncpy_read_str. Try to store by pieces the whole
10045 exp_len first, and only if that fails, split it up into
10046 store by pieces followed by clear_storage. Formatting fix.
10048 * config/i386/i386.md (*movqi_internal): Remove static from
10049 buf variable. Use output_asm_insn (buf, operands); return "";
10050 instead of return buf;.
10051 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
10052 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
10053 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
10055 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
10057 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
10058 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
10059 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
10060 (CC1_SPEC): Likewise.
10061 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
10063 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
10065 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
10066 the base address on 64-bit strict-alignment platforms.
10068 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
10070 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
10072 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
10074 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
10076 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
10078 PR rtl-optimization/88308
10079 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
10080 on copied instruction.
10082 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
10084 * final.c (insn_current_reference_address): Replace test on JUMP_P
10085 with test on jump_to_label_p.
10086 * config/visium/visium-passes.def: New file.
10087 * config/visium/t-visium (PASSES_EXTRA): Define.
10088 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
10089 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
10090 (TRAMPOLINE_ALIGNMENT): Define.
10091 * config/visium/visium.c (visium_option_override): Do not register
10092 the machine-specific reorg pass here.
10093 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
10095 (output_branch): Adjust threshold for long branch instruction.
10096 * config/visium/visium.md (cpu): Move around.
10097 (length): Adjust for the GR6.
10099 2019-02-15 Richard Biener <rguenther@suse.de>
10100 Jakub Jelinek <jakub@redhat.com>
10102 PR tree-optimization/89278
10103 * tree-loop-distribution.c: Include tree-eh.h.
10104 (generate_memset_builtin, generate_memcpy_builtin): Call
10105 rewrite_to_non_trapping_overflow on builtin->size before passing it
10106 to force_gimple_operand_gsi.
10108 2019-02-15 Jakub Jelinek <jakub@redhat.com>
10111 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
10113 * opth-gen.awk: Likewise.
10115 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
10117 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
10118 Enable MMX, SSE and SSE2 by default.
10119 * config/i386/i386.c (ix86_option_override_internal): Do not
10120 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
10122 2019-02-14 Jakub Jelinek <jakub@redhat.com>
10124 PR rtl-optimization/89354
10125 * combine.c (make_extraction): Punt if extraction_mode is narrower
10128 2019-02-14 Maya Rashish <coypu@sdf.org>
10130 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
10131 * config/netbsd-d.c: New file.
10132 * config/t-netbsd: Add netbsd-d.o
10134 2018-02-14 Steve Ellcey <sellcey@marvell.com>
10136 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
10137 affects_type_identity to true for aarch64_vector_pcs.
10138 (aarch64_comp_type_attributes): New function.
10139 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
10141 2019-02-14 Tamar Christina <tamar.christina@arm.com>
10144 * config/arm/iterators.md (ANY64): Add V4HF.
10146 2019-02-14 Martin Liska <mliska@suse.cz>
10148 PR rtl-optimization/89242
10149 * dce.c (delete_unmarked_insns): Call free_dominance_info we
10150 process a transformation.
10152 2019-02-14 Jakub Jelinek <jakub@redhat.com>
10154 PR tree-optimization/89314
10155 * fold-const.c (fold_binary_loc): Cast strlen argument to
10156 const char * before dereferencing it. Formatting fixes.
10158 PR middle-end/89284
10159 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
10161 2019-02-13 Ian Lance Taylor <iant@golang.org>
10163 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
10164 and set current index for other optimizations.
10166 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
10168 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
10169 nonimmediate_operand as operand 2 predicate.
10170 (vec_set<VF2_512_256:mode>_0): Ditto.
10171 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
10172 (*vec_concatv2si): Remove alternative 2.
10173 (*vec_concatv4si_0): Use vm constraint for alternative 0.
10174 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
10175 (vec_concatv2di): Split alternatives 4,5,6 to ...
10176 (*vec_concatv2di_0) ... new pattern.
10178 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
10181 * config/arm/arm.c (ldm_stm_operation_p) Set
10182 addr_reg_in_reglist correctly for first register.
10183 (load_multiple_sequence): Remove dead base check.
10184 (gen_ldm_seq): Correctly set write_back for Thumb-1.
10186 2019-02-13 Tamar Christina <tamar.christina@arm.com>
10189 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
10190 Expose as @aarch64_pred_mov.
10191 * config/aarch64/aarch64.c (aarch64_classify_address):
10192 Use expand_insn which legitimizes operands.
10194 2019-02-13 Martin Liska <mliska@suse.cz>
10196 * builtins.h (expand_builtin_with_bounds): Remove declaration.
10197 * calls.c (struct arg_data): Remove special_slot, pointer_arg
10198 and pointer_offset fields.
10199 (initialize_argument_information): Remove usage of dead
10201 * cgraph.h (struct cgraph_thunk_info): Remove
10202 add_pointer_bounds_args.
10203 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
10205 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
10207 * config/i386/i386.c (ix86_function_arg_advance): Remove
10209 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
10210 (def_builtin): Remove usage of dead
10212 (ix86_add_new_builtins): Likewise.
10213 * ipa-fnsummary.c (compute_fn_summary): Likewise.
10214 * ipa-icf.c (sem_function::equals_wpa): Likewise.
10215 (sem_function::init): Likewise.
10216 (sem_variable::merge): Likewise.
10217 * ipa-visibility.c (function_and_variable_visibility): Likewise.
10218 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
10219 * lto-cgraph.c (lto_output_node): Likewise.
10220 (lto_output_varpool_node): Likewise.
10221 (input_node): Likewise.
10222 (input_varpool_node): Likewise.
10223 * lto-streamer-out.c (lto_output): Likewise.
10224 * tree-inline.c (expand_call_inline): Remove usage of
10226 * tree-inline.h (struct copy_body_data): Likewise.
10227 * varpool.c (varpool_node::dump): Likewise.
10229 2019-02-13 Jakub Jelinek <jakub@redhat.com>
10231 PR middle-end/89303
10232 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
10233 into pt->vars_contains_escaped_heap instead of setting
10234 pt->vars_contains_escaped_heap to it.
10236 PR middle-end/89281
10237 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
10238 INTVAL (size), compare it to GET_MODE_MASK instead of
10239 1 << GET_MODE_BITSIZE.
10242 * config/i386/predicates.md (x86_64_immediate_operand): Allow
10243 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
10246 2019-02-13 Martin Liska <mliska@suse.cz>
10249 * cfgrtl.c (remove_barriers_from_footer): New function.
10250 (try_redirect_by_replacing_jump): Use it.
10251 (cfg_layout_redirect_edge_and_branch): Likewise.
10253 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
10255 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
10256 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
10257 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
10258 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
10259 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
10260 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
10262 * config/rs6000/rs6000.c (builtin_function_type)
10263 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
10264 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
10265 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
10266 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
10267 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
10269 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
10271 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
10272 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
10274 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
10277 * config/i386/i386.md (*movoi_internal_avx): Revert revision
10278 268678 and revision 268657.
10279 (*movti_internal): Likewise.
10281 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
10284 * config/s390/s390.c (s390_decompose_address): Update comment.
10285 (s390_check_qrst_address): Reject invalid address forms after
10288 2019-02-12 Martin Liska <mliska@suse.cz>
10291 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
10292 we need default values of funct_state for a function that
10295 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
10297 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
10298 the object to pick the size of stores on strict-alignment platforms.
10300 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
10301 (*movdi_insn_sp32): Likewise.
10302 (*movdi_insn_sp64): Likewise.
10304 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
10307 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
10308 types that needs constructiong.
10309 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
10311 2019-02-12 Richard Biener <rguenther@suse.de>
10313 PR tree-optimization/89253
10314 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
10315 duplicate the loop.
10317 2019-02-11 David Malcolm <dmalcolm@redhat.com>
10320 * input.c (selftest::test_line_offset_overflow): New selftest.
10321 (selftest::input_c_tests): Call it.
10323 2019-02-11 Martin Sebor <msebor@redhat.com>
10325 PR tree-optimization/88771
10326 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
10327 when -Wstringop-overflow is set.
10328 (builtin_memref::builtin_memref): Adjust excessive upper bound
10329 only when lower bound is not excessive.
10330 (maybe_diag_overlap): Detect and diagnose excessive bounds via
10331 -Wstringop-ovefflow.
10332 (maybe_diag_offset_bounds): Rename...
10333 (maybe_diag_access_bounds): ...to this.
10334 (check_bounds_or_overlap): Adjust for name change above.
10336 2019-02-11 Martin Sebor <msebor@redhat.com>
10339 * builtins.c (max_object_size): Move from here...
10340 * builtins.h (max_object_size): ...and here...
10341 * tree.c (max_object_size): ...to here...
10342 * tree.h (max_object_size): ...and here.
10344 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
10346 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
10347 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
10348 for correct semantics.
10350 2019-02-11 Alan Modra <amodra@gmail.com>
10352 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
10353 -mlongcall and -mpltseq.
10354 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
10355 (RS/6000 and PowerPC Options <-mpltseq>): Document.
10356 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
10357 * config/rs6000/sysv4.opt (mpltseq): New option.
10358 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
10359 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
10360 support is lacking. Don't allow -mpltseq with -mbss-plt.
10361 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
10362 -mpltseq given for ELFv1.
10363 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
10364 Only use UNSPEC_PLTSEQ for inline PLT calls.
10365 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
10366 use UNSPEC_PLTSEQ for inline PLT calls.
10367 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
10368 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
10369 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
10370 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
10371 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
10372 (pltseq_mtctr_<mode>): Likewise.
10374 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10376 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
10378 * configure: Regenerate.
10380 2019-02-11 Jakub Jelinek <jakub@redhat.com>
10383 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
10386 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
10388 * function.c (assign_parm_setup_block): Use the stored
10389 size, not the passed size, when allocating stack-space,
10390 also for a parameter with alignment larger than
10391 MAX_SUPPORTED_STACK_ALIGNMENT.
10393 2019-02-11 Martin Liska <mliska@suse.cz>
10396 * ipa-cp.c (build_toporder_info): Remove usage of a param.
10397 * ipa-inline.c (inline_small_functions): Likewise.
10398 * ipa-pure-const.c (propagate_pure_const): Likewise.
10399 (propagate_nothrow): Likewise.
10400 * ipa-reference.c (propagate): Likewise.
10401 * ipa-utils.c (struct searchc_env): Remove unused field.
10402 (searchc): Always search across AVAIL_INTERPOSABLE.
10403 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
10404 the only called IPA pure const can properly not propagate
10405 across interposable boundary.
10406 * ipa-utils.h (ipa_reduced_postorder): Remove param.
10408 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
10410 * config/nds32/nds32.md (call_internal, call_value_internal,
10411 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
10413 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
10415 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
10418 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
10420 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
10423 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
10425 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
10427 2019-02-10 Jakub Jelinek <jakub@redhat.com>
10429 PR tree-optimization/89268
10430 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
10431 if preds is non-NULL.
10433 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
10436 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
10439 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
10441 * config/nds32/nds32.md (trap): New pattern.
10443 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
10445 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
10448 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
10450 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
10453 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
10455 * ipa-visibility.c (localize_node): Also do not localize
10456 LDPR_PREVAILING_DEF_IRONLY_EXP.
10458 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
10461 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
10462 instead of type_with_linkage.
10464 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
10467 * params.def (uninlined-function-insns, uninlined-function-time,
10468 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
10469 bound so we don't get overflows.
10471 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
10473 * config/rs6000/rs6000-string.c (expand_compare_loop,
10474 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
10477 2019-02-09 Jakub Jelinek <jakub@redhat.com>
10479 PR middle-end/89246
10480 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
10481 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
10482 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
10484 2019-02-09 Alan Modra <amodra@gmail.com>
10487 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
10488 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
10491 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
10493 PR middle-end/88560
10494 * lra-constraints.c (process_alt_operands): Don't increase reject
10495 for memory when offset memory is required.
10497 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
10499 * config/s390/vector.md: Implement vector copysign.
10501 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
10503 * expr.c (expand_constructor): Correct indentations.
10505 2019-02-08 Richard Biener <rguenther@suse.de>
10507 PR tree-optimization/89247
10508 * tree-if-conv.c: Include tree-cfgcleanup.h.
10509 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
10510 (tree_if_conversion): Pass through predicate vector.
10511 (pass_if_conversion::execute): Do CFG cleanup and SSA update
10512 inline, see if any if-converted loops we refrece in
10513 LOOP_VECTORIZED calls vanished and fixup.
10514 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
10516 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
10518 * config/s390/constraints.md (jdd): New constraint.
10520 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
10523 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
10524 upper 16 vector registers without TARGET_AVX512VL.
10525 (*movti_internal): Likewise.
10527 2019-02-08 Jakub Jelinek <jakub@redhat.com>
10529 PR rtl-optimization/89234
10530 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
10531 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
10532 (copy_reg_eh_region_note_backward): Likewise.
10534 2019-02-08 Richard Biener <rguenther@suse.de>
10536 PR middle-end/89223
10537 * tree-data-ref.c (initialize_matrix_A): Fail if constant
10538 doesn't fit in HWI.
10539 (analyze_subscript_affine_affine): Handle failure from
10540 initialize_matrix_A.
10542 2019-02-08 Jakub Jelinek <jakub@redhat.com>
10544 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
10547 2019-02-07 David Malcolm <dmalcolm@redhat.com>
10549 PR tree-optimization/86637
10550 PR tree-optimization/89235
10551 * tree-vect-loop.c (optimize_mask_stores): Add an
10552 auto_purge_vect_location sentinel to ensure that vect_location is
10554 * tree-vectorizer.c
10555 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
10556 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
10557 to ensure that vect_location is purged on exit.
10558 (pass_slp_vectorize::execute): Likewise, replacing the manual
10560 * tree-vectorizer.h (class auto_purge_vect_location): New class.
10562 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10564 * config/aarch64/iterators.md (max_opp): New code_attr.
10565 (USMAX): New code iterator.
10566 * config/aarch64/predicates.md (aarch64_smin): New predicate.
10567 (aarch64_smax): Likewise.
10568 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
10569 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
10572 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
10575 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
10576 for TARGET_AVX512VL.
10577 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
10579 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
10581 * config/s390/s390-builtin-types.def: Add new types.
10582 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
10583 (s390_vec_xlw4): Make the memory operand into a const pointer.
10584 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
10586 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
10587 a new vector type with the alignment of the scalar memory operand.
10589 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
10590 Jakub Jelinek <jakub@redhat.com>
10593 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
10594 arm_count_ldrdstrd_insns): New declarations.
10595 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
10597 (valid_operands_ldrd_strd): New function.
10598 (arm_count_ldrdstrd_insns): New function.
10599 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
10600 sets instead of single DImode set and define new insns to match this.
10602 2019-02-07 Tamar Christina <tamar.christina@arm.com>
10604 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
10605 Make it a C initializer.
10607 2019-02-07 Tamar Christina <tamar.christina@arm.com>
10610 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
10612 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10614 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
10615 Use neon_dot<q> for type.
10616 (neon_<sup>dot_lane<vsi2qi>): Likewise.
10618 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10620 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
10621 Use neon_dot<q> for type.
10622 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
10623 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
10625 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
10627 PR rtl-optimization/89225
10628 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
10631 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
10633 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
10634 after restoring registers saved to allocate the frame on Windows.
10636 2019-02-06 Richard Biener <rguenther@suse.de>
10638 PR tree-optimization/89182
10639 * graphite.h (cached_scalar_evolution_in_region): Declare.
10640 * graphite.c (struct seir_cache_key): New.
10641 (struct sese_scev_hash): Likewise.
10642 (seir_cache): New global.
10643 (cached_scalar_evolution_in_region): New function.
10644 (graphite_transform_loops): Allocate and release seir_cache.
10645 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
10646 cached_scalar_evolution_in_region.
10647 * graphite-scop-detection.c (scop_detection::can_represent_loop):
10649 (scop_detection::graphite_can_represent_expr: Use
10650 cached_scalar_evolution_in_region.
10651 (scop_detection::stmt_simple_for_scop_p): Likewise.
10652 (find_params_in_bb): Likewise.
10653 (gather_bbs::before_dom_children): Likewise.
10654 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
10655 (add_loop_constraints): Likewise.
10657 2019-02-06 Jakub Jelinek <jakub@redhat.com>
10659 PR middle-end/89210
10660 * fold-const-call.c (fold_const_vec_convert): Pass true as last
10661 operand to new_unary_operation only if both element types are integral
10662 and it isn't a widening conversion. Return NULL_TREE if
10663 new_unary_operation failed.
10665 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
10668 * config/s390/s390.md: Remove load and test FP splitter.
10670 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
10673 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
10674 expand_compare_loop, expand_block_compare_gpr,
10675 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
10676 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
10677 #include "profile-count.h" and "predict.h" for types and functions
10678 needed to work with REG_BR_PROB notes.
10680 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
10683 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
10684 for the long branch case.
10686 2019-02-05 Jakub Jelinek <jakub@redhat.com>
10689 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
10690 can throw, non-call exceptions are enabled and we can't delete
10691 dead exceptions or alter cfg. Set must_clean if
10692 delete_insn_and_edges returns true, don't set it blindly for calls.
10693 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
10695 PR rtl-optimization/89195
10696 * combine.c (make_extraction): For MEMs, don't extract bytes outside
10697 of the original MEM.
10699 2019-02-05 Martin Liska <mliska@suse.cz>
10701 PR gcov-profile/89000
10702 * gcov.c (function_summary): Remove argument.
10703 (file_summary): New function.
10704 (print_usage): Replace tabs with spaces.
10705 (generate_results): Use new function file_summary.
10707 2019-02-05 Jakub Jelinek <jakub@redhat.com>
10710 * optabs.c (prepare_cmp_insn): Pass x and y to
10711 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
10713 2019-02-05 Richard Biener <rguenther@suse.de>
10715 PR middle-end/89150
10716 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
10717 (struct bitmap_element): Drop chain_prev so we properly recurse on
10718 the prev member, supporting tree views.
10719 (struct bitmap_head): GTY skip the obstack member.
10721 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
10724 * doc/extend.texi (Vector Extensions): Add an example of using vector
10725 types together with x86 intrinsics.
10727 2019-02-04 Alan Modra <amodra@gmail.com>
10729 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
10730 str[] size to 160, and comment.
10732 2019-02-04 Alan Modra <amodra@gmail.com>
10734 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
10735 (rs6000_pltseq_template): Guard output of TLS markers with
10736 TARGET_TLS_MARKERS.
10737 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
10738 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
10739 to use inline PLT sequences.
10740 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
10741 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
10742 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
10744 2019-02-04 Martin Liska <mliska@suse.cz>
10747 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
10748 out when ipa_fn_summaries does not contain entry for callee.
10750 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
10752 * config/sparc/sparc.h: Remove superfluous blank lines.
10753 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
10754 (got_register_rtx): ...this.
10755 (sparc_got): Adjust to above renaming.
10756 (sparc_tls_got): Likewise.
10757 (sparc_delegitimize_address): Likewise.
10758 (sparc_output_mi_thunk): Likewise.
10759 (sparc_init_pic_reg): Likewise.
10760 (save_local_or_in_reg_p): Fix test on the GOT register.
10761 (USE_HIDDEN_LINKONCE): Move around.
10762 (get_pc_thunk_name): Likewise.
10763 (gen_load_pcrel_sym): Likewise.
10764 (load_got_register): Likewise.
10766 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
10768 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
10769 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
10771 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
10773 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
10774 into consideration.
10776 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
10778 * config.gcc (with_nds32_lib, glibc):
10779 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
10780 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
10781 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
10783 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
10786 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
10787 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
10788 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
10789 (*rcpsf2_sse): Ditto.
10790 (*rsqrtsf2_sse): Ditto.
10791 (sse4_1_round<mode<2): Ditto.
10793 2019-02-03 Richard Biener <rguenther@suse.de>
10796 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
10799 2019-02-02 Jakub Jelinek <jakub@redhat.com>
10801 PR middle-end/87887
10802 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
10803 Punt with warning on aggregate return or argument types. Ignore
10804 type/mode checking for uniform arguments.
10806 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
10808 * combine.c (try_combine): Do not print "Can't combine" messages unless
10809 printing failed combination attempts.
10811 2019-02-01 Martin Jambor <mjambor@suse.cz>
10814 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
10815 segment and global segment variables before making them static.
10817 2019-02-01 Martin Jambor <mjambor@suse.cz>
10819 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
10820 missed optimization dump with dump_enabled_p.
10822 2019-02-01 Richard Biener <rguenther@suse.de>
10824 PR middle-end/88597
10825 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
10826 the instantiate cache.
10827 (instantiate_scev_binary): Elide second operand procesing
10828 if equal to the first.
10829 * tree-chrec.c (chrec_contains_symbols): Add visited set.
10830 (chrec_contains_undetermined): Likewise.
10831 (tree_contains_chrecs): Likewise.
10833 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
10835 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
10837 2019-02-01 Jakub Jelinek <jakub@redhat.com>
10839 PR tree-optimization/89143
10840 * wide-int-range.h (wide_int_range_absu): Declare.
10841 * wide-int-range.cc (wide_int_range_absu): New function.
10842 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
10844 PR tree-optimization/88107
10845 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
10846 instead of assertion that eh_region_outermost is non-NULL, if it
10847 is NULL, set *ALL to true and return NULL.
10848 (move_sese_region_to_fn): Adjust caller, if all is set, call
10849 duplicate_eh_regions with NULL region.
10851 2019-02-01 Richard Biener <rguenth@suse.de>
10853 PR rtl-optimization/88593
10854 * mode-switching.c (optimize_mode_switching): Free dominators before
10855 calling cleanup_cfg.
10857 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
10859 PR tree-optimization/88932
10860 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
10862 2019-01-31 Jakub Jelinek <jakub@redhat.com>
10864 PR middle-end/89137
10865 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
10866 bogus clang warning.
10868 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
10871 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
10872 alternative to avoid partial SSE register stall for TARGET_AVX.
10873 (truncdfsf2): Ditto.
10874 (sse4_1_round<mode>2): Ditto.
10876 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
10878 PR tree-optimization/89008
10879 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
10880 process anything of the form X * 0.
10882 2019-01-31 Richard Biener <rguenther@suse.de>
10884 PR tree-optimization/89135
10885 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
10886 with abnormal preds.
10888 2019-01-31 Jakub Jelinek <jakub@redhat.com>
10891 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
10892 always_inline callees into no_sanitize_address callers.
10894 2019-01-31 Richard Biener <rguenther@suse.de>
10896 PR rtl-optimization/89115
10897 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
10899 2019-01-30 Martin Sebor <msebor@redhat.com>
10902 * doc/extend.texi (cast to a union): Correct and expand.
10904 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
10906 PR rtl-optimization/87246
10907 * lra-constraints.c (simplify_operand_subreg): Reload memory
10908 in subreg if the address became invalid.
10910 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
10913 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
10914 Disable for little-endian.
10916 2019-01-30 Richard Biener <rguenther@suse.de>
10918 PR rtl-optimization/89115
10919 * opts.c (default_options_optimization): Reduce
10920 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
10921 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
10924 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
10926 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
10927 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
10928 type of vector element when vec_extract is implemented by direct
10931 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
10933 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
10935 2019-01-30 Richard Biener <rguenther@suse.de>
10937 PR tree-optimization/89111
10938 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
10939 canonicalization to appropriately sized access types.
10941 2019-01-30 Jakub Jelinek <jakub@redhat.com>
10944 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
10945 for arguments to functions that are TU-local and shouldn't be
10946 referenced by assembly.
10948 2019-01-30 Ulrich Drepper <drepper@redhat.com>
10950 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
10953 2019-01-29 Martin Sebor <msebor@redhat.com>
10956 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
10958 2019-01-29 Jakub Jelinek <jakub@redhat.com>
10962 * omp-simd-clone.c (simd_clone_clauses_extract)
10963 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
10964 OMP_CLAUSE_ALIGNED_ALIGNMENT.
10966 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
10968 * config.gcc: Force .init_array for ARC.
10970 2019-01-29 Richard Biener <rguenther@suse.de>
10973 * dwarf2out.c (collect_skeleton_dies): New helper.
10974 (copy_decls_for_unworthy_types): Call it.
10975 (build_abbrev_table): Assert we do not try to replace
10976 DW_AT_signature refs with local refs.
10978 2019-01-28 Jakub Jelinek <jakub@redhat.com>
10980 PR middle-end/89002
10981 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
10982 for lastprivate/linear IV, push gimplify context around gimplify_assign
10983 and, if it needed any temporaries, pop it into a gimple bind around the
10986 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
10988 * common.opt (-Wattribute-alias): Remove "no-" from name.
10989 Make -Wattribute-alias command line option and
10990 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
10992 2019-01-28 Jakub Jelinek <jakub@redhat.com>
10995 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
10996 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
10998 (bmi2): Add missing @opindex.
10999 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
11000 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
11001 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
11002 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
11003 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
11004 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
11005 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
11006 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
11007 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
11008 xsavec, xsaveopt and xsaves options.
11010 2019-01-28 Richard Biener <rguenther@suse.de>
11013 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
11016 2019-01-28 Richard Biener <rguenther@suse.de>
11018 PR tree-optimization/88739
11019 * tree-cfg.c (verify_types_in_gimple_reference): Verify
11020 BIT_FIELD_REFs only are applied to mode-precision operands
11021 when they are integral.
11022 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
11023 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
11024 BIT_FIELD_REFs of non-mode-precision integral operands.
11026 2019-01-27 Jakub Jelinek <jakub@redhat.com>
11029 * config/i386/sse.md
11030 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
11031 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
11032 first constants in pairs are multiples of 2. Formatting fixes.
11033 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
11034 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
11035 first constants in each quadruple are multiples of 4. Formatting fixes.
11037 2019-01-26 Martin Jambor <mjambor@suse.cz>
11040 * tree-inline.c: Include tree-cfgcleanup.h.
11041 (delete_unreachable_blocks_update_callgraph): Move...
11042 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
11043 ...here, make externally visible, make second argument bool, adjust
11045 * tree-cfgcleanup.c: Include cgraph.h.
11046 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
11048 * ipa-prop.c: Include tree-cfgcleanup.h.
11049 (ipcp_transform_function): Call
11050 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
11052 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
11054 PR rtl-optimization/88846
11055 * ira.c (process_set_for_memref_referenced_p): New.
11056 (memref_referenced_p): Add new param. Use
11057 process_set_for_memref_referenced_p. Add new switch cases.
11058 (memref_used_between_p): Pass new arg to memref_referenced_p.
11060 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
11063 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
11064 argument ABI_BREAK. Set to true if the calculated alignment has
11065 changed in gcc-9. Check bit-fields for their base type alignment.
11066 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
11067 (aarch64_function_arg_boundary): Likewise.
11068 (aarch64_gimplify_va_arg_expr): Likewise.
11070 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
11072 PR middle-end/89037
11073 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
11074 instead of accessing TREE_INT_CST_ELT directly.
11076 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
11078 * doc/sourcebuild.texi (Environment attributes): Add fenv and
11079 fenv_exceptions description.
11081 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
11083 PR rtl-optimization/87763
11084 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
11085 Allow SUBREG when matching CC_NZmode compare.
11087 2019-01-25 Richard Biener <rguenther@suse.de>
11089 PR tree-optimization/89049
11090 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
11091 Look at the pattern stmt to determine if the stmt is vectorized.
11093 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
11095 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
11096 (pred_mov<mode>): Handle all-register forms using both a new
11097 alternative and a split.
11099 2019-01-25 Richard Biener <rguenther@suse.de>
11101 PR tree-optimization/86865
11102 * graphite-scop-detection.c (scop_detection::can_represent_loop):
11103 Reject non-do-while loops.
11105 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
11107 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
11108 * config/rs6000/constraints.md (Q constraint): Use REG_P.
11109 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
11110 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
11111 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
11112 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
11113 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
11114 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
11115 vlogical_operand, gpc_reg_operand, int_reg_operand,
11116 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
11117 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
11118 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
11119 (save_world_operation, restore_world_operation, lmw_operation,
11120 stmw_operation): Use MEM_P and REG_P.
11121 (tie_operand): Use MEM_P.
11122 (vrsave_operation, crsave_operation): Use REG_P.
11123 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
11124 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
11125 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
11126 (call_operand): Use HARD_REGISTER_P.
11127 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
11129 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
11130 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
11131 quad_aligned_load_p, replace_swapped_aligned_store,
11132 recombine_lvx_pattern, replace_swapped_aligned_load,
11133 recombine_stvx_pattern): Use MEM_P.
11134 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
11135 Use MEM_P and SYMBOL_REF_P.
11136 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
11137 (insn_is_swappable_p): Use REG_P and MEM_P.
11138 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
11139 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
11141 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
11142 Use CONST_DOUBLE_P.
11143 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
11145 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
11146 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
11147 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
11148 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
11150 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
11151 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
11152 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
11153 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
11154 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
11155 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
11156 rs6000_split_logical_di): Use CONST_INT_P.
11157 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
11158 REG_P and SYMBOL_REF_P.
11159 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
11160 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
11161 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
11162 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
11163 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
11164 (small_data_operand, print_operand_address): Use CONST_INT_P and
11166 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
11167 (rs6000_init_hard_regno_mode_ok, direct_move_p):
11168 Use HARD_REGISTER_NUM_P.
11169 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
11170 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
11171 SUBREG_P and SYMBOL_REF_P.
11172 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
11173 and HARD_REGISTER_NUM_P.
11174 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
11176 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
11177 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
11179 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
11180 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
11181 find_addr_reg): Use REG_P.
11182 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
11183 (rs6000_emit_le_vsx_move): Use SUBREG_P.
11184 (offsettable_ok_by_alignment, constant_pool_expr_p,
11185 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
11186 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
11187 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
11188 rs6000_assemble_integer, create_TOC_reference,
11189 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
11190 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
11191 (rs6000_split_vec_extract_var): Use reg_or_subregno.
11192 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
11193 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
11194 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
11195 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
11196 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
11197 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
11198 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
11199 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
11200 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
11201 and cbranch<mode>4): Use CONST_INT_P.
11202 (multiple define_splits): Use REG_P and SUBREG_P.
11203 (define_expands call, call_value): Use MEM_P.
11204 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
11205 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
11206 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
11207 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
11208 and HARD_REGISTER_NUM_P.
11209 (multiple define_splits): Use HARD_REGISTER_NUM_P.
11211 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
11213 PR rtl-optimization/88948
11214 * rtl.h (prepare_copy_insn): New prototype.
11215 * gcse.c (prepare_copy_insn): New function, split out from
11216 process_insert_insn.
11217 (process_insert_insn): Use prepare_copy_insn.
11218 * store-motion.c (replace_store_insn): Use prepare_copy_insn
11219 instead of gen_move_insn.
11221 2019-01-24 Jakub Jelinek <jakub@redhat.com>
11224 * config/i386/i386.c (ix86_pic_register_p): Return true for
11225 UNSPEC_SET_GOT too.
11227 PR tree-optimization/88964
11228 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
11229 punt if HONOR_SNANS (chrec).
11231 PR middle-end/89015
11232 * tree-nested.c (convert_nonlocal_reference_stmt,
11233 convert_local_reference_stmt, convert_tramp_reference_stmt,
11234 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
11235 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
11236 or GIMPLE_OMP_TASK.
11238 PR tree-optimization/89027
11239 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
11240 for "omp simd array" variables.
11242 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
11245 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
11246 force the alignment of m_val.
11248 2019-01-24 Richard Biener <rguenther@suse.de>
11251 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
11252 When in "legacy" debug mode make sure to reset self-origins.
11254 2019-01-24 Martin Liska <mliska@suse.cz>
11256 PR gcov-profile/88994
11257 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
11258 result will be always smaller or equal to the original.
11259 * gcov.c (mangle_name): Fix else branch where we should
11260 also copy to PTR and shift the pointer.
11262 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
11264 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
11265 * vr-values.c (find_case_label_ranges): Fix a comment typo.
11267 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
11269 * common/config/i386/i386-common.c
11270 (OPTION_MASK_ISA_ENQCMD_SET,
11271 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
11272 (ix86_handle_option): Handle -menqcmd.
11273 * config.gcc (enqcmdintrin.h): New header file.
11274 * config/i386/cpuid.h (bit_ENQCMD): New bit.
11275 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
11277 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
11279 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
11280 __builtin_ia32_enqcmds): New builtins.
11281 * config/i386/i386-c.c (__ENQCMD__): New macro.
11282 * config/i386/i386-option.c (ix86_target_string): Add
11284 (ix86_valid_target_attribute_inner_p): Likewise.
11285 * config/i386/i386-expand.c
11286 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
11287 IX86_BUILTIN_ENQCMDS.
11288 * config/i386/i386.h (TARGET_ENQCMD): New.
11289 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
11290 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
11291 (movdir64b_<mode>): Parameterize to enable share expansion code
11292 with ENQCMD in function ix86_expand_builtin.
11293 * config/i386/i386.opt: Add -menqcmd.
11294 * config/i386/immintrin.h: Include enqcmdintrin.h.
11295 * config/i386/enqcmdintrin.h: New intrinsic file.
11296 * doc/invoke.texi: Add -menqcmd.
11298 2019-01-23 Bin Cheng <bin.cheng@arm.com>
11299 Steve Ellcey <sellcey@marvell.com>
11302 * recog.c (address_operand): Return false on wrong mode for address.
11303 (constrain_operands): Check for mode with 'p' constraint.
11305 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
11308 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
11309 Disparage MMX alternative.
11310 (sse2_cvtpd2pi): Ditto.
11311 (sse2_cvttpd2pi): Ditto.
11313 2019-01-23 David Malcolm <dmalcolm@redhat.com>
11316 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
11317 use-after-free of the result of
11318 aarch64_get_extension_string_for_isa_flags.
11320 2019-01-23 Jakub Jelinek <jakub@redhat.com>
11323 * doc/extend.texi: Document break and continue behavior in
11324 statement expressions.
11326 2019-01-23 Richard Biener <rguenther@suse.de>
11328 PR tree-optimization/89008
11329 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
11330 not leave another stray operand.
11332 2019-01-23 Jakub Jelinek <jakub@redhat.com>
11334 * BASE-VER: Bump to 9.0.1.
11336 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
11338 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
11339 thunk that returns by reference, use the type of the return object
11340 of the thunk instead of that of the alias to build the dereference.
11342 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
11344 * config/arc/atomic.md: Add operand to DMB instruction.
11346 2019-01-23 Jakub Jelinek <jakub@redhat.com>
11348 PR tree-optimization/88964
11349 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
11350 build_zero_cst instead of build_int_cst. Return false for loop
11351 invariants which honor signed zeros.
11353 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
11355 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
11357 2019-01-22 Jakub Jelinek <jakub@redhat.com>
11360 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
11361 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
11362 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
11364 PR middle-end/88968
11365 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
11366 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
11369 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
11370 Disable for little endian.
11372 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
11375 * config/arm/arm.c (arm_needs_double_word_align): Check
11376 DECL_BIT_FIELD_TYPE.
11378 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
11379 H.J. Lu <hongjiu.lu@intel.com>
11382 * config/i386/i386-builtin.def: Add mask2 to all builtin
11383 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
11385 * config/i386/i386.c (BDESC): Add mask2 to the definition.
11386 (BDESC_FIRST): Likewise.
11387 (define_builtin): Add an argument for mask2. Updated to handle
11388 both ix86_isa_flags and ix86_isa_flags2.
11389 (define_builtin_const): Likewise.
11390 (define_builtin_pure): Likewise.
11391 (define_builtin2): Deleted.
11392 (define_builtin_const2): Likewise.
11393 (builtin_description): Add a member, mask2.
11394 (bdesc_*): Add mask2 to builtin initializations.
11395 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
11396 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
11398 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
11400 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
11403 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
11406 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
11409 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
11410 alignment is dominated by a bitfield with 64-bit aligned base type.
11411 (arm_function_arg): Emit a warning if the alignment has changed since
11412 earlier GCC releases.
11413 (arm_function_arg_boundary): Likewise.
11414 (arm_setup_incoming_varargs): Likewise.
11416 2019-01-22 Richard Biener <rguenther@suse.de>
11418 PR tree-optimization/88862
11419 * graphite-scop-detection.c
11420 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
11422 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
11424 * doc/extend.tex (AMD GCN Function Attributes): New section.
11425 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
11426 * doc/invoke.texi (AMD GCN Options): New section.
11427 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
11429 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
11431 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
11432 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
11434 2019-01-22 Jakub Jelinek <jakub@redhat.com>
11436 PR tree-optimization/88044
11437 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
11438 is false in the first iteration, but !every_iteration, return false
11439 instead of true with niter->niter zero.
11441 PR rtl-optimization/88904
11442 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
11443 any nonequal registers before processing BB_END (b).
11446 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
11448 (expand_binop_directly, expand_doubleword_clz,
11449 expand_doubleword_popcount, expand_ctz, expand_ffs,
11450 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
11452 PR rtl-optimization/49429
11454 PR rtl-optimization/86334
11456 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
11457 addressable from here...
11458 (emit_block_op_via_libcall): ... to here.
11460 2019-01-22 Richard Biener <rguenther@suse.de>
11462 * tree-vect-loop.c (vect_analyze_loop_operations): Use
11463 auto_vec for cost vector to fix memleak.
11464 (vectorize_fold_left_reduction): Properly gather SLP defs.
11465 (vectorizable_comparison): Do not swap operands to properly
11468 2019-01-22 Alan Modra <amodra@gmail.com>
11471 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
11472 stays a reg. Allow a const_int.
11473 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
11474 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
11475 (IS_NOMARK_TLSGETADDR): Define.
11476 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
11477 (rs6000_output_tlsargs): New function.
11478 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
11479 __tls_get_addr call takes an arg.
11480 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
11481 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
11483 (call_value_nonlocal_sysv): ..or here, delete split.
11484 (tls_gdld_nomark): Delete.
11485 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
11486 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
11487 (call_value_nonlocal_sysv): Likewise.
11488 (call_value_nonlocal_sysv_secure): Likewise.
11489 (call_value_nonlocal_aix): Likewise.
11490 (call_value_indirect_aix): Likewise.
11491 (call_value_indirect_elfv2): Likewise.
11492 (call_value_local32, call_value_local64): Disable for no-mark tls.
11493 (call_value_local_aix): Likewise.
11495 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
11498 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
11499 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
11501 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
11503 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
11504 string contents as hash_map keys.
11506 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
11509 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
11510 for rvalue context. Handle rvalues correctly. Use min_align_of_type
11511 instead of TYPE_ALIGN.
11512 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
11513 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
11514 pointer from TYPE_STUB_DECL.
11516 2019-01-21 Richard Biener <rguenther@suse.de>
11518 PR tree-optimization/88934
11519 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
11520 at the possibly non-constant operand.
11521 (vect_get_constant_vectors): Adjust.
11523 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
11526 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
11527 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
11528 instead of _X86INTRIN_H_INCLUDED.
11529 * onfig/i386/clwbintrin.h: Likewise.
11530 * config/i386/pkuintrin.h: Likewise.
11531 * config/i386/prfchwintrin.h: Likewise.
11532 * config/i386/rdseedintrin.h: Likewise.
11533 * config/i386/wbnoinvdintrin.h: Likewise.
11534 * config/i386/xsavecintrin.h: Likewise.
11535 * config/i386/xsavesintrin.h: Likewise.
11536 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
11537 * config/i386/xsaveintrin.h: Likewise.
11538 * config/i386/xsaveoptintrin.h: Likewise.
11539 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
11540 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
11541 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
11542 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
11543 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
11544 * config/i386/immintrin.h: Here.
11546 2019-01-20 Martin Jambor <mjambor@suse.cz>
11549 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
11550 with aa_walk_budget.
11551 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
11552 aa_walk_budget_p parameter.
11553 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
11554 walk. Updated all callers.
11555 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
11556 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
11558 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
11559 parameter info. Extract info from fbi. Pass fbi to recursive calls
11560 and to unmodified_parm.
11561 (phi_result_unknown_predicate): New parameter fbi, removed parameter
11562 info, updated call to will_be_nonconstant_expr_predicate.
11563 (param_change_prob): New parameter fbi, limit AA walking.
11564 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
11565 calls to various above functions.
11566 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
11567 parameter. Use it to limit AA walking.
11568 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
11569 fbi, limit AA walk.
11570 (detect_type_change): New parameter fbi, pass it on to
11571 detect_type_change_from_memory_writes.
11572 (detect_type_change_ssa): Likewise.
11573 (aa_overwalked): Removed.
11574 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
11575 accordingly, adjust to the neew AA limiting scheme.
11576 (parm_ref_data_preserved_p): Likewise.
11577 (ipa_compute_jump_functions_for_edge): Adjust call to
11579 (ipa_analyze_call_uses): Likewise.
11580 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
11581 (ipa_analyze_node): Initialize aa_walk_budget.
11582 (ipcp_transform_function): Likewise.
11583 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
11584 to get_dynamic_type.
11586 2019-01-19 Jakub Jelinek <jakub@redhat.com>
11588 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
11589 outside of #if CHECKING_P code.
11591 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
11593 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
11594 New function, split out from...
11595 (loop_versioning::analyze_stride): ...here.
11596 (loop_versioning::find_per_loop_multiplication): Use gassign.
11597 (loop_versioning::analyze_term_using_scevs): Return a success code.
11598 (loop_versioning::analyze_arbitrary_term): New function.
11599 (loop_versioning::analyze_address_fragment): Use
11600 analyze_arbitrary_term if all else fails.
11602 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
11605 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
11608 2019-01-18 Richard Biener <rguenther@suse.de>
11610 PR tree-optimization/88903
11611 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
11612 scalar stmts a SLP shift amount is composed of when detecting
11615 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
11618 * config/arm/arm-cpus.in (mp): New feature.
11619 (sec): New feature.
11620 (fgroup ARMv7ve): Add mp and sec features.
11621 (arch armv7-a): Add options to allow mp and sec extensions.
11622 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
11623 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
11624 extenstions to the base architecture.
11625 (cpu cortex-a8): Add sec extension to the base architecture.
11626 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
11627 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
11628 variants down to the base v7-a varaint.
11629 * config/arm/t-multilib (v7_a_arch_variants): New variable.
11630 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
11631 of permitted extensions for -march=armv7-a and for
11632 -mcpu=generic-armv7-a.
11634 2019-01-18 Martin Liska <mliska@suse.cz>
11636 * params.def: Fix comment.
11637 * tree-profile.c (gimple_init_gcov_profiler): Bump function
11639 (gimple_gen_ic_func_profiler): Likewise.
11641 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11643 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
11644 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
11645 and put in error checks for stack protector guard options.
11646 (aarch64_stack_protect_guard): New.
11647 (TARGET_STACK_PROTECT_GUARD): Define.
11648 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
11649 (reg_stack_protect_address<mode>): New.
11650 (stack_protect_set): Adjust for SSP_GLOBAL.
11651 (stack_protect_test): Likewise.
11652 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
11653 (-mstack-protector-guard): Likewise.
11654 (-mstack-protector-guard-offset): Likewise.
11656 2019-01-18 Jakub Jelinek <jakub@redhat.com>
11658 PR tree-optimization/86214
11659 * tree-inline.h (struct copy_body_data): Add
11660 add_clobbers_to_eh_landing_pads member.
11661 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
11662 (copy_edges_for_bb): Call it if EH edge destination is <
11663 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
11664 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
11665 if flag_stack_reuse != SR_NONE and clear it afterwards.
11667 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
11670 * doc/install.texi (with-multilib-list): Document for aarch64.
11672 2019-01-18 Jakub Jelinek <jakub@redhat.com>
11675 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
11676 (("..."))) with ("...").
11678 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
11680 * doc/extend.texi (Built-in Functions for Memory Model Aware
11681 Atomic Operations): Document atomic fetch and nand.
11683 2019-01-18 Martin Liska <mliska@suse.cz>
11684 Richard Biener <rguenther@suse.de>
11686 PR middle-end/88587
11687 * cgraph.h (create_version_clone_with_body): Add new argument
11689 * cgraphclones.c (cgraph_node::create_version_clone): Add
11690 DECL_ATTRIBUTES to a newly created decl. And call
11691 valid_attribute_p so that proper cl_target_optimization_node
11692 is set for the newly created declaration.
11693 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
11695 (expand_target_clones): Do not call valid_attribute_p, it must
11697 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
11700 2019-01-17 Jakub Jelinek <jakub@redhat.com>
11703 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
11704 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
11705 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
11707 2019-01-17 Martin Sebor <msebor@redhat.com>
11709 PR middle-end/88273
11710 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
11711 Handle anti-ranges the same as no range at all.
11713 2018-01-17 Steve Ellcey <sellcey@cavium.com>
11715 * config/aarch64/aarch64.c (cgraph.h): New include.
11716 (intl.h): New include.
11717 (supported_simd_type): New function.
11718 (currently_supported_simd_type): Ditto.
11719 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
11720 (aarch64_simd_clone_adjust): Ditto.
11721 (aarch64_simd_clone_usable): Ditto.
11722 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
11723 (TARGET_SIMD_CLONE_ADJUST): Ditto.
11724 (TARGET_SIMD_CLONE_USABLE): Ditto.
11725 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
11726 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
11729 2019-01-17 Martin Sebor <msebor@redhat.com>
11731 PR tree-optimization/88800
11732 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
11733 NO_WARNING bit here. Avoid folding out-of-bounds calls.
11734 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
11735 redundant argument. Add new argument and issue diagnostics under
11736 its control. Detect out-of-bounds access even with warnings
11738 (check_bounds_or_overlap): Change return type. Add argument.
11739 (wrestrict_dom_walker::check_call): Adjust.
11740 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
11741 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
11742 check_bounds_or_overlap's return value.
11743 (handle_builtin_stxncpy): Same.
11744 (handle_builtin_strcat): Same.
11746 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
11747 Kwok Cheung Yeung <kcy@codesourcery.com>
11748 Julian Brown <julian@codesourcery.com>
11749 Tom de Vries <tom@codesourcery.com>
11751 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
11753 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
11755 * doc/sourcebuild.texi: Document dg-require-effective-target
11756 llvm_binutils and offload_gcn.
11758 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
11759 Kwok Cheung Yeung <kcy@codesourcery.com>
11760 Julian Brown <julian@codesourcery.com>
11761 Tom de Vries <tom@codesourcery.com>
11763 * doc/sourcebuild.texi: Document dg-required-effective-target
11766 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
11767 Kwok Cheung Yeung <kcy@codesourcery.com>
11768 Julian Brown <julian@codesourcery.com>
11769 Tom de Vries <tom@codesourcery.com>
11770 Jan Hubicka <hubicka@ucw.cz>
11771 Martin Jambor <mjambor@suse.cz>
11773 * config.gcc: Add amdgcn*-*-amdhsa configuration.
11774 * configure.ac: Check for dlopen.
11775 * configure: Regenerate.
11777 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
11778 Kwok Cheung Yeung <kcy@codesourcery.com>
11779 Julian Brown <julian@codesourcery.com>
11780 Tom de Vries <tom@codesourcery.com>
11781 Jan Hubicka <hubicka@ucw.cz>
11782 Martin Jambor <mjambor@suse.cz>
11784 * common/config/gcn/gcn-common.c: New file.
11785 * config/gcn/driver-gcn.c: New file.
11786 * config/gcn/gcn-builtins.def: New file.
11787 * config/gcn/gcn-hsa.h: New file.
11788 * config/gcn/gcn-modes.def: New file.
11789 * config/gcn/gcn-opts.h: New file.
11790 * config/gcn/gcn-passes.def: New file.
11791 * config/gcn/gcn-protos.h: New file.
11792 * config/gcn/gcn-run.c: New file.
11793 * config/gcn/gcn-tree.c: New file.
11794 * config/gcn/gcn.c: New file.
11795 * config/gcn/gcn.h: New file.
11796 * config/gcn/gcn.opt: New file.
11797 * config/gcn/t-gcn-hsa: New file.
11799 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
11800 Kwok Cheung Yeung <kcy@codesourcery.com>
11801 Julian Brown <julian@codesourcery.com>
11802 Tom de Vries <tom@codesourcery.com>
11803 Jan Hubicka <hubicka@ucw.cz>
11804 Martin Jambor <mjambor@suse.cz>
11806 * config/gcn/constraints.md: New file.
11807 * config/gcn/gcn-valu.md: New file.
11808 * config/gcn/gcn.md: New file.
11809 * config/gcn/predicates.md: New file.
11811 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
11813 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
11814 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
11815 (stmt_uses_0_or_null_in_undefined_way): Likewise.
11816 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
11818 2019-01-17 Tamar Christina <tamar.christina@arm.com>
11821 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
11822 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
11823 it and document registers.
11825 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11827 * config/aarch64/aarch64.c (ares_tunings): Define.
11828 * config/aarch64/aarch64-cores.def (ares): Use the above.
11830 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
11834 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
11836 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
11837 (_mm512_fixupimm_round_pd): Update parameters and builtin.
11838 (_mm512_maskz_fixupimm_round_pd): Ditto.
11839 (_mm512_fixupimm_round_ps): Ditto.
11840 (_mm512_maskz_fixupimm_round_ps): Ditto.
11841 (_mm_fixupimm_round_sd): Ditto.
11842 (_mm_maskz_fixupimm_round_sd): Ditto.
11843 (_mm_fixupimm_round_ss): Ditto.
11844 (_mm_maskz_fixupimm_round_ss): Ditto.
11845 (_mm512_fixupimm_pd): Ditto.
11846 (_mm512_maskz_fixupimm_pd): Ditto.
11847 (_mm512_fixupimm_ps): Ditto.
11848 (_mm512_maskz_fixupimm_ps): Ditto.
11849 (_mm_fixupimm_sd): Ditto.
11850 (_mm_maskz_fixupimm_sd): Ditto.
11851 (_mm_fixupimm_ss): Ditto.
11852 (_mm_maskz_fixupimm_ss): Ditto.
11853 (_mm512_mask_fixupimm_round_pd): Update builtin.
11854 (_mm512_mask_fixupimm_round_ps): Ditto.
11855 (_mm_mask_fixupimm_round_sd): Ditto.
11856 (_mm_mask_fixupimm_round_ss): Ditto.
11857 (_mm512_mask_fixupimm_pd): Ditto.
11858 (_mm512_mask_fixupimm_ps): Ditto.
11859 (_mm_mask_fixupimm_sd): Ditto.
11860 (_mm_mask_fixupimm_ss): Ditto.
11861 * config/i386/avx512vlintrin.h:
11862 (_mm256_fixupimm_pd): Update parameters and builtin.
11863 (_mm256_maskz_fixupimm_pd): Ditto.
11864 (_mm256_fixupimm_ps): Ditto.
11865 (_mm256_maskz_fixupimm_ps): Ditto.
11866 (_mm_fixupimm_pd): Ditto.
11867 (_mm_maskz_fixupimm_pd): Ditto.
11868 (_mm_fixupimm_ps): Ditto.
11869 (_mm_maskz_fixupimm_ps): Ditto.
11870 (_mm256_mask_fixupimm_pd): Update builtin.
11871 (_mm256_mask_fixupimm_ps): Ditto.
11872 (_mm_mask_fixupimm_pd): Ditto.
11873 (_mm_mask_fixupimm_ps): Ditto.
11874 * config/i386/i386-builtin-types.def: Add new types and remove useless ones.
11875 * config/i386/i386-builtin.def: Update builtin definitions.
11876 * config/i386/i386.c: Handle new builtin types and remove useless ones.
11877 * config/i386/sse.md: Update VFIXUPIMM* patterns.
11878 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
11879 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
11880 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
11881 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
11882 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
11883 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
11884 * config/i386/subst.md:
11885 (round_saeonly_sd_mask_operand4): Add new subst_attr.
11886 (round_saeonly_sd_mask_op4): Ditto.
11887 (round_saeonly_expand_operand5): Ditto.
11888 (round_saeonly_expand): Update.
11890 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
11894 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
11896 * config/i386/sse.md: Combine VFIXUPIMM* patterns
11897 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
11898 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
11899 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
11900 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
11901 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
11902 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
11904 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
11908 2018-12-15 Jakub Jelinek <jakub@redhat.com>
11911 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
11912 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
11913 instead of UNSPEC_FIXUPIMM.
11915 2019-01-17 Richard Biener <rguenther@suse.de>
11918 * dwarf2out.c (want_pubnames): Never generate pubnames sections
11919 and friends for the LTO part of debug info.
11921 2019-01-17 Jakub Jelinek <jakub@redhat.com>
11923 PR tree-optimization/86214
11924 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
11927 PR rtl-optimization/88870
11928 * dce.c (deletable_insn_p): Never delete const/pure calls that can
11929 throw if we can't alter the cfg or delete dead exceptions.
11930 (mark_insn): Don't call find_call_stack_args for such calls.
11932 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
11934 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
11935 prototypes for vec_st.
11936 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
11937 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
11938 mainly on signed/unsigned long long and double.
11940 2019-01-16 David Malcolm <dmalcolm@redhat.com>
11943 * combine.c (delete_noop_moves): Convert to "bool" return,
11944 returning true if any edges are eliminated.
11945 (combine_instructions): Also return true if delete_noop_moves
11948 2019-01-16 Tamar Christina <tamar.christina@arm.com>
11950 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
11951 correct max nunits for endian swap.
11952 (aarch64_expand_fcmla_builtin): Correct subreg code.
11953 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
11954 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
11957 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
11959 * config/alpha/alpha.c (alpha_gimplify_va_arg):
11960 Handle split indirect COMPLEX_TYPE arguments.
11962 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
11965 * config/aarch64/aarch64-modes.def: Add comment about how the carry
11966 bit is set by add and compare.
11967 (CC_ADC): New CC_MODE.
11968 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
11969 to cache the code and mode of X. Adjust the shape of a CC_Cmode
11970 comparison. Add detection for CC_ADCmode.
11971 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
11973 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
11974 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
11975 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
11976 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
11977 to eliminate the need for zero-extending the operands.
11978 (add<mode>3_compareC_imm): Delete. Merge into ...
11979 (add<mode>3_compareC): ... this. Restructure the comparison to
11980 eliminate the need for zero-extending the operands.
11981 (add<mode>3_carryin): Use LTU for the overflow detection.
11982 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
11983 Reexpress comparison for overflow.
11984 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
11985 (add<mode>3_carryinC): Likewise.
11986 (add<mode>3_carryinV): Use LTU for carry between partials.
11987 * config/aarch64/predicates.md (aarch64_carry_operation): Update
11988 handling of CC_Cmode and add CC_ADCmode.
11989 (aarch64_borrow_operation): Likewise.
11991 2019-01-16 Tamar Christina <tamar.christina@arm.com>
11993 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): Remove patternmode.
11994 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
11995 * config/arm/neon.md (neon_vcmla_lane<rot><mode>, neon_vcmla_laneq<rot><mode>,
11996 neon_vcmlaq_lane<rot><mode>): Remove endianness conversion.
11998 2019-01-16 Martin Liska <mliska@suse.cz>
12000 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
12002 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
12004 * gcc.c (add_sysrooted_hdrs_prefix): New function.
12005 (path_prefix_reset): Move up in the source file.
12006 (find_fortran_preinclude_file): Make complex search for the
12007 fortran header files.
12009 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
12011 * godump.c (go_output_typedef): When outputting a typedef, refer
12012 to the underlying type by its name and not its structure.
12014 2019-01-15 David Malcolm <dmalcolm@redhat.com>
12017 * tree.c (build_function_type): Assert that arg_types is not
12020 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
12022 PR inline-asm/52813
12023 * doc/extend.texi: Document that listing the stack pointer in the
12024 clobber list of an asm is a deprecated feature.
12025 * common.opt (Wdeprecated): Moved from c-family/c.opt.
12026 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
12027 warning instead of an error for clobbers of the stack pointer.
12028 Add a note explaining why.
12030 2019-01-15 Richard Biener <rguenther@suse.de>
12033 * dwarf2out.c (gen_member_die): Do not generate inheritance
12036 2019-01-15 Richard Biener <rguenther@suse.de>
12038 PR tree-optimization/88855
12039 * tree-if-conv.c (combine_blocks): Collect
12040 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
12042 2019-01-15 Tom de Vries <tdevries@suse.de>
12045 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
12046 lhs == NULL_TREE for gang-level reduction.
12048 2019-01-15 Richard Biener <rguenther@suse.de>
12049 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12052 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
12053 return true if SSA_NAME is already marked in visited bitmap.
12054 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
12056 2019-01-15 Jakub Jelinek <jakub@redhat.com>
12058 PR tree-optimization/88775
12059 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
12060 equal == 0 equality pointer comparisons some more if compared in
12061 integral types and either one points to an automatic var and the
12062 other to a global, or we can prove at least one points to the middle
12063 or both point to start or both point to end.
12065 2019-01-14 Andi Kleen <ak@linux.intel.com>
12067 * Makefile.in: Lower autofdo sampling rate by 10x.
12068 * Makefile.tpl: Dito.
12070 2019-01-14 Tom Honermann <tom@honermann.net>
12072 * defaults.h: Define CHAR8_TYPE.
12074 2019-01-14 Martin Sebor <msebor@redhat.com>
12077 * doc/extend.texi (Darwin Format Checks): Clarify.
12079 2019-01-14 Richard Biener <rguenther@suse.de>
12081 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
12082 whether we are in (simplify ...) or (match ...) context.
12084 2019-01-14 Jakub Jelinek <jakub@redhat.com>
12086 PR rtl-optimization/88796
12087 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
12088 * cfgexpand.c (stack_protect_prologue): Initialize
12089 crtl->stack_protect_guard_decl.
12090 * function.c (stack_protect_epilogue): Use it instead of calling
12091 targetm.stack_protect_guard again.
12092 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
12093 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
12094 crtl->stack_protect_guard_decl.
12095 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
12096 on the returned MEM_EXPR.
12098 2019-01-12 Tom de Vries <tdevries@suse.de>
12100 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
12101 vector length using -fopenacc-dim.
12103 2019-01-12 Tom de Vries <tdevries@suse.de>
12105 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
12106 lengths into account.
12108 2019-01-12 Svante Signell <svante.signell@gmail.com>
12110 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
12111 (TARGET_CAN_SPLIT_STACK): Define.
12112 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
12114 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
12116 * params.def (inline-unit-growth): Set to 40.
12118 2019-01-12 Jakub Jelinek <jakub@redhat.com>
12120 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
12122 2019-01-12 Tom de Vries <tdevries@suse.de>
12124 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
12125 region calling vector-partitionable routine, set default_vector_length
12128 2019-01-12 Tom de Vries <tdevries@suse.de>
12130 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
12131 variable default_vector_length.
12133 2019-01-12 Tom de Vries <tdevries@suse.de>
12135 PR middle-end/88703
12136 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
12137 from oacc_default_dims, as oacc_validate_dims would do it, and apply
12140 2019-01-12 Tom de Vries <tdevries@suse.de>
12142 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
12143 (nvptx_goacc_validate_dims): Add used parameter.
12144 * doc/tm.texi: Regenerate.
12145 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
12146 argument to call to targetm.goacc.validate_dims.
12147 (default_goacc_validate_dims): Add used
12149 * target.def (validate_dims): Add used parameter in DEFHOOK.
12150 * targhooks.h (default_goacc_validate_dims): Add used parameter.
12152 2019-01-11 Jakub Jelinek <jakub@redhat.com>
12154 PR middle-end/85956
12156 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
12158 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
12159 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
12160 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
12161 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
12163 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
12165 PR rtl-optimization/87305
12167 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
12168 for little endian pseudos used as paradoxical subreg.
12170 2019-01-11 Jakub Jelinek <jakub@redhat.com>
12172 PR tree-optimization/88693
12173 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
12174 for STRING_CSTs that don't contain any NUL characters in the first
12175 TREE_STRING_LENGTH bytes.
12177 2019-01-11 Alan Modra <amodra@gmail.com>
12181 * genattrtab.c (min_fn): Don't translate values.
12182 (min_attr_value): Return INT_MAX when the value can't be calculated.
12183 Return minimum among any values that can be calculated.
12184 (max_attr_value): Adjust.
12186 2019-01-11 Jakub Jelinek <jakub@redhat.com>
12188 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
12190 2019-01-11 Steve Ellcey <sellcey@marvell.com>
12192 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
12193 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
12194 (aarch64_return_call_with_max_clobbers): New function.
12195 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
12196 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
12198 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
12199 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
12200 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
12201 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
12202 * cselib.c (cselib_process_insn): Add argument to
12203 targetm.hard_regno_call_part_clobbered call.
12204 * ira-conflicts.c (ira_build_conflicts): Ditto.
12205 * ira-costs.c (ira_tune_allocno_costs): Ditto.
12206 * lra-constraints.c (inherit_reload_reg): Ditto.
12207 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
12208 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
12209 argument. Call targetm.return_call_with_max_clobbers.
12210 Add argument to targetm.hard_regno_call_part_clobbered call.
12211 (calls_have_same_clobbers_p): New function.
12212 (process_bb_lives): Add call_insn and last_call_insn variables.
12213 Pass call_insn to check_pseudos_live_through_calls.
12214 Modify if stmt to check targetm.return_call_with_max_clobbers.
12215 Update setting of flush variable.
12216 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
12218 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
12219 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
12220 targetm.hard_regno_call_part_clobbered call.
12221 * reginfo.c (choose_hard_reg_mode): Ditto.
12222 * regrename.c (check_new_reg_p): Ditto.
12223 * reload.c (find_equiv_reg): Ditto.
12224 * reload1.c (emit_reload_insns): Ditto.
12225 * sched-deps.c (deps_analyze_insn): Ditto.
12226 * sel-sched.c (init_regs_for_mode): Ditto.
12227 (mark_unavailable_hard_regs): Ditto.
12228 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
12229 * target.def (hard_regno_call_part_clobbered): Add insn argument.
12230 (return_call_with_max_clobbers): New target function.
12231 * doc/tm.texi: Regenerate.
12232 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
12233 * hooks.c (hook_bool_uint_mode_false): Change to
12234 hook_bool_insn_uint_mode_false.
12235 * hooks.h (hook_bool_uint_mode_false): Ditto.
12237 2019-01-11 Steve Ellcey <sellcey@marvell.com>
12239 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
12240 (aarch64_remove_extra_call_preserved_regs): New function.
12241 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
12242 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
12243 * doc/tm.texi: Regenerate.
12244 * final.c (get_call_reg_set_usage): Call new hook.
12245 * target.def (remove_extra_call_preserved_regs): New hook.
12246 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
12247 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
12249 2019-01-11 Jakub Jelinek <jakub@redhat.com>
12252 * passes.c (finish_optimization_passes): Call print_combine_total_stats
12253 inside of pass_combine_1 dump rather than pass_profile_1.
12255 2019-01-11 Tom de Vries <tdevries@suse.de>
12257 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
12258 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
12259 (PTX_NUM_PER_WORKER_BARRIERS): Define.
12260 (nvptx_apply_dim_limits): Prevent vector_length 64 and
12263 2019-01-11 Tom de Vries <tdevries@suse.de>
12265 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
12267 2019-01-11 Jan Beulich <jbeulich@suse.com>
12269 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
12270 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
12271 sse2_cvtsi2sd): Add {l}.
12272 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
12275 2019-01-10 Jakub Jelinek <jakub@redhat.com>
12278 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
12280 (*float<floatunssuffix>v2div2sf2): New define_insn.
12281 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
12282 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
12283 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
12284 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
12285 match_operands with "const0_operand" "C".
12287 2019-01-10 Tamar Christina <tamar.christina@arm.com>
12289 * config/aarch64/aarch64-builtins.c
12290 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
12291 (aarch64_init_simd_builtins): ...Here
12293 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
12295 PR rtl-optimization/87305
12297 (setup_live_pseudos_and_spill_after_risky_transforms): Check
12298 allocation for big endian pseudos used as paradoxical subregs and
12299 spill them if it is wrong.
12300 * lra-constraints.c (lra_constraints): Add a comment.
12302 2019-01-10 Richard Biener <rguenther@suse.de>
12304 PR tree-optimization/88792
12305 * tree-ssa-pre.c (get_representative_for): Do not return a
12308 2019-01-10 Jakub Jelinek <jakub@redhat.com>
12310 PR middle-end/84877
12312 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
12313 (assign_parm_setup_block): Do the argument slot realignment here
12316 2019-01-10 Stefan Agner <stefan@agner.ch>
12319 * config/arm/arm.c (arm_option_override_internal): Force
12320 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
12322 2019-01-10 Jakub Jelinek <jakub@redhat.com>
12325 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
12328 2019-01-10 Tamar Christina <tamar.christina@arm.com>
12330 * config/arm/arm-builtins.c
12331 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
12332 (MAC_LANE_PAIR_QUALIFIERS): New.
12333 (arm_expand_builtin_args): Use it.
12334 (arm_expand_builtin_1): Likewise.
12335 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
12336 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
12337 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
12338 * config/arm/arm_neon.h:
12339 (vcadd_rot90_f16): New.
12340 (vcaddq_rot90_f16): New.
12341 (vcadd_rot270_f16): New.
12342 (vcaddq_rot270_f16): New.
12345 (vcmla_lane_f16): New.
12346 (vcmla_laneq_f16): New.
12347 (vcmlaq_lane_f16): New.
12348 (vcmlaq_laneq_f16): New.
12349 (vcmla_rot90_f16): New.
12350 (vcmlaq_rot90_f16): New.
12351 (vcmla_rot90_lane_f16): New.
12352 (vcmla_rot90_laneq_f16): New.
12353 (vcmlaq_rot90_lane_f16): New.
12354 (vcmlaq_rot90_laneq_f16): New.
12355 (vcmla_rot180_f16): New.
12356 (vcmlaq_rot180_f16): New.
12357 (vcmla_rot180_lane_f16): New.
12358 (vcmla_rot180_laneq_f16): New.
12359 (vcmlaq_rot180_lane_f16): New.
12360 (vcmlaq_rot180_laneq_f16): New.
12361 (vcmla_rot270_f16): New.
12362 (vcmlaq_rot270_f16): New.
12363 (vcmla_rot270_lane_f16): New.
12364 (vcmla_rot270_laneq_f16): New.
12365 (vcmlaq_rot270_lane_f16): New.
12366 (vcmlaq_rot270_laneq_f16): New.
12367 (vcadd_rot90_f32): New.
12368 (vcaddq_rot90_f32): New.
12369 (vcadd_rot270_f32): New.
12370 (vcaddq_rot270_f32): New.
12373 (vcmla_lane_f32): New.
12374 (vcmla_laneq_f32): New.
12375 (vcmlaq_lane_f32): New.
12376 (vcmlaq_laneq_f32): New.
12377 (vcmla_rot90_f32): New.
12378 (vcmlaq_rot90_f32): New.
12379 (vcmla_rot90_lane_f32): New.
12380 (vcmla_rot90_laneq_f32): New.
12381 (vcmlaq_rot90_lane_f32): New.
12382 (vcmlaq_rot90_laneq_f32): New.
12383 (vcmla_rot180_f32): New.
12384 (vcmlaq_rot180_f32): New.
12385 (vcmla_rot180_lane_f32): New.
12386 (vcmla_rot180_laneq_f32): New.
12387 (vcmlaq_rot180_lane_f32): New.
12388 (vcmlaq_rot180_laneq_f32): New.
12389 (vcmla_rot270_f32): New.
12390 (vcmlaq_rot270_f32): New.
12391 (vcmla_rot270_lane_f32): New.
12392 (vcmla_rot270_laneq_f32): New.
12393 (vcmlaq_rot270_lane_f32): New.
12394 (vcmlaq_rot270_laneq_f32): New.
12395 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
12396 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
12397 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
12398 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
12399 vcmlaq_lane270): New.
12400 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
12401 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
12402 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
12403 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
12404 (arm_option_reconfigure_globals): Use them.
12405 * config/arm/iterators.md (VDF, VQ_HSF): New.
12406 (VCADD, VCMLA): New.
12407 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
12408 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
12410 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
12411 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
12413 2019-01-10 Tamar Christina <tamar.christina@arm.com>
12415 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
12416 Add qualifier_lane_pair_index.
12417 (emit-rtl.h): Include.
12418 (TYPES_QUADOP_LANE_PAIR): New.
12419 (aarch64_simd_expand_args): Use it.
12420 (aarch64_simd_expand_builtin): Likewise.
12421 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
12423 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
12424 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
12425 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
12426 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
12427 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
12428 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
12429 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
12430 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
12431 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
12432 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
12433 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
12434 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
12435 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
12436 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
12437 Add __ARM_FEATURE_COMPLEX.
12438 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
12439 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
12440 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
12441 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
12442 fcmlaq_lane270): New.
12443 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
12444 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
12445 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
12446 * config/aarch64/arm_neon.h:
12447 (vcadd_rot90_f16): New.
12448 (vcaddq_rot90_f16): New.
12449 (vcadd_rot270_f16): New.
12450 (vcaddq_rot270_f16): New.
12453 (vcmla_lane_f16): New.
12454 (vcmla_laneq_f16): New.
12455 (vcmlaq_lane_f16): New.
12456 (vcmlaq_rot90_lane_f16): New.
12457 (vcmla_rot90_laneq_f16): New.
12458 (vcmla_rot90_lane_f16): New.
12459 (vcmlaq_rot90_f16): New.
12460 (vcmla_rot90_f16): New.
12461 (vcmlaq_laneq_f16): New.
12462 (vcmla_rot180_laneq_f16): New.
12463 (vcmla_rot180_lane_f16): New.
12464 (vcmlaq_rot180_f16): New.
12465 (vcmla_rot180_f16): New.
12466 (vcmlaq_rot90_laneq_f16): New.
12467 (vcmlaq_rot270_laneq_f16): New.
12468 (vcmlaq_rot270_lane_f16): New.
12469 (vcmla_rot270_laneq_f16): New.
12470 (vcmlaq_rot270_f16): New.
12471 (vcmla_rot270_f16): New.
12472 (vcmlaq_rot180_laneq_f16): New.
12473 (vcmlaq_rot180_lane_f16): New.
12474 (vcmla_rot270_lane_f16): New.
12475 (vcadd_rot90_f32): New.
12476 (vcaddq_rot90_f32): New.
12477 (vcaddq_rot90_f64): New.
12478 (vcadd_rot270_f32): New.
12479 (vcaddq_rot270_f32): New.
12480 (vcaddq_rot270_f64): New.
12484 (vcmla_lane_f32): New.
12485 (vcmla_laneq_f32): New.
12486 (vcmlaq_lane_f32): New.
12487 (vcmlaq_laneq_f32): New.
12488 (vcmla_rot90_f32): New.
12489 (vcmlaq_rot90_f32): New.
12490 (vcmlaq_rot90_f64): New.
12491 (vcmla_rot90_lane_f32): New.
12492 (vcmla_rot90_laneq_f32): New.
12493 (vcmlaq_rot90_lane_f32): New.
12494 (vcmlaq_rot90_laneq_f32): New.
12495 (vcmla_rot180_f32): New.
12496 (vcmlaq_rot180_f32): New.
12497 (vcmlaq_rot180_f64): New.
12498 (vcmla_rot180_lane_f32): New.
12499 (vcmla_rot180_laneq_f32): New.
12500 (vcmlaq_rot180_lane_f32): New.
12501 (vcmlaq_rot180_laneq_f32): New.
12502 (vcmla_rot270_f32): New.
12503 (vcmlaq_rot270_f32): New.
12504 (vcmlaq_rot270_f64): New.
12505 (vcmla_rot270_lane_f32): New.
12506 (vcmla_rot270_laneq_f32): New.
12507 (vcmlaq_rot270_lane_f32): New.
12508 (vcmlaq_rot270_laneq_f32): New.
12509 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
12510 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
12511 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
12512 (FCADD, FCMLA): New.
12514 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
12516 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
12520 * config/pa/pa.c: Change "can not" to "cannot".
12521 * gimple-ssa-evrp-analyze.c: Likewise.
12522 * ipa-icf.c: Likewise.
12523 * ipa-polymorphic-call.c: Likewise.
12524 * ipa-pure-const.c: Likewise.
12525 * lra-constraints.c: Likewise.
12526 * lra-remat.c: Likewise.
12527 * reload1.c: Likewise.
12528 * reorg.c: Likewise.
12529 * tree-ssa-uninit.c: Likewise.
12531 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
12535 * Makefile.in: Mechanically replace "can not" with "cannot".
12536 * alias.c: Likewise.
12537 * builtins.c: Likewise.
12538 * calls.c: Likewise.
12539 * cgraph.c: Likewise.
12540 * cgraph.h: Likewise.
12541 * cgraphclones.c: Likewise.
12542 * cgraphunit.c: Likewise.
12543 * combine-stack-adj.c: Likewise.
12544 * combine.c: Likewise.
12545 * common/config/i386/i386-common.c: Likewise.
12546 * config/aarch64/aarch64.c: Likewise.
12547 * config/alpha/sync.md: Likewise.
12548 * config/arc/arc.c: Likewise.
12549 * config/arc/predicates.md: Likewise.
12550 * config/arm/arm-c.c: Likewise.
12551 * config/arm/arm.c: Likewise.
12552 * config/arm/arm.h: Likewise.
12553 * config/arm/arm.md: Likewise.
12554 * config/arm/cortex-r4f.md: Likewise.
12555 * config/csky/csky.c: Likewise.
12556 * config/csky/csky.h: Likewise.
12557 * config/darwin-f.c: Likewise.
12558 * config/epiphany/epiphany.md: Likewise.
12559 * config/i386/i386.c: Likewise.
12560 * config/i386/sol2.h: Likewise.
12561 * config/m68k/m68k.c: Likewise.
12562 * config/mcore/mcore.h: Likewise.
12563 * config/microblaze/microblaze.md: Likewise.
12564 * config/mips/20kc.md: Likewise.
12565 * config/mips/sb1.md: Likewise.
12566 * config/nds32/nds32.c: Likewise.
12567 * config/nds32/predicates.md: Likewise.
12568 * config/pa/pa.c: Likewise.
12569 * config/rs6000/e300c2c3.md: Likewise.
12570 * config/rs6000/rs6000.c: Likewise.
12571 * config/s390/s390.h: Likewise.
12572 * config/sh/sh.c: Likewise.
12573 * config/sh/sh.md: Likewise.
12574 * config/spu/vmx2spu.h: Likewise.
12575 * cprop.c: Likewise.
12576 * dbxout.c: Likewise.
12577 * df-scan.c: Likewise.
12578 * doc/cfg.texi: Likewise.
12579 * doc/extend.texi: Likewise.
12580 * doc/fragments.texi: Likewise.
12581 * doc/gty.texi: Likewise.
12582 * doc/invoke.texi: Likewise.
12583 * doc/lto.texi: Likewise.
12584 * doc/md.texi: Likewise.
12585 * doc/objc.texi: Likewise.
12586 * doc/rtl.texi: Likewise.
12587 * doc/tm.texi: Likewise.
12589 * emit-rtl.c: Likewise.
12590 * emit-rtl.h: Likewise.
12591 * except.c: Likewise.
12592 * expmed.c: Likewise.
12593 * expr.c: Likewise.
12594 * fold-const.c: Likewise.
12595 * genautomata.c: Likewise.
12596 * gimple-fold.c: Likewise.
12597 * hard-reg-set.h: Likewise.
12598 * ifcvt.c: Likewise.
12599 * ipa-comdats.c: Likewise.
12600 * ipa-cp.c: Likewise.
12601 * ipa-devirt.c: Likewise.
12602 * ipa-fnsummary.c: Likewise.
12603 * ipa-icf.c: Likewise.
12604 * ipa-inline-transform.c: Likewise.
12605 * ipa-inline.c: Likewise.
12606 * ipa-polymorphic-call.c: Likewise.
12607 * ipa-profile.c: Likewise.
12608 * ipa-prop.c: Likewise.
12609 * ipa-pure-const.c: Likewise.
12610 * ipa-reference.c: Likewise.
12611 * ipa-split.c: Likewise.
12612 * ipa-visibility.c: Likewise.
12614 * ira-build.c: Likewise.
12615 * ira-color.c: Likewise.
12616 * ira-conflicts.c: Likewise.
12617 * ira-costs.c: Likewise.
12618 * ira-int.h: Likewise.
12619 * ira-lives.c: Likewise.
12622 * loop-invariant.c: Likewise.
12623 * loop-unroll.c: Likewise.
12624 * lower-subreg.c: Likewise.
12625 * lra-assigns.c: Likewise.
12626 * lra-constraints.c: Likewise.
12627 * lra-eliminations.c: Likewise.
12628 * lra-lives.c: Likewise.
12629 * lra-remat.c: Likewise.
12630 * lra-spills.c: Likewise.
12632 * lto-cgraph.c: Likewise.
12633 * lto-streamer-out.c: Likewise.
12634 * postreload-gcse.c: Likewise.
12635 * predict.c: Likewise.
12636 * profile-count.h: Likewise.
12637 * profile.c: Likewise.
12638 * recog.c: Likewise.
12640 * reload.c: Likewise.
12641 * reload1.c: Likewise.
12642 * reorg.c: Likewise.
12643 * resource.c: Likewise.
12644 * rtl.def: Likewise.
12646 * rtlanal.c: Likewise.
12647 * sched-deps.c: Likewise.
12648 * sched-ebb.c: Likewise.
12649 * sched-rgn.c: Likewise.
12650 * sel-sched-ir.c: Likewise.
12651 * sel-sched.c: Likewise.
12652 * shrink-wrap.c: Likewise.
12653 * simplify-rtx.c: Likewise.
12654 * symtab.c: Likewise.
12655 * target.def: Likewise.
12656 * toplev.c: Likewise.
12657 * tree-call-cdce.c: Likewise.
12658 * tree-cfg.c: Likewise.
12659 * tree-complex.c: Likewise.
12660 * tree-core.h: Likewise.
12661 * tree-eh.c: Likewise.
12662 * tree-inline.c: Likewise.
12663 * tree-loop-distribution.c: Likewise.
12664 * tree-nrv.c: Likewise.
12665 * tree-profile.c: Likewise.
12666 * tree-sra.c: Likewise.
12667 * tree-ssa-alias.c: Likewise.
12668 * tree-ssa-dce.c: Likewise.
12669 * tree-ssa-dom.c: Likewise.
12670 * tree-ssa-forwprop.c: Likewise.
12671 * tree-ssa-loop-im.c: Likewise.
12672 * tree-ssa-loop-ivcanon.c: Likewise.
12673 * tree-ssa-loop-ivopts.c: Likewise.
12674 * tree-ssa-loop-niter.c: Likewise.
12675 * tree-ssa-phionlycprop.c: Likewise.
12676 * tree-ssa-phiopt.c: Likewise.
12677 * tree-ssa-propagate.c: Likewise.
12678 * tree-ssa-threadedge.c: Likewise.
12679 * tree-ssa-threadupdate.c: Likewise.
12680 * tree-ssa-uninit.c: Likewise.
12681 * tree-ssanames.c: Likewise.
12682 * tree-streamer-out.c: Likewise.
12683 * tree.c: Likewise.
12684 * tree.h: Likewise.
12685 * vr-values.c: Likewise.
12687 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
12689 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
12690 (ix86_split_xorsign): Ditto.
12691 * config/i386/i386.c (ix86_expand_xorsign): New function.
12692 (ix86_split_xorsign): Ditto.
12693 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
12694 (xorsign<mode>3): New expander.
12695 (xorsign<mode>3_1): New insn_and_split pattern.
12696 * config/i386/sse.md (xorsign<mode>3): New expander.
12698 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
12700 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
12701 (*tablejump_sp64): Likewise.
12702 (*tablejump<P:mode>): ...this.
12703 (*call_address_sp32): Merge into...
12704 (*call_address_sp64): Likewise.
12705 (*call_address<P:mode>): ...this.
12706 (*call_symbolic_sp32): Merge into...
12707 (*call_symbolic_sp64): Likewise.
12708 (*call_symbolic<P:mode>): ...this.
12709 (call_value): Remove constraint and add predicate.
12710 (*call_value_address_sp32): Merge into...
12711 (*call_value_address_sp64): Likewise.
12712 (*call_value_address<P:mode>): ...this.
12713 (*call_value_symbolic_sp32): Merge into...
12714 (*call_value_symbolic_sp64): Likewise.
12715 (*call_value_symbolic<P:mode>): ...this.
12716 (*sibcall_symbolic_sp32): Merge into...
12717 (*sibcall_symbolic_sp64): Likewise.
12718 (*sibcall_symbolic<P:mode>): ...this.
12719 (sibcall_value): Remove constraint and add predicate.
12720 (*sibcall_value_symbolic_sp32): Merge into...
12721 (*sibcall_value_symbolic_sp64): Likewise.
12722 (*sibcall_value_symbolic<P:mode>): ...this.
12723 (window_save): Minor tweak.
12724 (*branch_sp32): Merge into...
12725 (*branch_sp64): Likewise.
12726 (*branch<P:mode>): ...this.
12728 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
12729 James Clarke <jrtc27@jrtc27.com>
12732 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
12733 consistently in TLS address generation and adjust code to the renaming
12734 of patterns. Mark calls to __tls_get_addr as const.
12735 * config/sparc/sparc.md (tgd_hi22): Turn into...
12736 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
12737 (tgd_lo10): Turn into...
12738 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
12739 (tgd_add32): Merge into...
12740 (tgd_add64): Likewise.
12741 (tgd_add<P:mode>): ...this and use Pmode throughout.
12742 (tldm_hi22): Turn into...
12743 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
12744 (tldm_lo10): Turn into...
12745 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
12746 (tldm_add32): Merge into...
12747 (tldm_add64): Likewise.
12748 (tldm_add<P:mode>): ...this and use Pmode throughout.
12749 (tldm_call32): Merge into...
12750 (tldm_call64): Likewise.
12751 (tldm_call<P:mode>): ...this and use Pmode throughout.
12752 (tldo_hix22): Turn into...
12753 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
12754 (tldo_lox10): Turn into...
12755 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
12756 (tldo_add32): Merge into...
12757 (tldo_add64): Likewise.
12758 (tldo_add<P:mode>): ...this and use Pmode throughout.
12759 (tie_hi22): Turn into...
12760 (tie_hi22<P:mode>): ...this and use Pmode throughout.
12761 (tie_lo10): Turn into...
12762 (tie_lo10<P:mode>): ...this and use Pmode throughout.
12763 (tie_ld64): Use DImode throughout.
12764 (tie_add32): Merge into...
12765 (tie_add64): Likewise.
12766 (tie_add<P:mode>): ...this and use Pmode throughout.
12767 (tle_hix22_sp32): Merge into...
12768 (tle_hix22_sp64): Likewise.
12769 (tle_hix22<P:mode>): ...this and use Pmode throughout.
12770 (tle_lox22_sp32): Merge into...
12771 (tle_lox22_sp64): Likewise.
12772 (tle_lox22<P:mode>): ...this and use Pmode throughout.
12773 (*tldo_ldub_sp32): Merge into...
12774 (*tldo_ldub_sp64): Likewise.
12775 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
12776 (*tldo_ldub1_sp32): Merge into...
12777 (*tldo_ldub1_sp64): Likewise.
12778 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
12779 (*tldo_ldub2_sp32): Merge into...
12780 (*tldo_ldub2_sp64): Likewise.
12781 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
12782 (*tldo_ldsb1_sp32): Merge into...
12783 (*tldo_ldsb1_sp64): Likewise.
12784 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
12785 (*tldo_ldsb2_sp32): Merge into...
12786 (*tldo_ldsb2_sp64): Likewise.
12787 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
12788 (*tldo_ldub3_sp64): Use DImode throughout.
12789 (*tldo_ldsb3_sp64): Likewise.
12790 (*tldo_lduh_sp32): Merge into...
12791 (*tldo_lduh_sp64): Likewise.
12792 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
12793 (*tldo_lduh1_sp32): Merge into...
12794 (*tldo_lduh1_sp64): Likewise.
12795 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
12796 (*tldo_ldsh1_sp32): Merge into...
12797 (*tldo_ldsh1_sp64): Likewise.
12798 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
12799 (*tldo_lduh2_sp64): Use DImode throughout.
12800 (*tldo_ldsh2_sp64): Likewise.
12801 (*tldo_lduw_sp32): Merge into...
12802 (*tldo_lduw_sp64): Likewise.
12803 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
12804 (*tldo_lduw1_sp64): Use DImode throughout.
12805 (*tldo_ldsw1_sp64): Likewise.
12806 (*tldo_ldx_sp64): Likewise.
12807 (*tldo_stb_sp32): Merge into...
12808 (*tldo_stb_sp64): Likewise.
12809 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
12810 (*tldo_sth_sp32): Merge into...
12811 (*tldo_sth_sp64): Likewise.
12812 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
12813 (*tldo_stw_sp32): Merge into...
12814 (*tldo_stw_sp64): Likewise.
12815 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
12816 (*tldo_stx_sp64): Use DImode throughout.
12818 2018-01-09 Sudakshina Das <sudi.das@arm.com>
12820 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
12821 check configure option to set BTI and Return Address Signing.
12822 * configure.ac: Add --enable-standard-branch-protection and
12823 --disable-standard-branch-protection.
12824 * configure: Regenerated.
12825 * doc/install.texi: Document the same.
12827 2018-01-09 Sudakshina Das <sudi.das@arm.com>
12828 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12830 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
12831 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
12832 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
12834 * config/aarch64/aarch64-bti-insert.c: New file.
12835 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
12837 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
12839 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
12840 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
12841 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
12842 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
12844 2018-01-09 Sudakshina Das <sudi.das@arm.com>
12846 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
12847 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
12848 Disable bti for -mbranch-protection=none.
12849 (aarch64_handle_standard_branch_protection): Enable bti for
12850 -mbranch-protection=standard.
12851 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
12852 -mbranch-protection.
12853 (aarch64_bti_enabled): Check if bti is enabled.
12854 * config/aarch64/aarch64.opt: Declare target variable.
12855 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
12857 2018-01-09 Sudakshina Das <sudi.das@arm.com>
12859 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
12860 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
12861 (aarch64_expand_epilogue): Likewise.
12862 (aarch64_output_mi_thunk): Likewise
12863 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
12864 TAILCALL_ADDR_REGS to x16 and x17.
12865 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
12867 2018-01-09 Sudakshina Das <sudi.das@arm.com>
12869 * config/aarch64/aarch64-option-extensions.def: Define
12870 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
12871 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
12872 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
12873 (AARCH64_FL_PREDRES): New.
12874 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
12875 AARCH64_FL_PREDRES by default.
12876 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
12878 2018-01-09 Sudakshina Das <sudi.das@arm.com>
12880 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
12882 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
12883 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
12884 * doc/invoke.texi: Document ARMv8.5-A.
12886 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
12888 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
12889 (xorsign<mode>3): Likewise.
12891 2019-01-09 Jelinek <jakub@redhat.com>
12893 PR middle-end/88758
12894 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
12895 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
12897 PR rtl-optimization/88331
12898 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
12899 not currently_expanding_to_rtl.
12901 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
12903 * doc/invoke.texi (-Os): Remove trailing spaces.
12904 (-finline-functions): Remove reference to -O2.
12906 2019-01-08 Jakub Jelinek <jakub@redhat.com>
12908 PR rtl-optimization/79593
12909 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
12911 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
12912 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
12914 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
12917 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
12921 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
12922 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
12924 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
12927 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
12928 ix86_avx_u128_mode_entry.
12930 2019-01-08 Martin Liska <mliska@suse.cz>
12932 PR tree-optimization/88753
12933 * tree-switch-conversion.c (switch_conversion::build_one_array):
12934 Come up with local variable constructor. Convert first to
12935 type of constructor values.
12937 2019-01-08 Richard Biener <rguenther@suse.de>
12939 PR tree-optimization/86554
12940 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
12941 rpo_avail): Move earlier.
12942 (visit_nary_op): When value-numbering to expressions
12943 with different overflow behavior make sure there's an
12944 available expression on the path.
12946 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
12948 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
12949 aarch64_parse_branch_protection,
12950 struct aarch64_branch_protect_type,
12951 aarch64_handle_no_branch_protection,
12952 aarch64_handle_standard_branch_protection,
12953 aarch64_validate_mbranch_protection,
12954 aarch64_handle_pac_ret_protection,
12955 aarch64_handle_attr_branch_protection,
12956 accepted_branch_protection_string,
12957 aarch64_pac_ret_subtypes,
12958 aarch64_branch_protect_types,
12959 aarch64_handle_pac_ret_leaf): Define.
12960 (aarch64_override_options_after_change_1, aarch64_override_options):
12961 Add check for accepted_branch_protection_string.
12962 (aarch64_option_save): Save accepted_branch_protection_string.
12963 (aarch64_option_restore): Save accepted_branch_protection_string.
12964 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
12965 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
12966 msign-return-address.
12967 * doc/invoke.texi: Add mbranch-protection.
12969 2019-01-08 Alan Modra <amodra@gmail.com>
12972 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
12973 Delete "unknownp" parameter. Adjust callers. Handle
12974 CONST_INT, PLUS, MINUS, and MULT.
12975 (attr_value_aligned): Renamed from or_attr_value.
12976 (min_attr_value): Return INT_MIN for unhandled rtl case..
12977 (min_fn): ..and translate to INT_MAX here.
12978 (write_length_unit_log): Modify to cope without "unknown".
12979 (write_attr_value): Handle IF_THEN_ELSE.
12981 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
12983 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
12984 optimization for masked stores.
12986 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
12988 PR middle-end/88567
12989 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
12990 output vector directly to duplicate_and_interleave instead of
12991 going through a temporary. Postpone insertion of ctor_seq to
12992 the end of the loop.
12994 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
12997 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
12998 unsigned_p. Handle signed and unsigned overflow correction as
13000 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
13002 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
13004 (add<mode>3_compareV_imm): Make this callable for expanding.
13005 (subv<GPI:mode>4): Use register_operand for operand 1. Use
13006 aarch64_plus_operand for operand 2.
13007 (subv<GPI:mode>_insn): New insn pattern.
13008 (subv<GPI:mode>_imm): Likewise.
13009 (negv<GPI:mode>3): New expand pattern.
13010 (negv<GPI:mode>_insn): New insn pattern.
13011 (negv<GPI:mode>_cmp_only): Likewise.
13012 (cmpv<GPI:mode>_insn): Likewise.
13013 (subvti4): Use register_operand for operand 1. Update call to
13014 aarch64_expand_subvti.
13015 (usubvti4): Likewise.
13016 (negvti3): New expand pattern.
13017 (negdi_carryout): New insn pattern.
13018 (negvdi_carryinV): New insn pattern.
13019 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
13020 version the named version.
13021 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
13023 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
13025 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
13027 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
13028 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
13029 (sub<mode>3_carryinCV): Delete.
13030 (sub<GPI:mode>3_carryinV): New expand pattern.
13031 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
13033 2019-01-07 Richard Biener <rguenther@suse.de>
13035 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
13036 of tree_operand_hash.
13038 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
13040 PR tree-optimization/88598
13041 * tree.h (single_nonzero_element): Declare.
13042 * tree.c (single_nonzero_element): New function.
13043 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
13044 if I is the only nonzero element of CST.
13046 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
13048 PR tree-optimization/88598
13049 * tree.h (initializer_each_zero_or_onep): Declare.
13050 * tree.c (initializer_each_zero_or_onep): New function.
13051 (signed_or_unsigned_type_for): Handle float types too.
13052 (unsigned_type_for, signed_type_for): Update comments accordingly.
13053 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
13054 x & { 0 or -1, 0 or -1, ... }.
13056 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
13058 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
13059 with x86_64-pc-linux-gnu.
13061 2019-01-07 Tom de Vries <tdevries@suse.de>
13064 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
13066 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
13069 2019-01-07 Jakub Jelinek <jakub@redhat.com>
13071 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
13072 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
13073 TARGET_AVX512F as condition.
13076 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
13077 const_not_ok_for_debug_p target hook.
13078 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
13079 on UNSPEC and subexpressions thereof if all subexpressions of the
13080 UNSPEC are CONSTANT_P.
13082 PR tree-optimization/88676
13083 * tree-ssa-phiopt.c (two_value_replacement): New function.
13084 (tree_ssa_phiopt_worker): Call it.
13087 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
13088 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
13091 * tree-vect-generic.c: Include insn-config.h and recog.h.
13092 (expand_vector_piecewise): Add defaulted ret_type argument,
13093 if non-NULL, use that in preference to type for the result type.
13094 (expand_vector_parallel): Formatting fix.
13095 (do_vec_conversion, do_vec_narrowing_conversion,
13096 expand_vector_conversion): New functions.
13097 (expand_vector_operations_1): Call expand_vector_conversion
13098 for VEC_CONVERT ifn calls.
13099 * internal-fn.def (VEC_CONVERT): New internal function.
13100 * internal-fn.c (expand_VEC_CONVERT): New function.
13101 * fold-const-call.c (fold_const_vec_convert): New function.
13102 (fold_const_call): Use it for CFN_VEC_CONVERT.
13103 * doc/extend.texi (__builtin_convertvector): Document.
13105 2019-01-07 Tom de Vries <tdevries@suse.de>
13107 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
13108 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
13109 vector_red_partition, vector_red_sym): New global variables.
13110 (nvptx_option_override): Initialize vector_red_sym.
13111 (nvptx_declare_function_name): Restore red_partition register.
13112 (nvptx_file_end): Emit code to declare the vector reduction variables.
13113 (nvptx_output_red_partition): New function.
13114 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
13115 large vector reductions.
13116 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
13117 (nvptx_init_builtins): Add VECTOR_ADDR.
13118 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
13119 Handle nvptx_expand_shared_addr.
13120 (nvptx_get_shared_red_addr): Add vector argument and handle large
13122 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
13124 (nvptx_goacc_reduction_init): Likewise.
13125 (nvptx_goacc_reduction_fini): Likewise.
13126 (nvptx_goacc_reduction_teardown): Likewise.
13127 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
13128 init,fini,teardown}.
13129 (nvptx_init_axis_predicate): Initialize vector_red_partition.
13130 (nvptx_set_current_function): Init vector_red_partition.
13131 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
13132 (nvptx_red_partition): New insn.
13133 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
13135 2019-01-07 Tom de Vries <tdevries@suse.de>
13138 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
13141 2019-01-07 Tom de Vries <tdevries@suse.de>
13143 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
13144 (nvptx_option_override): Init oacc_bcast_partition.
13145 (nvptx_init_oacc_workers): New function.
13146 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
13147 (nvptx_needs_shared_bcast): New function.
13148 (nvptx_find_par): Generalize to enable vectors to use shared-memory
13149 to propagate state.
13150 (nvptx_shared_propagate): Initialize vector bcast partition and
13151 synchronization state.
13152 (nvptx_single): Generalize to enable vectors to use shared-memory
13153 to propagate state.
13154 (nvptx_process_pars): Likewise.
13155 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
13156 * config/nvptx/nvptx.h (struct machine_function): Add
13157 bcast_partition and sync_bar members.
13159 2019-01-07 Tom de Vries <tdevries@suse.de>
13161 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
13162 (nvptx_apply_dim_limits): New function.
13163 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
13166 2019-01-07 Tom de Vries <tdevries@suse.de>
13168 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
13169 as late as possible.
13171 2019-01-07 Tom de Vries <tdevries@suse.de>
13173 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
13174 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
13175 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
13176 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
13177 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
13179 2019-01-07 Tom de Vries <tdevries@suse.de>
13181 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
13183 2019-01-07 Tom de Vries <tdevries@suse.de>
13185 * omp-offload.c (oacc_get_min_dim): New function.
13186 * omp-offload.h (oacc_get_min_dim): Declare.
13188 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
13191 * config/i386/i386.c (function_value_ms_64): Return small sturct in
13192 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
13194 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
13198 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
13200 * ipa-inline.c (edge_badness): Use inlined_time instead of
13201 inline_summaries->get.
13203 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
13205 * opts.c (enable_fdo_optimizations): Enable
13206 version-loops-for-strides, loop-interchange, unrol-and-jam
13207 and tree-loop-distribution.
13208 * invoke.texi: Document newly enabled options.
13210 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
13212 * doc/invoke.texi (max-inline-insns-small): New parameters.
13213 * ipa-inline.c (want_early_inline_function_p): simplify.
13214 (want_inline_small_function_p): Fix pasto from previous patch;
13215 use max-inline-insns-small bound.
13216 * params.def (max-inline-insns-small): New param.
13217 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
13218 variables correctly.
13220 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
13222 * doc/invoke.texi: Document max-inline-insns-size,
13223 uninlined-function-insns, uninlined-function-time,
13224 uninlined-thunk-insns and uninlined-thunk-time.
13225 * params.def: Add max-inline-insns-size,
13226 uninlined-function-insns, uninlined-function-time,
13227 uninlined-thunk-insns and uninlined-thunk-time.
13228 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
13230 * ipa-inline.c (can_inline_edge_by_limits_p,
13231 want_inline_small_function_p): Use new parameters.
13233 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
13235 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
13237 2019-01-05 Jakub Jelinek <jakub@redhat.com>
13239 PR middle-end/82564
13241 * expr.c (expand_assignment): For calls returning VLA structures
13242 if to_rtx is not a MEM, force it into a stack temporary.
13245 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
13246 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
13247 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
13248 subexpressions of both operands.
13249 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
13250 subrtxes are CONSTANT_P.
13251 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
13252 2018-11-09 changes.
13254 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
13256 * params.def (hot-bb-count-ws-permille): Set to 990.
13258 2019-01-04 Martin Sebor <msebor@redhat.com>
13261 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
13264 2019-01-04 Martin Sebor <msebor@redhat.com>
13267 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
13269 2019-01-04 Jakub Jelinek <jakub@redhat.com>
13271 * gdbinit.in: Turn off pagination for the skip commands, restore
13272 it to previous state afterwards.
13274 2019-01-04 Jakub Jelinek <jakub@redhat.com>
13277 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
13278 of GET_MODE (opN) as modes of the libcall arguments.
13280 2019-01-04 Jan Beulich <jbeulich@suse.com>
13282 * config/i386/sse.md
13283 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
13284 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
13285 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
13286 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
13287 avx512f_vmcmp<mode>3<round_saeonly_name>,
13288 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
13289 avx512f_maskcmp<mode>3,
13290 <avx512>_cvt<ssemodesuffix>2mask<mode>,
13291 <avx512>_cvt<ssemodesuffix>2mask<mode>,
13292 *<avx512>_cvtmask2<ssemodesuffix><mode>,
13293 *<avx512>_cvtmask2<ssemodesuffix><mode>,
13294 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
13295 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
13296 <avx512>_gt<mode>3<mask_scalar_merge_name>,
13297 <avx512>_gt<mode>3<mask_scalar_merge_name>,
13298 <avx512>_testm<mode>3<mask_scalar_merge_name>,
13299 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
13300 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
13301 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
13302 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
13303 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
13304 avx512cd_maskb_vec_dup<mode>,
13305 avx512cd_maskw_vec_dup<mode>,
13306 avx512dq_fpclass<mode><mask_scalar_merge_name>,
13307 avx512dq_vmfpclass<mode>,
13308 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
13311 2019-01-03 Martin Sebor <msebor@redhat.com>
13313 PR tree-optimization/88659
13314 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
13316 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
13318 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
13319 unaligned vsx and avoid lxvd2x/stxvd2x.
13320 (gen_lvx_v4si_move): New function.
13322 2019-01-03 Tom de Vries <tdevries@suse.de>
13324 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
13325 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
13327 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
13329 2019-01-03 Tom de Vries <tdevries@suse.de>
13331 * config/nvptx/nvptx.c (struct offload_attrs): New.
13332 (populate_offload_attrs): New function. Factor mask extraction out of
13333 nvptx_reorg. Add extraction of dimensions.
13334 (nvptx_reorg): Use populate_offload_attrs.
13336 2019-01-03 Tom de Vries <tdevries@suse.de>
13338 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
13339 cases for oacc_min_dims_p and routine_p. Add asserts for
13340 oacc_default_dims_p and offload_region_p.
13342 2019-01-03 Tom de Vries <tdevries@suse.de>
13344 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
13345 factored out of ...
13346 (nvptx_goacc_validate_dims): ... here.
13348 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
13350 PR tree-optimization/85574
13351 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
13353 (struct ssa_equip_hash_traits): Declare.
13354 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
13356 2019-01-03 Jakub Jelinek <jakub@redhat.com>
13359 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
13360 change it to qualified_type.
13362 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
13364 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
13365 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
13367 2019-01-02 Martin Sebor <msebor@redhat.com>
13368 Jeff Law <law@redhat.com>
13370 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
13371 (get_range_strlen_tree): Update appropriately.
13373 * gimple-fold.h (get_range_strlen): Drop unused last argument.
13375 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
13376 rather than set_range_info.
13377 * tree-ssa-strlen.c (set_strlen_range): Extracted from
13378 maybe_set_strlen_range. Handle potentially boundary crossing
13379 cases more conservatively.
13380 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
13381 Call set_strlen_range.
13382 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
13384 PR middle-end/88663
13385 * gimple-fold.c (get_range_strlen): Update prototype to no longer
13386 need the flexp argument.
13387 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
13388 from calls to get_range_strlen. Update comments. Just update
13389 VAL for an unterminated const char array and let the reset of the
13390 code handle it normally. No longer try to set *flexp. Adjust
13392 (get_range_strlen): Update for the new get_range_strlen API.
13393 (get_maxval_strlen): Similarly.
13394 (gimple_fold_builtin_strlen): Handle update meaning of return value
13395 from get_range_strlen.
13396 * gimple-ssa-sprintf.c (get_string_length): Update for the new
13397 get_range_strlen API.
13399 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
13402 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
13403 false at WPA time when body was removed.
13405 2019-01-02 Martin Liska <mliska@suse.cz>
13407 PR tree-optimization/88650
13408 * predict.c (set_even_probabilities): Calculate probability
13409 remainer only when really used.
13411 2019-01-02 Richard Biener <rguenther@suse.de>
13413 PR middle-end/88651
13414 * tree-data-ref.c (analyze_subscript_affine_affine): Use
13415 widest_ints when mangling max_stmt_execution results.
13417 2019-01-02 Richard Biener <rguenther@suse.de>
13419 PR tree-optimization/88621
13420 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
13421 bitfields when canoncalizing.
13423 2019-01-02 Richard Biener <rguenther@suse.de>
13426 * config/i386/x86-tune-costs.h (intel_cost): Adjust
13427 cost of cheap SSE instruction.
13429 2019-01-02 Richard Biener <rguenther@suse.de>
13432 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
13433 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
13435 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
13436 set after UIDs before splitting them.
13438 2019-01-01 Martin Sebor <msebor@redhat.com>
13439 Jeff Law <law@redhat.com>
13441 * gimple-fold.c (get_range_strlen_tree): Record if the computed
13442 length is optimistic. If it is, then arrange to compute the
13443 conservative length as well.
13445 * gimple-fold.h (get_range_strlen): Update prototype.
13446 * builtins.c (check_access): Update call to get_range_strlen to use
13447 c_strlen_data pointer. Change various variable accesses to instead
13448 pull data from the c_strlen_data structure.
13449 (check_strncat_sizes, expand_builtin_strncat): Likewise.
13450 * calls.c (maybe_warn_nonstring_arg): Likewise.
13451 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
13452 minimum length if maximum lengh is unknown.
13453 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
13454 that used c_strlen, it's no longer needed. Restructure slightly.
13455 (format_string): Set unlikely range appropriately.
13456 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
13458 (get_range_strlen): Accept c_strlen_data pointer for external
13459 call sites as well. Pass through to call to internal get_range_strlen.
13460 Adjust minlen, maxlen and maxbound as needed.
13461 (get_maxval_strlen): Update comments.
13462 (gimple_fold_builtin_strlen): Update call to get_range_strlen
13463 to use c_strlen_data pointer. Change variable accesses to instead
13464 use c_strlen_data data members.
13466 * gimple-fold.c (get_range_strlen): Update prototype.
13467 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
13468 local variables. Use pdata to return information to caller.
13469 Update calls to get_range_strlen. Update pdata->maxbound.
13470 (get_range_strlen -- static version): Similarly.
13471 (get_range_strlen -- extern version): Update for internal
13472 get_range_strlen API change. Convert to external data format.
13473 (get_maxval_strlen): Similarly.
13475 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
13477 * coverage.c (get_coverage_counts): Use current_function_decl.
13478 * profile.c (read_thunk_profile): New function.
13479 (branch_prob): Add THUNK parameter.
13480 * tree-profile.c (tree_profiling): Handle thunks.
13481 * value-prof.c (init_node_map): Handle thunks.
13482 * value-prof.h (branch_prob): Upate prototype.
13483 (read_thunk_profile): Declare.
13485 2019-01-01 Jakub Jelinek <jakub@redhat.com>
13487 Update copyright years.
13489 * gcc.c (process_command): Update copyright notice dates.
13490 * gcov-dump.c (print_version): Ditto.
13491 * gcov.c (print_version): Ditto.
13492 * gcov-tool.c (print_version): Ditto.
13493 * gengtype.c (create_file): Ditto.
13494 * doc/cpp.texi: Bump @copying's copyright year.
13495 * doc/cppinternals.texi: Ditto.
13496 * doc/gcc.texi: Ditto.
13497 * doc/gccint.texi: Ditto.
13498 * doc/gcov.texi: Ditto.
13499 * doc/install.texi: Ditto.
13500 * doc/invoke.texi: Ditto.
13502 Copyright (C) 2019 Free Software Foundation, Inc.
13504 Copying and distribution of this file, with or without modification,
13505 are permitted in any medium without royalty provided the copyright
13506 notice and this notice are preserved.