1 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
3 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
4 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
5 leaving the choice between SFDF and P implicit.
6 (*mov<mode>_update2): Likewise.
7 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
8 rather than leaving the choice betweem IBM128 and GPR implicit.
9 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
10 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
12 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
13 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
14 * config/rs6000/vsx.md
15 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
16 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
17 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
18 and VSX_EXTRACT_I implicit.
20 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
22 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
23 Explicitly use <MOVEP1:MODE> for the mode attribute.
25 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
28 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
30 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
33 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
36 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
38 * config/i386/i386.md (@test<mode>_ccno_1):
39 Rename from test<mode>_ccno_1.
40 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
41 (*testqi_1_maybe_si): Remove modrm attribute.
42 (*test<mode>_1): Ditto.
43 * config/i386/i386-expand.c (ix86_split_idivmod): Use
44 gen_test_ccno_1 and gen_extend_insn.
46 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
48 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
51 2019-07-15 Richard Biener <rguenther@suse.de>
54 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
55 node make sure to replace all uses with something valid.
57 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
59 PR tree-optimization/88497
60 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
61 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
62 function undistribute_bitref_for_vector.
63 (undistribute_bitref_for_vector): New function.
64 (cleanup_vinfo_map): Likewise.
65 (sort_by_mach_mode): Likewise.
67 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
69 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
70 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
71 and testdi_ccno_1 using SWI48 mode attribute.
72 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
73 x86_64_szext_general_operand.
74 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
75 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
76 instead of genera_operand mode attribute.
78 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
80 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
81 fopen and fclose to their respective types.
82 (DotFn.invoke): Ditto.
84 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
86 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
87 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
88 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
89 (array_index_predicate): Remove.
90 (analyze_function_body): Account cost for variable ofsetted array
92 (estimate_node_size_and_time): Do not compute array index hint.
93 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
94 (inline_read_section): Do not read array index hint.
95 (ipa_fn_summary_write): Do not write array index hint.
96 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
97 * ipa-cp.c (hint_time_bonus): Remove.
98 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
99 (ipa_fnsummary): Remove array_index.
100 * ipa-inline.c (want_inline_small_function_p): Do not use
102 (edge_badness): Likewise.
103 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
105 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
108 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
109 superfluous "builtin function" phrasing.
111 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
113 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
115 (aliasing_component_refs_walk): Break out from ...
116 (aliasing_component_refs_p): ... here.
118 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
121 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
122 "builtin function" phrasing.
124 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
127 * recog.h (temporary_volatile_ok): New class.
128 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
129 volatile_ok temporarily to true using temporary_volatile_ok.
130 * expr.c (emit_block_move_via_cpymem): Likewise.
131 * optabs.c (maybe_legitimize_operand): Likewise.
133 2019-07-13 Jakub Jelinek <jakub@redhat.com>
135 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
136 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
137 uses inside of order(concurrent) constructs.
138 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
139 OMP_CLAUSE_ORDER is seen.
140 * omp-low.c (struct omp_context): Add order_concurrent member.
141 (scan_sharing_clauses): Set ctx->order_concurrent if
142 OMP_CLAUSE_ORDER is seen.
143 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
144 of simd order(concurrent). Diagnose constructs not allowed inside of
145 for order(concurrent).
146 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
147 complaining about static double setjmp (double); or class static
148 methods or non-global namespace setjmps.
149 (omp_runtime_api_call): New function.
150 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
151 order(concurrent) loops.
153 2019-07-12 Martin Sebor <msebor@redhat.com>
155 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
156 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
157 * tree-vrp.c (vrp_prop::check_mem_ref): Use
158 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
160 2019-07-12 Jan Hubicka <jh@suse.cz>
162 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
163 (indirect_refs_may_alias_p): ... here.
164 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
165 mem refs in the access paths.
167 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
169 PR tree-optimization/89430
170 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
171 store elimination for local variable without address escape.
173 2019-07-12 Jeff Law <law@redhat.com>
175 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
176 for the ".far" section.
178 2019-07-12 Richard Biener <rguenther@suse.de>
180 PR tree-optimization/91145
181 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
184 2019-07-12 Alexandre Oliva <oliva@adacore.com>
186 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
187 rather than this_state as the lowering context for the ELSE
188 seq in a GIMPLE_EH_ELSE.
190 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
192 * vector-builder.h (vector_builder::elt): Allow already-supplied
193 elements to be read back before building is complete.
195 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
197 PR rtl-optimization/91136
198 * df-core.c (ACCESSING REFS): Fix typos in comment.
199 * resource.c (mark_target_live_reg): Add artificial defs that occur at
200 the beginning of the block to the initial set of live registers.
202 2019-07-12 Richard Biener <rguenther@suse.de>
204 * fold-const.h (get_array_ctor_element_at_index): Adjust.
205 * fold-const.c (get_array_ctor_element_at_index): Add
206 ctor_idx output parameter informing the caller where in
207 the constructor the element was (not) found. Add early exit
208 for when the ctor is sorted.
209 * gimple-fold.c (fold_array_ctor_reference): Support constant
210 folding across multiple array elements.
212 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
214 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
215 doesn't have location, set the current location to the function's end.
217 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
219 * config/aarch64/aarch64.md (*compare_condjump<mode>)
220 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
221 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
222 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
223 * config/aarch64/aarch64-simd.md
224 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
225 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
226 * config/aarch64/aarch64-sve.md
227 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
228 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
230 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
232 * doc/md.texi: Document that @ patterns can have different
234 * genemit.c (handle_overloaded_gen): Handle this case.
235 * genopinit.c (handle_overloaded_gen): Likewise.
236 * gensupport.c (replace_operands_with_dups): Iterate over
237 the new rtx's format rather than the old one's.
239 2019-07-12 Jakub Jelinek <jakub@redhat.com>
241 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
242 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
243 order clause entries.
244 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
245 * tree-pretty-print.c (dump_omp_clause): Likewise.
246 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
248 * omp-low.c (scan_sharing_clauses): Likewise.
249 * tree-nested.c (convert_nonlocal_omp_clauses,
250 convert_local_omp_clauses): Likewise.
252 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
254 * gcc/cfgrtl.c (print_rtl_with_bb): Emit a hint if the
255 fallthrough target of current basic block isn't the placed
258 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
261 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
262 (_mm512_storeu_epi64): Likewise.
263 (_mm512_loadu_epi32): Likewise.
264 (_mm512_storeu_epi32): Likewise.
265 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
266 (_mm_storeu_epi64): Likewise.
267 (_mm256_storeu_epi32): Likewise.
268 (_mm_storeu_epi32): Likewise.
270 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
272 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
274 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
276 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
279 2019-07-11 Jakub Jelinek <jakub@redhat.com>
282 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
283 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
284 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
285 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
286 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
287 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
289 (ufix_truncv2dfv2si2<mask_name>): Change into ...
290 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
291 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
293 (sse2_cvttpd2dq<mask_name>): Change into ...
294 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
295 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
296 (*sse2_cvtpd2dq<mask_name>): Change into ...
297 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
298 Add "C" constraint to const0_operand.
299 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
300 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
304 * config/i386/i386-builtin-types.def
305 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
306 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
307 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
308 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
309 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
310 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
311 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
312 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
313 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
314 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
315 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
316 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
317 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
318 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
319 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
320 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
321 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
322 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
323 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
324 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
325 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
326 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
327 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
328 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
329 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
330 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
331 __builtin_ia32_vpdpbusd_v4si_maskz,
332 __builtin_ia32_vpdpbusds_v16si_mask,
333 __builtin_ia32_vpdpbusds_v16si_maskz,
334 __builtin_ia32_vpdpbusds_v8si_mask,
335 __builtin_ia32_vpdpbusds_v8si_maskz,
336 __builtin_ia32_vpdpbusds_v4si_mask,
337 __builtin_ia32_vpdpbusds_v4si_maskz,
338 __builtin_ia32_vpdpwssd_v16si_mask,
339 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
340 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
341 __builtin_ia32_vpdpwssd_v4si_maskz,
342 __builtin_ia32_vpdpwssds_v16si_mask,
343 __builtin_ia32_vpdpwssds_v16si_maskz,
344 __builtin_ia32_vpdpwssds_v8si_mask,
345 __builtin_ia32_vpdpwssds_v8si_maskz,
346 __builtin_ia32_vpdpwssds_v4si_mask,
347 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
348 suffixed types rather than *_INT.
349 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
350 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
351 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
352 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
353 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
354 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
356 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
358 * tree-vrp.c (intersect_ranges): If we know the intersection is
359 empty, there is no need to conservatively add anything else to
362 2019-07-11 Richard Biener <rguenther@suse.de>
365 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
366 when the object is volatile and we have not cleared it even though
367 there are no nonzero elements.
369 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
371 * config/rs6000/predicates.md (cint34_operand): Update
372 SIGNED_34BIT_OFFSET_P call.
373 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
374 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
375 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
376 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
377 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
379 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
380 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
381 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
382 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
383 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
385 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
387 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
388 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
389 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
390 (DEF_MIN_OSX_VERSION): New.
392 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
394 * fold-const.c (fold_relational_const): Fix folding of
395 vector-to-scalar NE_EXPRs.
396 (test_vector_folding): Add more tests.
398 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
401 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
402 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
403 (vec_setv2di_internal): Reexpress as...
404 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
405 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
406 rather than gen_neon_vset_lane<mode>.
408 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
411 * lra-constraints.c (process_alt_operands): Don't match user
412 defined regs only if they are early clobbers.
414 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
416 * wide-int.h (wi::lshift): Reject negative values for the fast path.
418 2019-07-10 Richard Biener <rguenther@suse.de>
420 PR tree-optimization/91126
421 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
422 native encoding offset for BYTES_BIG_ENDIAN.
423 (vn_reference_lookup_3): Likewise.
425 2019-07-10 Richard Biener <rguenther@suse.de>
427 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
428 LHS whenever possible.
430 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
432 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
433 from ...; work also on duplicated types.
434 (nonoverlapping_component_refs_since_match): ... here
435 (ncr_type_uid): Break out from ...
436 (ncr_compar): ... here; look for TYPE_UID of canonical type if
438 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
439 the types and nonoverlapping_component_refs_p_1 to disambiguate.
441 2019-07-09 Martin Sebor <msebor@redhat.com>
443 PR tree-optimization/90989
444 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
445 optimization to just single character stores.
447 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
449 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
450 Swap operands only once.
452 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
454 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
455 for both call instructions.
457 2019-07-09 John Darrington <john@darrington.wattle.id.au>
459 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
460 rather than GET_MODE_BITSIZE to better handle partial integer modes.
462 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
464 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
465 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
466 function from rs6000-logue.c back to rs6000.c.
467 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
469 2019-07-09 Martin Sebor <msebor@redhat.com>
472 * auto-profile.c: Change class-key of PODs to struct and others
474 * basic-block.h: Same.
475 * bitmap.c (bitmap_alloc): Same.
477 * builtins.c (expand_builtin_prefetch): Same.
478 (expand_builtin_interclass_mathfn): Same.
479 (expand_builtin_strlen): Same.
480 (expand_builtin_mempcpy_args): Same.
481 (expand_cmpstr): Same.
482 (expand_builtin___clear_cache): Same.
483 (expand_ifn_atomic_bit_test_and): Same.
484 (expand_builtin_thread_pointer): Same.
485 (expand_builtin_set_thread_pointer): Same.
486 * caller-save.c (setup_save_areas): Same.
487 (replace_reg_with_saved_mem): Same.
488 (insert_restore): Same.
490 (add_used_regs): Same.
491 * cfg.c (get_bb_copy): Same.
492 (set_loop_copy): Same.
495 * cfgexpand.c (alloc_stack_frame_space): Same.
496 (add_stack_var): Same.
497 (add_stack_var_conflict): Same.
498 (add_scope_conflicts_1): Same.
499 (update_alias_info_with_stack_vars): Same.
500 (expand_used_vars): Same.
501 * cfghooks.c (redirect_edge_and_branch_force): Same.
502 (delete_basic_block): Same.
504 (make_forwarder_block): Same.
505 (force_nonfallthru): Same.
506 (duplicate_block): Same.
507 (lv_flush_pending_stmts): Same.
509 * cfgloop.c (flow_loops_cfg_dump): Same.
510 (flow_loop_nested_p): Same.
511 (superloop_at_depth): Same.
512 (get_loop_latch_edges): Same.
513 (flow_loop_dump): Same.
514 (flow_loops_dump): Same.
515 (flow_loops_free): Same.
516 (flow_loop_nodes_find): Same.
517 (establish_preds): Same.
518 (flow_loop_tree_node_add): Same.
519 (flow_loop_tree_node_remove): Same.
520 (flow_loops_find): Same.
521 (find_subloop_latch_edge_by_profile): Same.
522 (find_subloop_latch_edge_by_ivs): Same.
523 (mfb_redirect_edges_in_set): Same.
524 (form_subloop): Same.
525 (merge_latch_edges): Same.
526 (disambiguate_multiple_latches): Same.
527 (disambiguate_loops_with_multiple_latches): Same.
528 (flow_bb_inside_loop_p): Same.
530 (get_loop_body_with_size): Same.
531 (get_loop_body): Same.
532 (fill_sons_in_loop): Same.
533 (get_loop_body_in_dom_order): Same.
534 (get_loop_body_in_custom_order): Same.
535 (release_recorded_exits): Same.
536 (get_loop_exit_edges): Same.
537 (num_loop_branches): Same.
538 (remove_bb_from_loops): Same.
539 (find_common_loop): Same.
542 (verify_loop_structure): Same.
543 (loop_preheader_edge): Same.
544 (loop_exit_edge_p): Same.
546 (loop_exits_to_bb_p): Same.
547 (loop_exits_from_bb_p): Same.
548 (get_loop_location): Same.
549 (record_niter_bound): Same.
550 (get_estimated_loop_iterations_int): Same.
551 (max_stmt_executions_int): Same.
552 (likely_max_stmt_executions_int): Same.
553 (get_estimated_loop_iterations): Same.
554 (get_max_loop_iterations): Same.
555 (get_max_loop_iterations_int): Same.
556 (get_likely_max_loop_iterations): Same.
557 * cfgloop.h (simple_loop_desc): Same.
561 (loop_iterator::next): Same.
562 (loop_outermost): Same.
563 * cfgloopanal.c (mark_irreducible_loops): Same.
564 (num_loop_insns): Same.
565 (average_num_loop_insns): Same.
566 (expected_loop_iterations_unbounded): Same.
567 (expected_loop_iterations): Same.
568 (mark_loop_exit_edges): Same.
569 (single_likely_exit): Same.
570 * cfgloopmanip.c (fix_bb_placement): Same.
571 (fix_bb_placements): Same.
573 (place_new_loop): Same.
575 (scale_loop_frequencies): Same.
576 (scale_loop_profile): Same.
577 (create_empty_if_region_on_edge): Same.
578 (create_empty_loop_on_edge): Same.
581 (fix_loop_placements): Same.
582 (copy_loop_info): Same.
583 (duplicate_loop): Same.
584 (duplicate_subloops): Same.
585 (loop_redirect_edge): Same.
586 (can_duplicate_loop_p): Same.
587 (duplicate_loop_to_header_edge): Same.
588 (mfb_keep_just): Same.
589 (has_preds_from_loop): Same.
590 (create_preheader): Same.
591 (create_preheaders): Same.
592 (lv_adjust_loop_entry_edge): Same.
593 (loop_version): Same.
594 * cfgloopmanip.h: Same.
596 * cgraphbuild.c: Same.
597 * combine.c (make_extraction): Same.
598 * config/i386/i386-features.c: Same.
599 * config/i386/i386-features.h: Same.
600 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
601 (ix86_emit_outlined_ms2sysv_restore): Same.
602 (ix86_noce_conversion_profitable_p): Same.
603 (ix86_init_cost): Same.
604 (ix86_simd_clone_usable): Same.
605 * configure.ac: Same.
607 * data-streamer-in.c (string_for_index): Same.
608 (streamer_read_indexed_string): Same.
609 (streamer_read_string): Same.
610 (bp_unpack_indexed_string): Same.
611 (bp_unpack_string): Same.
612 (streamer_read_uhwi): Same.
613 (streamer_read_hwi): Same.
614 (streamer_read_gcov_count): Same.
615 (streamer_read_wide_int): Same.
616 * data-streamer.h (streamer_write_bitpack): Same.
617 (bp_unpack_value): Same.
618 (streamer_write_char_stream): Same.
619 (streamer_write_hwi_in_range): Same.
620 (streamer_write_record_start): Same.
621 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
622 (add_cross_iteration_register_deps): Same.
623 (build_intra_loop_deps): Same.
624 * df-core.c (df_analyze): Same.
625 (loop_post_order_compute): Same.
626 (loop_inverted_post_order_compute): Same.
627 * df-problems.c (df_rd_alloc): Same.
628 (df_rd_simulate_one_insn): Same.
629 (df_rd_local_compute): Same.
630 (df_rd_init_solution): Same.
631 (df_rd_confluence_n): Same.
632 (df_rd_transfer_function): Same.
634 (df_rd_dump_defs_set): Same.
635 (df_rd_top_dump): Same.
638 (df_lr_local_compute): Same.
640 (df_lr_confluence_n): Same.
642 (df_lr_top_dump): Same.
643 (df_lr_verify_transfer_functions): Same.
644 (df_live_alloc): Same.
645 (df_live_reset): Same.
646 (df_live_init): Same.
647 (df_live_confluence_n): Same.
648 (df_live_finalize): Same.
649 (df_live_free): Same.
650 (df_live_top_dump): Same.
651 (df_live_verify_transfer_functions): Same.
652 (df_mir_alloc): Same.
653 (df_mir_reset): Same.
655 (df_mir_confluence_n): Same.
657 (df_mir_top_dump): Same.
658 (df_word_lr_alloc): Same.
659 (df_word_lr_reset): Same.
660 (df_word_lr_init): Same.
661 (df_word_lr_confluence_n): Same.
662 (df_word_lr_free): Same.
663 (df_word_lr_top_dump): Same.
665 (df_md_simulate_one_insn): Same.
669 (df_md_top_dump): Same.
670 * df-scan.c (df_insn_delete): Same.
671 (df_insn_rescan): Same.
672 (df_notes_rescan): Same.
673 (df_sort_and_compress_mws): Same.
674 (df_install_mws): Same.
675 (df_refs_add_to_chains): Same.
676 (df_ref_create_structure): Same.
677 (df_ref_record): Same.
678 (df_def_record_1): Same.
679 (df_find_hard_reg_defs): Same.
680 (df_uses_record): Same.
681 (df_get_conditional_uses): Same.
682 (df_get_call_refs): Same.
683 (df_recompute_luids): Same.
684 (df_get_entry_block_def_set): Same.
685 (df_entry_block_defs_collect): Same.
686 (df_get_exit_block_use_set): Same.
687 (df_exit_block_uses_collect): Same.
688 (df_mws_verify): Same.
689 (df_bb_verify): Same.
690 * df.h (df_scan_get_bb_info): Same.
692 * dse.c (record_store): Same.
694 * emit-rtl.c (const_fixed_hasher::equal): Same.
695 (set_mem_attributes_minus_bitpos): Same.
696 (change_address): Same.
697 (adjust_address_1): Same.
698 (offset_address): Same.
700 * except.c (dw2_build_landing_pads): Same.
701 (sjlj_emit_dispatch_table): Same.
702 * explow.c (allocate_dynamic_stack_space): Same.
703 (emit_stack_probe): Same.
704 (probe_stack_range): Same.
705 * expmed.c (store_bit_field_using_insv): Same.
706 (store_bit_field_1): Same.
707 (store_integral_bit_field): Same.
708 (extract_bit_field_using_extv): Same.
709 (extract_bit_field_1): Same.
711 * expr.c (emit_block_move_via_cpymem): Same.
712 (expand_cmpstrn_or_cmpmem): Same.
713 (set_storage_via_setmem): Same.
714 (emit_single_push_insn_1): Same.
715 (expand_assignment): Same.
716 (store_constructor): Same.
717 (expand_expr_real_2): Same.
718 (expand_expr_real_1): Same.
721 * function.c (try_fit_stack_local): Same.
722 (assign_stack_local_1): Same.
723 (assign_stack_local): Same.
724 (cut_slot_from_list): Same.
725 (insert_slot_to_list): Same.
726 (max_slot_level): Same.
727 (move_slot_to_level): Same.
728 (temp_address_hasher::equal): Same.
729 (remove_unused_temp_slot_addresses): Same.
731 (combine_temp_slots): Same.
732 (update_temp_slot_address): Same.
733 (preserve_temp_slots): Same.
736 * gcc-rich-location.h: Same.
738 * genattrtab.c (check_attr_test): Same.
739 (check_attr_value): Same.
740 (convert_set_attr_alternative): Same.
741 (convert_set_attr): Same.
743 (copy_boolean): Same.
744 (get_attr_value): Same.
745 (expand_delays): Same.
746 (make_length_attrs): Same.
748 (make_alternative_compare): Same.
749 (simplify_test_exp): Same.
750 (tests_attr_p): Same.
751 (get_attr_order): Same.
752 (clear_struct_flag): Same.
754 (compares_alternatives_p): Same.
757 (find_attrs_to_cache): Same.
758 (write_test_expr): Same.
759 (walk_attr_value): Same.
760 (write_attr_get): Same.
761 (eliminate_known_true): Same.
762 (write_insn_cases): Same.
763 (write_attr_case): Same.
764 (write_attr_valueq): Same.
765 (write_attr_value): Same.
766 (write_dummy_eligible_delay): Same.
767 (next_comma_elt): Same.
769 (make_internal_attr): Same.
770 (copy_rtx_unchanging): Same.
771 (gen_insn_reserv): Same.
772 (check_tune_attr): Same.
773 (make_automaton_attrs): Same.
775 * genextract.c (gen_insn): Same.
776 (VEC_char_to_string): Same.
777 * genmatch.c (print_operand): Same.
779 (parser::parse_operation): Same.
780 (parser::parse_capture): Same.
781 (parser::parse_c_expr): Same.
782 (parser::parse_simplify): Same.
784 * genoutput.c (output_operand_data): Same.
785 (output_get_insn_name): Same.
786 (compare_operands): Same.
787 (place_operands): Same.
788 (process_template): Same.
789 (validate_insn_alternatives): Same.
790 (validate_insn_operands): Same.
792 (note_constraint): Same.
793 * genpreds.c (write_one_predicate_function): Same.
794 (add_constraint): Same.
795 (process_define_register_constraint): Same.
796 (write_lookup_constraint_1): Same.
797 (write_lookup_constraint_array): Same.
798 (write_insn_constraint_len): Same.
799 (write_reg_class_for_constraint_1): Same.
800 (write_constraint_satisfied_p_array): Same.
801 * genrecog.c (optimize_subroutine_group): Same.
802 * gensupport.c (process_define_predicate): Same.
803 (queue_pattern): Same.
804 (remove_from_queue): Same.
806 (is_predicable): Same.
807 (change_subst_attribute): Same.
808 (subst_pattern_match): Same.
809 (alter_constraints): Same.
810 (alter_attrs_for_insn): Same.
811 (shift_output_template): Same.
812 (alter_output_for_subst_insn): Same.
813 (process_one_cond_exec): Same.
815 (process_define_cond_exec): Same.
816 (mnemonic_htab_callback): Same.
817 (gen_mnemonic_attr): Same.
820 * gimple-loop-interchange.cc (dump_reduction): Same.
821 (dump_induction): Same.
822 (loop_cand::~loop_cand): Same.
823 (free_data_refs_with_aux): Same.
824 (tree_loop_interchange::interchange_loops): Same.
825 (tree_loop_interchange::map_inductions_to_loop): Same.
826 (tree_loop_interchange::move_code_to_inner_loop): Same.
827 (compute_access_stride): Same.
828 (compute_access_strides): Same.
829 (proper_loop_form_for_interchange): Same.
830 (tree_loop_interchange_compute_ddrs): Same.
831 (prune_datarefs_not_in_loop): Same.
832 (prepare_data_references): Same.
833 (pass_linterchange::execute): Same.
834 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
835 (unroll_jam_possible_p): Same.
837 (adjust_unroll_factor): Same.
838 (tree_loop_unroll_and_jam): Same.
839 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
840 (loop_versioning::expensive_stmt_p): Same.
841 (loop_versioning::version_for_unity): Same.
842 (loop_versioning::dump_inner_likelihood): Same.
843 (loop_versioning::find_per_loop_multiplication): Same.
844 (loop_versioning::analyze_term_using_scevs): Same.
845 (loop_versioning::record_address_fragment): Same.
846 (loop_versioning::analyze_expr): Same.
847 (loop_versioning::analyze_blocks): Same.
848 (loop_versioning::prune_conditions): Same.
849 (loop_versioning::merge_loop_info): Same.
850 (loop_versioning::add_loop_to_queue): Same.
851 (loop_versioning::decide_whether_loop_is_versionable): Same.
852 (loop_versioning::make_versioning_decisions): Same.
853 (loop_versioning::implement_versioning_decisions): Same.
854 * gimple-ssa-evrp-analyze.c
855 (evrp_range_analyzer::record_ranges_from_phis): Same.
856 * gimple-ssa-store-merging.c (split_store::split_store): Same.
857 (count_multiple_uses): Same.
859 (imm_store_chain_info::output_merged_store): Same.
860 (pass_store_merging::process_store): Same.
861 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
862 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
864 (alloca_call_type): Same.
865 (pass_walloca::execute): Same.
866 * gimple-streamer-in.c (input_phi): Same.
867 (input_gimple_stmt): Same.
868 * gimple-streamer.h: Same.
869 * godump.c (go_force_record_alignment): Same.
870 (go_format_type): Same.
871 (go_output_type): Same.
872 (go_output_fndecl): Same.
873 (go_output_typedef): Same.
874 (keyword_hash_init): Same.
875 (find_dummy_types): Same.
876 * graph.c (draw_cfg_nodes_no_loops): Same.
877 (draw_cfg_nodes_for_loop): Same.
878 * hard-reg-set.h (hard_reg_set_iter_next): Same.
880 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
881 * hsa-dump.c (dump_hsa_cfun): Same.
882 * hsa-gen.c (gen_function_def_parameters): Same.
883 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
884 * input.c (dump_line_table_statistics): Same.
887 * internal-fn.c (get_multi_vector_move): Same.
888 (expand_load_lanes_optab_fn): Same.
889 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
890 (expand_GOMP_SIMT_EXIT): Same.
891 (expand_GOMP_SIMT_LAST_LANE): Same.
892 (expand_GOMP_SIMT_ORDERED_PRED): Same.
893 (expand_GOMP_SIMT_VOTE_ANY): Same.
894 (expand_GOMP_SIMT_XCHG_BFLY): Same.
895 (expand_GOMP_SIMT_XCHG_IDX): Same.
896 (expand_addsub_overflow): Same.
897 (expand_neg_overflow): Same.
898 (expand_mul_overflow): Same.
899 (expand_call_mem_ref): Same.
900 (expand_mask_load_optab_fn): Same.
901 (expand_scatter_store_optab_fn): Same.
902 (expand_gather_load_optab_fn): Same.
903 * ipa-cp.c (ipa_get_parm_lattices): Same.
904 (print_all_lattices): Same.
905 (ignore_edge_p): Same.
906 (build_toporder_info): Same.
907 (free_toporder_info): Same.
908 (push_node_to_stack): Same.
909 (ipcp_lattice<valtype>::set_contains_variable): Same.
910 (set_agg_lats_to_bottom): Same.
911 (ipcp_bits_lattice::meet_with): Same.
912 (set_single_call_flag): Same.
913 (initialize_node_lattices): Same.
914 (ipa_get_jf_ancestor_result): Same.
915 (ipcp_verify_propagated_values): Same.
916 (propagate_scalar_across_jump_function): Same.
917 (propagate_context_across_jump_function): Same.
918 (propagate_bits_across_jump_function): Same.
919 (ipa_vr_operation_and_type_effects): Same.
920 (propagate_vr_across_jump_function): Same.
921 (set_check_aggs_by_ref): Same.
922 (set_chain_of_aglats_contains_variable): Same.
923 (merge_aggregate_lattices): Same.
924 (agg_pass_through_permissible_p): Same.
925 (propagate_aggs_across_jump_function): Same.
926 (call_passes_through_thunk_p): Same.
927 (propagate_constants_across_call): Same.
928 (devirtualization_time_bonus): Same.
929 (good_cloning_opportunity_p): Same.
930 (context_independent_aggregate_values): Same.
931 (gather_context_independent_values): Same.
932 (perform_estimation_of_a_value): Same.
933 (estimate_local_effects): Same.
934 (value_topo_info<valtype>::add_val): Same.
935 (add_all_node_vals_to_toposort): Same.
936 (value_topo_info<valtype>::propagate_effects): Same.
937 (ipcp_propagate_stage): Same.
938 (ipcp_discover_new_direct_edges): Same.
939 (same_node_or_its_all_contexts_clone_p): Same.
940 (cgraph_edge_brings_value_p): Same.
941 (gather_edges_for_value): Same.
942 (create_specialized_node): Same.
943 (find_more_scalar_values_for_callers_subset): Same.
944 (find_more_contexts_for_caller_subset): Same.
945 (copy_plats_to_inter): Same.
946 (intersect_aggregates_with_edge): Same.
947 (find_aggregate_values_for_callers_subset): Same.
948 (cgraph_edge_brings_all_agg_vals_for_node): Same.
949 (decide_about_value): Same.
950 (decide_whether_version_node): Same.
951 (spread_undeadness): Same.
952 (identify_dead_nodes): Same.
953 (ipcp_store_vr_results): Same.
954 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
955 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
956 (redirect_to_unreachable): Same.
957 (edge_set_predicate): Same.
958 (evaluate_conditions_for_known_args): Same.
959 (evaluate_properties_for_edge): Same.
960 (ipa_fn_summary_t::duplicate): Same.
961 (ipa_call_summary_t::duplicate): Same.
962 (dump_ipa_call_summary): Same.
963 (ipa_dump_fn_summary): Same.
964 (eliminated_by_inlining_prob): Same.
965 (set_cond_stmt_execution_predicate): Same.
966 (set_switch_stmt_execution_predicate): Same.
967 (compute_bb_predicates): Same.
968 (will_be_nonconstant_expr_predicate): Same.
969 (phi_result_unknown_predicate): Same.
970 (analyze_function_body): Same.
971 (compute_fn_summary): Same.
972 (estimate_edge_devirt_benefit): Same.
973 (estimate_edge_size_and_time): Same.
974 (estimate_calls_size_and_time): Same.
975 (estimate_node_size_and_time): Same.
976 (remap_edge_change_prob): Same.
977 (remap_edge_summaries): Same.
978 (ipa_merge_fn_summary_after_inlining): Same.
979 (ipa_fn_summary_generate): Same.
980 (inline_read_section): Same.
981 (ipa_fn_summary_read): Same.
982 (ipa_fn_summary_write): Same.
983 * ipa-fnsummary.h: Same.
984 * ipa-hsa.c (ipa_hsa_read_section): Same.
985 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
986 * ipa-icf.c (sem_function::param_used_p): Same.
987 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
988 * ipa-inline.c (edge_badness): Same.
989 (inline_small_functions): Same.
990 * ipa-polymorphic-call.c
991 (ipa_polymorphic_call_context::stream_out): Same.
992 * ipa-predicate.c (predicate::remap_after_duplication): Same.
993 (predicate::remap_after_inlining): Same.
994 (predicate::stream_out): Same.
995 * ipa-predicate.h: Same.
996 * ipa-profile.c (ipa_profile_read_summary): Same.
997 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
998 (count_formal_params): Same.
999 (ipa_dump_param): Same.
1000 (ipa_alloc_node_params): Same.
1001 (ipa_print_node_jump_functions_for_edge): Same.
1002 (ipa_print_node_jump_functions): Same.
1003 (ipa_load_from_parm_agg): Same.
1004 (get_ancestor_addr_info): Same.
1005 (ipa_compute_jump_functions_for_edge): Same.
1006 (ipa_analyze_virtual_call_uses): Same.
1007 (ipa_analyze_stmt_uses): Same.
1008 (ipa_analyze_params_uses_in_bb): Same.
1009 (update_jump_functions_after_inlining): Same.
1010 (try_decrement_rdesc_refcount): Same.
1011 (ipa_impossible_devirt_target): Same.
1012 (update_indirect_edges_after_inlining): Same.
1013 (combine_controlled_uses_counters): Same.
1014 (ipa_edge_args_sum_t::duplicate): Same.
1015 (ipa_write_jump_function): Same.
1016 (ipa_write_indirect_edge_info): Same.
1017 (ipa_write_node_info): Same.
1018 (ipa_read_edge_info): Same.
1019 (ipa_prop_read_section): Same.
1020 (read_replacements_section): Same.
1021 * ipa-prop.h (ipa_get_param_count): Same.
1022 (ipa_get_param): Same.
1023 (ipa_get_type): Same.
1024 (ipa_get_param_move_cost): Same.
1025 (ipa_set_param_used): Same.
1026 (ipa_get_controlled_uses): Same.
1027 (ipa_set_controlled_uses): Same.
1028 (ipa_get_cs_argument_count): Same.
1029 * ipa-pure-const.c (analyze_function): Same.
1030 (pure_const_read_summary): Same.
1032 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
1033 * ipa-split.c (test_nonssa_use): Same.
1034 (dump_split_point): Same.
1035 (dominated_by_forbidden): Same.
1036 (split_part_set_ssa_name_p): Same.
1037 (find_split_points): Same.
1038 * ira-build.c (finish_loop_tree_nodes): Same.
1039 (low_pressure_loop_node_p): Same.
1040 * ira-color.c (ira_reuse_stack_slot): Same.
1042 * ira.c (setup_reg_equiv): Same.
1043 (print_insn_chain): Same.
1045 * loop-doloop.c (doloop_condition_get): Same.
1047 (record_reg_sets): Same.
1048 (doloop_optimize): Same.
1049 * loop-init.c (loop_optimizer_init): Same.
1050 (fix_loop_structure): Same.
1051 * loop-invariant.c (merge_identical_invariants): Same.
1052 (compute_always_reached): Same.
1054 (may_assign_reg_p): Same.
1055 (find_invariants_bb): Same.
1056 (find_invariants_body): Same.
1057 (replace_uses): Same.
1058 (can_move_invariant_reg): Same.
1059 (free_inv_motion_data): Same.
1060 (move_single_loop_invariants): Same.
1061 (change_pressure): Same.
1062 (mark_ref_regs): Same.
1063 (calculate_loop_reg_pressure): Same.
1064 * loop-iv.c (biv_entry_hasher::equal): Same.
1065 (iv_extend_to_rtx_code): Same.
1066 (check_iv_ref_table_size): Same.
1067 (clear_iv_info): Same.
1068 (latch_dominating_def): Same.
1069 (iv_get_reaching_def): Same.
1070 (iv_constant): Same.
1076 (get_biv_step): Same.
1078 (analyzed_for_bivness_p): Same.
1080 (iv_analyze_biv): Same.
1081 (iv_analyze_expr): Same.
1082 (iv_analyze_def): Same.
1083 (iv_analyze_op): Same.
1085 (iv_analyze_result): Same.
1087 (eliminate_implied_conditions): Same.
1088 (simplify_using_initial_values): Same.
1089 (shorten_into_mode): Same.
1090 (canonicalize_iv_subregs): Same.
1091 (determine_max_iter): Same.
1092 (check_simple_exit): Same.
1093 (find_simple_exit): Same.
1094 (get_simple_loop_desc): Same.
1095 * loop-unroll.c (report_unroll): Same.
1096 (decide_unrolling): Same.
1097 (unroll_loops): Same.
1098 (loop_exit_at_end_p): Same.
1099 (decide_unroll_constant_iterations): Same.
1100 (unroll_loop_constant_iterations): Same.
1101 (compare_and_jump_seq): Same.
1102 (unroll_loop_runtime_iterations): Same.
1103 (decide_unroll_stupid): Same.
1104 (unroll_loop_stupid): Same.
1105 (referenced_in_one_insn_in_loop_p): Same.
1106 (reset_debug_uses_in_loop): Same.
1107 (analyze_iv_to_split_insn): Same.
1108 * lra-eliminations.c (lra_debug_elim_table): Same.
1109 (setup_can_eliminate): Same.
1111 (lra_get_elimination_hard_regno): Same.
1112 (lra_eliminate_regs_1): Same.
1113 (eliminate_regs_in_insn): Same.
1114 (update_reg_eliminate): Same.
1115 (init_elimination): Same.
1116 (lra_eliminate): Same.
1118 * lra-lives.c (initiate_live_solver): Same.
1119 * lra-remat.c (create_remat_bb_data): Same.
1120 * lra-spills.c (lra_spill): Same.
1121 * lra.c (lra_set_insn_recog_data): Same.
1122 (lra_set_used_insn_alternative_by_uid): Same.
1123 (init_reg_info): Same.
1124 (expand_reg_info): Same.
1125 * lto-cgraph.c (output_symtab): Same.
1126 (read_identifier): Same.
1127 (get_alias_symbol): Same.
1129 (input_varpool_node): Same.
1132 (input_cgraph_1): Same.
1134 (input_symtab): Same.
1135 (input_offload_tables): Same.
1136 (output_cgraph_opt_summary): Same.
1137 (input_edge_opt_summary): Same.
1138 (input_cgraph_opt_section): Same.
1139 * lto-section-in.c (lto_free_raw_section_data): Same.
1140 (lto_create_simple_input_block): Same.
1141 (lto_free_function_in_decl_state_for_node): Same.
1142 * lto-streamer-in.c (lto_tag_check_set): Same.
1143 (lto_location_cache::revert_location_cache): Same.
1144 (lto_location_cache::input_location): Same.
1145 (lto_input_location): Same.
1146 (stream_input_location_now): Same.
1147 (lto_input_tree_ref): Same.
1148 (lto_input_eh_catch_list): Same.
1149 (input_eh_region): Same.
1150 (lto_init_eh): Same.
1151 (make_new_block): Same.
1153 (fixup_call_stmt_edges): Same.
1154 (input_struct_function_base): Same.
1155 (input_function): Same.
1156 (lto_read_body_or_constructor): Same.
1157 (lto_read_tree_1): Same.
1158 (lto_read_tree): Same.
1159 (lto_input_scc): Same.
1160 (lto_input_tree_1): Same.
1161 (lto_input_toplevel_asms): Same.
1162 (lto_input_mode_table): Same.
1163 (lto_reader_init): Same.
1164 (lto_data_in_create): Same.
1165 * lto-streamer-out.c (output_cfg): Same.
1166 * lto-streamer.h: Same.
1167 * modulo-sched.c (duplicate_insns_of_cycles): Same.
1168 (generate_prolog_epilog): Same.
1169 (mark_loop_unsched): Same.
1170 (dump_insn_location): Same.
1171 (loop_canon_p): Same.
1172 (sms_schedule): Same.
1173 * omp-expand.c (expand_omp_for_ordered_loops): Same.
1174 (expand_omp_for_generic): Same.
1175 (expand_omp_for_static_nochunk): Same.
1176 (expand_omp_for_static_chunk): Same.
1177 (expand_omp_simd): Same.
1178 (expand_omp_taskloop_for_inner): Same.
1179 (expand_oacc_for): Same.
1180 (expand_omp_atomic_pipeline): Same.
1181 (mark_loops_in_oacc_kernels_region): Same.
1182 * omp-offload.c (oacc_xform_loop): Same.
1183 * omp-simd-clone.c (simd_clone_adjust): Same.
1184 * optabs-query.c (get_traditional_extraction_insn): Same.
1185 * optabs.c (expand_vector_broadcast): Same.
1186 (expand_binop_directly): Same.
1187 (expand_twoval_unop): Same.
1188 (expand_twoval_binop): Same.
1189 (expand_unop_direct): Same.
1190 (emit_indirect_jump): Same.
1191 (emit_conditional_move): Same.
1192 (emit_conditional_neg_or_complement): Same.
1193 (emit_conditional_add): Same.
1194 (vector_compare_rtx): Same.
1195 (expand_vec_perm_1): Same.
1196 (expand_vec_perm_const): Same.
1197 (expand_vec_cond_expr): Same.
1198 (expand_vec_series_expr): Same.
1199 (maybe_emit_atomic_exchange): Same.
1200 (maybe_emit_sync_lock_test_and_set): Same.
1201 (expand_atomic_compare_and_swap): Same.
1202 (expand_atomic_load): Same.
1203 (expand_atomic_store): Same.
1204 (maybe_emit_op): Same.
1205 (valid_multiword_target_p): Same.
1206 (create_integer_operand): Same.
1207 (maybe_legitimize_operand_same_code): Same.
1208 (maybe_legitimize_operand): Same.
1209 (create_convert_operand_from_type): Same.
1210 (can_reuse_operands_p): Same.
1211 (maybe_legitimize_operands): Same.
1212 (maybe_gen_insn): Same.
1213 (maybe_expand_insn): Same.
1214 (maybe_expand_jump_insn): Same.
1215 (expand_insn): Same.
1216 * optabs.h (create_expand_operand): Same.
1217 (create_fixed_operand): Same.
1218 (create_output_operand): Same.
1219 (create_input_operand): Same.
1220 (create_convert_operand_to): Same.
1221 (create_convert_operand_from): Same.
1224 * predict.c (optimize_insn_for_speed_p): Same.
1225 (optimize_loop_for_size_p): Same.
1226 (optimize_loop_for_speed_p): Same.
1227 (optimize_loop_nest_for_speed_p): Same.
1228 (get_base_value): Same.
1229 (predicted_by_loop_heuristics_p): Same.
1230 (predict_extra_loop_exits): Same.
1231 (predict_loops): Same.
1232 (predict_paths_for_bb): Same.
1233 (predict_paths_leading_to): Same.
1234 (propagate_freq): Same.
1235 (pass_profile::execute): Same.
1237 * profile-count.c (profile_count::differs_from_p): Same.
1238 (profile_probability::differs_lot_from_p): Same.
1239 * profile-count.h: Same.
1240 * profile.c (branch_prob): Same.
1241 * regrename.c (free_chain_data): Same.
1242 (mark_conflict): Same.
1243 (create_new_chain): Same.
1244 (merge_overlapping_regs): Same.
1245 (init_rename_info): Same.
1246 (merge_chains): Same.
1247 (regrename_analyze): Same.
1248 (regrename_do_replace): Same.
1249 (scan_rtx_reg): Same.
1250 (record_out_operands): Same.
1251 (build_def_use): Same.
1252 * regrename.h: Same.
1254 * reload1.c (init_reload): Same.
1255 (maybe_fix_stack_asms): Same.
1256 (copy_reloads): Same.
1257 (count_pseudo): Same.
1258 (count_spilled_pseudo): Same.
1260 (find_reload_regs): Same.
1261 (select_reload_regs): Same.
1262 (spill_hard_reg): Same.
1263 (fixup_eh_region_note): Same.
1264 (set_reload_reg): Same.
1265 (allocate_reload_reg): Same.
1266 (compute_reload_subreg_offset): Same.
1267 (reload_adjust_reg_for_icode): Same.
1268 (emit_input_reload_insns): Same.
1269 (emit_output_reload_insns): Same.
1270 (do_input_reload): Same.
1271 (inherit_piecemeal_p): Same.
1273 * sanopt.c (maybe_get_dominating_check): Same.
1274 (maybe_optimize_ubsan_ptr_ifn): Same.
1275 (can_remove_asan_check): Same.
1276 (maybe_optimize_asan_check_ifn): Same.
1277 (sanopt_optimize_walker): Same.
1278 * sched-deps.c (add_dependence_list): Same.
1279 (chain_to_prev_insn): Same.
1280 (add_insn_mem_dependence): Same.
1281 (create_insn_reg_set): Same.
1282 (maybe_extend_reg_info_p): Same.
1283 (sched_analyze_reg): Same.
1284 (sched_analyze_1): Same.
1285 (get_implicit_reg_pending_clobbers): Same.
1286 (chain_to_prev_insn_p): Same.
1287 (deps_analyze_insn): Same.
1288 (deps_start_bb): Same.
1289 (sched_free_deps): Same.
1291 (init_deps_reg_last): Same.
1293 * sched-ebb.c: Same.
1294 * sched-int.h: Same.
1295 * sched-rgn.c (add_branch_dependences): Same.
1296 (concat_insn_mem_list): Same.
1298 (sched_rgn_compute_dependencies): Same.
1299 * sel-sched-ir.c (reset_target_context): Same.
1300 (copy_deps_context): Same.
1301 (init_id_from_df): Same.
1302 (has_dependence_p): Same.
1303 (change_loops_latches): Same.
1304 (bb_top_order_comparator): Same.
1305 (make_region_from_loop_preheader): Same.
1306 (sel_init_pipelining): Same.
1307 (get_loop_nest_for_rgn): Same.
1308 (make_regions_from_the_rest): Same.
1309 (sel_is_loop_preheader_p): Same.
1310 * sel-sched-ir.h (inner_loop_header_p): Same.
1311 (get_all_loop_exits): Same.
1313 * sese.c (sese_build_liveouts): Same.
1314 (sese_insert_phis_for_liveouts): Same.
1315 * sese.h (defined_in_sese_p): Same.
1316 * sreal.c (sreal::stream_out): Same.
1318 * streamer-hooks.h: Same.
1319 * target-globals.c (save_target_globals): Same.
1320 * target-globals.h: Same.
1323 * targhooks.c (default_has_ifunc_p): Same.
1324 (default_empty_mask_is_expensive): Same.
1325 (default_init_cost): Same.
1326 * targhooks.h: Same.
1328 * tree-affine.c (aff_combination_mult): Same.
1329 (aff_combination_expand): Same.
1330 (aff_combination_constant_multiple_p): Same.
1331 * tree-affine.h: Same.
1332 * tree-cfg.c (build_gimple_cfg): Same.
1333 (replace_loop_annotate_in_block): Same.
1334 (replace_uses_by): Same.
1336 (dump_cfg_stats): Same.
1337 (gimple_duplicate_sese_region): Same.
1338 (gimple_duplicate_sese_tail): Same.
1339 (move_block_to_fn): Same.
1340 (replace_block_vars_by_duplicates): Same.
1341 (move_sese_region_to_fn): Same.
1342 (print_loops_bb): Same.
1344 (print_loops): Same.
1346 (debug_loops): Same.
1348 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
1349 (chrec_fold_multiply_poly_poly): Same.
1350 (chrec_evaluate): Same.
1351 (chrec_component_in_loop_num): Same.
1352 (reset_evolution_in_loop): Same.
1353 (is_multivariate_chrec): Same.
1354 (chrec_contains_symbols): Same.
1355 (nb_vars_in_chrec): Same.
1356 (chrec_convert_1): Same.
1357 (chrec_convert_aggressive): Same.
1358 * tree-chrec.h: Same.
1359 * tree-core.h: Same.
1360 * tree-data-ref.c (dump_data_dependence_relation): Same.
1361 (canonicalize_base_object_address): Same.
1362 (data_ref_compare_tree): Same.
1363 (prune_runtime_alias_test_list): Same.
1364 (get_segment_min_max): Same.
1365 (create_intersect_range_checks): Same.
1366 (conflict_fn_no_dependence): Same.
1367 (object_address_invariant_in_loop_p): Same.
1368 (analyze_ziv_subscript): Same.
1369 (analyze_siv_subscript_cst_affine): Same.
1370 (analyze_miv_subscript): Same.
1371 (analyze_overlapping_iterations): Same.
1372 (build_classic_dist_vector_1): Same.
1373 (add_other_self_distances): Same.
1374 (same_access_functions): Same.
1375 (build_classic_dir_vector): Same.
1376 (subscript_dependence_tester_1): Same.
1377 (subscript_dependence_tester): Same.
1378 (access_functions_are_affine_or_constant_p): Same.
1379 (get_references_in_stmt): Same.
1380 (loop_nest_has_data_refs): Same.
1381 (graphite_find_data_references_in_stmt): Same.
1382 (find_data_references_in_bb): Same.
1383 (get_base_for_alignment): Same.
1384 (find_loop_nest_1): Same.
1385 (find_loop_nest): Same.
1386 * tree-data-ref.h (dr_alignment): Same.
1387 (ddr_dependence_level): Same.
1388 * tree-if-conv.c (fold_build_cond_expr): Same.
1389 (add_to_predicate_list): Same.
1390 (add_to_dst_predicate_list): Same.
1391 (phi_convertible_by_degenerating_args): Same.
1392 (idx_within_array_bound): Same.
1393 (all_preds_critical_p): Same.
1394 (pred_blocks_visited_p): Same.
1395 (predicate_bbs): Same.
1396 (build_region): Same.
1397 (if_convertible_loop_p_1): Same.
1398 (is_cond_scalar_reduction): Same.
1399 (predicate_scalar_phi): Same.
1400 (remove_conditions_and_labels): Same.
1401 (combine_blocks): Same.
1402 (version_loop_for_if_conversion): Same.
1403 (versionable_outer_loop_p): Same.
1404 (ifcvt_local_dce): Same.
1405 (tree_if_conversion): Same.
1406 (pass_if_conversion::gate): Same.
1407 * tree-if-conv.h: Same.
1408 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
1409 * tree-loop-distribution.c (bb_top_order_cmp): Same.
1411 (stmt_has_scalar_dependences_outside_loop): Same.
1412 (copy_loop_before): Same.
1413 (create_bb_after_loop): Same.
1414 (const_with_all_bytes_same): Same.
1415 (generate_memset_builtin): Same.
1416 (generate_memcpy_builtin): Same.
1417 (destroy_loop): Same.
1418 (build_rdg_partition_for_vertex): Same.
1419 (compute_access_range): Same.
1420 (data_ref_segment_size): Same.
1421 (latch_dominated_by_data_ref): Same.
1422 (compute_alias_check_pairs): Same.
1423 (fuse_memset_builtins): Same.
1424 (finalize_partitions): Same.
1425 (find_seed_stmts_for_distribution): Same.
1426 (prepare_perfect_loop_nest): Same.
1427 * tree-parloops.c (lambda_transform_legal_p): Same.
1428 (loop_parallel_p): Same.
1429 (reduc_stmt_res): Same.
1430 (add_field_for_name): Same.
1431 (create_call_for_reduction_1): Same.
1432 (replace_uses_in_bb_by): Same.
1433 (transform_to_exit_first_loop_alt): Same.
1434 (try_transform_to_exit_first_loop_alt): Same.
1435 (transform_to_exit_first_loop): Same.
1437 (gen_parallel_loop): Same.
1438 (gather_scalar_reductions): Same.
1439 (get_omp_data_i_param): Same.
1440 (try_create_reduction_list): Same.
1441 (oacc_entry_exit_single_gang): Same.
1442 (parallelize_loops): Same.
1443 * tree-pass.h: Same.
1444 * tree-predcom.c (determine_offset): Same.
1445 (last_always_executed_block): Same.
1446 (split_data_refs_to_components): Same.
1447 (suitable_component_p): Same.
1448 (valid_initializer_p): Same.
1449 (find_looparound_phi): Same.
1450 (insert_looparound_copy): Same.
1451 (add_looparound_copies): Same.
1452 (determine_roots_comp): Same.
1453 (predcom_tmp_var): Same.
1454 (initialize_root_vars): Same.
1455 (initialize_root_vars_store_elim_1): Same.
1456 (initialize_root_vars_store_elim_2): Same.
1457 (finalize_eliminated_stores): Same.
1458 (initialize_root_vars_lm): Same.
1459 (remove_stmt): Same.
1460 (determine_unroll_factor): Same.
1461 (execute_pred_commoning_cbck): Same.
1462 (base_names_in_chain_on): Same.
1463 (combine_chains): Same.
1464 (pcom_stmt_dominates_stmt_p): Same.
1465 (try_combine_chains): Same.
1466 (prepare_initializers_chain_store_elim): Same.
1467 (prepare_initializers_chain): Same.
1468 (prepare_initializers): Same.
1469 (prepare_finalizers_chain): Same.
1470 (prepare_finalizers): Same.
1471 (insert_init_seqs): Same.
1472 * tree-scalar-evolution.c (loop_phi_node_p): Same.
1473 (compute_overall_effect_of_inner_loop): Same.
1474 (add_to_evolution_1): Same.
1475 (add_to_evolution): Same.
1476 (follow_ssa_edge_binary): Same.
1477 (follow_ssa_edge_expr): Same.
1478 (backedge_phi_arg_p): Same.
1479 (follow_ssa_edge_in_condition_phi_branch): Same.
1480 (follow_ssa_edge_in_condition_phi): Same.
1481 (follow_ssa_edge_inner_loop_phi): Same.
1482 (follow_ssa_edge): Same.
1483 (analyze_evolution_in_loop): Same.
1484 (analyze_initial_condition): Same.
1485 (interpret_loop_phi): Same.
1486 (interpret_condition_phi): Same.
1487 (interpret_rhs_expr): Same.
1488 (interpret_expr): Same.
1489 (interpret_gimple_assign): Same.
1490 (analyze_scalar_evolution_1): Same.
1491 (analyze_scalar_evolution): Same.
1492 (analyze_scalar_evolution_for_address_of): Same.
1493 (get_instantiated_value_entry): Same.
1494 (loop_closed_phi_def): Same.
1495 (instantiate_scev_name): Same.
1496 (instantiate_scev_poly): Same.
1497 (instantiate_scev_binary): Same.
1498 (instantiate_scev_convert): Same.
1499 (instantiate_scev_not): Same.
1500 (instantiate_scev_r): Same.
1501 (instantiate_scev): Same.
1502 (resolve_mixers): Same.
1503 (initialize_scalar_evolutions_analyzer): Same.
1504 (scev_reset_htab): Same.
1506 (derive_simple_iv_with_niters): Same.
1507 (simple_iv_with_niters): Same.
1508 (expression_expensive_p): Same.
1509 (final_value_replacement_loop): Same.
1510 * tree-scalar-evolution.h (block_before_loop): Same.
1511 * tree-ssa-address.h: Same.
1512 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
1513 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
1514 (record_edge_info): Same.
1515 * tree-ssa-live.c (var_map_base_fini): Same.
1516 (remove_unused_locals): Same.
1517 * tree-ssa-live.h: Same.
1518 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
1519 (pass_ch_vect::execute): Same.
1520 (pass_ch::process_loop_p): Same.
1521 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
1522 (movement_possibility): Same.
1523 (outermost_invariant_loop): Same.
1525 (determine_max_movement): Same.
1526 (invariantness_dom_walker::before_dom_children): Same.
1527 (move_computations): Same.
1528 (may_move_till): Same.
1529 (force_move_till_op): Same.
1530 (force_move_till): Same.
1531 (memref_free): Same.
1532 (record_mem_ref_loc): Same.
1533 (set_ref_stored_in_loop): Same.
1534 (mark_ref_stored): Same.
1535 (sort_bbs_in_loop_postorder_cmp): Same.
1536 (sort_locs_in_loop_postorder_cmp): Same.
1537 (analyze_memory_references): Same.
1538 (mem_refs_may_alias_p): Same.
1539 (find_ref_loc_in_loop_cmp): Same.
1540 (rewrite_mem_ref_loc::operator): Same.
1541 (first_mem_ref_loc_1::operator): Same.
1542 (sm_set_flag_if_changed::operator): Same.
1543 (execute_sm_if_changed_flag_set): Same.
1545 (hoist_memory_references): Same.
1546 (ref_always_accessed::operator): Same.
1547 (refs_independent_p): Same.
1548 (record_dep_loop): Same.
1549 (ref_indep_loop_p_1): Same.
1550 (ref_indep_loop_p): Same.
1551 (can_sm_ref_p): Same.
1552 (find_refs_for_sm): Same.
1553 (loop_suitable_for_sm): Same.
1554 (store_motion_loop): Same.
1555 (store_motion): Same.
1556 (fill_always_executed_in): Same.
1557 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
1558 (estimated_unrolled_size): Same.
1559 (loop_edge_to_cancel): Same.
1560 (remove_exits_and_undefined_stmts): Same.
1561 (remove_redundant_iv_tests): Same.
1562 (unloop_loops): Same.
1563 (estimated_peeled_sequence_size): Same.
1564 (try_peel_loop): Same.
1565 (canonicalize_loop_induction_variables): Same.
1566 (canonicalize_induction_variables): Same.
1567 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
1569 (stmt_after_inc_pos): Same.
1570 (contains_abnormal_ssa_name_p): Same.
1571 (niter_for_exit): Same.
1574 (find_givs_in_bb): Same.
1575 (find_induction_variables): Same.
1576 (find_interesting_uses_cond): Same.
1577 (outermost_invariant_loop_for_expr): Same.
1578 (idx_find_step): Same.
1579 (add_candidate_1): Same.
1580 (add_iv_candidate_derived_from_uses): Same.
1581 (alloc_use_cost_map): Same.
1582 (prepare_decl_rtl): Same.
1583 (generic_predict_doloop_p): Same.
1584 (computation_cost): Same.
1585 (determine_common_wider_type): Same.
1586 (get_computation_aff_1): Same.
1587 (get_use_type): Same.
1588 (determine_group_iv_cost_address): Same.
1590 (difference_cannot_overflow_p): Same.
1591 (may_eliminate_iv): Same.
1592 (determine_set_costs): Same.
1593 (cheaper_cost_pair): Same.
1594 (compare_cost_pair): Same.
1595 (iv_ca_cand_for_group): Same.
1596 (iv_ca_recount_cost): Same.
1597 (iv_ca_set_remove_invs): Same.
1598 (iv_ca_set_no_cp): Same.
1599 (iv_ca_set_add_invs): Same.
1600 (iv_ca_set_cp): Same.
1601 (iv_ca_add_group): Same.
1603 (iv_ca_compare_deps): Same.
1604 (iv_ca_delta_reverse): Same.
1605 (iv_ca_delta_commit): Same.
1606 (iv_ca_cand_used_p): Same.
1607 (iv_ca_delta_free): Same.
1611 (iv_ca_extend): Same.
1612 (iv_ca_narrow): Same.
1613 (iv_ca_prune): Same.
1614 (cheaper_cost_with_cand): Same.
1615 (iv_ca_replace): Same.
1616 (try_add_cand_for): Same.
1617 (get_initial_solution): Same.
1618 (try_improve_iv_set): Same.
1619 (find_optimal_iv_set_1): Same.
1620 (create_new_iv): Same.
1621 (rewrite_use_compare): Same.
1622 (remove_unused_ivs): Same.
1623 (determine_scaling_factor): Same.
1624 * tree-ssa-loop-ivopts.h: Same.
1625 * tree-ssa-loop-manip.c (create_iv): Same.
1626 (compute_live_loop_exits): Same.
1627 (add_exit_phi): Same.
1628 (add_exit_phis): Same.
1629 (find_uses_to_rename_use): Same.
1630 (find_uses_to_rename_def): Same.
1631 (find_uses_to_rename_in_loop): Same.
1632 (rewrite_into_loop_closed_ssa): Same.
1633 (check_loop_closed_ssa_bb): Same.
1634 (split_loop_exit_edge): Same.
1636 (ip_normal_pos): Same.
1637 (copy_phi_node_args): Same.
1638 (gimple_duplicate_loop_to_header_edge): Same.
1639 (can_unroll_loop_p): Same.
1640 (determine_exit_conditions): Same.
1641 (scale_dominated_blocks_in_loop): Same.
1642 (niter_for_unrolled_loop): Same.
1643 (tree_transform_and_unroll_loop): Same.
1644 (rewrite_all_phi_nodes_with_iv): Same.
1645 * tree-ssa-loop-manip.h: Same.
1646 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
1647 (number_of_iterations_ne): Same.
1648 (assert_no_overflow_lt): Same.
1649 (assert_loop_rolls_lt): Same.
1650 (number_of_iterations_lt): Same.
1651 (adjust_cond_for_loop_until_wrap): Same.
1652 (tree_simplify_using_condition): Same.
1653 (simplify_using_initial_conditions): Same.
1654 (simplify_using_outer_evolutions): Same.
1655 (loop_only_exit_p): Same.
1656 (ssa_defined_by_minus_one_stmt_p): Same.
1657 (number_of_iterations_popcount): Same.
1658 (number_of_iterations_exit): Same.
1659 (find_loop_niter): Same.
1660 (finite_loop_p): Same.
1661 (chain_of_csts_start): Same.
1662 (get_val_for): Same.
1663 (loop_niter_by_eval): Same.
1664 (derive_constant_upper_bound_ops): Same.
1665 (do_warn_aggressive_loop_optimizations): Same.
1666 (record_estimate): Same.
1667 (get_cst_init_from_scev): Same.
1668 (record_nonwrapping_iv): Same.
1669 (idx_infer_loop_bounds): Same.
1670 (infer_loop_bounds_from_ref): Same.
1671 (infer_loop_bounds_from_array): Same.
1672 (infer_loop_bounds_from_pointer_arith): Same.
1673 (infer_loop_bounds_from_signedness): Same.
1674 (bound_index): Same.
1675 (discover_iteration_bound_by_body_walk): Same.
1676 (maybe_lower_iteration_bound): Same.
1677 (estimate_numbers_of_iterations): Same.
1678 (estimated_loop_iterations): Same.
1679 (estimated_loop_iterations_int): Same.
1680 (max_loop_iterations): Same.
1681 (max_loop_iterations_int): Same.
1682 (likely_max_loop_iterations): Same.
1683 (likely_max_loop_iterations_int): Same.
1684 (estimated_stmt_executions_int): Same.
1685 (max_stmt_executions): Same.
1686 (likely_max_stmt_executions): Same.
1687 (estimated_stmt_executions): Same.
1688 (stmt_dominates_stmt_p): Same.
1689 (nowrap_type_p): Same.
1690 (loop_exits_before_overflow): Same.
1691 (scev_var_range_cant_overflow): Same.
1692 (scev_probably_wraps_p): Same.
1693 (free_numbers_of_iterations_estimates): Same.
1694 * tree-ssa-loop-niter.h: Same.
1695 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
1696 (idx_analyze_ref): Same.
1697 (analyze_ref): Same.
1698 (gather_memory_references_ref): Same.
1699 (mark_nontemporal_store): Same.
1700 (emit_mfence_after_loop): Same.
1701 (may_use_storent_in_loop_p): Same.
1702 (mark_nontemporal_stores): Same.
1703 (should_unroll_loop_p): Same.
1704 (volume_of_dist_vector): Same.
1705 (add_subscript_strides): Same.
1706 (self_reuse_distance): Same.
1707 (insn_to_prefetch_ratio_too_small_p): Same.
1708 * tree-ssa-loop-split.c (split_at_bb_p): Same.
1709 (patch_loop_exit): Same.
1710 (find_or_create_guard_phi): Same.
1711 (easy_exit_values): Same.
1712 (connect_loop_phis): Same.
1713 (connect_loops): Same.
1714 (compute_new_first_bound): Same.
1716 (tree_ssa_split_loops): Same.
1717 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
1718 (is_maybe_undefined): Same.
1719 (tree_may_unswitch_on): Same.
1720 (simplify_using_entry_checks): Same.
1721 (tree_unswitch_single_loop): Same.
1722 (tree_unswitch_loop): Same.
1723 (tree_unswitch_outer_loop): Same.
1724 (empty_bb_without_guard_p): Same.
1725 (used_outside_loop_p): Same.
1726 (get_vop_from_header): Same.
1727 (hoist_guard): Same.
1728 * tree-ssa-loop.c (gate_oacc_kernels): Same.
1729 (get_lsm_tmp_name): Same.
1730 * tree-ssa-loop.h: Same.
1731 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
1732 (build_and_add_sum): Same.
1733 (no_side_effect_bb): Same.
1735 (linearize_expr): Same.
1736 (should_break_up_subtract): Same.
1737 (linearize_expr_tree): Same.
1738 * tree-ssa-scopedtables.c: Same.
1739 * tree-ssa-scopedtables.h: Same.
1740 * tree-ssa-structalias.c (condense_visit): Same.
1741 (label_visit): Same.
1742 (dump_pred_graph): Same.
1743 (perform_var_substitution): Same.
1744 (move_complex_constraints): Same.
1745 (remove_preds_and_fake_succs): Same.
1746 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
1747 (determine_bb_domination_status): Same.
1748 (duplicate_thread_path): Same.
1749 (thread_through_all_blocks): Same.
1750 * tree-ssa-threadupdate.h: Same.
1751 * tree-streamer-in.c (streamer_read_string_cst): Same.
1752 (input_identifier): Same.
1753 (unpack_ts_type_common_value_fields): Same.
1754 (unpack_ts_block_value_fields): Same.
1755 (unpack_ts_translation_unit_decl_value_fields): Same.
1756 (unpack_ts_omp_clause_value_fields): Same.
1757 (streamer_read_tree_bitfields): Same.
1758 (streamer_alloc_tree): Same.
1759 (lto_input_ts_common_tree_pointers): Same.
1760 (lto_input_ts_vector_tree_pointers): Same.
1761 (lto_input_ts_poly_tree_pointers): Same.
1762 (lto_input_ts_complex_tree_pointers): Same.
1763 (lto_input_ts_decl_minimal_tree_pointers): Same.
1764 (lto_input_ts_decl_common_tree_pointers): Same.
1765 (lto_input_ts_decl_non_common_tree_pointers): Same.
1766 (lto_input_ts_decl_with_vis_tree_pointers): Same.
1767 (lto_input_ts_field_decl_tree_pointers): Same.
1768 (lto_input_ts_function_decl_tree_pointers): Same.
1769 (lto_input_ts_type_common_tree_pointers): Same.
1770 (lto_input_ts_type_non_common_tree_pointers): Same.
1771 (lto_input_ts_list_tree_pointers): Same.
1772 (lto_input_ts_vec_tree_pointers): Same.
1773 (lto_input_ts_exp_tree_pointers): Same.
1774 (lto_input_ts_block_tree_pointers): Same.
1775 (lto_input_ts_binfo_tree_pointers): Same.
1776 (lto_input_ts_constructor_tree_pointers): Same.
1777 (lto_input_ts_omp_clause_tree_pointers): Same.
1778 (streamer_read_tree_body): Same.
1779 * tree-streamer.h: Same.
1780 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
1781 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
1782 (vect_analyze_possibly_independent_ddr): Same.
1783 (vect_analyze_data_ref_dependence): Same.
1784 (vect_compute_data_ref_alignment): Same.
1785 (vect_enhance_data_refs_alignment): Same.
1786 (vect_analyze_data_ref_access): Same.
1787 (vect_check_gather_scatter): Same.
1788 (vect_find_stmt_data_reference): Same.
1789 (vect_create_addr_base_for_vector_ref): Same.
1790 (vect_setup_realignment): Same.
1791 (vect_supportable_dr_alignment): Same.
1792 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
1793 (adjust_phi_and_debug_stmts): Same.
1794 (vect_set_loop_mask): Same.
1795 (add_preheader_seq): Same.
1796 (vect_maybe_permute_loop_masks): Same.
1797 (vect_set_loop_masks_directly): Same.
1798 (vect_set_loop_condition_masked): Same.
1799 (vect_set_loop_condition_unmasked): Same.
1800 (slpeel_duplicate_current_defs_from_edges): Same.
1801 (slpeel_add_loop_guard): Same.
1802 (slpeel_can_duplicate_loop_p): Same.
1803 (create_lcssa_for_virtual_phi): Same.
1805 (vect_update_ivs_after_vectorizer): Same.
1806 (vect_gen_vector_loop_niters_mult_vf): Same.
1807 (slpeel_update_phi_nodes_for_loops): Same.
1808 (slpeel_update_phi_nodes_for_guard1): Same.
1809 (find_guard_arg): Same.
1810 (slpeel_update_phi_nodes_for_guard2): Same.
1811 (slpeel_update_phi_nodes_for_lcssa): Same.
1812 (vect_do_peeling): Same.
1813 (vect_create_cond_for_alias_checks): Same.
1814 (vect_loop_versioning): Same.
1815 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
1816 (vect_inner_phi_in_double_reduction_p): Same.
1817 (vect_analyze_scalar_cycles_1): Same.
1818 (vect_fixup_scalar_cycles_with_patterns): Same.
1819 (vect_get_loop_niters): Same.
1820 (bb_in_loop_p): Same.
1821 (vect_get_max_nscalars_per_iter): Same.
1822 (vect_verify_full_masking): Same.
1823 (vect_compute_single_scalar_iteration_cost): Same.
1824 (vect_analyze_loop_form_1): Same.
1825 (vect_analyze_loop_form): Same.
1826 (vect_active_double_reduction_p): Same.
1827 (vect_analyze_loop_operations): Same.
1828 (neutral_op_for_slp_reduction): Same.
1829 (vect_is_simple_reduction): Same.
1830 (vect_model_reduction_cost): Same.
1831 (get_initial_def_for_reduction): Same.
1832 (get_initial_defs_for_reduction): Same.
1833 (vect_create_epilog_for_reduction): Same.
1834 (vectorize_fold_left_reduction): Same.
1835 (vectorizable_reduction): Same.
1836 (vectorizable_induction): Same.
1837 (vectorizable_live_operation): Same.
1838 (loop_niters_no_overflow): Same.
1839 (vect_get_loop_mask): Same.
1840 (vect_transform_loop_stmt): Same.
1841 (vect_transform_loop): Same.
1842 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
1843 (vect_determine_precisions): Same.
1844 (vect_pattern_recog_1): Same.
1845 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
1846 * tree-vect-stmts.c (stmt_vectype): Same.
1847 (process_use): Same.
1848 (vect_init_vector_1): Same.
1849 (vect_truncate_gather_scatter_offset): Same.
1850 (get_group_load_store_type): Same.
1851 (vect_build_gather_load_calls): Same.
1852 (vect_get_strided_load_store_ops): Same.
1853 (vectorizable_simd_clone_call): Same.
1854 (vectorizable_store): Same.
1855 (permute_vec_elements): Same.
1856 (vectorizable_load): Same.
1857 (vect_transform_stmt): Same.
1858 (supportable_widening_operation): Same.
1859 * tree-vectorizer.c (vec_info::replace_stmt): Same.
1860 (vec_info::free_stmt_vec_info): Same.
1861 (vect_free_loop_info_assumptions): Same.
1862 (vect_loop_vectorized_call): Same.
1863 (set_uid_loop_bbs): Same.
1864 (vectorize_loops): Same.
1865 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
1866 * tree.c (add_tree_to_fld_list): Same.
1867 (fld_type_variant_equal_p): Same.
1868 (fld_decl_context): Same.
1869 (fld_incomplete_type_of): Same.
1870 (free_lang_data_in_binfo): Same.
1871 (need_assembler_name_p): Same.
1872 (find_decls_types_r): Same.
1873 (get_eh_types_for_runtime): Same.
1874 (find_decls_types_in_eh_region): Same.
1875 (find_decls_types_in_node): Same.
1876 (assign_assembler_name_if_needed): Same.
1877 * value-prof.c (stream_out_histogram_value): Same.
1878 * value-prof.h: Same.
1879 * var-tracking.c (use_narrower_mode): Same.
1880 (prepare_call_arguments): Same.
1881 (vt_expand_loc_callback): Same.
1882 (resolve_expansions_pending_recursion): Same.
1883 (vt_expand_loc): Same.
1884 * varasm.c (const_hash_1): Same.
1885 (compare_constant): Same.
1886 (tree_output_constant_def): Same.
1887 (simplify_subtraction): Same.
1888 (get_pool_constant): Same.
1889 (output_constant_pool_2): Same.
1890 (output_constant_pool_1): Same.
1891 (mark_constants_in_pattern): Same.
1892 (mark_constant_pool): Same.
1893 (get_section_anchor): Same.
1894 * vr-values.c (compare_range_with_value): Same.
1895 (vr_values::extract_range_from_phi_node): Same.
1896 * vr-values.h: Same.
1897 * web.c (unionfind_union): Same.
1900 2019-07-09 Martin Sebor <msebor@redhat.com>
1903 * align.h: Change class-key from class to struct and vice versa
1904 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
1905 * alloc-pool.h: Same.
1906 * asan.c (shadow_mem_size): Same.
1907 * auto-profile.c: Same.
1908 * basic-block.h: Same.
1910 * cfgexpand.c (set_rtl): Same.
1911 (expand_one_stack_var_at): Same.
1915 * config/i386/i386.h: Same.
1916 * df-problems.c (df_print_bb_index): Same.
1918 * df.h (df_single_use): Same.
1919 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
1920 (layout::annotation_line_showed_range_p): Same.
1921 (get_printed_columns): Same.
1922 (correction::ensure_terminated): Same.
1923 (line_corrections::~line_corrections): Same.
1926 * dump-context.h: Same.
1928 * dwarf2out.c: Same.
1929 * edit-context.c: Same.
1930 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
1932 * function.c (assign_stack_local): Same.
1935 * gcov.c (block_info::block_info): Same.
1936 * genattrtab.c: Same.
1937 * genextract.c: Same.
1938 * genmatch.c (comparison_code_p): Same.
1939 (id_base::id_base): Same.
1940 (decision_tree::print): Same.
1941 * genoutput.c: Same.
1942 * genpreds.c (write_one_predicate_function): Same.
1943 * genrecog.c (validate_pattern): Same.
1944 (find_operand_positions): Same.
1945 (optimize_subroutine_group): Same.
1946 (merge_pattern_transition::merge_pattern_transition): Same.
1947 (merge_pattern_info::merge_pattern_info): Same.
1948 (merge_state_result::merge_state_result): Same.
1949 (merge_into_state): Same.
1950 * gensupport.c: Same.
1951 * gensupport.h: Same.
1952 * ggc-common.c (init_ggc_heuristics): Same.
1953 * ggc-tests.c (test_union): Same.
1954 * gimple-loop-interchange.cc (dump_induction): Same.
1955 * gimple-loop-versioning.cc: Same.
1956 * gimple-match.h (gimple_match_cond::any_else): Same.
1957 * gimple-ssa-backprop.c: Same.
1958 * gimple-ssa-sprintf.c: Same.
1959 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
1961 (store_immediate_info::store_immediate_info): Same.
1962 (merged_store_group::apply_stores): Same.
1963 (get_location_for_stmts): Same.
1964 * gimple-ssa-strength-reduction.c: Same.
1965 * gimple-ssa-warn-alloca.c: Same.
1966 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
1967 * godump.c (go_type_decl): Same.
1968 * hash-map-tests.c (test_map_of_strings_to_int): Same.
1970 * hash-set-tests.c (test_set_of_strings): Same.
1972 * hsa-common.h: Same.
1973 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
1974 * input.c (assert_loceq): Same.
1977 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
1978 * ipa-fnsummary.h: Same.
1979 * ipa-inline.h: Same.
1981 * ipa-split.c (visit_bb): Same.
1982 * ira-int.h (minmax_set_iter_next): Same.
1983 * loop-invariant.c: Same.
1985 * lra-eliminations.c: Same.
1987 * lra-lives.c (mark_regno_dead): Same.
1988 * lra-remat.c: Same.
1989 * lra-spills.c: Same.
1990 * lto-streamer.h: Same.
1991 * mem-stats.h: Same.
1992 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
1993 * omp-low.c (omp_clause_aligned_alignment): Same.
1994 * optabs-query.h (get_vcond_eq_icode): Same.
1996 * opts.c (wrap_help): Same.
1998 * predict.c (predict_paths_leading_to_edge): Same.
1999 * pretty-print.h: Same.
2000 * profile-count.h: Same.
2002 * read-rtl-function.c: Same.
2005 * regrename.c: Same.
2006 * regrename.h: Same.
2009 * rtl.h (costs_add_n_insns): Same.
2011 * sched-int.h: Same.
2012 * sel-sched-ir.h: Same.
2014 * sese.h (vec_find): Same.
2016 * target-globals.h: Same.
2017 * tree-affine.c (aff_combination_find_elt): Same.
2018 * tree-affine.h: Same.
2019 * tree-data-ref.h: Same.
2020 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
2021 * tree-predcom.c: Same.
2022 * tree-scalar-evolution.c (find_var_scev_info): Same.
2023 * tree-ssa-alias.h: Same.
2024 * tree-ssa-ccp.c: Same.
2025 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
2026 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
2027 (rewrite_mem_refs): Same.
2028 (execute_sm_if_changed): Same.
2029 (hoist_memory_references): Same.
2030 * tree-ssa-loop-ivopts.c (operator<=): Same.
2031 * tree-ssa-loop.h: Same.
2032 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
2033 * tree-ssa-structalias.c: Same.
2034 * tree-switch-conversion.h (cluster::cluster): Same.
2035 (simple_cluster::simple_cluster): Same.
2036 * tree-vect-patterns.c (type_conversion_p): Same.
2037 * tree-vectorizer.c (dump_stmt_cost): Same.
2038 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
2039 * tree.c (protected_set_expr_location): Same.
2040 * tree.h (desired_pro_or_demotion_p): Same.
2041 (fndecl_built_in_p): Same.
2042 * unique-ptr-tests.cc: Same.
2043 * var-tracking.c (delete_variable_part): Same.
2044 * varasm.c (assemble_real): Same.
2045 (tree_output_constant_def): Same.
2047 * wide-int-bitmask.h: Same.
2048 * wide-int.h (decompose): Same.
2050 2019-07-09 Richard Biener <rguenther@suse.de>
2052 PR tree-optimization/91114
2053 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
2054 find a vector type isn't fatal.
2056 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
2058 * config/aarch64/aarch64-simd.md
2059 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
2060 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
2061 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
2062 (*aarch64_crypto_aese_fused,
2063 *aarch64_crypto_aesd_fused): Update to new definition.
2064 * config/aarch64/aarch64.c
2065 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
2067 2019-07-09 Richard Biener <rguenther@suse.de>
2069 * gimple-match.h (gimple_match_op::resimplify): New.
2070 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
2071 gimple_resimplify4, gimple_resimplify5): Remove.
2072 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
2073 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
2075 (gimple_match_op::resimplify): New.
2076 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
2077 according to availability. Use gimple_match_op::resimplify.
2079 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
2081 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
2083 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
2085 * config/arm/crypto.md:
2086 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
2087 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
2088 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
2089 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
2091 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
2092 * config/arm/aarch-common-protos.h
2093 (aarch_crypto_can_dual_issue): Remove.
2094 * config/arm/aarch-common.c
2095 (aarch_crypto_can_dual_issue): Likewise.
2096 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
2097 * config/arm/cortex-a53.md: Likewise.
2098 * config/arm/cortex-a57.md: Likewise.
2099 * config/arm/iterators.md:
2100 (CRYPTO_BINARY): Redefine.
2101 (CRYPTO_UNARY): Removed.
2102 (CRYPTO_AES, CRYPTO_AESMC): New.
2104 2019-07-09 Richard Biener <rguenther@suse.de>
2106 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
2107 (vn_reference_lookup_3): If the main ref has no access path recorded
2108 but orig_ref has use it to do access-path based disambiguation.
2109 (vn_reference_lookup_pieces): Adjust.
2110 (vn_reference_lookup): Pass down original ref if we valueized.
2112 2019-07-09 Martin Liska <mliska@suse.cz>
2114 * doc/extend.texi: Document influence on loop
2117 2019-07-09 Martin Liska <mliska@suse.cz>
2119 * lto-compress.c (lto_normalized_zstd_level): Do not use
2120 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
2121 of libzstd. One can use 0 as a default compression level.
2123 2019-07-09 Martin Liska <mliska@suse.cz>
2125 * doc/invoke.texi: Add link from -fprofile-dir option.
2126 Use better wording for 'gcno filename'.
2128 2019-07-08 Martin Sebor <msebor@redhat.com>
2132 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
2134 (args_loc_t): New type.
2135 (args_loc_t, locmap_t): same.
2136 (diag_returned_locals): New function.
2137 (is_addr_local): Same.
2138 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
2139 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
2140 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
2142 2019-07-08 Jakub Jelinek <jakub@redhat.com>
2144 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
2145 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
2146 and casts in offset when different, both through gimple stmts
2147 and through trees. Rewritten using loops to minimize code duplication
2150 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
2152 * emit-rtl.c (set_insn_locations): New function moved from...
2153 * function.c (set_insn_locations): ...here.
2154 * ira-emit.c (emit_moves): Propagate location of the first instruction
2155 to the inserted move instructions.
2156 * reg-stack.c (compensate_edge): Set the location if the sequence is
2157 inserted on the edge.
2158 * rtl.h (set_insn_locations): Declare.
2160 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
2162 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
2163 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
2166 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
2168 PR rtl-optimization/88233
2169 * common.opt (fsplit-wide-types-early): New option.
2170 * common/config/rs6000/rs6000-common.c
2171 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
2173 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
2174 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
2175 flag_split_wide_types_early.
2176 (pass_data_lower_subreg3): New.
2177 (pass_lower_subreg3): New.
2178 (make_pass_lower_subreg3): New.
2179 * passes.def (pass_lower_subreg2): Move after the loop passes.
2180 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
2181 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
2182 the pass pipeline; its previous place is taken by ...
2183 (make_pass_lower_subreg3): ... this.
2185 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
2187 * config/s390/s390.c (s390_shift_truncation_mask): Define.
2188 (TARGET_SHIFT_TRUNCATION_MASK): Define.
2190 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
2192 * config/s390/constraints.md: Add new jsc constraint.
2193 * config/s390/predicates.md: New predicates.
2194 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
2195 * config/s390/s390.c (s390_valid_shift_count): New function.
2196 (print_shift_count_operand): Use s390_valid_shift_count.
2197 (print_operand): Likewise.
2198 * config/s390/s390.md: Use new predicate.
2199 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
2200 * config/s390/vector.md: Use new predicate.
2202 2019-07-08 Joern Rennecke <joern.rennecke@riscy-ip.com>
2204 Avoid clash with system header declaration.
2205 * testsuite/gcc.dg/vect/slp-reduc-sad.c (uint32_t):
2206 Remove unused declaration.
2208 2019-07-08 Andrew Waterman <andrew@sifive.com>
2209 Jim Wilson <jimw@sifive.com>
2211 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
2212 bitsize instead of BITS_PER_WORD.
2215 2019-07-08 Martin Liska <mliska@suse.cz>
2217 * collect2.c (defined): Revert to before r254460.
2218 (scan_prog_file): Revert to before r254460.
2220 2019-07-08 Richard Biener <rguenther@suse.de>
2222 PR tree-optimization/83518
2223 * tree-ssa-sccvn.c: Include splay-tree.h.
2224 (struct pd_range, struct pd_data): New.
2225 (struct vn_walk_cb_data): Add data to track partial definitions.
2226 (vn_walk_cb_data::~vn_walk_cb_data): New.
2227 (vn_walk_cb_data::push_partial_def): New.
2228 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
2229 (vn_reference_lookup_2): When partial defs are registered give up.
2230 (vn_reference_lookup_3): Track partial defs for memset and
2231 constructor zeroing and for defs from constants.
2233 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
2235 * doc/install.texi (bootstrap-Og): Document.
2237 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
2239 * config/riscv/pic.md (*local_pic_load_s<mode>)
2240 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
2241 referenced by <mode>, giving...
2242 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
2243 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
2244 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
2245 use <X:MODE> for the mode attribute.
2247 2019-07-07 Jeff Law <law@redhat.com>
2249 PR tree-optimization/91090
2250 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
2251 in handling of ranges to simplify switch statements.
2253 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
2255 * config/darwin.c (darwin_override_options): Make a final check on PIC
2258 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
2260 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
2263 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
2266 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
2267 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
2268 instead of matching them to "l" output operands.
2270 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
2272 * config/mips/mips.c (mips_split_move): Zero-initialize addr
2273 and check whether addr.reg is nonnull before using it.
2275 2019-07-06 Jakub Jelinek <jakub@redhat.com>
2277 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
2278 ctx->for_simd_scan_phase simd copy the outer var to the privatized
2279 variable(s). For conditional lastprivate look through outer
2280 GIMPLE_OMP_SCAN context.
2281 (lower_omp_1): For conditional lastprivate look through outer
2282 GIMPLE_OMP_SCAN context.
2284 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
2285 member to combined_into_simd_safelen1.
2286 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
2287 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
2288 clauses if ctx->combined_into_simd_safelen1 put statements after the
2289 predicate conditionalized block rather than into it.
2291 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
2293 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
2295 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
2296 Make the choice of <mode> explicit, giving...
2297 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
2299 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
2301 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
2302 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
2304 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
2305 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
2306 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
2307 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
2308 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
2309 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
2310 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
2311 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
2312 (*avx512f_scatterdi<mode>): Likewise.
2313 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
2315 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
2317 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
2318 specify the mode iterator referenced by <mode>, giving...
2319 (*push1_h8300hs_<QHI:mode>): ...this.
2321 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
2323 * config/gcn/gcn-valu.md
2324 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
2325 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
2326 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
2327 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
2328 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
2329 but using the _exec comparison patterns.
2330 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
2331 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
2332 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
2333 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
2334 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
2335 but using the _exec comparison patterns.
2337 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
2339 * config/arm/sync.md
2340 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
2341 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
2342 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise
2343 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
2346 2019-07-06 Jakub Jelinek <jakub@redhat.com>
2348 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
2349 (maybe_lookup_ctx): Add forward declaration.
2350 (omp_find_scan): Likewise. Walk into body of simd if composited
2351 with worksharing loop.
2352 (scan_omp_simd_scan): New function.
2353 (scan_omp_1_stmt): Call it.
2354 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
2355 ctx->for_simd_scan_phase.
2356 (lower_rec_input_clauses): Do much less work for inscan reductions
2357 in ctx->for_simd_scan_phase is_simd regions.
2358 (lower_omp_scan): Set is_simd also on simd constructs composited
2359 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
2360 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
2361 emit their body after in simd constructs composited with worksharing
2363 (lower_omp_for_scan): Handle worksharing loop composited with simd.
2365 * omp-low.c (omp_find_scan): Make static.
2366 (lower_omp_for_scan): Fix order of merge arguments in input phase of
2367 the second loop, var2 represents the first partial sum and so needs
2368 to go before rprivb[ivar].
2370 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
2372 * config/rs6000/rs6000-logue.c: Remove unused code.
2374 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
2376 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
2378 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
2381 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
2382 check with a frame laid out check.
2384 2019-07-05 Richard Biener <rguenther@suse.de>
2386 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
2387 when comparing against a store with possibly the same value.
2389 2019-07-05 Richard Biener <rguenther@suse.de>
2391 PR tree-optimization/91091
2392 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
2393 (walk_non_aliased_vuses): Likewise.
2394 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
2395 (get_continuation_for_phi): New tbaa_p parameter and pass
2397 (walk_non_aliased_vuses): Likewise.
2398 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
2399 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
2400 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
2402 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
2403 (adjust_offsets_for_equal_base_address): New function.
2404 (vn_reference_lookup_3): Use it to catch more base equivalences.
2405 Handle and pass down tbaa_p flag.
2406 (vn_reference_lookup_pieces): Adjust.
2407 (vn_reference_lookup): Remove alias-set altering, instead pass
2408 down false as tbaa_p.
2410 2019-07-05 Richard Biener <rguenther@suse.de>
2412 PR tree-optimization/91091
2413 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
2414 accesses can happen with -fno-strict-aliasing.
2416 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
2418 * tree-ssa-alias.c (alias_stats): Add
2419 nonoverlapping_component_refs_since_match_p_must_overlap.
2420 (dump_alias_stats): Print it.
2421 (nonoverlapping_component_refs_since_match_p): Add early exit.
2422 (nonoverlapping_component_refs_p): Do not account early exit.
2424 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
2426 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
2427 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
2428 (emit_eh_dispatch): Delete.
2429 (lower_catch): Emit the eh_dispatch manually and set the location of
2430 the first catch statement onto it.
2431 (lower_eh_filter): Emit the eh_dispatch manually and set location.
2432 (lower_eh_dispatch): Propagate location.
2433 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
2434 (eliminate_build): Likewise.
2436 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
2438 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
2439 phi nodes if possible.
2440 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
2441 location info on the newly created statement.
2442 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
2443 newly created increment if needed.
2445 2019-07-04 Jakub Jelinek <jakub@redhat.com>
2448 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
2449 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
2450 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
2451 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
2452 ctx->add_safelen1 is set.
2454 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
2455 GOMP_loop_start at the start of second worksharing loop in a scan.
2456 For nowait, don't emit GOMP_loop_end_nowait at the end of first
2457 worksharing loop in a scan even if there are conditional lastprivates,
2458 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
2460 2019-07-04 Jan Hubicka <jh@suse.cz>
2462 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
2463 Fix check for match in the ref walk.
2465 2019-07-04 Martin Liska <mliska@suse.cz>
2467 * tree-ssa-loop-niter.c
2468 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
2469 (estimate_numbers_of_iterations):
2470 Support __builtin_expect_with_probability for analysis
2471 of # of loop iterations.
2473 2019-07-04 Alexandre Oliva <oliva@adacore.com>
2475 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
2476 * except.c: Likewise.
2477 * expr.c (expand_expr_real_1): Reject it.
2478 * gimplify.c (gimplify_expr): Gimplify it, within
2480 * tree-dump.c (dequeue_and_dump): Dump it.
2481 * tree-pretty-print.c (dump_generic_node): Likewise.
2482 * tree.c (block_may_fallthru): Handle it.
2483 * tree.def (EH_ELSE_EXPR): Introduce it.
2484 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
2485 with GIMPLE_EH_ELSE as try/finally/else.
2487 2019-07-04 Richard Biener <rguenther@suse.de>
2490 * tree-pass.h (execute_all_ipa_transforms): Add a flag
2491 parameter whether to disable GC collection.
2492 * passes.c (execute_one_ipa_transform_pass): Likewise, and
2494 (execute_all_ipa_transforms): Likewise and pass it down.
2495 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
2496 collection from applying IPA transforms.
2497 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
2498 from applying IPA transforms.
2500 2019-07-04 Richard Biener <rguenther@suse.de>
2502 PR tree-optimization/90911
2503 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
2504 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
2505 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
2506 scalar_loop_scaling.
2507 (vect_transform_loop): Scale scalar loop profile if needed.
2508 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
2509 the loop copy from if-conversion adjust edge probabilities
2510 and scale the vectorized loop body profile, queue the scalar
2511 profile for updating after peeling.
2513 2019-07-04 Jan Hubicka <jh@suse.cz>
2515 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
2516 parameters; return early for must-alias.
2517 (indirect_ref_may_alias_decl_p): Likewise; when establishing
2518 outer types match, try nonoverlapping_component_refs
2519 if must-alias is not obvious.
2520 (indirect_refs_may_alias_p): Likewise.
2521 (refs_may_alias_p_2): Likewise.
2523 2019-07-04 Richard Biener <rguenther@suse.de>
2525 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
2527 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
2529 (struct vn_walk_cb_data): New callback data struct.
2530 (vn_reference_lookup_2): Adjust.
2531 (vn_reference_lookup_3): Likewise.
2532 (vn_reference_lookup_pieces): Likewise.
2533 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
2534 (visit_reference_op_load): Adjust.
2536 2019-07-04 Jakub Jelinek <jakub@redhat.com>
2538 PR tree-optimization/91063
2539 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
2540 stmt from stmts sequence before calling vect_init_vector_1.
2543 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2546 * fwprop.c (reg_single_def_p): New function.
2547 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
2548 (forward_propagate_into): New parameter reg_prop_only
2549 with default value false.
2550 Propagate def's src into loop only if SET_SRC and SET_DEST
2551 of def_set have single definitions.
2552 Likewise if reg_prop_only is set to true.
2553 (fwprop): New param fwprop_addr_p.
2554 Integrate fwprop_addr into fwprop.
2555 (fwprop_addr): Remove.
2556 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
2558 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
2559 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
2560 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
2562 2019-07-04 Jakub Jelinek <jakub@redhat.com>
2564 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
2565 in worksharing loop scans.
2567 PR tree-optimization/91074
2568 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
2571 PR rtl-optimization/90756
2572 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
2575 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
2577 * config/aarch64/aarch64.md: Remove redundant constraints from
2578 define_expand but keep some patterns untouched if they are
2579 specially selected by TARGET_SECONDARY_RELOAD hook.
2580 * config/aarch64/aarch64-sve.md: Likewise.
2581 * config/aarch64/atomics.md: Remove redundant constraints from
2583 * config/aarch64/aarch64-simd.md: Likewise.
2585 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
2587 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
2588 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
2589 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
2591 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
2594 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
2596 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
2597 (STARTFILE_SPEC): Split crt3 into a separate spec.
2598 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
2599 (DARWIN_CRT2_SPEC): New.
2600 (DARWIN_CRT3_SPEC): New.
2601 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
2602 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
2603 (DARWIN_CRT3_SPEC): New.
2605 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
2607 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
2608 Change the RTL attribute "length" from "4" to "*" to allow the
2609 length attribute to be adjusted automatically for prefixed load,
2610 store, and add immediate instructions.
2611 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
2613 (extendsi<mode>2, EXTSI iterator): Likewise.
2614 (movsi_internal1): Likewise.
2615 (movsi_from_sf): Likewise.
2616 (movdi_from_sf_zero_ext): Likewise.
2617 (mov<mode>_internal): Likewise.
2618 (movcc_internal1, QHI iterator): Likewise.
2619 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
2620 (movsf_from_si): Likewise.
2621 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
2622 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
2623 (mov<mode>, FMOVE128 iterator): Likewise.
2624 (movdi_internal64): Likewise.
2625 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
2627 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
2628 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
2629 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
2630 (vsx_splat_v4sf): Likewise.
2632 2019-07-03 Mark Wielaard <mark@klomp.org>
2635 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
2636 DW_AT_addr_base if there is actually a .debug_addr section with
2638 (output_addr_table): Add DWARF5 table header generation here after
2639 checking there are actually any addresses from...
2640 (dwarf2out_finish): ...here.
2641 * testsuite/g++.dg/pr90981.C: New test.
2643 2019-07-03 Richard Biener <rguenther@suse.de>
2646 * match.pd (vec_perm -> bit_insert): Fix element read from
2649 2019-07-03 Martin Liska <mliska@suse.cz>
2651 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
2652 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
2654 * generic-match-head.c: Include dbgcnt.h.
2655 * gimple-match-head.c: Likewise.
2657 2019-07-03 Martin Liska <mliska@suse.cz>
2659 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
2660 (GCOV_COUNTER_V_TOPN): New.
2661 (GCOV_COUNTER_V_INDIR): Use _topn.
2662 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
2663 (GCOV_TOPN_VALUES): New.
2664 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
2665 (GCOV_TOPN_VALUES_COUNTERS): New.
2666 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
2668 (gimple_init_gcov_profiler): Rename variables from one_value
2670 (gimple_gen_one_value_profiler): Remove.
2671 (gimple_gen_topn_values_profiler): New function.
2672 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
2673 names instead of SINGLE_VALUE.
2674 (stream_out_histogram_value): Likewise.
2675 (stream_in_histogram_value): Likewise.
2676 (get_most_common_single_value): Likewise.
2677 (gimple_divmod_fixed_value_transform): Likewise.
2678 (gimple_stringops_transform): Likewise.
2679 (gimple_divmod_values_to_profile): Likewise.
2680 (gimple_stringops_values_to_profile): Likewise.
2681 (gimple_find_values_to_profile): Likewise.
2682 * value-prof.h (enum hist_type): Rename to TOPN.
2683 (gimple_gen_one_value_profiler): Remove.
2684 (gimple_gen_topn_values_profiler): New.
2686 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
2688 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
2689 if it has the DW_AT_data_member_location attribute.
2691 2019-07-03 Richard Biener <rguenther@suse.de>
2693 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
2696 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
2698 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
2699 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
2700 (tlsdesc_small_sve_<mode>): Likewise.
2702 2019-07-03 Martin Liska <mliska@suse.cz>
2704 * Makefile.in: Define ZSTD_LIB.
2705 * common.opt: Adjust compression level
2706 to support also zstd levels.
2707 * config.in: Regenerate.
2708 * configure: Likewise.
2709 * configure.ac: Add --with-zstd and --with-zstd-include options
2711 * doc/install.texi: Mention zstd dependency.
2712 * gcc.c: Print supported LTO compression algorithms.
2713 * lto-compress.c (lto_normalized_zstd_level): Likewise.
2714 (lto_compression_zstd): Likewise.
2715 (lto_uncompression_zstd): Likewise.
2716 (lto_end_compression): Dispatch in between zlib and zstd.
2717 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
2718 (lto_uncompression_zlib): Make it static.
2719 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
2720 * lto-section-in.c (lto_get_section_data): Pass info
2721 about used compression.
2722 * lto-streamer-out.c: By default use zstd when possible.
2723 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
2724 (TV_IPA_LTO_COMPRESS): Likewise for compression.
2726 2019-07-03 Martin Liska <mliska@suse.cz>
2728 * lto-section-in.c (lto_get_section_data): Add "lto" section.
2729 * lto-section-out.c (lto_destroy_simple_output_block): Never
2730 compress LTO_section_lto section.
2731 * lto-streamer-out.c (produce_asm): Do not set major_version
2733 (lto_output_toplevel_asms): Likewise.
2734 (produce_lto_section): New function.
2735 (lto_output): Call produce_lto_section.
2736 (lto_write_mode_table): Do not set major_version and
2738 (produce_asm_for_decls): Likewise.
2739 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
2741 (struct lto_header): Remove.
2742 (struct lto_section): New struct.
2743 (struct lto_simple_header): Do not inherit from lto_header.
2744 (struct lto_file_decl_data): Add lto_section_header field.
2746 2019-07-03 Martin Liska <mliska@suse.cz>
2748 * lra-eliminations.c (eliminate_regs_in_insn): Remove
2750 * reg-stack.c (check_asm_stack_operands): Likewise.
2751 * tree-ssa-structalias.c (create_function_info_for): Likewise.
2752 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
2753 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
2756 2019-07-03 Martin Liska <mliska@suse.cz>
2758 PR tree-optimization/90892
2759 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
2760 in string constants.
2762 2019-07-03 Martin Liska <mliska@suse.cz>
2765 * multiple_target.c (create_dispatcher_calls): Add to comdat
2766 group only if set for ifunc.
2768 2019-07-03 Martin Liska <mliska@suse.cz>
2771 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
2772 Define local_object_name in outer scope in order to handle
2773 use-after-scope issue.
2775 2019-07-03 Martin Liska <mliska@suse.cz>
2777 * common.opt: Add fprofile-note.
2778 * coverage.c (coverage_init): Append the option
2780 * doc/invoke.texi: Document -fprofile-note.
2782 2019-07-03 Jakub Jelinek <jakub@redhat.com>
2784 PR tree-optimization/91033
2785 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
2786 vect_analyze_data_refs): Add bool * arguments.
2787 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
2788 if failure is due to scatter/gather, set *fatal to false if non-NULL.
2789 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
2790 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
2791 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
2792 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
2793 vect_analyze_data_refs caller.
2795 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
2797 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
2798 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
2799 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
2800 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
2801 OMP_CLAUSE__SCANTEMP_ entry.
2802 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
2803 * tree-pretty-print.c (dump_omp_clause): Likewise.
2804 * tree-nested.c (convert_nonlocal_omp_clauses,
2805 convert_local_omp_clauses): Likewise.
2806 * omp-general.h (struct omp_for_data): Add have_scantemp and
2807 have_nonctrl_scantemp members.
2808 * omp-general.c (omp_extract_for_data): Initialize them.
2809 * omp-low.c (struct omp_context): Add scan_exclusive member.
2810 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
2811 result again with GF_OMP_FOR_KIND_MASK. Initialize also
2812 ctx->scan_exclusive.
2813 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
2814 of !ctx->scan_inclusive.
2815 (lower_rec_input_clauses): Simplify gimplification of dtors using
2816 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
2817 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
2818 loops. Don't add barrier for reduction_omp_orig_ref if
2819 ctx->scan_??xclusive.
2820 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
2821 (lower_omp_scan): Use ctx->scan_exclusive instead
2822 of !ctx->scan_inclusive. Handle worksharing loops with inscan
2823 reductions. Use new_vard != new_var instead of repeated
2824 omp_is_reference calls.
2825 (omp_find_scan, lower_omp_for_scan): New functions.
2826 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
2828 * omp-expand.c (expand_omp_scantemp_alloc): New function.
2829 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
2830 and fd->have_scantemp.
2832 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
2833 on worksharing loop propagate it as shared clause to containing
2836 * omp-expand.c (expand_omp_for_static_nochunk,
2837 expand_omp_for_static_chunk): For nowait worksharing loop with
2838 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
2841 2019-07-02 Joern Rennecke <joern.rennecke@riscy-ip.com>
2844 * testsuite/gcc.dg/plugin/start_unit_plugin.c: Register a root tab
2845 to reference fake_var.
2847 2019-07-02 qing zhao <qing.zhao@oracle.com>
2849 PR preprocessor/90581
2850 * doc/cppopts.texi: Add document for -fmax-include-depth.
2851 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
2853 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
2855 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
2856 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
2857 (mmx_packssdw): Ditto.
2858 (mmx_punpckhbw): Ditto.
2859 (mmx_punpcklbw): Ditto.
2860 (mmx_punpckhwd): Ditto.
2861 (mmx_punpcklwd): Ditto.
2862 (mmx_punpckhdq): Ditto.
2863 (mmx_punpckldq): Ditto.
2864 (*vec_dupv4hi): Ditto.
2865 (*vec_dupv2si): Ditto.
2866 (mmx_pmovmskb): Ditto.
2867 * config/i386/sse.md (sse_cvtpi2ps): Use
2868 TARGET_SSE2 && SSE_REG_P in split condition.
2869 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
2870 TARGET_SSSE3 && SSE_REGNO_P in split condition.
2871 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
2872 (ssse3_pshufbv8qi3): Ditto.
2873 (ssse3_palignrdi): Ditto.
2875 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
2877 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
2878 with inlined save and restore.
2880 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
2882 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
2883 to be inserted on single successor edge of the entry block. Then call
2884 commit_edge_insertions instead of inserting the instructions manually.
2885 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
2886 RTL expansion and rebuild jump labels chain.
2888 2019-07-02 Richard Biener <rguenther@suse.de>
2890 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
2892 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
2894 * tree.c (build_common_tree_nodes): Initialize them.
2895 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
2896 Make declarations comments.
2897 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
2898 chrec_known): Remove definitions.
2899 (initialize_scalar_evolutions_analyzer): Remove.
2900 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
2901 * tree-streamer.c (preload_common_nodes): Do not preload
2902 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
2904 2019-07-02 Jan Hubicka <jh@suse.cz>
2906 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
2909 2019-07-02 Jan Hubicka <jh@suse.cz>
2911 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
2913 (nonoverlapping_component_refs_since_match_p): ... this one;
2914 handle also non-decl bases; return -1 if search gave up.
2915 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
2916 nonoverlapping_component_refs_of_decl_p_no_alias to
2917 nonoverlapping_component_refs_since_match_p_may_alias,
2918 nonoverlapping_component_refs_since_match_p_no_alias.
2919 (dump_alias_stats): Update dumping.
2920 (aliasing_matching_component_refs_p): Break out from ...;
2921 dispatch to nonoverlapping_component_refs_for_decl_p
2922 and nonoverlapping_component_refs_since_match_p.
2923 (aliasing_component_refs_p): ... here; call
2924 nonoverlapping_component_refs_p in scenarios where we can not
2925 precisely determine base match.
2926 (decl_refs_may_alias_p): Use
2927 nonoverlapping_component_refs_since_match_p.
2928 (indirect_ref_may_alias_decl_p): Do not call
2929 nonoverlapping_component_refs_p.
2930 (indirect_refs_may_alias_p): Likewise.
2932 2019-07-02 Jan Hubicka <jh@suse.cz>
2934 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
2935 to clobber of return value.
2937 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2939 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
2940 for is_neon_type instructions that have not already been categorized.
2942 2019-07-02 Richard Biener <rguenther@suse.de>
2944 PR tree-optimization/58483
2945 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
2946 for MEM_REF base hashing.
2947 (equal_mem_array_ref_p): Likewise for base comparison.
2949 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
2951 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
2953 (signbit<mode>2): Use that name. Simplify.
2955 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
2958 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
2959 Tune heuristic from PR71016 to allow MIN / MAX.
2960 * testsuite/gcc.dg/tree-ssa/pr66726-4.c: New testcase.
2962 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
2964 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
2966 (abs<mode>2): Use that name. Simplify.
2968 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
2970 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
2972 (neg<mode>2): Use that name. Simplify.
2974 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
2976 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
2978 (abs<mode>2): Use that name. Simplify.
2980 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
2982 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
2984 (neg<mode>2): Use that name. Simplify.
2986 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
2988 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
2989 ("enabled" attribute): Handle sse_noavx isa attribute.
2990 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
2991 Use TARGET_SSE && SSE_REGNO_P in split condition.
2992 (*vec_dupv2sf): Ditto.
2994 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
2996 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
2998 (floatsi<mode>2): Use that name. Simplify.
3000 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
3002 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
3004 (extenddf<mode>2_vsx): Make this a parameterized name.
3005 (extenddf<mode>2): Use those names. Simplify.
3007 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
3009 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
3011 (eh_return): Use that name. Simplify.
3013 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
3015 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
3016 (doloop_end): Use that name. Simplify.
3018 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
3020 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
3022 (indirect_jump): Use that name. Simplify.
3024 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
3026 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
3028 (abs<mode>2): Use that name. Simplify.
3030 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
3032 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
3034 (fix_trunc<mode>si2): Use that name. Simplify.
3036 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
3038 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
3039 (allocate_stack): Use that name. Simplify.
3041 2019-07-01 Martin Sebor <msebor@redhat.com>
3044 * hash-map.h (hash_map::put): On insertion invoke element ctor.
3045 (hash_map::get_or_insert): Same. Reformat comment.
3046 * hash-set.h (hash_set::add): On insertion invoke element ctor.
3047 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
3048 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
3049 * hash-table.h (hash_table::operator=): Prevent copy assignment.
3050 (hash_table::hash_table (const hash_table&)): Use copy ctor
3051 instead of assignment to copy elements.
3053 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
3054 John David Anglin <danglin@gcc.gnu.org>
3057 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
3058 using saved frame pointer.
3060 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
3063 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
3064 Add frame clobber and schedule blockage.
3066 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
3068 * doc/invoke.texi (Link Options): Further editorial changes to
3069 -flinker-output docs.
3071 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
3073 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
3074 Load both operands of a PLUS into registers separately.
3076 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
3078 * config/s390/vector.md: Fix shift count operand printing.
3080 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
3082 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
3084 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
3086 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
3087 Use recog_data to test for an output operand.
3089 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
3091 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
3092 exclude any others that are disparaged or that are bound to need
3094 (ira_get_dup_out_num): Expand comment.
3096 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
3098 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
3099 constraint string for each operand/alternative combo. Only handle
3100 '%' at the start of constraint strings, and look for it outside
3103 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
3105 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
3106 alternative_mask instead of HARD_REG_SET to represent a
3107 bitmask of alternatives.
3108 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
3109 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
3111 2019-07-01 Martin Liska <mliska@suse.cz>
3113 * edit-context.c (test_applying_fixits_unreadable_file): Do not
3114 use () for a constructor call.
3115 (test_applying_fixits_line_out_of_range): Likewise.
3116 * ggc-page.c (alloc_page): Use (void *) for %p printf format
3118 (free_page): Likewise.
3120 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
3122 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
3123 parameter names to match usage (no functional change).
3124 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
3126 2019-07-01 Richard Biener <rguenther@suse.de>
3128 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
3130 (pass_fre::execute): Honor it.
3131 * passes.def: Adjust pass_fre invocations to allow iterating,
3132 add non-iterating pass_fre before late threading/dom.
3134 2019-07-01 Richard Biener <rguenther@suse.de>
3136 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
3137 TARGET_MEM_REF handling to also handle address-taken ones.
3139 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
3141 * doc/sourcebuild.texi (Effective-Target Keywords, Other
3142 hardware attributes): Document avx512vp2intersect.
3144 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
3146 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
3147 (abs<mode>2): New expander.
3148 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
3149 Use CODE_FOR_ssse3_absv8qi2.
3150 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
3151 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
3153 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
3155 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
3156 to sse, sse_noavx and avx. Update all uses.
3158 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
3160 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
3161 (*mmx_<plusminus_insn><mode>3): Ditto.
3162 (*mmx_mulv4hi3"): Ditto.
3163 (*mmx_smulv4hi3_highpart): Ditto.
3164 (*mmx_umulv4hi3_highpart): Ditto.
3165 (*mmx_pmaddwd): Ditto.
3166 (*sse2_umulv1siv1di3): Ditto.
3167 (*mmx_<code>v4hi3): Ditto.
3168 (*mmx_<code>v8qi3): Ditto.
3169 (mmx_ashr<mode>3): Ditto.
3170 ("mmx_<shift_insn><mode>3): Ditto.
3171 (*mmx_eq<mode>3): Ditto.
3172 (mmx_gt<mode>3): Ditto.
3173 (mmx_andnot<mode>3): Ditto.
3174 (*mmx_<code><mode>3): Ditto.
3175 (*mmx_pinsrw): Ditto.
3176 (*mmx_pextrw): Ditto.
3177 (mmx_pshufw_1): Ditto.
3178 (*mmx_uavgv8qi3): Ditto.
3179 (*mmx_uavgv4hi3): Ditto.
3180 ("mmx_psadbw): Ditto.
3181 * config/i386/sse.md (sse_cvtps2pi): Ditto.
3182 (sse_cvttps2pi): Ditto.
3183 (ssse3_pmaddubsw): Ditto.
3184 (*ssse3_pmulhrswv4hi3): Ditto.
3185 (ssse3_psign<mode>3): Ditto.
3187 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
3189 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
3190 adjustment for bit-fields to all aggregate types.
3192 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
3194 * config/rs6000/predicates.md (pcrel_address): Use
3195 SYMBOL_REF_LOCAL_P to determine if a label is local.
3196 (pcrel_external_address): New predicate.
3197 (non_prefixed_mem_operand): Delete, predicate not used.
3198 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
3199 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
3201 (SYMBOL_REF_PCREL_P): Likewise.
3204 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
3206 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
3207 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
3208 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
3210 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
3212 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
3213 override on extra_headers.
3215 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
3217 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
3218 * config/darwin-driver.c (darwin_default_min_version): Remove newline
3220 (darwin_driver_init): Likewise.
3222 2019-06-28 Jan Beulich <jbeulich@suse.com>
3224 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
3225 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
3226 Eliminate redundant alternative.
3228 2019-06-28 Jan Beulich <jbeulich@suse.com>
3230 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
3231 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
3234 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
3236 * config/arc/arc.c (arc_rtx_costs): All short instructions are
3237 having a lower cost regardless of the speed option.
3239 2019-06-28 Jan Beulich <jbeulich@suse.com>
3241 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
3242 vector_operand plus, on both alternatives, "Bm" constraint.
3244 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
3246 * config/arm/arm.md: Remove redundant constraints from
3247 define_expand but leave reload_inm and reload_outm patterns
3248 untouched since they need special constraints to work.
3249 * config/arm/arm-fixed.md: Remove redundant constraints from
3251 * config/arm/iwmmxt.md: Likewise.
3252 * config/arm/neon.md: Likewise.
3253 * config/arm/sync.md: Likewise.
3254 * config/arm/thumb1.md: Likewise.
3255 * config/arm/vec-common.md: Likewise.
3257 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
3259 * doc/install.texi: Document --disable-tm-clone-registry.
3261 2019-06-27 Jakub Jelinek <jakub@redhat.com>
3264 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
3267 PR tree-optimization/91010
3268 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
3269 return true. Otherwise, don't call operand_equal_p if offset1 or
3270 offset2 is NULL and just return false.
3272 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
3274 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
3275 user-specified float mode choice for kernel mode code.
3277 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
3279 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
3282 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
3284 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
3285 use longcall for 64b code.
3287 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
3289 * builtins.c (get_memory_rtx): Fix comment.
3290 * optabs.def (movmem_optab): Change to cpymem_optab.
3291 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
3292 (emit_block_move_hints): Change movmem to cpymem.
3293 * defaults.h: Change movmem to cpymem.
3294 * targhooks.c (get_move_ratio): Change movmem to cpymem.
3295 (default_use_by_pieces_infrastructure_p): Ditto.
3296 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
3297 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
3299 * config/aarch64/aarch64.h: Change movmem to cpymem.
3300 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
3301 * config/alpha/alpha.h: Change movmem to cpymem in comment.
3302 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
3304 * config/arc/arc-protos.h: Change movmem to cpymem.
3305 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
3306 * config/arc/arc.h: Change movmem to cpymem in comment.
3307 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
3308 * config/arm/arm-protos.h: Change movmem to cpymem in names.
3309 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
3310 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
3311 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
3312 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
3313 * config/avr/avr-protos.h: Change movmem to cpymem.
3314 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
3315 avr_out_movmem): Change movmem to cpymem.
3316 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
3317 Change movmem to cpymem.
3318 * config/bfin/bfin-protos.h: Change movmem to cpymem.
3319 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
3320 Change movmem to cpymem.
3321 * config/bfin/bfin.h: Change movmem to cpymem in comment.
3322 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
3323 * config/c6x/c6x-protos.h: Change movmem to cpymem.
3324 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
3325 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
3326 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
3327 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
3328 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
3329 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
3330 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
3331 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
3332 expand_small_cpymem_or_setmem,
3333 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
3334 expand_set_or_cpymem_constant_prologue,
3335 ix86_expand_set_or_cpymem): Change movmem to cpymem.
3336 * config/i386/i386-protos.h: Change movmem to cpymem.
3337 * config/i386/i386.h: Change movmem to cpymem in comment.
3338 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
3339 (setmem<mode>): Change expansion function name.
3340 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
3341 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
3342 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
3343 * config/m32c/m32c-protos.h: Change movmem to cpymem.
3344 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
3345 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
3346 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
3348 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
3349 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
3350 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
3351 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
3352 Change movmem to cpymem.
3353 * config/mips/mips.h: Change movmem to cpymem.
3354 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
3355 * config/nds32/nds32-memory-manipulation.c
3356 (nds32_expand_movmemsi_loop_unknown_size,
3357 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
3358 nds32_expand_movmemsi_unroll,
3359 nds32_expand_movmemsi): Change movmem to cpymem.
3360 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
3361 * config/nds32/nds32-protos.h: Change movmem to cpymem.
3362 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
3363 (pa_adjust_insn_length): Change call to compute_movmem_length.
3364 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
3365 movmemdi, movmemdi_prereload,
3366 movmemdi_postreload): Change movmem to cpymem.
3367 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
3368 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
3369 * config/riscv/riscv.c: Change movmem to cpymem in comment.
3370 * config/riscv/riscv.h: Change movmem to cpymem.
3371 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
3372 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
3373 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
3375 * config/s390/s390-protos.h: Change movmem to cpymem.
3376 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
3377 s390_expand_insv): Change movmem to cpymem.
3378 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
3379 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
3380 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
3381 * config/sparc/sparc.h: Change movmem to cpymem in comment.
3382 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
3383 for nonexistent function.
3384 * config/vax/vax.h: Change movmem to cpymem in comment.
3385 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
3386 * config/visium/visium.h: Change movmem to cpymem in comment.
3387 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
3388 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
3389 * doc/md.texi: Change movmem to cpymem and update description to match.
3390 * doc/rtl.texi: Change movmem to cpymem.
3391 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
3392 * doc/tm.texi: Regenerate.
3394 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
3396 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
3397 -fvariable-expansion-in-unroller by default.
3398 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
3401 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
3404 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
3405 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
3407 * config.gcc(rs6000-*-*): Define target_gtfiles.
3409 2019-06-27 Jan Hubicka <jh@suse.cz>
3411 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
3412 (add_type_duplicate): When odr hash is not allocated, to nothing.
3413 (odr_based_tbaa_p): New function.
3414 (set_type_canonical_for_odr_type): New function.
3415 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
3416 set_type_canonical_for_odr_type): New.
3417 * tree.c (gimple_canonical_types_compatible_p): ODR types with
3418 ODR based TBAA are not equivalent to non-ODR types.
3420 2019-06-27 Martin Liska <mliska@suse.cz>
3422 PR tree-optimization/90974
3423 PR rtl-optimization/90975
3424 PR rtl-optimization/90976
3426 PR tree-optimization/91017
3427 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
3429 * lra.c (lra_set_insn_recog_data): Remove a leftover from
3430 initial commit of IRA.
3431 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
3433 * tree-vect-loop.c (vect_create_epilog_for_reduction):
3434 Remove unused mode1.
3435 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
3438 2019-06-27 Jakub Jelinek <jakub@redhat.com>
3441 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
3442 instead of register_operand for operands[1], add m to its constraints
3443 if operands[2] uses "C" constraint. Ensure in condition that if
3444 operands[2] is not 0, then operands[1] is not a MEM. For last two
3445 alternatives, use unaligned loads instead of aligned if operands[1] is
3448 2019-06-27 Martin Liska <mliska@suse.cz>
3450 * asan.c (asan_emit_allocas_unpoison): Remove obviously
3452 * bt-load.c (move_btr_def): Likewise.
3453 * builtins.c (expand_builtin_apply_args_1): Likewise.
3454 (expand_builtin_apply): Likewise.
3455 * cfgexpand.c (expand_asm_stmt): Likewise.
3456 (construct_init_block): Likewise.
3457 * cfghooks.c (verify_flow_info): Likewise.
3458 * cfgloopmanip.c (remove_path): Likewise.
3459 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
3460 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
3461 * combine.c (simplify_if_then_else): Likewise.
3462 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
3463 (choose_basereg): Likewise.
3464 (ix86_expand_prologue): Likewise.
3465 (ix86_preferred_output_reload_class): Likewise.
3466 * cselib.c (cselib_record_sets): Likewise.
3467 * df-scan.c (df_scan_alloc): Likewise.
3468 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
3469 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
3470 * emit-rtl.c (try_split): Likewise.
3471 * graphite-scop-detection.c (assign_parameter_index_in_region):
3473 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
3474 * ira-color.c (setup_profitable_hard_regs): Likewise.
3475 * ira.c (rtx_moveable_p): Likewise.
3476 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
3477 * read-rtl.c (read_subst_mapping): Likewise.
3478 * regrename.c (scan_rtx): Likewise.
3479 * reorg.c (fill_slots_from_thread): Likewise.
3480 * tree-inline.c (tree_function_versioning): Likewise.
3481 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
3482 * tree-ssa-sink.c (statement_sink_location): Likewise.
3483 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
3484 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
3485 (vect_create_epilog_for_reduction): Likewise.
3486 * tree.c (build_nonstandard_integer_type): Likewise.
3488 2019-06-27 Richard Biener <rguenther@suse.de>
3490 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
3492 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
3494 PR tree-optimization/89772
3495 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
3496 out-of-bound accesses checking.
3498 2019-06-27 Martin Liska <mliska@suse.cz>
3500 PR tree-optimization/91014
3501 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
3502 when LHS is NULL_TREE.
3504 2019-06-27 Martin Liska <mliska@suse.cz>
3506 * symbol-summary.h (traverse): Pass
3507 argument a to the call of callback.
3508 (gt_ggc_mx): Mark arguments as unused.
3509 (gt_pch_nx): Likewise.
3511 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
3514 * gcc/loop-iv.c (find_simple_exit): Call finite_loop_p to update
3517 2019-06-26 Jeff Law <law@redhat.com>
3519 PR tree-optimization/90883
3520 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
3521 (delete_dead_or_redundant_assignment): Likewise.
3523 PR tree-optimization/90883
3524 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
3525 * tree-ssa-dse.c: Update various comments to distinguish between
3526 dead and redundant stores.
3527 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
3528 (dse_optimize_redundant_stores): New function.
3529 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
3530 Distinguish between dead and redundant calls in dump output. All
3532 (delete_dead_or_redundant_assignment): Similarly for assignments.
3533 (dse_optimize_stmt): Handle _CHK variants. For statements which
3534 store 0 into multiple memory locations, try to prove a subsequent
3537 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
3540 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
3541 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
3543 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
3545 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
3546 (branch_islands): New extern.
3547 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
3548 * config/rs6000/rs6000.c: .. here.
3550 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
3552 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
3553 (powerpc*-*-*) ... to here.
3555 2019-06-26 Jeff Law <law@redhat.com>
3557 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
3558 memcpy, memmove and memset builtins.
3559 (maybe_trim_memstar_call): Likewise.
3561 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
3563 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
3565 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
3567 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
3569 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
3571 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
3573 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
3575 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
3578 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
3580 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
3582 2019-06-26 Richard Biener <rguenther@suse.de>
3585 * tree-inline.c (remap_ssa_name): Copy SSA range info.
3587 2019-06-26 Richard Biener <rguenther@suse.de>
3589 * lto-streamer.h (lto_bitmap_alloc): Remove.
3590 (lto_bitmap_free): Likewise.
3591 * lto-streamer.c (lto_bitmap_alloc): Remove.
3592 (lto_bitmap_free): Likewise.
3593 (lto_obstack): Likewise.
3594 (lto_obstack_initialized): Likewise.
3595 * lto-streamer-out.c (lto_output): Use own obstack for local
3596 bitmap, free it consistently.
3598 2019-06-26 Jakub Jelinek <jakub@redhat.com>
3601 * config/i386/sse.md
3602 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
3603 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
3604 insns if operands[2] is misaligned_operand.
3606 2019-06-26 Li Jia He <helijia@linux.ibm.com>
3608 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
3610 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
3613 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
3615 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
3617 2019-06-26 Martin Liska <mliska@suse.cz>
3619 PR tree-optimization/90973
3620 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
3621 epilogue_cost_vec instead of prologue_cost_vec for
3624 2019-06-26 Martin Liska <mliska@suse.cz>
3626 * bb-reorder.c (connect_better_edge_p): Add missing else
3627 statement in the middle of if-else statements.
3629 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
3630 H.J. Lu <hongjiu.lu@intel.com>
3631 Olga Makhotina <olga.makhotina@intel.com>
3633 * common/config/i386/i386-common.c
3634 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
3635 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
3636 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
3637 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
3638 (ix86_handle_option): Handle -mavx512vp2intersect.
3639 * config/i386/avx512vp2intersectintrin.h: New.
3640 * config/i386/avx512vp2intersectvlintrin.h: New.
3641 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
3642 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3644 * config/i386/i386-builtin-types.def: Add new types.
3645 * config/i386/i386-builtin.def: Add new builtins.
3646 * config/i386/i386-builtins.c: (enum processor_features): Add
3647 F_AVX512VP2INTERSECT.
3648 (static const _isa_names_table isa_names_table): Ditto.
3649 * config/i386/i386-c.c (ix86_target_macros_internal): Define
3650 __AVX512VP2INTERSECT__.
3651 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
3652 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
3653 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
3654 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
3655 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
3656 * config/i386/i386-options.c (ix86_target_string): Add
3657 -mavx512vp2intersect.
3658 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
3659 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
3660 P2HImode and P2QImode.
3661 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
3662 number for P2QImode and P2HImode.
3663 (ix86_regmode_natural_size): New function.
3664 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
3665 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
3666 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
3667 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
3668 * config/i386/i386.opt: Add -mavx512vp2intersect.
3669 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
3670 avx512vp2intersectvlintrin.h.
3671 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
3672 (define_mode_iterator VI48_AVX512VP2VL): New.
3673 (avx512vp2intersect_2intersect<mode>,
3674 avx512vp2intersect_2intersectv16si): New define_insn patterns.
3675 * config.gcc: Add avx512vp2intersectvlintrin.h and
3676 avx512vp2intersectintrin.h to extra_headers.
3677 * doc/invoke.texi: Document -mavx512vp2intersect.
3679 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
3681 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
3683 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
3685 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
3686 savres_routine_syms, savres_routine_name, morestack_ref,
3687 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
3688 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
3689 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
3690 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
3691 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
3692 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
3693 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
3694 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
3695 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
3696 get_stack_clash_protection_probe_interval,
3697 get_stack_clash_protection_guard_size,
3698 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
3699 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
3700 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
3701 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
3702 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
3703 gen_frame_mem_offset, rs6000_savres_routine_name,
3704 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
3705 ptr_regno_for_savres, rs6000_emit_savres_rtx,
3706 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
3707 rs6000_global_entry_point_prologue_needed_p,
3708 rs6000_get_separate_components, rs6000_components_for_bb,
3709 rs6000_disqualify_components, rs6000_emit_prologue_components,
3710 rs6000_emit_epilogue_components, rs6000_set_handled_components,
3711 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
3712 rs6000_output_savres_externs, rs6000_output_function_prologue,
3713 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
3714 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
3715 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
3716 rs6000_output_function_epilogue, gen_add3_const,
3717 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
3718 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
3720 (machine_function): Moved to rs6000.h.
3721 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
3723 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
3724 savres_routine_syms, savres_routine_name, morestack_ref,
3725 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
3726 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
3727 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
3728 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
3729 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
3730 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
3731 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
3732 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
3733 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
3734 get_stack_clash_protection_probe_interval,
3735 get_stack_clash_protection_guard_size,
3736 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
3737 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
3738 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
3739 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
3740 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
3741 gen_frame_mem_offset, rs6000_savres_routine_name,
3742 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
3743 ptr_regno_for_savres, rs6000_emit_savres_rtx,
3744 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
3745 rs6000_global_entry_point_prologue_needed_p,
3746 rs6000_get_separate_components, rs6000_components_for_bb,
3747 rs6000_disqualify_components, rs6000_emit_prologue_components,
3748 rs6000_emit_epilogue_components, rs6000_set_handled_components,
3749 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
3750 rs6000_output_savres_externs, rs6000_output_function_prologue,
3751 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
3752 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
3753 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
3754 rs6000_output_function_epilogue, gen_add3_const,
3755 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
3756 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
3757 to here from rs6000.c.
3758 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
3759 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
3760 quad_address_offset_p) Moved to here from rs6000.c.
3761 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
3762 * config/config.gcc: Add new source file rs6000-logue.c to garbage
3765 2019-06-25 Martin Liska <mliska@suse.cz>
3767 * hash-table.c (hashtab_chk_error): Move here from ...
3768 * hash-table.h (hashtab_chk_error): ... here.
3770 2019-06-25 Martin Liska <mliska@suse.cz>
3772 PR tree-optimization/90978
3773 * df-scan.c (df_update_entry_block_defs): Remove dead else
3775 (df_update_exit_block_uses): Likewise.
3777 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
3778 Andrew Stubbs <ams@codesourcery.com>
3780 * config.gcc (thread_file): Set to gcn for AMD GCN.
3781 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
3782 (TARGET_EMUTLS_VAR_INIT): New hook.
3784 2019-06-25 Martin Jambor <mjambor@suse.cz>
3787 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
3789 2019-06-25 Richard Biener <rguenther@suse.de>
3791 PR tree-optimization/90930
3792 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
3793 into parallel form in the last pass instance.
3795 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
3797 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
3798 (arc_legitimize_pic_address): Simplify and cleanup the function.
3799 (SYMBOLIC_CONST): Remove.
3800 (prepare_pic_move): Likewise.
3801 (prepare_move_operands): Handle complex mov cases here.
3802 (arc_legitimize_address_0): Remove call to
3803 arc_legitimize_pic_address.
3804 (arc_legitimize_address): Remove call to
3805 arc_legitimize_tls_address.
3806 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
3807 (movhi_insn): Likewise.
3809 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3811 * gcc/c-family/c-common.c (c_common_nodes_and_builtins): Define
3812 alternate "__intN__" name for "__intN" types.
3813 * gcc/c/c-parser.c (c_parse_init): Create keyword for "__intN__" type.
3814 * gcc/cp/lex.c (init_reswords): Likewise.
3815 * gcc/config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
3817 * gcc/cp/cp-tree.h (cp_decl_specifier_seq): New bitfield "int_n_alt".
3818 * gcc/c/c-decl.c (declspecs_add_type): Don't pedwarn about "__intN" ISO
3819 C incompatibility if alternate "__intN__" form is used.
3820 * gcc/cp/decl.c (grokdeclarator): Likewise.
3821 * gcc/cp/parser.c (cp_parser_simple_type_specifier): Set
3822 decl_specs->int_n_alt if "__intN__" form is used.
3823 * gcc/gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
3824 format of "__intN" types for UINTMAX_TYPE.
3825 * gcc/brig/brig-lang.c (brig_build_c_type_nodes): Accept "__intN__"
3826 format of "__intN" types for SIZE_TYPE.
3827 * gcc/lto/lto-lang.c (lto_build_c_type_nodes): Likewise.
3828 * gcc/stor-layout.c (initialize_sizetypes): Accept "__intN__"
3829 format of "__intN" types for SIZETYPE.
3830 * gcc/tree.c (build_common_tree_nodes): Accept "__intN__"
3831 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
3832 * gcc/doc/invoke.texi: Document that __intN__ disables pedantic
3835 2019-06-25 Jan Hubicka <jh@suse.cz>
3837 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
3838 base2_alias_set is non-zero before doing TBAA based disambiguation.
3840 2019-06-25 Martin Liska <mliska@suse.cz>
3842 PR tree-optimization/90973
3843 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
3844 of prologue and epilogue.
3846 2019-06-24 Jan Hubicka <jh@suse.cz>
3848 * ipa-utils.h (type_with_linkage_p): Verify that type is
3850 (odr_type_p): Remove extra return.
3851 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
3852 hash STRING_FLAG only for arrays and integers.
3853 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
3855 * tree-streamer-out.c (pack_ts_type_common_value_fields):
3857 * print-tree.c (print_node): Print cxx-odr-p
3859 * tree.c (need_assembler_name_p): Also check that type
3861 (verify_type_variant): Update verification of SRING_FLAG;
3862 also check CXX_ODR_P.
3863 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
3864 (TYPE_STRING_FLAG): Use it.
3865 (TYPE_CXX_ODR_P): New macro.
3866 * dwarf2out.c (gen_array_type_die): First check that type
3867 is an array and then test string flag.
3869 2019-06-24 Richard Biener <rguenther@suse.de>
3871 PR tree-optimization/90972
3872 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
3873 in common code, dealing with STRING_CST properly.
3875 2019-06-24 Richard Biener <rguenther@suse.de>
3877 PR tree-optimization/90930
3878 PR tree-optimization/90316
3879 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
3882 2019-06-24 Martin Sebor <msebor@redhat.com>
3884 * tree-pretty-print.h: Remove unnecessary punctuation characters
3886 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
3888 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
3890 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
3891 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
3892 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
3894 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
3896 * config/rs6000/darwin.h: Handle GCC target pragma.
3898 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
3900 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
3902 2019-06-22 Jeff Law <law@redhat.com>
3904 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
3906 2019-06-22 Jan Hubicka <jh@suse.cz>
3908 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
3909 give up on bitfields; continue searching for different refs
3912 2019-06-21 Jakub Jelinek <jakub@redhat.com>
3914 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
3915 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
3916 containing the offset as possible simd lane access. Look through
3917 widening conversion. Move the
3918 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
3920 2019-06-21 Richard Biener <rguenther@suse.de>
3922 PR tree-optimization/90930
3923 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
3924 flag on new stmts to avoid re-processing them.
3926 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
3928 PR c++/90875 - added -Wswitch-outside-range option
3929 * doc/invoke.texi (Wswitch-outside-range): Document.
3931 2019-06-21 Jeff Law <law@redhat.com>
3933 PR tree-optimization/90949
3934 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
3935 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
3937 2019-06-21 Richard Biener <rguenther@suse.de>
3940 * dwarf2out.c (prune_unused_types_walk): Always consider
3941 function-local extern declarations as used.
3943 2019-06-21 Richard Biener <rguenther@suse.de>
3945 PR tree-optimization/90913
3946 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
3947 the scalar variant of if-conversion versioning.
3949 2019-06-21 Jakub Jelinek <jakub@redhat.com>
3951 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
3952 create another "omp scan inscan exclusive" array if
3953 !ctx->scan_inclusive.
3954 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
3955 (lower_omp_scan): Likewise.
3956 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
3957 2-bit bitfield for simd_lane_access_p member.
3958 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
3959 aux == (void *)-4 as simd lane access.
3960 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
3961 comment with permutations to show the canonical permutation order.
3962 (vectorizable_scan_store): Handle exclusive scan.
3963 (vectorizable_store): Call vectorizable_scan_store even for
3964 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
3966 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
3967 "omp simd array" arrays with one byte elements.
3969 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
3971 * config/alpha/alpha.md (@unaligned_store<mode>):
3972 Rename from unaligned_store<mode>.
3973 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
3974 * config/alpha/sync.md (@load_locked_<mode>): Rename
3975 from load_locked_<mode>.
3976 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
3977 (@atomic_compare_and_swap<mode>_1): Rename
3978 from atomic_compare_and_swap<mode>_1.
3979 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
3980 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
3981 Use gen_reload_in_aligned and gen_unaligned_store.
3982 (emit_load_locked): Remove.
3983 (emit_store_conditional): Ditto.
3984 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
3985 (alpha_split_compare_and_swap): Ditto.
3986 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
3987 (alpha_split_compare_and_swap_12): Use gen_load_locked
3988 and gen_store_conditional.
3989 (alpha_split_atomic_exchange): Ditto.
3990 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
3991 (alpha_split_atomic_exchange_12): Use gen_load_locked
3992 and gen_store_conditional.
3994 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
3996 * config/aarch64/aarch64-errata.h: New file.
3997 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
3998 (CA53_ERR_843419_SPEC): Delete.
3999 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
4000 * config/aarch64/aarch64-linux.h: Likewise.
4001 * config/aarch64/aarch64-netbsd.h: Likewise.
4002 * config/aarch64/aarch64-freebsd.h: Likewise.
4004 2019-06-20 Marek Polacek <polacek@redhat.com>
4006 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
4008 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
4010 * config/rs6000/rs6000.md (isa attribute): Add support for
4011 for a future processor.
4013 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
4016 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
4017 standard scalar operation pattern for V2DF.
4018 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
4019 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
4020 (*ieee_<ieee_maxmin><mode>3): Likewise.
4021 (vec_setv2df_0): Likewise.
4023 2019-06-20 Jan Hubicka <jh@suse.cz>
4025 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
4026 parameter; it has no use in gimple memory model.
4027 (indirect_ref_may_alias_decl_p): Update.
4029 2019-06-20 Martin Liska <mliska@suse.cz>
4031 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
4034 2019-06-20 Jakub Jelinek <jakub@redhat.com>
4036 * tree-vect-stmts.c (enum scan_store_kind): New type.
4037 (scan_store_can_perm_p): Change last argument from int * to
4038 vec<enum scan_store_kind> *, record precisely which permutations
4039 need whole vector left shift or that plus VEC_COND_EXPR.
4040 (vectorizable_scan_store): Adjust caller, use whole vector left shift
4041 and additional VEC_COND_EXPR only for those iterations that need it.
4043 2019-06-20 Alexandre Oliva <oliva@adacore.com>
4045 * config.gcc: Fix ARM --with-fpu checking and error message.
4047 2019-06-19 Marek Polacek <polacek@redhat.com>
4049 PR c++/60364 - noreturn after first decl not diagnosed.
4050 * attribs.c (get_attribute_namespace): No longer static.
4051 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
4053 (attr_noreturn_exclusions): Make it extern.
4054 * attribs.h (get_attribute_namespace): Declare.
4055 * tree-inline.c (function_attribute_inlinable_p): Use
4058 2019-06-19 Martin Sebor <msebor@redhat.com>
4060 PR tree-optimization/90626
4061 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
4063 PR tree-optimization/90626
4064 * tree-ssa-strlen.c (strxcmp_unequal): New function.
4065 (handle_builtin_string_cmp): Call it.
4067 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
4069 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
4070 and DARWIN_NOPIE_SPEC.
4071 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
4072 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
4073 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
4074 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
4075 (DARWIN_EXPORT_DYNAMIC): Delete.
4076 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
4077 and pie options processing to darwin.h.
4078 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
4080 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
4082 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
4083 in computing the number of options to be moved.
4085 2019-06-19 Maya Rashish <coypu@sdf.org>
4087 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
4088 (CLEAR_INSN_CACHE) Use it.
4090 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
4092 * config/i386/i386.md (cmpstrnsi): Remove dead code.
4094 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
4097 * builtins.c (expand_builtin_setjmp_setup): Save
4098 hard_frame_pointer_rtx.
4099 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
4101 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
4103 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
4105 (remove_reg_equal_offset_note): Remove unused function.
4106 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
4108 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
4109 (arc_builtin_setjmp_frame_value): Remove function.
4110 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
4111 (avr_builtin_setjmp_frame_value): Remove function.
4112 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
4113 (ix86_builtin_setjmp_frame_value): Remove function.
4114 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
4115 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
4116 (sparc_builtin_setjmp_frame_value): Remove function.
4117 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
4118 (vax_builtin_setjmp_frame_value): Remove function.
4119 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
4120 pointer if has_nonlocal_label.
4122 2019-06-19 Jakub Jelinek <jakub@redhat.com>
4124 * doc/md.texi: Document vec_shl_<mode> pattern.
4125 * optabs.def (vec_shl_optab): New optab.
4126 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
4127 argument, if == vec_shl_optab, check for left whole vector shift
4128 pattern rather than right shift.
4129 (expand_vec_perm_const): Add vec_shl_optab support.
4130 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
4132 * tree-vect-generic.c (lower_vec_perm): Support permutations which
4133 can be handled by vec_shl_optab.
4134 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
4135 (check_scan_store): Use it.
4136 (vectorizable_scan_store): If target can't do normal permutations,
4137 try to use whole vector left shifts and if needed a VEC_COND_EXPR
4139 * config/i386/sse.md (vec_shl_<mode>): New expander.
4141 * omp-low.c (lower_rec_input_clauses): Handle references properly
4143 (lower_omp_scan): Likewise.
4145 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
4147 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
4148 mem_mode is BLKmode.
4150 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
4153 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
4154 pointer adjustment for the case of no callee-saved registers and
4155 stack frame bigger than 128 bytes.
4157 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
4160 * omp-low.c (check_omp_nesting_restrictions): Handle
4161 GF_OMP_TARGET_KIND_OACC_DECLARE.
4163 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
4165 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
4166 (@add<mode>3_carry): Rename from add<mode>3_carry.
4167 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
4168 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
4169 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
4170 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
4171 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
4172 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
4173 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
4174 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
4175 (cmpstrnsi): Use gen_cmp_1.
4176 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
4177 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
4178 (@umonitor_<mode>): Rename from umonitor_<mode>.
4179 * config/i386/i386-expand.c (ix86_expand_copysign):
4180 Use gen_copysign3_const and gen_copysign3_var.
4181 (ix86_expand_xorsign): Use gen_xorsign3_1.
4182 (ix86_expand_branch): Use gen_sub3_carry_ccc,
4183 gen_sub3_carry_ccgz and gen_cmp1.
4184 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
4185 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
4186 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
4187 (ix86_split_lshr): Ditto.
4188 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
4190 2019-06-18 Jason Merrill <jason@redhat.com>
4192 * tree.c (build_constructor): Add MEM_STAT_DECL.
4194 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
4196 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
4197 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
4198 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
4199 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
4200 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
4201 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
4202 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
4203 Use CC_NZC instead of CC.
4204 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
4205 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
4206 (aarch64_print_operand): Handle E_CC_NZCmode.
4207 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
4208 of gen_set_clobber_cc.
4210 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
4212 * config/aarch64/aarch64-sve.md: Tabify file.
4214 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
4216 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
4217 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
4218 * config/aarch64/aarch64-sve.md: Use it.
4220 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
4222 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
4223 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
4224 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
4225 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
4226 (aarch64_expand_sve_vec_cmp_int): Use it.
4227 (aarch64_expand_sve_vec_cmp_float): Likewise.
4228 * config/aarch64/aarch64-sve.md: Likewise throughout.
4230 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
4231 Kugan Vivekanandarajah <kuganv@linaro.org>
4233 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
4234 (*cond_<optab><mode>_z): Fold into...
4235 (*cond_<optab><mode>_any): ...here. Also handle cases in which
4236 operand 4 can be tied to operand 0 (either inherently or via RA).
4238 2019-06-18 Richard Biener <rguenther@suse.de>
4241 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
4242 as if optimized away.
4244 2019-06-18 Tom de Vries <tdevries@suse.de>
4246 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
4247 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
4248 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
4250 (define_insn "@set_softstack_<mode>"): ... this.
4251 (define_insn "omp_simt_enter_<mode>"): Rename to ...
4252 (define_insn "@omp_simt_enter_<mode>"): ... this.
4253 (define_insn "omp_simt_exit_<mode>"): Rename to ...
4254 (define_insn "@omp_simt_exit_<mode>"): ... this.
4256 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
4258 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
4259 vf parameter. Restore the previous iv step of nscalars_step,
4260 but give it iv_type rather than compare_type. Tweak code order
4261 to match the comments.
4262 (vect_set_loop_condition_masked): Update accordingly.
4263 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
4264 for iv_precision. Tweak comment formatting.
4266 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
4268 * config/darwin.c: Strip trailing whitespace.
4270 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
4272 * config/darwin.c (darwin_emit_unwind_label): New default to false.
4273 (darwin_override_options): Set darwin_emit_unwind_label as needed.
4275 2019-06-18 Martin Jambor <mjambor@suse.cz>
4278 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
4279 caller does not have flag_ipa_cp set.
4281 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
4283 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
4284 from "*fold_left_plus_<mode>", updated operands order.
4285 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
4286 * internal-fn.c (mask_fold_left_direct): New define.
4287 (expand_mask_fold_left_optab_fn): Likewise.
4288 (direct_mask_fold_left_optab_supported_p): Likewise.
4289 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
4290 * optabs.def (mask_fold_left_plus_optab): New optab.
4291 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
4292 masked internal_fn for a reduction ifn.
4293 (vectorize_fold_left_reduction): Add support for masking reductions.
4295 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
4298 * target.def (predict_doloop_p): New hook.
4299 * targhooks.h (default_predict_doloop_p): New declaration.
4300 * targhooks.c (default_predict_doloop_p): New function.
4301 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
4302 * doc/tm.texi: Regenerate.
4303 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
4304 (TARGET_PREDICT_DOLOOP_P): New macro.
4305 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
4307 2019-06-17 Jakub Jelinek <jakub@redhat.com>
4309 * omp-low.c (struct omp_context): Add scan_inclusive field.
4310 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
4312 (struct omplow_simd_context): Add lastlane member.
4313 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
4314 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
4316 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
4317 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
4318 (lower_omp_scan): New function.
4319 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
4320 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
4321 check 3rd argument if present rather than 2nd.
4322 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
4323 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
4325 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
4326 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
4328 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
4329 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
4330 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
4332 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
4333 IFN_GOMP_SIMD_LANE argument.
4334 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
4335 encoded ->aux value.
4336 * tree-vect-stmts.c: Include attribs.h.
4337 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
4338 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
4340 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
4341 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
4343 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
4346 * config/i386/i386.md (*nabstf2_1): New insn pattern.
4347 (*nabs<mode>2_1): Ditto.
4348 (nabs sse-reg splitter): New splitter.
4349 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
4351 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
4354 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
4357 2019-06-17 Tom de Vries <tdevries@suse.de>
4359 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
4360 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
4361 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
4363 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
4365 (define_insn "omp_simt_enter_insn"): Rename to ...
4366 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
4367 match_operand 0, 1 and 2, as well as the unspec_volatile result.
4368 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
4369 gen_omp_simt_enter_si.
4370 (define_expand "omp_simt_exit"): New.
4371 (define_insn "omp_simt_exit"): Rename to ...
4372 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
4375 2019-06-17 Matthew Green <mrg@eterna.com.au>
4376 Maya Rashish <coypu@sdf.org>
4378 * config.gcc (aarch64*-*-netbsd*): New target.
4379 * config/aarch64/aarch64-netbsd.h: New file.
4380 * config/aarch64/t-aarch64-netbsd: Likewise.
4382 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
4384 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
4385 the access path from base to first VIEW_CONVERT_EXPR or
4388 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
4390 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
4391 access path on BIT_FIELD_REFs.
4393 2019-06-17 Martin Liska <mliska@suse.cz>
4396 * ipa-utils.h (odr_type_p): Remove dead code.
4398 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4400 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
4401 alternative Solaris 11.4 format.
4402 * configure: Regenerate.
4404 2019-06-17 Tom de Vries <tdevries@suse.de>
4406 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
4407 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
4409 (define_insn "call_value_insn"): Rename to ...
4410 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
4412 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
4415 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
4418 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
4419 frame clobbers and schedule block.
4420 (builtin_longjmp): Likewise.
4422 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4424 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
4425 describe how to perform MSPABI compliant 64-bit shift.
4426 * config/msp430/msp430.md (ashldi3): New define_expand.
4427 (ashrdi3): New define_expand.
4428 (lshrdi3): New define_expand.
4430 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4432 * doc/sourcebuild.texi: Document new effective target keyword
4435 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
4437 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
4438 indirect_refs_may_alias_p): Revert accidental commits.
4440 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
4441 at the end of structures.
4443 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
4445 * config/darwin.c (machopic_indirect_call_target): Use renamed
4446 darwin_picsymbol_stubs to decide on output.
4447 (darwin_override_options): Handle darwin_picsymbol_stubs.
4448 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
4449 (LD64_VERSION): Revise default.
4450 * config/darwin.opt: (mpic-symbol-stubs): New option.
4451 (darwin_picsymbol_stubs): New variable.
4452 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
4453 rename to TARGET_MACHO_PICSYM_STUBS.
4454 * config/i386/i386.c (output_pic_addr_const): Likewise.
4455 * config/i386/i386.h Likewise.
4456 * config/rs6000/darwin.h: Likewise.
4457 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
4458 darwin_picsymbol_stubs.
4460 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
4462 * config/darwin.opt (prebind, noprebind, seglinkedit,
4463 noseglinkedit): Add RejectNegative.
4465 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
4467 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
4468 in my previous patch.
4470 2019-06-16 Tom de Vries <tdevries@suse.de>
4472 PR tree-optimization/89376
4473 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
4475 2019-06-15 Maya Rashish <coypu@sdf.org>
4477 * doc/invoke.texi (Spec Files): Update location of the
4480 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
4482 * doc/extend.texi (Common Function Attributes): Clarify
4483 no_sanitize. Fix grammar.
4485 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
4487 * tree-ssa-alias.c (alias_stats): Add
4488 nonoverlapping_component_refs_p_may_alias,
4489 nonoverlapping_component_refs_p_no_alias,
4490 nonoverlapping_component_refs_of_decl_p_may_alias,
4491 nonoverlapping_component_refs_of_decl_p_no_alias.
4492 (dump_alias_stats): Dump them.
4493 (nonoverlapping_component_refs_of_decl_p): Add stats.
4494 (nonoverlapping_component_refs_p): Add stats; do not stop on first
4497 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
4499 * config/i386/i386.md (and<mode>3): Generate zero-extends for
4500 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
4502 (*anddi3_doubleword): Split before reload. Merge with
4503 anddi->zext pre-reload splitter.
4504 (*andndi3_doubleword): Split before reload.
4505 (*<code>di3_doubleword): Ditto.
4506 (*one_cmpldi2_doubleword): Ditto.
4508 2019-06-15 Jakub Jelinek <jakub@redhat.com>
4511 * gimplify.c: Include omp-offload.h and context.h.
4512 (gimplify_bind_expr): Add "omp declare target" attributes
4513 to static block scope variables inside of target region or target
4516 2019-06-15 Tom de Vries <tdevries@suse.de>
4518 PR tree-optimization/90009
4519 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
4520 Return NULL if bb contains IFN_UNIQUE.
4522 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
4524 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
4525 (un): New define_mode_attr.
4526 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
4527 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
4528 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
4530 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
4532 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
4534 * config/darwin.opt: Add RejectNegative where needed, reorder
4535 and add minimal functional descriptions.
4537 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
4539 PR rtl-optimization/90765
4540 * calls.c (update_stack_alignment_for_call): New function.
4541 (expand_call): Call update_stack_alignment_for_call when
4542 outgoing parameter is passed in the stack.
4543 (emit_library_call_value_1): Likewise.
4544 * function.c (locate_and_pad_parm): Don't update
4545 stack_alignment_needed and preferred_stack_boundary.
4547 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
4550 * config/i386/i386-features.c
4551 (dimode_scalar_chain::compute_convert_gain): Replace
4552 mmxsse_to_integer with sse_to_integer.
4553 * config/i386/i386.c (ix86_register_move_cost): Verify that
4554 moves between MMX and non-MMX units require secondary memory.
4555 Correct costs of moves between SSE and integer units.
4556 * config/i386/i386.h (processor_costs): Rename cost of moving
4557 SSE register to integer to sse_to_integer. Rename cost of
4559 2019-06-14 Matt Thomas <matt@3am-software.com>
4560 Matthew Green <mrg@eterna.com.au>
4561 Nick Hudson <skrll@netbsd.org>
4562 Maya Rashish <coypu@sdf.org>
4563 Richard Earnshaw <rearnsha@arm.com>
4565 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
4566 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
4567 * config/arm/netbsd-eabi.h: New file.
4568 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
4570 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
4571 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
4572 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
4573 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
4575 2019-06-14 Richard Biener <rguenther@suse.de>
4577 * tree-loop-distribution.c (classify_partition): Return
4578 whether a reduction appeared in all partitions and do not
4579 stop builtin detection because of this.
4580 (distribute_loop): Sort a non-builtin partition last if
4581 there's a reduction in all partitions and make sure the
4582 partition prevailing as last is not a builtin.
4584 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
4587 * ipa-prop.c (add_to_agg_contents_list): New function.
4588 (clobber_by_agg_contents_list_p): Likewise.
4589 (extract_mem_content): Likewise.
4590 (get_place_in_agg_contents_list): Delete.
4591 (determine_known_aggregate_parts): Renamed from
4592 determine_locally_known_aggregate_parts. New parameter
4595 2019-06-13 Martin Sebor <msebor@redhat.com>
4597 PR tree-optimization/90662
4598 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
4601 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
4604 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
4605 dbase is not TARGET_MEM_REF.
4607 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
4609 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
4611 (and<mode>3): Use gen_extend_insn instead of indirect functions.
4612 Do not generate DImode extends for 32bit targets.
4613 (and->zext post-reload splitter): Use gen_extend_insn
4614 instead of indirect functions.
4615 (anddi->zext pre-reload splitter): New.
4616 (*zext<mode>_doubleword_and): Remove.
4617 (*zext<mode>_doubleword): Ditto.
4618 (*zextsi_doubleword): Dittto.
4620 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
4622 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
4623 Use gen_sub3_insn instead of indirect function.
4624 (ix86_expand_ashl_const): Use gen_add2_insn instead of
4626 (ix86_adjust_counter): Ditto.
4628 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
4629 Lijia He <helijia@linux.ibm.com>
4631 PR tree-optimization/77820
4632 * tree-ssa-threadedge.c
4633 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
4635 (thread_across_edge): Add call to
4636 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
4638 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
4640 * config/darwin-driver.c (validate_macosx_version_min): New.
4641 (darwin_default_min_version): Cleanup and validate supplied version.
4642 (darwin_driver_init): Likewise and push cleaned version into opts.
4644 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
4646 PR tree-optimization/90869
4647 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
4648 converts in MEM_REF referencing decl rather than view converts
4649 from decl type to MEM_REF type.
4651 2019-06-13 Richard Biener <rguenther@suse.de>
4653 PR tree-optimization/90856
4654 * tree-sra.c (build_ref_for_model): Only use
4655 build_reconstructed_reference when address-spaces are the same.
4657 2019-06-13 Jakub Jelinek <jakub@redhat.com>
4659 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
4660 wrap ei variable name in the declaration in ()s.
4661 (nvptx_single): Actually use mode_label variable. Formatting fix.
4663 2019-06-13 Richard Biener <rguenther@suse.de>
4665 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
4666 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
4667 also return the condition stmt.
4668 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
4669 loop we can version and version that, reusing the loop version
4670 created by if-conversion instead of versioning again.
4672 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
4674 * gimple-loop-versioning.cc (prune_loop_conditions): Use
4676 * tree-vrp (value_range_base::may_contain_p): Call into
4678 (value_inside_range): Make private inside value_range_base class.
4679 Take min/max from *this.
4680 (range_includes_p): Remove.
4681 * tree-vrp.h (value_range_base): Add value_inside_range.
4682 (range_includes_p): Remove.
4683 (range_includes_zero_p): Call may_contain_p.
4684 * vr-values.c (compare_range_with_value): Same.
4686 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
4688 * doc/extend.texi (ARC Function Attributes): Update info.
4690 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
4692 PR tree-optimization/89713
4693 * doc/invoke.texi (-ffinite-loops): Document new option.
4694 * common.opt (-ffinite-loops): New option.
4695 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
4696 IFN_GOACC_LOOP calls as necessary.
4697 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
4699 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
4700 IFN_GOACC_LOOP call is not used.
4701 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
4703 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
4706 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
4707 compare_type is not with Pmode size, we will create an IV with
4708 Pmode size with truncated use (i.e. converted to the correct type).
4709 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
4710 (vect_iv_limit_for_full_masking): New. Factored out of
4711 vect_set_loop_condition_masked.
4712 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
4713 (vect_iv_limit_for_full_masking): Declare.
4715 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
4718 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
4719 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
4720 (get_alias_ptr_type_for_ptr_address): Likewise.
4721 (add_iv_candidate_for_use): Add scaled index candidate if useful.
4722 * tree-ssa-address.c (preferred_mem_scale_factor): New.
4723 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
4726 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
4728 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
4730 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
4732 * common/config/pru/pru-common.c: New file.
4733 * config.gcc: Add PRU target.
4734 * config/pru/alu-zext.md: New file.
4735 * config/pru/constraints.md: New file.
4736 * config/pru/predicates.md: New file.
4737 * config/pru/pru-opts.h: New file.
4738 * config/pru/pru-passes.c: New file.
4739 * config/pru/pru-pragma.c: New file.
4740 * config/pru/pru-protos.h: New file.
4741 * config/pru/pru.c: New file.
4742 * config/pru/pru.h: New file.
4743 * config/pru/pru.md: New file.
4744 * config/pru/pru.opt: New file.
4745 * config/pru/t-pru: New file.
4746 * doc/extend.texi: Document PRU pragmas.
4747 * doc/invoke.texi: Document PRU-specific options.
4748 * doc/md.texi: Document PRU asm constraints.
4750 2019-06-12 Martin Sebor <msebor@redhat.com>
4753 * tree-pretty-print.c (dump_mem_ref): New function. Include
4754 MEM_REF type in output when different size than operand.
4755 (dump_generic_node): Move code to dump_mem_ref and call it.
4757 2019-06-12 Martin Sebor <msebor@redhat.com>
4759 PR tree-optimization/90662
4760 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
4763 2019-06-12 Tom de Vries <tdevries@suse.de>
4765 PR tree-optimization/90009
4766 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
4768 2019-06-12 Martin Liska <mliska@suse.cz>
4770 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
4772 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
4773 * mem-stats.h (mem_alloc_description::mem_alloc_description):
4774 Do not sanitize created maps.
4776 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
4778 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
4779 value_range::singleton_p.
4780 * tree-vrp.c (value_range_constant_singleton): Remove.
4781 * tree-vrp.h (value_range_constant_singleton): Remove.
4782 * vr-values.c (vr_values::singleton): Use
4783 value_range::singleton_p.
4785 2019-06-12 Jakub Jelinek <jakub@redhat.com>
4788 * cfgexpand.c (align_local_variable): Add really_expand argument,
4789 don't SET_DECL_ALIGN if it is false.
4790 (add_stack_var): Add really_expand argument, pass it through to
4791 align_local_variable.
4792 (expand_one_stack_var_1): Pass true as really_expand to
4793 align_local_variable.
4794 (expand_one_ssa_partition): Pass true as really_expand to
4796 (expand_one_var): Pass really_expand through to add_stack_var.
4798 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
4800 * config/arm/iterators.md (VABAL): New int iterator.
4801 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
4802 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
4803 UNSPEC_VABAL_U values.
4805 2019-06-12 Martin Liska <mliska@suse.cz>
4807 * value-prof.c (stream_out_histogram_value): Only first value
4810 2019-06-12 Jakub Jelinek <jakub@redhat.com>
4813 * symtab.c (symtab_node::set_section): Allow being called on aliases
4814 as long as they aren't analyzed yet.
4816 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
4818 * config/mips/mips.c (mips_final_postscan_insn): Modify call
4819 to `mips_set_text_contents_type' to indicate whether a
4820 non-debug insn follows.
4822 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
4824 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
4825 enabling -mpcrel by default.
4826 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
4827 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
4828 that the test against -mcpu=future is done first. Then test if
4829 -mprefixed-addr is on for -mpcrel.
4830 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
4832 2019-06-11 Jakub Jelinek <jakub@redhat.com>
4835 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
4838 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
4840 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
4842 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
4844 PR c++/90449 - add -Winaccessible-base option.
4845 * doc/invoke.texi (Winaccessible-base): Document.
4847 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
4849 PR tree-optimization/62041
4850 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
4852 2019-06-11 Jason Merrill <jason@redhat.com>
4854 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
4855 * tree.c (get_tree_code_name): Likewise.
4856 * print-tree.c (print_node): Only briefly print a node with an
4859 2019-06-11 Jakub Jelinek <jakub@redhat.com>
4862 * trans-mem.c (tm_memopt_compute_available): Add assertion
4863 that blocks is not empty. Formatting fix.
4865 2019-06-11 Martin Liska <mliska@suse.cz>
4868 * hash-table.h: Extend create_gcc, add one parameter
4869 that is passed into hash_table::hash_table.
4871 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
4873 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
4875 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
4876 Emit clobber also for non-sse operations.
4877 (ix86_split_fp_absneg_operator): New function.
4878 * config/i386/i386.md (SSEMODEF): New mode iterator.
4879 (ssevecmodef): New mode attribute.
4880 (<code>tf2): Use absneg code iterator.
4881 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
4882 Add three-operand AVX alternatives.
4883 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
4884 Use absneg code iterator and X87MODEF mode iterator.
4885 (absneg fp_reg non-sse splitter): Call absneg code iterator
4886 and X87MODEF mode iterator.
4887 (absneg general_reg non-sse splitter): Use absneg code iterator
4888 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
4889 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
4890 code iterator. Add three-operand AVX alternative.
4891 (absneg sse_reg splitter): Use absneg code iterator
4892 and SSEMODEF mode iterator. Handle AVX operands.
4893 (absneg fp_reg splitter): Use absneg code iterator
4894 and MODEF mode iterator.
4895 (absneg general_reg splitter): Merge splitters using MODEF mode
4896 iterator. Use absneg code iterator. Call
4897 ix86_split_fp_absneg_operator.
4898 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
4899 Do not enable for non-sse modes before reload.
4902 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
4903 ssevecmodef mode attribute instaed of CSGNVMODE.
4904 (copysign<mode>3_const): Ditto.
4905 (copysign<mode>3_var): Ditto.
4906 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
4907 Use absneg code iterator. Simplify code using std::swap.
4908 * config/i386/predicates.md (absneg_operator): Remove.
4910 2019-06-10 Martin Sebor <msebor@redhat.com>
4912 * gimple-fold.c (get_range_strlen): Update comment that didn't
4913 make it into r267503 or related commits.
4915 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
4917 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
4918 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
4920 2019-06-10 Jakub Jelinek <jakub@redhat.com>
4922 * tree.def (OMP_SCAN): New tree code.
4923 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
4924 OMP_CLAUSE_EXCLUSIVE.
4925 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
4926 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
4927 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
4928 OMP_CLAUSE_{IN,EX}CLUSIVE.
4929 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
4930 * tree-nested.c (convert_nonlocal_reference_stmt,
4931 convert_local_reference_stmt, convert_gimple_call): Handle
4933 * tree-pretty-print.c (dump_omp_clause): Handle
4934 OMP_CLAUSE_{IN,EX}CLUSIVE.
4935 (dump_generic_node): Handle OMP_SCAN.
4936 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
4937 * gimple.h (gomp_scan): New type.
4938 (is_a_helper <gomp_scan *>::test,
4939 is_a_helper <const gomp_scan *>::test): New templates.
4940 (gimple_build_omp_scan): Declare.
4941 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
4942 gimple_omp_scan_set_clauses): New inline functions.
4943 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
4944 * gimple.c (gimple_build_omp_scan): New function.
4945 (gimple_copy): Handle GIMPLE_OMP_SCAN.
4946 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
4947 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
4948 GIMPLE_OMP_TASKGROUP.
4949 (dump_gimple_omp_scan): New function.
4950 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
4951 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
4952 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
4953 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
4954 (is_gimple_stmt): Handle OMP_SCAN.
4955 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
4956 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
4957 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
4958 mentioned in nested #pragma omp scan. Handle
4959 OMP_CLAUSE_{IN,EX}CLUSIVE.
4960 (gimplify_expr): Handle OMP_SCAN.
4961 * omp-low.c (check_omp_nesting_restrictions): For parent context,
4962 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
4964 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
4967 2019-06-10 Martin Liska <mliska@suse.cz>
4969 * ipa-cp.c (ignore_edge_p): New function.
4970 (build_toporder_info): Use it.
4971 * ipa-inline.c (ignore_edge_p): New function.
4972 (inline_small_functions): Use it.
4973 * ipa-pure-const.c (ignore_edge_for_nothrow):
4974 Verify opt_for_fn for caller and callee.
4975 (ignore_edge_for_pure_const): Likewise.
4976 * ipa-reference.c (ignore_edge_p): Extend to check
4978 * ipa-utils.c (searchc): Refactor.
4979 * ipa-utils.h: Fix coding style.
4981 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
4983 * config/arc/arc.c (arc_rtx_costs): Update costs.
4985 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
4987 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
4988 (arc_split_ior): Likewise.
4989 (arc_check_mov_const): Likewise.
4990 (arc_split_mov_const): Likewise.
4991 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
4992 (arc_rtx_costs): Replace check Crr with Cax constraint.
4993 (prepare_move_operands): Cleanup, remove unused code.
4994 (arc_split_ior): New function.
4995 (arc_check_ior_const): Likewise.
4996 (arc_split_mov_const): Likewise.
4997 (arc_check_mov_const): Likewise.
4998 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
4999 in define_insn_and_split pattern.
5001 (mulsi3_v2): Add new matching variant.
5002 (andsi3_i): Cleanup pattern.
5003 (rotrsi3_cnt1): Update pattern.
5004 (rotrsi3_cnt8): New pattern.
5005 (ashlsi2_cnt8): Likewise.
5006 (ashlsi2_cnt16): Likewise.
5007 * config/arc/constraints.md (C0p): Update constraint.
5012 2019-06-10 Martin Liska <mliska@suse.cz>
5014 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
5015 Update coding style.
5016 (sem_item_optimizer::dump_cong_classes):
5017 Print how many items are in a non-singular class. Improve
5020 2019-06-10 Martin Liska <mliska@suse.cz>
5022 * value-prof.c (dump_histogram_value): Change dump format.
5023 (gimple_mod_subtract_transform): Remove legacy comment.
5025 2019-06-10 Martin Liska <mliska@suse.cz>
5027 * value-prof.c (dump_histogram_value): Print histogram values
5030 2019-06-10 Martin Liska <mliska@suse.cz>
5032 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
5033 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
5034 * ipa-profile.c (ipa_profile_generate_summary):
5035 Use get_most_common_single_value.
5036 * tree-profile.c (gimple_init_gcov_profiler):
5037 Instrument with __gcov_one_value_profiler_v2
5038 and __gcov_indirect_call_profiler_v4.
5039 * value-prof.c (dump_histogram_value):
5040 Print all values for HIST_TYPE_SINGLE_VALUE.
5041 (stream_out_histogram_value): Update assert for
5043 (stream_in_histogram_value): Set number of
5044 counters for HIST_TYPE_SINGLE_VALUE.
5045 (get_most_common_single_value): New.
5046 (gimple_divmod_fixed_value_transform):
5047 Use get_most_common_single_value.
5048 (gimple_ic_transform): Likewise.
5049 (gimple_stringops_transform): Likewise.
5050 (gimple_find_values_to_profile): Set number
5051 of counters for HIST_TYPE_SINGLE_VALUE.
5052 * value-prof.h (get_most_common_single_value): New.
5054 2019-06-10 Martin Liska <mliska@suse.cz>
5056 * hash-map.h: Pass default value to hash_table ctor.
5057 * hash-table.h: Add default value to call of a ctor.
5059 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
5061 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
5062 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
5064 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
5067 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
5068 Call pa_output_function_label.
5069 (TARGET_ASM_FUNCTION_PROLOGUE): define.
5070 * config/pa/pa-protos.h (pa_output_function_label): Declare.
5071 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
5073 (pa_linux_output_function_prologue): Declare.
5074 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
5075 (pa_output_function_label): New.
5076 (pa_output_function_prologue): Revise to use pa_output_function_label.
5077 (pa_linux_output_function_prologue): New.
5078 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
5080 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
5082 * tree-vrp.h (value_range_base::intersect): New.
5083 (value_range::intersect_helper): Move from here...
5084 (value_range_base::intersect_helper): ...to here.
5085 * tree-vrp.c (value_range::intersect_helper): Rename to...
5086 (value_range_base::intersect_helper): ...this, and rewrite to
5087 return a value instead of modifying THIS in place.
5088 Also, move equivalence handling...
5089 (value_range::intersect): ...here, while calling intersect_helper.
5090 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
5092 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
5094 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
5096 2019-06-07 Jakub Jelinek <jakub@redhat.com>
5098 * Makefile.in (genprogerr): Add condmd.
5099 (genprog): Remove it here.
5101 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
5103 * doc/invoke.texi (AMD GCN Options): Add gfx906.
5105 2019-06-07 Richard Biener <rguenther@suse.de>
5108 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
5109 that appear after user labels.
5111 2019-06-07 Martin Liska <mliska@suse.cz>
5113 * cselib.c (cselib_init): Disable hash table
5115 * hash-set.h: Pass new default argument to m_table.
5116 * hash-table.c: Add global variable with hash table
5118 * hash-table.h (Allocator>::hash_table): Add new argument
5120 (hashtab_chk_error): New.
5121 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
5122 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
5123 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
5125 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
5127 * common.opt (flto-odr-type-merging): Ignore.
5128 * invoke.texi (-flto-odr-type-merging): Remove.
5129 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
5130 (can_be_vtable_hashed_p): Remove.
5131 (hash_odr_vtable): Remove.
5132 (odr_vtable_hasher::hash): Remove.
5133 (types_same_for_odr): Remove.
5134 (types_odr_comparable): Remove.
5135 (odr_vtable_hasher::equal): Remove.
5136 (odr_vtable_hash_type, odr_vtable_hash): Remove.
5137 (add_type_duplicate): Do not synchronize vtable and name hashtables.
5138 (get_odr_type): Do not use vtable hash.
5139 (dump_odr_type): Remove commented out code.
5140 (build_type_inheritance_graph): Do not allocate vtable hash.
5141 (rebuild_type_inheritance_graph): Do not delete vtable hash.
5142 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
5143 (odr_type_p): Likewise.
5144 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
5147 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
5149 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
5150 immediately after same_types_for_tbaa_p returns -1 and continue
5151 looking for possible exact match; if matching types are arrays
5152 watch for partial overlaps.
5153 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
5154 (indirect_refs_may_alias_p): Do type based disambiguation first;
5157 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
5159 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
5161 2019-06-07 Martin Liska <mliska@suse.cz>
5163 * doc/invoke.texi: Remove param.
5164 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
5166 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
5167 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
5168 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
5169 * profile.c (instrument_values): Remove
5170 HIST_TYPE_INDIR_CALL_TOPN.
5171 * tree-profile.c (init_ic_make_global_vars):
5172 Always build __gcov_indirect_call only.
5173 (gimple_init_gcov_profiler): Remove usage
5174 of PARAM_INDIR_CALL_TOPN_PROFILE.
5175 (gimple_gen_ic_profiler): Likewise.
5176 * value-prof.c (dump_histogram_value): Likewise.
5177 (stream_in_histogram_value): Likewise.
5178 (gimple_indirect_call_to_profile): Likewise.
5179 (gimple_find_values_to_profile): Likewise.
5180 * value-prof.h (enum hist_type): Likewise.
5182 2019-06-07 Martin Liska <mliska@suse.cz>
5184 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
5187 2019-06-07 Martin Liska <mliska@suse.cz>
5189 PR tree-optimization/78902
5190 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
5191 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
5192 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
5193 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
5194 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
5195 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
5196 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
5197 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
5198 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
5199 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
5200 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
5201 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
5202 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
5204 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
5205 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
5206 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
5207 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
5208 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
5209 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
5210 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
5211 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
5212 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
5213 warn_unused_result attribute.
5214 (BUILT_IN_STRDUP): Likewise.
5215 (BUILT_IN_STRNDUP): Likewise.
5216 (BUILT_IN_ALLOCA): Likewise.
5217 (BUILT_IN_CALLOC): Likewise.
5218 (BUILT_IN_MALLOC): Likewise.
5219 (BUILT_IN_REALLOC): Likewise.
5221 2019-06-06 Jim Wilson <jimw@sifive.com>
5224 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
5225 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
5226 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
5228 2019-06-06 Martin Sebor <msebor@redhat.com>
5230 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
5231 (handle_builtin_malloc): Remove trailing spaces.
5232 (handle_builtin_memset): Same.
5233 (handle_builtin_memcmp): Same.
5234 (compute_string_length): Same.
5235 (determine_min_objsize): Same.
5236 (handle_builtin_string_cmp): Same.
5237 (handle_char_store): Same. Break up excessively long line.
5239 2019-06-06 Martin Jambor <mjambor@suse.cz>
5241 * tree-sra.c (build_reconstructed_reference): Drop the alignment
5244 2019-06-06 Martin Jambor <mjambor@suse.cz>
5246 * tree-sra.c (struct access): New field grp_same_access_path.
5247 (dump_access): Dump it.
5248 (build_reconstructed_reference): New function.
5249 (build_ref_for_model): Use it if possible.
5250 (path_comparable_for_same_access): New function.
5251 (same_access_path_p): Likewise.
5252 (sort_and_splice_var_accesses): Set the new flag.
5253 (analyze_access_subtree): Likewise.
5254 (propagate_subaccesses_across_link): Propagate zero value of the new
5255 flag down the access tree.
5257 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
5259 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
5260 * config/gcn/gcn.opt (gpu_type): Add gfx906.
5261 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
5262 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
5265 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5267 PR tree-optimization/90332
5268 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
5269 Handle VALS containing two vectors.
5270 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
5272 (@aarch64_combinez<mode>): ... This.
5273 (*aarch64_combinez_be<mode>): Rename to...
5274 (@aarch64_combinez_be<mode>): ... This.
5275 (vec_init<mode><Vhalf>): New define_expand.
5276 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
5278 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5280 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
5281 library functions only when not optimizing for size.
5282 (ashlsi3): Likewise.
5283 (ashrhi3): Likewise.
5284 (ashrsi3): Likewise.
5285 (lshrhi3): Likewise.
5286 (lshrsi3): Likewise.
5288 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
5290 PR rtl-optimization/88751
5291 * ira.c (ira): Use the number of the actually referenced registers
5292 when calculating the threshold.
5294 2019-06-06 Jakub Jelinek <jakub@redhat.com>
5296 * configure: Regenerate.
5298 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5300 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
5301 register if it is in memory, so the shift can be emulated with a rotate
5303 (ashrhi3): Likewise.
5304 (lshrhi3): Likewise.
5306 2019-06-06 Martin Liska <mliska@suse.cz>
5308 PR tree-optimization/87954
5309 * match.pd: Simplify mult where both arguments are 0 or 1.
5311 2019-06-06 Richard Biener <rguenther@suse.de>
5313 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
5314 put equivalences on UNDEFINED ranges.
5315 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
5316 Make sure to drop defs of stmts added during simplification
5319 2019-06-06 Richard Biener <rguenther@suse.de>
5321 * tree-ssa-structalias.c: Include tree-cfg.h.
5322 (make_heapvar): Do not make heap vars artificial.
5323 (find_func_aliases_for_builtin_call): Handle stack allocation
5325 (find_func_aliases): Delay processing of simple enough returns
5327 (set_uids_in_ptset): Adjust.
5328 (find_what_var_points_to): Likewise.
5329 (solve_constraints): Do not dump points-to sets here.
5330 (compute_points_to_sets): Post-process return statements,
5331 amending the escaped solution. Dump points-to sets afterwards.
5332 (ipa_pta_execute): Dump points-to sets.
5334 2019-06-06 Martin Liska <mliska@suse.cz>
5337 * doc/install.texi: Fix HTML headers and
5338 titles for 'Installing GCC' pages.
5340 2019-06-06 Martin Liska <mliska@suse.cz>
5342 * ipa-icf-gimple.h (dump_message_1): Remove.
5343 (dump_message): Likewise.
5344 (return_false_with_message_1): Print also file.
5345 (return_false_with_msg): Likewise.
5346 (return_with_result): Likewise.
5347 (return_with_debug): Likewise.
5348 * ipa-icf.c (sem_function::equals_private): Remove call
5351 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
5353 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
5354 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
5355 memory operand for it.
5356 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
5358 2019-06-05 Martin Sebor <msebor@redhat.com>
5360 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
5361 Adjust quoting and hyphenation.
5362 * convert.c (convert_to_real_1): Same.
5363 * gcc.c (driver_wrong_lang_callback): Same.
5364 (driver::handle_unrecognized_options): Same.
5365 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
5366 * opts-common.c (cmdline_handle_error): Same.
5367 (read_cmdline_option): Same.
5368 * opts-global.c (complain_wrong_lang): Same.
5369 (print_ignored_options): Same.
5370 (handle_common_deferred_options): Same.
5371 * pretty-print.h: Same.
5372 * print-rtl.c (debug_bb_n_slim): Same.
5373 * sched-rgn.c (make_pass_sched_fusion): Same.
5374 * tree-cfg.c (verify_gimple_assign_unary): Same.
5375 (verify_gimple_label): Same.
5376 * tree-ssa-operands.c (verify_ssa_operands): Same.
5377 * varasm.c (do_assemble_alias): Same.
5378 (assemble_alias): Same.
5380 2019-06-05 Richard Henderson <rth@twiddle.net>
5382 * config/alpha/alpha.c (direct_return): Move down after
5383 struct machine_function definition; use saved frame_size;
5385 (struct machine_function): Add sa_mask, sa_size, frame_size.
5386 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
5387 (alpha_compute_frame_layout): ... new function.
5388 (TARGET_COMPUTE_FRAME_LAYOUT): New.
5389 (alpha_initial_elimination_offset): Use saved sa_size.
5390 (alpha_vms_initial_elimination_offset): Likewise.
5391 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
5392 (alpha_expand_prologue): Use saved frame data. Merge integer
5393 and fp register save loops.
5394 (alpha_expand_epilogue): Likewise.
5395 (alpha_start_function): Use saved frame data.
5396 * config/alpha/alpha-protos.h (direct_return): Update.
5397 (alpha_sa_size): Remove.
5399 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
5401 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
5402 multiplication by a power-of-two value.
5403 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
5404 and turn the modulo operation into a masking operation.
5406 2019-06-05 Jakub Jelinek <jakub@redhat.com>
5409 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
5410 with VOIDmode inner operands.
5412 2019-06-05 Richard Biener <rguenther@suse.de>
5415 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
5416 turn an expression graph into a tree.
5418 2019-06-05 Jakub Jelinek <jakub@redhat.com>
5420 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
5422 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
5423 treat it like explicit monotonic schedule modifier.
5424 (expand_omp_for): Initialize has_lastprivate_conditional.
5425 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
5428 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
5429 references, lookup in in hash map MEM_REF operand instead of the
5431 (lower_omp_1): When looking for lastprivate conditional assignments,
5432 handle MEM_REFs with REFERENCE_TYPE operands.
5434 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
5435 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
5436 and references a VLA. Handle references to non-VLAs if is_simd
5437 all privatization clauses like reductions.
5438 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
5439 If omp_is_reference, use always omp simd arrays and set
5440 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
5441 fails, emit reference initialization.
5443 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
5446 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
5447 _mm_mask_fpclass_sd_mask): New intrinsics.
5448 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
5449 * config/i386/i386-builtin.def
5450 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
5452 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
5453 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
5454 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
5455 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
5456 case QI_FTYPE_V2SF_INT): Ditto.
5457 * config/i386/sse.md
5458 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
5459 Extended to insnstructions with mask operands.
5461 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
5463 * config/rs6000/constraints.md (define_register_constraint "wp"):
5465 (define_register_constraint "wq"): Delete.
5466 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
5467 (rs6000_init_hard_regno_mode_ok): Adjust.
5468 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
5469 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
5470 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
5471 (define_mode_attr VSa): Delete.
5472 (define_mode_attr VSisa): New.
5473 (rest of file): Adjust.
5474 * doc/md.texi (Machine Constraints): Adjust.
5476 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
5478 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
5479 (define_attr "enabled"): Handle those new isa values.
5481 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
5483 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
5484 (define_mode_attr VSr5): Delete.
5485 (define_mode_attr VStype_sqrt): Delete.
5486 (define_mode_iterator VSX_SPDP): Delete.
5487 (define_mode_attr VS_spdp_res): Delete.
5488 (define_mode_attr VS_spdp_insn): Delete.
5489 (define_mode_attr VS_spdp_type): Delete.
5490 (*vsx_sqrt<mode>2): Adjust.
5491 (vsx_<VS_spdp_insn>): Delete, split to...
5492 (vsx_xscvdpsp): ... this. New. And...
5493 (vsx_xvcvspdp): ... this. New. And...
5494 (vsx_xvcvdpsp): ... this. New.
5496 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
5498 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
5500 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
5501 (rest of file): Adjust.
5503 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
5505 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
5506 (vsx_extract_<mode>_var): Ditto.
5508 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
5510 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
5513 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
5515 * config/rs6000/constraints.md (define_register_constraint "ww"):
5517 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
5518 (rs6000_init_hard_regno_mode_ok): Adjust.
5519 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
5520 RS6000_CONSTRAINT_ww.
5521 * config/rs6000/rs6000.md: Adjust.
5522 * config/rs6000/vsx.md: Adjust.
5523 * doc/md.texi (Machine Constraints): Adjust.
5525 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
5527 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
5528 (define_mode_attr sd): New.
5529 (define_mode_attr s): New.
5530 (define_mode_attr Ftrad): Delete.
5531 (define_mode_attr Fvsx): Delete.
5532 (define_mode_attr Fs): Delete.
5533 (rest of file): Use the new mode attributes.
5534 * config.rs6000/vsx.md: Use the new mode attributes.
5536 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
5538 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
5541 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
5543 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
5544 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
5545 used with VSX_B, VSX_D, or VSX_F, with just "wa".
5547 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
5550 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
5551 C++ with strict ANSI requirements.
5553 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
5555 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
5556 computations when step is 1.
5558 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
5560 * config/rs6000/constraints.md (define_register_constraint "wf"):
5562 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
5563 (rs6000_init_hard_regno_mode_ok): Adjust.
5564 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
5565 RS6000_CONSTRAINT_wf.
5566 * config/rs6000/rs6000.md: Adjust.
5567 * config/rs6000/vsx.md: Adjust.
5568 * doc/md.texi (Machine Constraints): Adjust.
5570 2019-06-04 Andrew Pinski <apinski@marvell.com>
5572 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
5575 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
5577 * config/rs6000/constraints.md (define_register_constraint "wd"):
5579 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
5580 (rs6000_init_hard_regno_mode_ok): Adjust.
5581 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
5582 RS6000_CONSTRAINT_wd.
5583 * config/rs6000/rs6000.md: Adjust.
5584 * config/rs6000/vsx.md: Adjust.
5585 * doc/md.texi (Machine Constraints): Adjust.
5587 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
5589 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
5590 (rest of file): Adjust.
5592 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
5594 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
5595 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
5596 (vsx_splat_<mode>_reg): Adjust.
5598 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
5600 * config/rs6000/constraints.md (define_register_constraint "ws"):
5602 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
5603 (rs6000_init_hard_regno_mode_ok): Adjust.
5604 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
5605 RS6000_CONSTRAINT_ws.
5606 * config/rs6000/rs6000.md: Adjust.
5607 * config/rs6000/vsx.md: Adjust.
5608 * doc/md.texi (Machine Constraints): Adjust.
5610 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
5612 * config/rs6000/constraints.md (define_register_constraint "wv"):
5614 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
5615 (rs6000_init_hard_regno_mode_ok): Adjust.
5616 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
5617 RS6000_CONSTRAINT_wv.
5618 * config/rs6000/rs6000.md: Adjust.
5619 * config/rs6000/vsx.md: Adjust.
5620 * doc/md.texi (Machine Constraints): Adjust.
5622 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
5624 * config/rs6000/constraints.md (define_register_constraint "wi"):
5626 (define_register_constraint "wt"): Delete.
5627 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
5628 (rs6000_init_hard_regno_mode_ok): Adjust.
5629 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
5630 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
5631 * config/rs6000/rs6000.md: Adjust.
5632 * config/rs6000/vsx.md: Adjust.
5633 * doc/md.texi (Machine Constraints): Adjust.
5635 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
5637 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
5639 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
5640 default_elf_asm_output_external.
5642 2019-06-04 Martin Liska <mliska@suse.cz>
5644 * ipa-icf.c (INCLUDE_LIST): Remove.
5645 (sem_item_optimizer::execute): Remove call to init_wpa.
5646 * ipa-icf.h (init_wpa): Remove.
5648 2019-06-04 Jakub Jelinek <jakub@redhat.com>
5650 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
5651 conditional on combined for simd.
5652 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
5654 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
5655 constructs, don't remove lastprivate_conditional_map, but instead set
5656 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
5657 to parent construct temporaries.
5658 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
5659 like !ctx->lastprivate_conditional_map.
5660 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
5661 use up->outer context instead of up.
5662 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
5663 gimple_omp_for_combined_p.
5664 (expand_omp_for_static_nochunk): Likewise.
5665 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
5666 probably moved over into expand_omp_for_generic rather than being copied
5669 2019-06-04 Martin Liska <mliska@suse.cz>
5671 * value-prof.c (dump_histogram_value): Fix typo.
5672 (gimple_mod_subtract_transform): Likewise.
5674 2019-06-04 Richard Biener <rguenther@suse.de>
5677 * tree-chrec.c (chrec_contains_symbols): Add to visited.
5678 (tree_contains_chrecs): Likewise.
5679 (chrec_contains_symbols_defined_in_loop): Move here and avoid
5680 exponential behaivor from ...
5681 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
5683 (expression_expensive_p): Avoid exponential behavior and compute
5684 expanded size, rejecting any expansion.
5685 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
5686 (idx_contains_abnormal_ssa_name_p): Likewise.
5687 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
5688 (contains_abnormal_ssa_name_p): Simplify and use
5689 walk_tree_without_duplicates.
5691 2019-06-04 Richard Biener <rguenther@suse.de>
5693 PR tree-optimization/90738
5695 2019-06-03 Richard Biener <rguenther@suse.de>
5697 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
5698 full reference tree and record in ref->ref.
5699 (vn_reference_lookup_3): Pass in original ref to
5700 ao_ref_init_from_vn_reference.
5701 (vn_reference_lookup): Likewise.
5702 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
5703 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
5704 Handle non-decl bases in the original reference.
5706 2019-06-04 Martin Liska <mliska@suse.cz>
5708 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
5709 number of references.
5710 (sem_item_optimizer::do_congruence_step):
5711 (sem_item_optimizer::worklist_push): Dump how references
5713 (sem_item_optimizer::worklist_pop): Use heap.
5714 (sem_item_optimizer::process_cong_reduction): Likewise.
5715 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
5717 2019-06-04 Martin Liska <mliska@suse.cz>
5719 * ipa-icf.h (struct sem_usage_pair_hash): New.
5720 (sem_usage_pair_hash::hash): Likewise.
5721 (sem_usage_pair_hash::equal): Likewise.
5722 (struct sem_usage_hash): Likewise.
5723 * ipa-icf.c (sem_item::sem_item): Initialize
5724 referenced_by_count.
5725 (sem_item::add_reference): Register a reference
5726 in ref_map and not in target->usages.
5727 (sem_item::setup): Remove initialization of
5729 (sem_item::~sem_item): Remove usage of dead vectors.
5730 (sem_item::dump): Remove dump of references.
5731 (sem_item_optimizer::sem_item_optimizer): Initialize
5733 (sem_item_optimizer::read_section): Remove useless
5735 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
5736 (sem_item_optimizer::build_graph): Pass m_references
5738 (sem_item_optimizer::verify_classes): Remove usage of dead
5740 (sem_item_optimizer::traverse_congruence_split): Return true
5741 when a class is split.
5742 (sem_item_optimizer::do_congruence_step_for_index): Use
5743 hash_map for look up of (sem_item *, index). That brings
5744 significant speed up.
5745 (sem_item_optimizer::do_congruence_step): Return true
5746 when a split is done.
5747 (congruence_class::is_class_used): Use referenced_by_count.
5749 2019-06-04 Alan Modra <amodra@gmail.com>
5752 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
5755 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
5757 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
5758 * config/rs6000/rs6000.c (direct_move_p): Adjust.
5759 (rs6000_secondary_reload_simple_move): Adjust.
5760 (rs6000_opt_masks): Neuter the "mfpgpr" option.
5761 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
5762 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
5765 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
5766 (floatunssi<mode>2_lfiwzx): Adjust.
5767 (fix_trunc<mode>si2_stfiwx): Adjust.
5768 (fixuns_trunc<mode>si2_stfiwx): Adjust.
5769 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
5770 (mfpgpr): Mark as deprecated.
5771 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
5772 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
5773 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
5775 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
5777 * config/rs6000/constraints.md (define_register_constraint "wg"):
5779 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
5780 RS6000_CONSTRAINT_wg.
5781 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
5782 (rs6000_init_hard_regno_mode_ok): Adjust.
5783 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
5784 Delete "wg" alternatives.
5785 * doc/md.texi (Machine Constraints): Adjust.
5787 2019-06-03 Alan Modra <amodra@gmail.com>
5789 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
5790 (get_uncond_jump_length): Assert length less than INT_MAX and
5793 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
5796 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
5798 (expand_builtin_nonlocal_goto): Likewise.
5800 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
5802 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
5803 (aarch64_asm_output_external): Declare.
5804 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
5805 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
5806 (aarch64_asm_output_alias): New.
5807 (aarch64_asm_output_external): New.
5808 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
5809 (ASM_OUTPUT_EXTERNAL): Define.
5811 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
5812 * tree-vrp.h (value_range_base::nonzero_p): New.
5813 (value_range_base::set_nonnull): Rename to...
5814 (value_range_base::set_nonzero): ...this.
5815 (value_range_base::set_null): Rename to...
5816 (value_range_base::set_zero): ...this.
5817 (value_range::set_nonnull): Remove.
5818 (value_range::set_null): Remove.
5819 * tree-vrp.c (range_is_null): Remove.
5820 (range_is_nonnull): Remove.
5821 (extract_range_from_binary_expr): Use value_range_base::*zero_p
5822 instead of range_is_*null.
5823 (extract_range_from_unary_expr): Same.
5824 (value_range_base::set_nonnull): Rename to...
5825 (value_range_base::set_nonzero): ...this.
5826 (value_range::set_nonnull): Remove.
5827 (value_range_base::set_null): Rename to...
5828 (value_range_base::set_zero): ...this.
5829 (value_range::set_null): Remove.
5830 (extract_range_from_binary_expr): Rename set_*null uses to
5832 (extract_range_from_unary_expr): Same.
5833 (union_helper): Same.
5834 * vr-values.c (get_value_range): Use set_*zero instead of
5836 (vr_values::extract_range_from_binary_expr): Same.
5837 (vr_values::extract_range_basic): Same.
5839 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
5842 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
5844 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5846 * config/aarch64/iterators.md (MAX_OPP): New code attr.
5847 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
5849 (aarch64_<su>abd<mode>_3): ... This.
5850 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
5852 2019-06-03 Richard Biener <rguenther@suse.de>
5854 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
5855 full reference tree and record in ref->ref.
5856 (vn_reference_lookup_3): Pass in original ref to
5857 ao_ref_init_from_vn_reference.
5858 (vn_reference_lookup): Likewise.
5859 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
5860 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
5861 Handle non-decl bases in the original reference.
5863 2019-06-03 Martin Liska <mliska@suse.cz>
5865 * doc/generic.texi: Remove Java Trees.
5867 2019-06-03 Martin Liska <mliska@suse.cz>
5869 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
5870 returns 0 when operands are equal.
5872 2019-06-03 Richard Biener <rguenther@suse.de>
5874 PR tree-optimization/90716
5875 * tree-loop-distribution.c (destroy_loop): Process blocks in
5878 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5881 * vector-builder.h (vector_builder::count_dups): New method.
5882 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
5884 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
5885 (vec_init<mode><Vel>): New pattern.
5886 * config/aarch64/aarch64.c (emit_insr): New function.
5887 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
5888 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
5889 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
5890 (aarch64_sve_expand_vector_init): Define two overloaded functions.
5892 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
5894 PR tree-optimization/90681
5895 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
5896 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
5897 special case for SLP, but fail on non-groupped loads.
5899 2019-06-03 Martin Liska <mliska@suse.cz>
5901 * cfg.c (debug): Use TDF_DETAILS for debug and
5902 print edge info only once.
5904 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
5907 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
5909 2019-06-01 Martin Sebor <msebor@redhat.com>
5912 * tree-pretty-print.c (dump_generic_node): Add parentheses.
5914 2019-05-31 Jan Hubicka <jh@suse.cz>
5916 * alias.c: Include ipa-utils.h.
5917 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
5918 * ipa-devirt.c (prevailing_odr_type): New.
5919 * ipa-utils.h (previaling_odr_type): Declare.
5921 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
5922 Hongtao Liu <hongtao.liu@intel.com>
5925 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
5926 NOTE_INSN_DELETED_LABEL check.
5928 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
5929 Robert Suchanek <robert.suchanek@mips.com>
5931 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
5932 and 3rd operands of the fmadd/fmsub/maddv builtin.
5934 2019-05-31 Jakub Jelinek <jakub@redhat.com>
5936 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
5937 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
5938 on OMP_SIMD if not nested inside of worksharing loop that also has
5939 lastprivate conditional clause for the same decl.
5940 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
5941 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
5943 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
5945 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
5947 (lower_lastprivate_clauses): Likewise.
5948 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
5949 calling lower_rec_input_clauses.
5950 (lower_omp_for): Likewise.
5951 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
5952 clause on simd construct.
5953 * omp-expand.c (expand_omp_simd): Initialize cond_var if
5954 OMP_CLAUSE__CONDTEMP_ clause is present.
5956 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
5959 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
5962 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
5963 TEX_D32, TEX_D64 or TEX_D128.
5965 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
5967 * match.pd (~(vec?cst1:cst2)): New transformation.
5969 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
5971 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
5972 ((size_t)(A /[ex] B) CMP C): New transformation.
5974 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
5976 * doc/md.texi: Document define_insn_and_rewrite.
5977 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
5978 * gensupport.c (queue_elem): Update comment.
5979 (replace_operands_with_dups): New function.
5980 (gen_rewrite_sequence): Likewise.
5981 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
5982 * read-rtl.c (apply_subst_iterator): Likewise.
5983 (add_condition_to_rtx, named_rtx_p): Likewise.
5984 (rtx_reader::read_rtx_operand): Likewise.
5985 * config/aarch64/aarch64-sve.md
5986 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
5987 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
5988 define_insn_and_rewrite.
5989 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
5990 Remove separate define_split.
5992 2019-05-31 Jan Hubicka <jh@suse.cz>
5994 * tree-ssa-alias.c (type_has_components_p): New function.
5995 (aliasing_component_refs_p): Use it.
5997 2019-05-31 Martin Liska <mliska@suse.cz>
5999 * gdbhooks.py: Add const_tree to TreePrinter.
6001 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
6004 * common.opt (feliminate-unused-debug-symbols): Enable by default.
6005 * doc/invoke.texi (Debugging Options): Document new default of
6006 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
6008 2019-05-31 Jakub Jelinek <jakub@redhat.com>
6010 PR tree-optimization/90671
6011 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
6012 template_block used to be empty on the first call, don't use
6013 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
6014 seq with bb_seq and set it with set_bb_seq.
6016 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
6018 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
6020 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
6021 Michael Meissner <meissner@linux.ibm.com>
6023 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
6024 (prefixed_mem_operand): Likewise.
6025 (non_prefixed_mem_operand): Likewise.
6026 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
6028 * config/rs6000/rs6000.c (print_operand_address): Handle
6029 PC-relative addresses.
6030 (mode_supports_prefixed_address_p): New function.
6031 (rs6000_prefixed_address): New function.
6032 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
6033 (SYMBOL_REF_PCREL_P): Likewise.
6035 2019-05-30 Jakub Jelinek <jakub@redhat.com>
6037 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
6038 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
6039 (gimplify_omp_for): If worksharing loop with lastprivate conditional
6040 is nested inside of parallel region, add _condtemp_ clause to both.
6041 * tree-nested.c (convert_nonlocal_omp_clauses,
6042 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
6044 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
6046 * omp-general.c (omp_extract_for_data): Compute it.
6047 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
6048 (lower_rec_input_clauses): Likewise.
6049 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
6050 clause is already present, just add one further one after it.
6051 (lower_lastprivate_clauses): Handle cond_ptr with array type.
6052 (lower_send_shared_vars): Clear _condtemp_ vars.
6053 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
6054 or section or taskgroup.
6055 * omp-expand.c (determine_parallel_type): Disallow combining only if
6056 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
6057 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
6058 (expand_omp_for_generic, expand_omp_for_static_nochunk,
6059 expand_omp_for_static_chunk, expand_omp_for): Use
6060 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
6061 determine if a special set of API routines are needed and if condtemp
6062 needs to be initialized, while always initialize cond_var if
6063 fd->lastprivate_conditional is non-zero.
6065 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
6066 Michael Meissner <meissner@linux.ibm.com>
6068 * config/rs6000/constraints.md (eI): New constraint.
6069 * config/rs6000/predicates.md (cint34_operand): New predicate.
6070 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
6071 (SIGNED_34BIT_OFFSET_P): Likewise.
6072 * doc/md.texi (eI): Document constraint.
6074 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
6076 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
6078 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
6079 Michael Meissner <meissner@linux.ibm.com>
6081 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
6082 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
6083 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
6084 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
6085 (OTHER_FUTURE_MASKS): Likewise.
6086 (POWERPC_MASKS): Likewise.
6087 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
6088 specified without -mprefixed-addr or -mcpu=future. Error if
6089 -mprefixed-addr is specified without -mcpu=future.
6090 (rs6000_opt_masks): Add entry for prefixed-addr.
6091 * rs6000.opt (mprefixed-addr): New option.
6093 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
6095 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
6096 cfun->is_thunk check.
6098 2019-05-30 Jakub Jelinek <jakub@redhat.com>
6100 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
6103 2019-05-30 Martin Liska <mliska@suse.cz>
6105 * gdbinit.in: Fix 'ptc' command. Add trt
6106 that prints TREE_TYPE($).
6108 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
6109 Alan Modra <amodra@gmail.com>
6111 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
6113 (rs6000_indirect_call_template_1): ...and here.
6114 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
6115 plt16_ha, plt16_lo, mtctr indirect calls. Use
6117 (rs6000_decl_ok_for_sibcall): New function.
6118 (rs6000_function_ok_for_sibcall): Refactor.
6119 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
6120 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
6121 when pcrel. Reorganize.
6122 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
6123 * rs6000.h (rs6000_pltseq_enum): New enum.
6124 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
6125 (*pltseq_tocsave): Use rs6000_pltseq_enum.
6126 (*pltseq_plt16_ha): Likewise.
6127 (*pltseq_plt16_lo): Likewise.
6128 (*pltseq_mtctr): Likewise.
6129 (*pltseq_plt_pcrel): New insn.
6130 (*call_local_aix): Handle @notoc calls.
6131 (*call_value_local_aix): Likewise.
6132 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
6133 (*call_value_nonlocal_aix): Likewise.
6134 (*call_indirect_pcrel): New insn.
6135 (*call_value_indirect_pcrel): Likewise.
6138 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
6140 * config/i386/sse.md (*save_multiple<mode>): Rename from
6141 save_multiple<mode>.
6142 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
6143 (*restore_multiple_and_return<mode>): Rename from
6144 restore_multiple_and_return<mode>.
6145 (*restore_multiple_leave_return<mode>): Rename from
6146 restore_multiple_leave_return<mode>.
6148 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
6150 * config.gcc (rx-*-linux*): New target.
6151 * config/rx/elf.opt: New file.
6152 * config/rx/linux.h: Likewise.
6153 * config/rx/t-linux: Likewise.
6154 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
6156 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
6157 (ASM_APP_OFF): Likewise.
6158 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
6161 2019-05-29 Jan Hubicka <jh@suse.cz>
6163 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
6164 variants are pointer equivalent.
6166 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
6168 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
6169 * config/aarch64/aarch64-sve2.md: New file.
6170 (<u>avg<mode>3_floor): New pattern.
6171 (<u>avg<mode>3_ceil): Likewise.
6172 (*<sur>h<addsub><mode>): Likewise.
6173 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
6174 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
6176 2019-05-29 Jakub Jelinek <jakub@redhat.com>
6179 * optc-save-gen.awk: In cl_optimization_print, use correct condition
6180 for var_opt_string printing. In cl_optimization_print_diff, print
6181 (null) instead of invoking undefined behavior if one of the
6182 var_opt_string pointers is NULL and use && instead of first || in the
6183 guarding condition. For var_target_other options, handle const char *
6184 target variables similarly to const char * optimize node variables.
6186 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
6188 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
6189 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
6190 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
6191 Add autib1716 and pacib1716 initialisation.
6192 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
6193 for autib1716 and pacib1716.
6194 * config/aarch64/aarch64-protos.h (aarch64_key_type,
6195 aarch64_post_cfi_startproc): Define.
6196 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
6197 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
6198 aarch64_handle_pac_ret_protection): Set default sign key to A.
6199 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
6200 aarch64_expand_prologue): Add check for b-key.
6201 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
6202 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
6203 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
6204 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
6205 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
6206 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
6207 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
6208 * config/aarch64/aarch64.md (do_return): Add check for b-key.
6209 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
6210 pauth_hint_num_a with pauth_hint_num.
6211 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
6212 pauth_hint_num_a with pauth_hint_num.
6213 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
6214 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
6215 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
6216 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
6217 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
6218 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
6219 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
6220 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
6221 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
6222 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
6223 UNSPEC_AUTIA1716 respectively.
6224 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
6225 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
6226 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
6227 * doc/invoke.texi (-mbranch-protection): Add b-key type.
6228 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
6229 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
6231 2019-05-29 Jakub Jelinek <jakub@redhat.com>
6233 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
6234 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
6235 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
6236 explicit clause on combined parallel into implicit shared clause.
6237 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
6238 and firstprivate if the decl has one too from combined parallel to
6239 the worksharing construct.
6241 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
6242 Michael Meissner <meissner@linux.ibm.com>
6244 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
6246 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
6248 * rtl.h (LABEL_REF_P): New #define.
6250 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
6252 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
6254 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
6256 * internal-fn.c: Marked mask_load_direct as vectorizable.
6257 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
6258 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
6259 combined even if masks different with allow_slp_p param.
6260 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
6261 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
6262 dissolve SLP-only vectorizable groups when SLP has been discarded.
6263 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
6264 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
6266 (vect_build_slp_tree_1): Fixed comment typo.
6267 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
6268 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
6270 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
6272 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
6274 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6276 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
6277 Remove obsolete use_thunk reference.
6278 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
6279 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
6280 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
6281 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
6282 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
6283 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
6284 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
6285 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
6286 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
6288 2019-05-28 Nathan Sidwell <nathan@acm.org>
6290 * tree.h (IDENTIFIER_ANON_P): New.
6291 (anon_aggrname_format, anon_aggname_p): Don't declare.
6292 (make_anon_name): Declare.
6293 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
6294 (hash_tree): Likewise.
6295 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
6296 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
6297 (anon_cnt, make_anon_name): New.
6299 2019-05-28 Martin Liska <mliska@suse.cz>
6302 * opts-global.c (decode_options): Print help for all
6303 help_option_arguments.
6304 * opts.c (print_help): Add new argument.
6305 (common_handle_option): Remember all values into
6306 help_option_arguments.
6307 * opts.h (print_help): Add new argument.
6309 2019-05-28 Martin Liska <mliska@suse.cz>
6312 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
6313 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
6314 (func_checker::compare_bb): Call compare_loops.
6316 2019-05-27 Jakub Jelinek <jakub@redhat.com>
6318 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
6319 on sections construct.
6320 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
6322 (lower_omp_sections): Handle lastprivate conditional.
6323 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
6324 lastprivate_conditional_map.
6325 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
6327 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
6328 critical, taskgroup and section regions when looking for a region
6329 with non-NULL lastprivate_conditional_map.
6331 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
6333 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
6334 (*ix86_gen_sub3): Ditto.
6335 (*ix86_gen_sub3_carry): Ditto.
6336 (*ix86_gen_one_cmpl2): Ditto.
6337 (*ix86_gen_andsp): Ditto.
6338 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
6339 (gen_and2_insn): New static function.
6340 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
6341 Use gen_add3_insn instead of ix86_gen_add3.
6342 (ix86_expand_split_stack_prologue): Use gen_add2_insn
6343 instead of ix86_gen_add3.
6344 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
6345 Use gen_sub3_insn instead of ix86_gen_sub3.
6346 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
6347 instead of ix86_gen_add3.
6348 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
6349 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
6350 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
6351 * config/i386/i386-options.c (ix86_option_override_internal):
6352 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
6353 ix86_gen_one_cmpl2 and ix86_gen_andsp.
6355 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
6357 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
6358 and DW_OP_GNU_const_index opcodes.
6360 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
6362 * config/i386/i386.h (STACK_SIZE_MODE): Define.
6364 2019-05-27 Richard Biener <rguenther@suse.de>
6366 PR tree-optimization/90637
6367 * tree-ssa-sink.c (statement_sink_location): Honor the
6368 computed sink location for single-uses.
6370 2019-05-27 Richard Biener <rguenther@suse.de>
6373 * match.pd (vec_perm): Avoid clobbering op0 when not generating
6376 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
6378 * config/i386/i386.md (@sub<mode>3_carry): Rename
6379 from sub<mode>3_carry.
6380 (@leave_<mode>): New expander.
6381 (*leave): Rename from leave.
6382 (*leave_rex64): Rename from leave_rex64.
6383 (@monitorx_<mode>): Rename from monitorx_<mode>.
6384 (@clzero_<mode>): Rename from clzero_<mode>.
6385 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
6386 from sse3_monitor_<mode>.
6387 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
6388 (*ix86_gen_leave): Ditto.
6389 (*ix86_gen_monitor): Ditto.
6390 (*ix86_gen_monitorx): Ditto.
6391 (*ix86_gen_clzero): Ditto.
6392 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
6393 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
6394 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
6395 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
6396 Use gen_sse3_monitor instead of ix86_gen_monitor.
6397 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
6398 instead of ix86_gen_monitorx.
6399 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
6400 instead of ix86_gen_clzero.
6401 * config/i386/i386-options.c (ix86_option_override_internal):
6402 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
6403 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
6405 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
6407 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
6408 Rename from tls_global_dynamic_64_<mode>.
6409 (@tls_local_dynamic_base_64_<mode>): Rename from
6410 tls_local_dynamic_base_64_<mode>.
6411 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
6412 Remove indirect function.
6413 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
6414 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
6415 instead of ix86_gen_tls_global_dynamic_64.
6416 Use gen_tls_local_dynamic_base_64 instead of
6417 ix86_gen_tls_local_dynamic_base_64.
6418 * config/i386/i386-options.c (ix86_option_override_internal):
6419 Do not initialize ix86_gen_tls_global_dynamic_64 and
6420 ix86_gen_tls_local_dynamic_base_64.
6422 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
6424 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
6425 Rename from pro_epilogue_adjust_stack_<mode>_add.
6426 (@pro_epilogue_adjust_stack_sub_<mode>)
6427 Rename from pro_epilogue_adjust_stack_<mode>_sub.
6428 (@allocate_stack_worker_probe_<mode>):
6429 Rename from allocate_stack_worker_probe_<mode>.
6430 (allocate_stack): Use gen_allocate_stack_worker_probe.
6431 (probe_stack): Use gen_probe_stack_1.
6432 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
6433 (@adjust_stack_and_probe_<mode>): Rename from
6434 adjust_stack_and_probe<mode>.
6435 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
6436 (stack_protect_set): Use gen_stack_protect_set_1.
6437 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
6438 (stack_protect_test): Use gen_stack_protect_test_1.
6439 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
6440 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
6441 Remove indirect function.
6442 (*ix86_gen_adjust_stack_and_probe): Ditto.
6443 (*ix86_gen_probe_stack_range): Ditto.
6444 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
6445 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
6446 (ix86_adjust_stack_and_probe_stack_clash): Use
6447 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
6448 (ix86_adjust_stack_and_probe): Ditto.
6449 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
6450 of ix86_gen_probe_stack_range.
6451 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
6452 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
6453 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
6454 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
6455 CODE_FOR_stack_protect_test_{si,di}.
6456 * config/i386/i386-options.c (ix86_option_override_internal):
6457 Do not initialize ix86_gen_allocate_stack_worker,
6458 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
6460 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
6462 * doc/invoke.texi (Link Options): Many editorial changes around
6465 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6467 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
6468 pre-Solaris 11 referene and most Studio compiler details.
6470 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
6473 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
6474 DImode to SImode in floating-point registers on 64-bit target.
6475 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
6476 register_operand in xmpyu patterns.
6478 2019-05-24 Jakub Jelinek <jakub@redhat.com>
6480 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
6481 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
6482 OMP_CLAUSE__REDUCTEMP_.
6483 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
6484 OMP_CLAUSE__CONDTEMP_.
6485 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
6486 * tree-pretty-print.c (dump_omp_clause): Likewise.
6487 * tree-nested.c (convert_nonlocal_omp_clauses,
6488 convert_local_omp_clauses): Likewise.
6489 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
6490 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
6491 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
6493 (gimplify_omp_for): Warn and disable conditional modifier from
6494 lastprivate on loop iterators.
6495 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
6497 * omp-general.c (omp_extract_for_data): Initialize it.
6498 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
6500 (delete_omp_context): Delete it.
6501 (lower_lastprivate_conditional_clauses): New function.
6502 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
6503 handle lastprivate conditional clauses.
6504 (lower_reduction_clauses): Add CLIST argument, emit it into
6505 the critical section if any.
6506 (lower_omp_sections): Adjust lower_lastprivate_clauses and
6507 lower_reduction_clauses callers.
6508 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
6509 to lower_lastprivate_clauses.
6510 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
6511 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
6512 clist into a critical section if not emitted there already by
6513 lower_reduction_clauses.
6514 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
6516 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
6517 conditional variables.
6518 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
6520 (expand_omp_for_generic, expand_omp_for_static_nochunk,
6521 expand_omp_for_static_chunk): Handle lastprivate conditional.
6522 (expand_omp_for): Handle fd.lastprivate_conditional like
6525 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
6527 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
6528 kernel does not exit cleanly.
6529 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
6531 2019-05-24 Jason Merrill <jason@redhat.com>
6534 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
6536 2019-05-24 Richard Biener <rguenther@suse.de>
6539 * tree-loop-distribution.c (struct partition): Add location
6541 (partition_alloc): Initialize all fields.
6542 (generate_memset_builtin): Use the location recorded in the
6543 partition for the generated call.
6544 (generate_memcpy_builtin): Likewise.
6545 (classify_partition): Record the location of a single store
6546 as location for the partition.
6548 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
6550 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
6553 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
6556 * common/config/aarch64/aarch64-common.c
6557 (aarch64_rewrite_selected_cpu): Change local temporary variable
6558 type from unsigned long to uint64_t.
6559 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
6560 aarch64_get_extension_string_for_isa_flags): Change declaration to
6561 match new definition by replacing unsigned long with uint64_t.
6563 2019-05-24 Jakub Jelinek <jakub@redhat.com>
6566 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
6567 gen_attr_type just once instead of 4-7 times. Formatting fixes.
6568 Handle stack_protect_test_<mode> codegen similarly to corresponding
6571 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
6573 * config/i386/darwin.h: Reject -mfentry*.
6574 * doc/sourcebuild.texi: Document mfentry target support.
6576 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
6578 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
6579 Rename to rs6000_global_entry_point_prologue_needed_p. Return
6580 false for PC-relative functions.
6581 (rs6000_output_function_prologue): Change called function name to
6582 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
6583 name,1" for PC-relative functions.
6584 (rs6000_elf_declare_function_name): Change called function name to
6585 rs6000_global_entry_point_prologue_needed_p.
6587 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
6590 * config/i386/i386.c (gen_rtx_cost):
6591 Use ix86_tune_cost instead of ix86_cost.
6593 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
6594 Michael Meissner <meissner@linux.ibm.com>
6595 Segher Boessenkool <segher@kernel.crashing.org>
6597 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
6599 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
6600 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
6601 (rs6000_fndecl_pcrel_p): Likewise.
6602 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
6603 error if -mpcrel is requested without -mcpu=future.
6604 (rs6000_opt_masks): Add entry for pcrel.
6605 (rs6000_fndecl_pcrel_p): New function.
6606 (rs6000_pcrel_p): Likewise.
6607 * config/rs6000/rs6000.opt (mpcrel): New option.
6608 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
6610 2019-05-23 Jan Hubicka <jh@suse.cz>
6611 Martin Liska <mliska@suse.cz>
6613 PR tree-optimization/90576
6614 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
6616 (aliasing_component_refs_p): Fix three way size compare conditional;
6617 give up earlier in case we can not decide on equivalence.
6619 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
6620 Michael Meissner <meissner@linux.ibm.com>
6621 Segher Boessenkool <segher@kernel.crashing.org>
6623 * config.gcc: Add future cpu.
6624 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
6625 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
6627 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
6628 (RS6000_CPU): New instantiation for future cpu.
6629 * config/rs6000/rs6000-opts.h (enum processor_type): Add
6631 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
6632 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
6633 * config/rs6000/rs6000-tables.opt: Regenerate.
6634 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
6635 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
6636 (rs6000_machine_from_flags): Handle future cpu.
6637 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
6638 PROCESSOR_POWER9 for now.
6639 (rs6000_adjust_cost): Likewise.
6640 (rs6000_issue_rate): Likewise.
6641 (rs6000_register_move_cost): Likewise.
6642 (rs6000_opt_masks): Add entry for future.
6643 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
6644 (MASK_FUTURE): New #define.
6645 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
6646 * config/rs6000/rs6000.opt (mfuture): New target option.
6647 * doc/invoke.texi (mcpu): Add future cpu.
6649 2019-05-23 Martin Liska <mliska@suse.cz>
6652 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
6653 operation points to a temporary (pointed via tree_to_wide_ref)
6654 that is out of scope after the &.
6656 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
6659 * doc/extend.texi (Function Names): Add missing word.
6661 2019-05-23 Richard Biener <rguenther@suse.de>
6663 PR tree-optimization/88440
6664 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
6666 * tree-loop-distribution.c (generate_memset_builtin): Fold the
6668 (generate_memcpy_builtin): Likewise.
6669 (distribute_loop): Pass in whether to only distribute patterns.
6670 (prepare_perfect_loop_nest): Also allow size optimization.
6671 (pass_loop_distribution::execute): When optimizing a loop
6672 nest for size allow pattern replacement.
6674 2019-05-23 Jakub Jelinek <jakub@redhat.com>
6677 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
6680 2019-05-23 Martin Liska <mliska@suse.cz>
6683 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
6684 expression similarly to gimplify_decl_expr.
6686 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6688 * cse.c (cse_dump_path): s/dump_file/f.
6690 2019-05-22 David Malcolm <dmalcolm@redhat.com>
6693 * diagnostic-format-json.cc: Include "selftest.h".
6694 (json_from_expanded_location): Only add "file" key for non-NULL
6696 (json_from_location_range): Don't add "start" and "finish"
6697 children if they are UNKNOWN_LOCATION.
6698 (selftest::test_unknown_location): New selftest.
6699 (selftest::test_bad_endpoints): New selftest.
6700 (selftest::diagnostic_format_json_cc_tests): New function.
6701 * json.cc (json::object::get): New function.
6702 (selftest::test_object_get): New selftest.
6703 (selftest::json_cc_tests): Call it.
6704 * json.h (json::object::get): New decl.
6705 * selftest-run-tests.c (selftest::run_tests): Call
6706 selftest::diagnostic_format_json_cc_tests.
6707 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
6710 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
6711 Andrew Stubbs <amd@codesourcery.com>
6713 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
6714 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
6715 (kernel): Rename to...
6716 (main_kernel): ... this.
6717 (load_image): Load _init_array and _fini_array kernels.
6718 (run): Add argument for kernel to run.
6719 (main): Run init_array_kernel before main_kernel, and
6720 fini_array_kernel after.
6721 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
6722 amdgpu_hsa_kernel attribute on functions.
6723 (gcn_disable_constructors): Delete.
6724 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
6725 * config/gcn/crt0.c (size_t): Define.
6726 (_init_array, _fini_array): New.
6727 (__preinit_array_start, __preinit_array_end,
6728 __init_array_start, __init_array_end,
6729 __fini_array_start, __fini_array_end): Declare weak references.
6731 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
6733 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
6735 2019-05-22 Jason Merrill <jason@redhat.com>
6737 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
6739 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
6742 * config/i386/i386-options.c (ix86_init_machine_status): Set
6743 stack_frame_required to true.
6744 * config/i386/i386.c (ix86_get_frame_size): New function.
6745 (ix86_frame_pointer_required): Replace get_frame_size with
6746 ix86_get_frame_size.
6747 (ix86_compute_frame_layout): Likewise.
6748 (ix86_find_max_used_stack_alignment): Changed to void. Set
6749 stack_frame_required.
6750 (ix86_finalize_stack_frame_flags): Always call
6751 ix86_find_max_used_stack_alignment. Replace get_frame_size with
6752 ix86_get_frame_size.
6753 * config/i386/i386.h (machine_function): Add stack_frame_required.
6755 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
6757 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
6759 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
6761 * common/config/aarch64/aarch64-common.c
6762 (struct aarch64_option_extension, struct processor_name_to_arch,
6763 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
6764 aarch64_contains_opt,
6765 aarch64_get_extension_string_for_isa_flags): Change type of
6766 variables storing flags to uint64_t.
6767 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
6768 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
6769 * config/aarch64/aarch64.c (struct processor,
6770 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
6771 aarch64_validate_march, aarch64_override_options,
6772 aarch64_option_print, aarch64_handle_attr_isa_flags,
6773 aarch64_declare_function_name, aarch64_start_file): Make flag
6775 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
6776 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
6777 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
6778 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
6779 * config/aarch64/driver-aarch64.c
6780 (struct aarch64_arch_extension, struct aarch64_core_data,
6781 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
6782 flag variables uint64_t.
6783 * doc/invoke.texi: Add documentation for new arguments.
6785 2019-05-22 Richard Biener <rguenther@suse.de>
6787 * alias.c (ao_ref_from_mem): Move stack-slot sharing
6789 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
6791 2019-05-22 Martin Liska <mliska@suse.cz>
6794 * doc/extend.texi: Document the change.
6796 2019-05-22 Richard Biener <rguenther@suse.de>
6798 PR tree-optimization/90450
6799 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
6800 (mem_ref_hasher::equal): Check it.
6801 (mem_ref_alloc): Initialize it.
6802 (gather_mem_refs_stmt): Set it.
6804 2019-05-22 Richard Biener <rguenther@suse.de>
6806 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
6808 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
6811 2019-05-22 Alan Modra <amodra@gmail.com>
6813 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
6814 (ASM_CPU_SPEC): Conditionally add -many.
6815 * config/rs6000/rs6000.c (rs6000_machine): New static var.
6816 (rs6000_machine_from_flags, emit_asm_machine): New functions..
6817 (rs6000_file_start): ..extracted from here, and modified to
6819 (rs6000_output_function_prologue): Emit .machine as necessary.
6820 * testsuite/gcc.target/powerpc/ppc32-abi-dfp-1.c: Don't use
6822 * testsuite/gcc.dg/vect/O3-pr70130.c: Disable default options
6823 added by check_vect_support_and_set_flags.
6824 * testsuite/gcc.dg/vect/pr48765.c: Likewise.
6825 * testsuite/gfortran.dg/vect/pr45714-b.f: Likewise.
6827 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
6830 * ira-lives.c (process_bb_node_lives): Consider defs
6831 for a call insn to be die before the call, not after.
6833 * function.c (assign_parm_setup_block): Raise alignment of
6834 stacked parameter only for STRICT_ALIGNMENT targets.
6836 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
6838 * config/rs6000/constraints.md (define_register_constraint "wz"):
6840 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6841 RS6000_CONSTRAINT_wz.
6842 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6843 (rs6000_init_hard_regno_mode_ok): Adjust.
6844 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
6845 * doc/md.texi (Machine Constraints): Adjust.
6847 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
6849 * config/rs6000/constraints.md (define_register_constraint "wl"):
6851 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6852 RS6000_CONSTRAINT_wl.
6853 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6854 (rs6000_init_hard_regno_mode_ok): Adjust.
6855 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
6856 * doc/md.texi (Machine Constraints): Adjust.
6858 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
6860 * config/rs6000/constraints.md (define_register_constraint "wm"):
6862 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6863 RS6000_CONSTRAINT_wm.
6864 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6865 (rs6000_init_hard_regno_mode_ok): Adjust.
6866 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
6867 * doc/md.texi (Machine Constraints): Adjust.
6869 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
6871 * config/rs6000/constraints.md (define_register_constraint "wk"):
6873 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6874 RS6000_CONSTRAINT_wk.
6875 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6876 (rs6000_init_hard_regno_mode_ok): Adjust.
6877 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
6878 * doc/md.texi (Machine Constraints): Adjust.
6880 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
6882 * config/rs6000/constraints.md (define_register_constraint "wj"):
6884 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6885 RS6000_CONSTRAINT_wj.
6886 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6887 (rs6000_init_hard_regno_mode_ok): Adjust.
6888 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
6890 * config/rs6000/vsx.md: Ditto.
6891 * doc/md.texi (Machine Constraints): Adjust.
6893 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
6895 * config/rs6000/constraints.md (define_register_constraint "wh"):
6897 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6898 RS6000_CONSTRAINT_wh.
6899 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6900 (rs6000_init_hard_regno_mode_ok): Adjust.
6901 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
6902 * doc/md.texi (Machine Constraints): Adjust.
6904 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
6907 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
6908 Avoid calling gen_lowpart with CONST operand.
6910 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
6912 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
6913 field template_last_to_copy.
6914 (ssa_create_duplicates): Set it, and use it. Attempt to
6915 preserve more debug stmts.
6917 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
6919 * config/i386/sse.md (VF1_AVX2): New mode iterator.
6920 (signbit<mode>2): New expander
6922 2019-05-21 James Clarke <jrtc27@jrtc27.com>
6925 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
6926 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
6928 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
6930 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
6931 %ebx and %ecx bafore calling cpuid with leaf 1 or
6932 non-constant leaf argument.
6934 2019-05-21 Alan Modra <amodra@gmail.com>
6937 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
6938 power9 direct move cost.
6939 * testsuite/gcc.target/powerpc/fold-vec-splats-floatdouble.c:
6940 Correct comments and rename functions to suit parameters.
6942 2019-05-21 Richard Biener <rguenther@suse.de>
6945 * fold-const.c (fold_read_from_vector): New function.
6946 * fold-const.h (fold_read_from_vector): Declare.
6947 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
6948 single-element insert permutations. Canonicalize selector
6949 further and fix issue with last commit.
6951 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
6953 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
6954 parameter with default value false to declaration.
6955 (split_edges_for_insertion): New inline function. Wrapper for
6956 split_critical_edges with for_edge_insertion_p = true.
6957 * tree-cfg.c (split_critical_edges): Don't split non-critical
6958 edges if for_edge_insertion_p is false. Fix whitespace.
6959 * tree-ssa-pre.c (pass_pre::execute): Call
6960 split_edges_for_insertion instead of split_critical_edges.
6961 * gcc/tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
6962 * gcc/tree-ssa-sink.c (pass_sink_code::execute): Ditto.
6963 (pass_data_sink_code): Update function name in the comment.
6965 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
6967 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
6968 around is_value_included_in that knows how to handle BIT_AND_EXPR.
6969 (is_pred_expr_subset_of): Use the new function. Handle more cases where
6970 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
6973 2019-05-21 Martin Liska <mliska@suse.cz>
6975 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
6977 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
6978 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
6980 * config/rs6000/rs6000.c (rs6000_option_override_internal):
6982 (rs6000_function_arg): Likewise.
6983 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
6984 (rs6000_expand_ternop_builtin): Use interval syntax.
6985 (get_element_number): Likewise.
6986 (altivec_expand_builtin): Likewise.
6987 (rs6000_get_function_versions_dispatcher): Quote target_clones.
6989 2019-05-20 Jakub Jelinek <jakub@redhat.com>
6993 * function.h (struct function): Add calls_eh_return member.
6994 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
6995 gimplifying __builtin_eh_return call.
6996 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
6998 (expand_call_inline): Or in src_cfun->calls_eh_return into
6999 dst_cfun->calls_eh_return.
7000 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
7001 cfun->calls_eh_return.
7002 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
7003 * lto-streamer-out.c (output_struct_function_base): Write
7006 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
7008 PR rtl-optimization/43147
7009 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
7010 IX86_BUILTIN_SHUFPD.
7012 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
7014 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
7015 (refs_may_alias_p_1): ... here; update stats.
7016 (refs_may_alias_p): Do not update stats here.
7018 2019-05-20 Richard Biener <rguenther@suse.de>
7020 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
7021 doesn't produce pointers.
7022 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
7023 the first operand points to.
7025 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
7027 * tree-ssa-alias.c (compare_sizes): New function.
7028 (sompare_type_sizes): New function
7029 (aliasing_component_refs_p): Use it.
7030 (indirect_ref_may_alias_decl_p): Likewise.
7032 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7034 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
7036 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7038 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
7039 (LIBLSAN_EARLY_SPEC): Likewise.
7040 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
7042 2019-05-20 Martin Liska <mliska@suse.cz>
7044 * config/i386/i386.c (ix86_libc_has_fast_function):
7045 Add ATTRIBUTE_UNUSED for the argument.
7047 2019-05-20 Richard Biener <rguenther@suse.de>
7049 * gimple-match-head.c: Include vec-perm-indices.h.
7050 * generic-match-head.c: Likewise.
7051 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
7053 * fold-const.c (fold_vec_perm): Export.
7054 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
7055 (match.pd): ...here.
7057 2019-05-20 Jakub Jelinek <jakub@redhat.com>
7059 * cfgloop.h (struct loop): Add simdlen member.
7060 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
7061 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
7062 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
7063 as new argument to autovectorize_vector_sizes target hook. If
7064 loop->simdlen, pick up vector size where the vectorization factor
7065 is equal to loop->simd, and if there is none, fall back to the first
7067 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
7069 * omp-low.c (omp_clause_aligned_alignment): Likewise.
7070 * omp-general.c (omp_max_vf): Likewise.
7071 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
7072 * tree-vect-slp.c (vect_slp_bb): Likewise.
7073 * target.def (autovectorize_vector_sizes): Add ALL argument and
7075 * doc/tm.texi: Adjust documentation.
7076 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
7077 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
7078 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
7080 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
7081 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
7082 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
7083 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
7084 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
7085 preferred vector size is not 512-bit or 256-bit, just put those
7086 unpreferred ones last.
7088 2019-05-20 Martin Liska <mliska@suse.cz>
7090 * targhooks.c (default_libc_has_fast_function): New function.
7091 * targhooks.h (default_libc_has_fast_function): Likewise.
7093 2019-05-20 Martin Liska <mliska@suse.cz>
7096 * builtins.c (expand_builtin_memory_copy_args): When having a
7097 target with fast mempcpy implementation do now use memcpy.
7098 * config/i386/i386.c (ix86_libc_has_fast_function): New.
7099 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
7100 * doc/tm.texi: Likewise.
7101 * doc/tm.texi.in: Likewise.
7103 * expr.c (emit_block_move_hints): Add 2 new arguments.
7104 * expr.h (emit_block_move_hints): Bail out when libcall
7105 to memcpy would be used.
7107 2019-05-20 Martin Liska <mliska@suse.cz>
7109 * profile-count.c: Add vertical spacing in order
7110 to separate functions.
7111 * profile-count.h: Likewise.
7113 2019-05-20 Martin Liska <mliska@suse.cz>
7115 * profile-count.h: Do not use full qualified
7117 * profile-count.c (profile_count::to_frequency): Likewise.
7119 2019-05-20 Martin Liska <mliska@suse.cz>
7121 * profile-count.h (enum profile_quality): Use capital letters
7122 for enum value names. Use the adjusted names.
7123 * profile-count.c: Use the adjusted names.
7125 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
7127 * config/rs6000/constraints.md (define_register_constraint "wH"):
7129 (define_register_constraint "wI"): Delete.
7130 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
7131 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
7132 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
7133 (rs6000_init_hard_regno_mode_ok): Adjust.
7134 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
7135 resp. "d", or with "wa" as appropriate, all with "p8v".
7136 * config/rs6000/vsx.md: Ditto.
7137 * doc/md.texi (Machine Constraints): Adjust.
7139 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
7141 * config/rs6000/constraints.md (define_register_constraint "wy"):
7143 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
7144 RS6000_CONSTRAINT_wy.
7145 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
7146 (rs6000_init_hard_regno_mode_ok): Adjust.
7147 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
7148 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
7149 (define_mode_attr Fisa): New.
7150 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
7151 * doc/md.texi (Machine Constraints): Adjust.
7153 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
7155 * config/rs6000/constraints.md (define_register_constraint "wu"):
7157 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
7158 RS6000_CONSTRAINT_wu.
7159 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
7160 (rs6000_init_hard_regno_mode_ok): Adjust.
7161 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
7163 (define_mode_attr Fa): Delete.
7164 * config/rs6000/vsx.md: Ditto.
7165 * doc/md.texi (Machine Constraints): Adjust.
7167 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
7169 * config/rs6000/constraints.md (define_register_constraint "wJ"):
7171 (define_register_constraint "wK"): Delete.
7172 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
7173 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
7174 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
7175 (rs6000_init_hard_regno_mode_ok): Adjust.
7176 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
7177 Replace "wK" constraint by "wH" with "p9v".
7178 * config/rs6000/vsx.md: Ditto.
7179 * doc/md.texi (Machine Constraints): Adjust.
7181 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
7183 * config/rs6000/constraints.md (define_register_constraint "wb"):
7185 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
7186 RS6000_CONSTRAINT_wb.
7187 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
7188 (rs6000_init_hard_regno_mode_ok): Adjust.
7189 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
7190 * config/rs6000/vsx.md: Ditto.
7191 * doc/md.texi (Machine Constraints): Adjust.
7193 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
7195 * config/rs6000/constraints.md (define_register_constraint "wo"):
7197 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
7198 RS6000_CONSTRAINT_wo.
7199 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
7200 (rs6000_init_hard_regno_mode_ok): Adjust.
7201 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
7202 * config/rs6000/altivec.md: Ditto.
7203 * doc/md.texi (Machine Constraints): Adjust.
7205 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
7207 * config/darwin-c.c (darwin_register_objc_includes): Do not
7208 prepend the sysroot when building gnu-runtime header search
7211 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
7213 * config/darwin.c (darwin_file_end): Use switch_to_section ()
7214 instead of direct output of the asm.
7216 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
7218 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
7219 argument to be type bool (was int before).
7220 (rs6000_emit_epilogue): Simplify some code. Declare some variables
7221 at first use. Use type bool for some variables. Fix a theoretical
7222 eh_return bug for svr4.
7224 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
7226 * config/rs6000/rs6000.md (isa): New attribute.
7227 (enabled): New attribute.
7229 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
7231 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
7232 assemble_start_function and assemble_end_function.
7234 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
7237 * omp-general.c (oacc_verify_routine_clauses): Change formal
7238 parameters. Add checking if already marked with an OpenACC
7239 'routine' directive. Adjust all users.
7242 * omp-general.c (oacc_build_routine_dims): Move some of its
7244 (oacc_verify_routine_clauses): ... this new function.
7245 * omp-general.h (oacc_verify_routine_clauses): New prototype.
7247 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
7249 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
7250 formating of picbase labels to match other ports.
7252 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
7254 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
7255 in the generated code.
7257 2019-05-16 Martin Sebor <msebor@redhat.com>
7259 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
7260 identifiers, keywords, operators, and types in diagnostics. Correct
7261 quoting, spelling, and sentence capitalization issues.
7262 (expand_builtin_atomic_is_lock_free): Same.
7263 (fold_builtin_next_arg): Same.
7264 * cfgexpand.c (expand_one_var): Same.
7265 (tree_conflicts_with_clobbers_p): Same.
7266 (expand_asm_stmt): Same.
7267 (verify_loop_structure): Same.
7268 * cgraphunit.c (process_function_and_variable_attributes): Same.
7269 * collect-utils.c (collect_execute): Same.
7270 * collect2.c (maybe_run_lto_and_relink): Same.
7271 (is_lto_object_file): Same.
7272 (scan_prog_file): Same.
7273 * convert.c (convert_to_real_1): Same.
7274 * dwarf2out.c (dwarf2out_begin_prologue): Same.
7275 * except.c (verify_eh_tree): Same.
7276 * gcc.c (execute): Same.
7277 (eval_spec_function): Same.
7278 (run_attempt): Same.
7279 (driver::set_up_specs): Same.
7280 (compare_debug_auxbase_opt_spec_function): Same.
7281 * gcov-tool.c (unlink_gcda_file): Same.
7284 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
7285 * gimplify.c (gimplify_asm_expr): Same.
7286 (gimplify_adjust_omp_clauses): Same.
7287 * hsa-gen.c (gen_hsa_addr_insns): Same.
7288 (gen_hsa_insns_for_load): Same.
7289 (gen_hsa_cmp_insn_from_gimple): Same.
7290 (gen_hsa_insns_for_operation_assignment): Same.
7291 (gen_get_level): Same.
7292 (gen_hsa_alloca): Same.
7293 (omp_simple_builtin::generate): Same.
7294 (gen_hsa_atomic_for_builtin): Same.
7295 (gen_hsa_insns_for_call): Same.
7296 * input.c (dump_location_info): Same.
7297 * ipa-devirt.c (compare_virtual_tables): Same.
7298 * ira.c (ira_setup_eliminable_regset): Same.
7299 * lra-assigns.c (lra_assign): Same.
7300 * lra-constraints.c (lra_constraints): Same.
7301 * lto-streamer-in.c (lto_input_mode_table): Same.
7302 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
7303 (merge_and_complain): Same.
7304 (compile_offload_image): Same.
7305 (compile_images_for_offload_targets): Same.
7306 (debug_objcopy): Same.
7309 * opts.c (print_specific_help): Same.
7310 (parse_no_sanitize_attribute): Same.
7312 (handle_param): Same.
7313 * plugin.c (add_new_plugin): Same.
7314 (parse_plugin_arg_opt): Same.
7315 (try_init_one_plugin): Same.
7316 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
7317 operators, and types in diagnostics. Correct quoting and spelling
7319 * read-rtl-function.c (parse_edge_flag_token): Same.
7320 (function_reader::parse_enum_value): Same.
7321 * reg-stack.c (check_asm_stack_operands): Same.
7322 * regcprop.c (validate_value_data): Same.
7323 * sched-rgn.c (make_pass_sched_fusion): Same.
7324 * stmt.c (check_unique_operand_names): Same.
7325 * targhooks.c (default_target_option_pragma_parse): Same.
7326 * tlink.c (recompile_files): Same.
7327 * toplev.c (process_options): Same.
7329 * trans-mem.c (diagnose_tm_1): Same.
7330 (ipa_tm_scan_irr_block): Same.
7331 (ipa_tm_diagnose_transaction): Same.
7332 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
7333 format a tree code name in a diagnostic.
7334 (verify_types_in_gimple_min_lval): Same.
7335 (verify_types_in_gimple_reference): Same.
7336 (verify_gimple_call): Same.
7337 (verify_gimple_assign_unary): Same.
7338 (verify_gimple_assign_binary): Same.
7339 (verify_gimple_assign_ternary): Same.
7340 (verify_gimple_assign_single): Same.
7341 (verify_gimple_switch): Same.
7342 (verify_gimple_label): Same.
7343 (verify_gimple_phi): Same.
7344 (verify_gimple_in_seq): Same.
7345 (verify_eh_throw_stmt_node): Same.
7346 (collect_subblocks): Same.
7347 (gimple_verify_flow_info): Same.
7348 (do_warn_unused_result): Same.
7349 * tree-inline.c (expand_call_inline): Same.
7350 * tree-into-ssa.c (update_ssa): Same.
7351 * tree.c (tree_int_cst_elt_check_failed): Same.
7352 (tree_vec_elt_check_failed): Same.
7353 (omp_clause_operand_check_failed): Same.
7354 (verify_type_variant): Same.
7355 (verify_type): Same.
7356 * value-prof.c (verify_histograms): Same.
7357 * varasm.c (assemble_start_function): Same.
7359 2019-05-16 Martin Sebor <msebor@redhat.com>
7361 * config/i386/i386-expand.c (get_element_number): Quote keywords
7362 and other internal names in diagnostics. Adjust other diagnostic
7363 formatting issues noted by -Wformat-diag.
7364 * config/i386/i386-features.c
7365 (ix86_mangle_function_version_assembler_name): Same.
7366 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
7367 * config/i386/i386.c (ix86_function_type_abi): Same.
7368 (ix86_function_ms_hook_prologue): Same.
7369 (classify_argument): Same.
7370 (ix86_expand_prologue): Same.
7371 (ix86_md_asm_adjust): Same.
7372 (ix86_memmodel_check): Same.
7374 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
7376 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
7377 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
7380 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
7383 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
7384 intrinsics without SSE/SSE2/SSSE3.
7385 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
7387 (*mmx_uavgv8qi3): Likewise.
7389 2019-05-17 Richard Biener <rguenther@suse.de>
7391 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
7392 VEC_PERM_EXPR as __VEC_PERM with -gimple.
7394 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
7396 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
7397 vec_sldw insn pattern.
7399 2019-05-17 Richard Biener <rguenther@suse.de>
7401 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
7403 2019-05-17 Martin Liska <mliska@suse.cz>
7406 * toplev.c (output_stack_usage): With LTO and sanitizer it
7407 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
7408 has no file location.
7410 2019-05-16 Jakub Jelinek <jakub@redhat.com>
7413 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
7414 sz0 is equal to sz1, instead return false in that case.
7416 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
7417 has non-constant expression, force sctx.lane and use two
7418 argument IFN_GOMP_SIMD_LANE instead of single argument.
7419 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
7420 two argument IFN_GOMP_SIMD_LANE without lhs.
7421 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
7423 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
7425 (LOOP_REQUIRES_VERSIONING): Or in
7426 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
7427 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
7429 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
7430 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
7431 from simd if clause if needed.
7433 2019-05-16 Richard Biener <rguenther@suse.de>
7435 * tree-affine.c (expr_to_aff_combination): New function split
7437 (tree_to_aff_combination): ... here.
7438 (aff_combination_expand): Avoid building a GENERIC tree.
7440 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
7442 * cgraphunit.c (cgraph_node::expand_thunk): Remove
7443 assemble_start_function and assemble_end_function calls.
7444 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
7445 assemble_start_function and assemble_end_function.
7446 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
7447 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
7448 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
7449 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
7450 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
7451 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
7452 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
7453 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
7454 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
7455 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
7456 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
7457 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
7459 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
7460 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
7461 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
7462 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
7463 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
7464 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
7465 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
7466 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
7467 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
7468 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
7469 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
7470 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
7471 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
7472 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
7474 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
7475 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
7476 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
7478 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
7480 * tree-ssa-alias.c (alias_stats): Add
7481 aliasing_component_refs_p_may_alias and
7482 aliasing_component_refs_p_no_alias.
7483 (dump_alias_stats): Print aliasing_component_refs_p stats.
7484 (aliasing_component_refs_p): Update stats.
7486 2019-05-16 Martin Liska <mliska@suse.cz>
7489 * multiple_target.c (expand_target_clones): Do not allow
7490 target_clones being used with a symbol that is an alias.
7492 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
7494 PR tree-optimization/90394
7495 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
7496 positives rather than ICE for cases where (code2 == NE_EXPR
7497 && code1 == BIT_AND_EXPR).
7499 2019-05-16 Jakub Jelinek <jakub@redhat.com>
7502 * tree-core.h (struct tree_decl_common): Document
7503 decl_nonshareable_flag for PARM_DECLs.
7504 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
7505 * calls.c (expand_call): Don't try tail call if caller
7506 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
7507 passed on the stack and callee needs to pass any arguments on the
7509 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
7510 else if instead of series of mutually exclusive ifs. Handle
7511 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
7512 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
7514 * lto-streamer.h (LTO_major_version): Bump to 9.
7516 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
7518 PR tree-optimization/90106
7519 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
7520 new parameter as new internal function call, also move it to new
7522 (use_internal_fn): Pass internal function call to
7523 shrink_wrap_one_built_in_call_with_conds.
7525 2019-05-15 Jakub Jelinek <jakub@redhat.com>
7527 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
7529 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
7530 safelen_int and set loop->dont_vectorize.
7532 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7535 * config/i386/i386-builtin.def: Enable MMX intrinsics with
7537 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
7539 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
7540 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
7541 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
7544 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7547 * config/i386/mmx.md (*vec_dupv2sf): Changed to
7548 define_insn_and_split to support SSE emulation.
7549 (*vec_extractv2sf_0): Likewise.
7550 (*vec_extractv2sf_1): Likewise.
7551 (*vec_extractv2si_0): Likewise.
7552 (*vec_extractv2si_1): Likewise.
7553 (*vec_extractv2si_zext_mem): Likewise.
7554 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
7555 (vec_extractv2sf_1 splitter): Likewise.
7556 (vec_extractv2sfsf): Likewise.
7557 (vec_setv2si): Likewise.
7558 (vec_extractv2si_1 splitter): Likewise.
7559 (vec_extractv2sisi): Likewise.
7560 (vec_setv4hi): Likewise.
7561 (vec_extractv4hihi): Likewise.
7562 (vec_setv8qi): Likewise.
7563 (vec_extractv8qiqi): Likewise.
7564 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
7565 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
7566 (vec_extractv2sisi): Likewise.
7567 (vec_extractv4hihi): Likewise.
7568 (vec_extractv8qiqi): Likewise.
7569 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
7570 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
7571 (vec_initv2sisi): Likewise.
7572 (vec_initv4hihi): Likewise.
7573 (vec_initv8qiqi): Likewise.
7574 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
7575 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
7576 (vec_setv4hi): Likewise.
7577 (vec_setv8qi): Likewise.
7579 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7582 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
7583 TARGET_MMX_WITH_SSE.
7584 (MMXMODE:*mov<mode>_internal): Likewise.
7585 (MMXMODE:movmisalign<mode>): Likewise.
7587 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
7590 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
7591 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
7592 (sse2_cvtpd2pi): Ditto.
7593 (sse2_cvttpd2pi): Ditto.
7594 (*vec_concatv2sf_sse4_1): Ditto.
7595 (*vec_concatv2sf_sse): Ditto.
7596 (*vec_concatv2si_sse4_1): Ditto.
7597 (*vec_concatv2si): Ditto.
7598 (*vec_concatv4si_0): Ditto.
7599 (*vec_concatv2di_0): Ditto.
7601 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7604 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
7606 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7609 * config/i386/sse.md (ssse3_palignrdi): Changed to
7610 define_insn_and_split to support SSE emulation.
7612 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7615 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
7617 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7620 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
7621 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
7624 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7627 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
7628 or TARGET_MMX_WITH_SSE.
7629 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
7631 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7634 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
7636 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7639 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
7640 Changed to define_insn_and_split to support SSE emulation.
7642 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7645 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
7646 Changed to define_insn_and_split to support SSE emulation.
7648 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7651 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
7652 (*mmx_<emms>): This.
7653 (mmx_<emms>): New expander.
7655 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7658 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
7660 (*sse2_umulv1siv1di3): Add SSE2 emulation.
7662 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7665 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
7667 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7670 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
7672 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7675 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
7676 TARGET_MMX_WITH_SSE.
7677 (*mmx_uavgv4hi3): Add SSE emulation.
7679 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7682 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
7683 and TARGET_MMX_WITH_SSE.
7684 (*mmx_uavgv8qi3): Add SSE emulation.
7686 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7689 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
7690 maskmovdqu for __MMX_WITH_SSE__.
7692 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7695 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
7696 TARGET_MMX and TARGET_MMX_WITH_SSE.
7697 (*mmx_umulv4hi3_highpart): Add SSE emulation.
7699 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7702 * config/i386/mmx.md (mmx_pmovmskb): Changed to
7703 define_insn_and_split to support SSE emulation.
7705 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7708 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
7709 and TARGET_MMX_WITH_SSE.
7710 (mmx_<code>v8qi3): Likewise.
7711 (smaxmin:<code>v4hi3): New.
7712 (umaxmin:<code>v8qi3): Likewise.
7713 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
7714 (umaxmin:*mmx_<code>v8qi3): Likewise.
7716 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7719 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
7720 TARGET_MMX_WITH_SSE.
7721 (*mmx_pinsrw): Add SSE emulation.
7723 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7726 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
7728 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7731 * config/i386/sse.md (sse_cvtpi2ps): Changed to
7732 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
7735 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7738 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
7739 (sse_cvttps2pi): Likewise.
7741 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7744 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
7745 TARGET_MMX_WITH_SSE.
7746 (mmx_pshufw_1): Add SSE emulation.
7747 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
7748 TARGET_MMX_WITH_SSE to support SSE emulation.
7750 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7753 * config/i386/constraints.md (Yw): New constraint.
7754 * config/i386/mmx.md (*vec_dupv2si): Changed to
7755 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
7756 support SSE emulation.
7758 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7761 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
7762 TARGET_MMX_WITH_SSE.
7763 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
7765 (mmx_gt<mode>3): Likewise.
7767 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7770 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
7771 TARGET_MMX_WITH_SSE. Add SSE support.
7773 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7776 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
7777 TARGET_MMX_WITH_SSE.
7778 (any_logic:<code><mode>3): New.
7779 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
7782 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7785 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
7786 TARGET_MMX_WITH_SSE. Add SSE emulation.
7787 (mmx_<shift_insn><mode>3): Likewise.
7789 (<shift_insn><mode>3): Likewise.
7791 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7794 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
7795 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
7797 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7800 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
7801 TARGET_MMX_WITH_SSE.
7802 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
7805 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7808 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
7809 TARGET_MMX_WITH_SSE.
7811 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
7814 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7817 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
7818 (plusminus:mmx_<plusminus_insn><mode>3): Check
7819 TARGET_MMX_WITH_SSE.
7820 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
7821 (<plusminus_insn><mode>3): New.
7822 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
7823 (*mmx_<plusminus_insn><mode>3): Likewise.
7825 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7828 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
7829 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
7831 * config/i386/mmx.m (mmx_punpckhbw): Changed to
7832 define_insn_and_split to support SSE emulation.
7833 (mmx_punpcklbw): Likewise.
7834 (mmx_punpckhwd): Likewise.
7835 (mmx_punpcklwd): Likewise.
7836 (mmx_punpckhdq): Likewise.
7837 (mmx_punpckldq): Likewise.
7839 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7840 Uros Bizjak <ubizjak@gmail.com>
7843 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
7845 (ix86_split_mmx_pack): Likewise.
7846 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
7848 (ix86_split_mmx_pack): Likewise.
7849 * config/i386/i386.md (mmx_isa): New.
7850 (enabled): Also check mmx_isa.
7851 * config/i386/mmx.md (any_s_truncate): New code iterator.
7852 (s_trunsuffix): New code attr.
7853 (mmx_packsswb): Removed.
7854 (mmx_packssdw): Likewise.
7855 (mmx_packuswb): Likewise.
7856 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
7857 MMX packsswb/packuswb with SSE2.
7858 (mmx_packssdw): Likewise.
7859 * config/i386/predicates.md (register_mmxmem_operand): New.
7861 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7864 * config/i386/i386-c.c (ix86_target_macros_internal): Define
7865 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
7866 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
7867 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
7868 (ix86_vector_mode_supported_p): Likewise.
7869 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
7871 2019-05-15 Martin Liska <mliska@suse.cz>
7874 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
7877 2019-05-15 Richard Biener <rguenther@suse.de>
7879 * tree-into-ssa.c (pass_build_ssa::execute): Run
7880 update_address_taken before going into SSA.
7882 2019-05-15 Richard Biener <rguenther@suse.de>
7884 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
7885 as __BIT_FIELD_REF with type with -gimple.
7887 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
7889 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
7890 semantically equivalent branches (left over after prior refactorings).
7892 2019-05-15 Richard Biener <rguenther@suse.de>
7894 PR tree-optimization/88828
7895 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
7898 2019-05-14 Richard Biener <rguenther@suse.de>
7900 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
7901 as __VIEW_CONVERT with -gimple.
7903 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
7906 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
7909 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
7911 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
7912 define_split to become a define_insn_and_split.
7914 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
7916 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
7918 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
7919 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
7920 (sibcall_epilogue): Adjust.
7923 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7925 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
7926 to unsupported ones.
7927 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
7928 * config.host: Likewise.
7929 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
7930 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
7931 __svr4__]: Remove "brand" fallback.
7932 [!KSTAT_DATA_STRING]: Remove.
7933 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
7935 (comdat_group): Likewise.
7936 (set_have_as_tls): Likewise.
7937 (gcc_cv_target_dl_iterate_phdr): Likewise.
7938 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
7939 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
7940 * configure: Regenerate.
7941 * doc/install.texi: Simplify Solaris target triplets.
7942 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
7943 (Specific, *-*-solaris2*): Document Solaris 10 removal.
7944 Remove Solaris 10 references.
7945 Remove obsolete Solaris bug reference.
7946 (Specific, sparc-sun-solaris2.10): Remove.
7948 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
7950 * config/i386/i386.md (any_div): New code iterator.
7951 (paired_mod): New code attribute.
7952 (sgnprefix): Handle DIV and UDIV RTXes.
7954 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
7955 and udivmod<mode>4 patterns using any_div code iterator.
7956 (divmod splitters): Macroize splitters using any_div code iterator.
7957 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
7958 (*udivmodsi4_pow2_zext_2): Ditto.
7959 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
7960 and *udivmod<mode>4_noext patterns using any_div code iterator.
7961 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
7962 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
7963 patterns using any_div code iterator.
7964 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
7965 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
7966 patterns using any_div code iterator.
7967 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
7968 udivmodhiqi3 patterns using any_extend code iterator.
7970 2019-05-14 Richard Biener <rguenther@suse.de>
7971 H.J. Lu <hongjiu.lu@intel.com>
7973 PR tree-optimization/88828
7974 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
7975 permuting in a single non-constant element not extracted
7978 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
7980 * internal-fn.def (SIGNBIT): New.
7981 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
7983 (signbitv4sf2): Likewise.
7985 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
7988 * config/mips/mips.c (mips_split_move): Skip forward SRC into
7989 next insn when the SRC reg is dead.
7991 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
7993 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
7994 (alloc_cand_and_find_basis): Ditto.
7995 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
7996 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
7997 (create_add_imm_cand, slsr_process_cast): Ditto.
7998 (slsr_process_copy, replace_mult_candidate): Ditto.
7999 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
8000 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
8001 (pass_strength_reduction::execute): Init the first NULL element.
8003 2019-05-13 Nathan Sidwell <nathan@acm.org>
8005 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
8006 (run_attempt): Reformat line break.
8008 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
8011 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
8012 data registers in sibcall epilogues.
8013 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
8015 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
8018 * configure.ac (--enable-frame-pointer):
8019 Disable by default for cygwin and mingw.
8020 * configure: Regenerate.
8022 2019-05-13 Nathan Sidwell <nathan@acm.org>
8024 * dwarf2out.c (breakout_comdat_types): Move comment to correct
8026 (const_ok_for_output_1): Balance parens around #if/#else/#endif
8027 (gen_member_die): Move abstract origin check earlier. Only VARs
8028 can be static_inline_p. Simplify splicing control flow.
8030 2019-05-13 Richard Biener <rguenther@suse.de>
8032 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
8034 (vect_build_slp_tree_1): Likewise.
8036 2019-05-13 Richard Biener <rguenther@suse.de>
8038 PR tree-optimization/90402
8039 * tree-if-conv.c (tree_if_conversion): Value number only
8040 the loop body by making the latch an exit of the region
8042 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
8044 (do_rpo_vn): Deal with multiple edges into the entry block
8045 that are not backedges inside the region by skipping PHIs
8048 2019-05-13 Richard Biener <rguenther@suse.de>
8050 PR tree-optimization/90316
8051 * tree-ssa-pre.c (insert_aux): Fold into ...
8052 (insert): ... this function. Use a RPO walk to reduce the
8053 number of required iterations.
8055 2019-05-13 Martin Liska <mliska@suse.cz>
8057 PR tree-optimization/90416
8058 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
8059 string instead of passing the second part as va_arg argument.
8061 2019-05-13 Martin Liska <mliska@suse.cz>
8063 PR gcov-profile/90380
8064 * gcov.c (handle_cycle): Do not support zero cycle count,
8065 it should not be possible.
8066 (path_contains_zero_cycle_arc): New function.
8067 (circuit): Ignore zero cycle arc counts.
8069 2019-05-13 Martin Liska <mliska@suse.cz>
8071 PR gcov-profile/90380
8072 * gcov.c (enum loop_type): Remove the enum and
8074 (handle_cycle): Assert that we should not reach
8076 (circuit): Use loop_found instead of a tri-state loop_type.
8077 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
8080 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
8083 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
8084 (ix86_output_indirect_branch_via_reg): Use output mechanism
8085 accounting for __USER_LABEL_PREFIX__.
8086 (ix86_output_indirect_branch_via_push): Likewise.
8087 (ix86_output_function_return): Likewise.
8088 (ix86_output_indirect_function_return): Likewise.
8090 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
8092 * doc/md.texi: Document use of code attributes in rtx patterns.
8093 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
8094 * read-rtl.c (find_code): Split out search loops into...
8095 (maybe_find_code): ...this new function.
8096 (check_code_iterator): Make the error message more informative.
8097 (check_code_attribute): New function.
8098 (rtx_reader::rtx_alloc_for_name): Likewise.
8099 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
8100 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
8101 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
8102 <max_opp> directly as an rtx code instead of via a match_operator.
8103 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
8104 (<su>abd<mode>_3): Update accordingly.
8106 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
8108 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
8109 is given, print the state of the EH "save world" computation for
8112 2019-05-11 Jakub Jelinek <jakub@redhat.com>
8115 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
8116 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
8118 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
8120 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
8121 Use pinsrd for TARGET_SSE4_1.
8122 * config/i386/sse.md (movdi_to_sse): Ditto.
8124 2019-05-10 Richard Biener <rguenther@suse.de>
8126 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
8127 (do_rpo_vn): Initialize next_value_id.
8129 2019-05-10 Martin Liska <mliska@suse.cz>
8131 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
8134 2019-05-10 Jakub Jelinek <jakub@redhat.com>
8136 PR tree-optimization/90385
8137 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
8138 arguments of the exit phis.
8141 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
8142 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
8144 (copy_tree_body_r): Likewise.
8145 (copy_fn): Set id.do_not_fold to true.
8147 2019-05-10 Martin Liska <mliska@suse.cz>
8149 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
8150 Reapply changes from r269790.
8152 2019-05-10 Martin Liska <mliska@suse.cz>
8155 * doc/invoke.texi: New params.
8156 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
8157 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
8158 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
8160 * tree-switch-conversion.h (struct jump_table_cluster):
8163 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
8165 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
8167 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
8169 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
8171 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
8173 PR rtl-optimization/88879
8174 * sel-sched.c (sel_target_adjust_priority): Remove assert.
8176 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
8179 * config/arm/arm.c (callee_saved_reg_p): Move before
8180 thumb_find_work_register.
8181 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
8182 thumb_find_work_register. Only call df_get_live_out once.
8183 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
8184 (thumb_find_work_register): Use
8185 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
8186 algorithms to locate a spare call clobbered reg.
8188 2019-05-09 Martin Liska <mliska@suse.cz>
8190 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
8191 and MAX_EXPR in GIMPLE FE format.
8193 2019-05-09 Martin Liska <mliska@suse.cz>
8195 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
8196 * gimple-pretty-print.c (dump_gimple_bb_header):
8198 (pp_cfg_jump): Dump edge probability.
8199 * profile-count.c (profile_quality_as_string): Simplify
8200 with a static array.
8201 (parse_profile_quality): New function.
8202 (profile_count::dump): Simplify with a static array.
8203 (profile_count::from_gcov_type): Add new argument.
8204 * profile-count.h (parse_profile_quality): Likewise.
8205 * predict.h (set_hot_bb_threshold): New.
8206 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
8208 * predict.c (get_hot_bb_threshold): Set from the new param.
8209 (set_hot_bb_threshold): New.
8211 2019-05-09 Richard Biener <rguenther@suse.de>
8213 PR tree-optimization/90395
8214 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
8215 rewrite vector stores that throw internally.
8217 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
8219 * cif-code.def (CHKP): Remove.
8222 * configure.ac (--enable-frame-pointer): Disable by default for
8224 * configure: Regenerate.
8226 2019-05-09 Alan Modra <amodra@gmail.com>
8229 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
8230 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
8231 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
8232 cost for general <-> vsx when direct moves are available.
8233 Cost union classes at minimal cost for any reg in the class.
8234 Correct calculation for moves between vsx, float, and altivec.
8235 Don't return a low cost for moves between special regs. Don't
8236 use hard coded register numbers.
8237 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
8238 (rs6000_ira_change_pseudo_allocno_class): New function.
8239 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
8240 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
8242 (movsi_internal1): Don't disparage vector alternatives.
8243 (mov<mode>_internal): Likewise, excepting alternative that
8245 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
8246 we <- b alternative.
8248 2019-05-08 Jakub Jelinek <jakub@redhat.com>
8251 PR tree-optimization/89060
8252 * tree-ssa-live.h (live_vars_map): New typedef.
8253 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
8254 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
8255 (struct compute_live_vars_data): New type.
8256 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
8257 live_vars_at_stmt, destroy_live_vars): New functions.
8258 * tree-tailcall.c: Include tree-ssa-live.h.
8259 (live_vars, live_vars_vec): New global variables.
8260 (find_tail_calls): Perform variable life analysis before punting.
8261 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
8262 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
8264 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
8265 Perform variable life analysis to select variables that really need
8267 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
8268 instead set id->eh_landing_pad_dest and assert it is the same.
8269 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
8271 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
8272 Richard Earnshaw <rearnsha@arm.com>
8275 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
8277 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
8278 (thumb1_compute_save_core_reg_mask): Don't force a spare work
8279 register if both the epilogue and prologue can use call-clobbered
8281 (thumb1_unexpanded_epilogue): Use
8282 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
8283 picking temporaries for restoring high regs to match that of the
8284 prologue where possible.
8285 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
8286 the list of work registers. Detect if the return address is still live
8287 at the end of the prologue and avoid using it for a work register if so.
8288 If the return address is not live, add LR to the list of pushable regs
8289 after the first pass.
8291 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
8293 PR tree-optimization/90078
8294 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
8295 (INFTY): Increase the value for infinite cost.
8296 (struct comp_cost): Promote type of members to int64_t.
8297 (infinite_cost): Don't set complexity in initialization.
8298 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
8299 overflows to infinite_cost.
8300 (adjust_setup_cost): Promote type of parameter and cost computation
8302 (struct ainc_cost_data, struct iv_ca): Promote type of member to
8304 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
8305 cost computation to int64_t.
8306 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
8307 int64_t's format specifier in dump.
8309 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
8311 PR tree-optimization/90240
8312 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
8313 with respect to scaling factor pre-computed for each basic block.
8314 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
8315 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
8316 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
8317 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
8318 live range for array of loop's basic blocks. Cleanup aux field of
8319 loop's basic blocks.
8321 2019-05-08 Jakub Jelinek <jakub@redhat.com>
8323 PR tree-optimization/90356
8324 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
8326 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
8328 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
8329 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
8330 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
8331 (ix86_handle_option): Handle -mavx512bf16.
8332 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
8334 * config/i386/avx512bf16vlintrin.h: New.
8335 * config/i386/avx512bf16intrin.h: New.
8336 * config/i386/cpuid.h (bit_AVX512BF16): New.
8337 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
8338 * config/i386/i386-builtin-types.def: Add new types.
8339 * config/i386/i386-builtin.def: Add new builtins.
8340 * config/i386/i386-c.c (ix86_target_macros_internal): Define
8342 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
8343 (ix86_option_override_internal): Handle BF16.
8344 (ix86_valid_target_attribute_inner_p): Ditto.
8345 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
8346 * config/i386/i386-builtin.c (enum processor_features): Add
8348 (static const _isa_names_table isa_names_table): Ditto.
8349 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
8350 (PTA_AVX512BF16): Ditto.
8351 * config/i386/i386.opt: Add -mavx512bf16.
8352 * config/i386/immintrin.h: Include avx512bf16intrin.h
8353 and avx512bf16vlintrin.h.
8354 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
8355 avx512f_cvtneps2bf16_<mode><mask_name>,
8356 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
8357 * config/i386/subst.md (mask_half): Add new subst.
8358 * doc/invoke.texi: Document -mavx512bf16.
8360 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
8362 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
8364 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
8365 (rs6000_debug_legitimize_reload_address): Delete.
8366 (rs6000_legitimize_reload_address_ptr): Delete.
8367 (rs6000_option_override_internal): Adjust.
8368 (mem_operand_gpr): Adjust comment.
8369 (legitimate_lo_sum_address_p): Ditto.
8370 (rs6000_legitimize_reload_address): Delete.
8371 (rs6000_debug_legitimize_reload_address): Delete.
8372 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
8374 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
8377 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8378 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
8379 to compute vector element selector for both constant and variable
8382 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
8384 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
8385 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
8386 ashrdi3_cvt using SWI48 mode iterator.
8388 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
8390 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
8391 (aarch64_<su>abd<mode>_3): Likewise.
8392 (*aarch64_<su>abd<mode>_3): New define_insn.
8393 (<sur>sad<vsi2qi>): New define_expand.
8394 * config/aarch64/iterators.md: Added MAX_OPP attribute.
8395 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
8396 (build_vect_cond_expr): Likewise.
8398 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
8400 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
8401 clobbers outside of accessible_reg_set.
8402 * config/i386/i386.c (ix86_conditional_register_usage):
8403 Disable register sets by clearing corresponding bits in
8404 accessible_reg_set. Do not set corresponding bits in fixed_regs,
8405 call_used_regs and don't clear corresponding reg_names array members.
8407 2019-05-07 Richard Biener <rguenther@suse.de>
8409 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
8410 not specified still compute a comp_vectype for invariant
8413 2019-05-07 Richard Biener <rguenther@suse.de>
8415 PR tree-optimization/90316
8416 * tree-ssa-pre.c (translate_vuse_through_block): When
8417 same_valid is NULL do not bother to search for a virtual
8419 (phi_translate_1): When operands changed we cannot keep
8420 the same value-number so do not bother to ask whether
8421 that's possible from translate_vuse_through_block.
8423 2019-05-07 Martin Liska <mliska@suse.cz>
8425 * bitmap.c (bitmap_register): Come up with
8426 alloc_descriptor_max_uid and assign it for
8428 (register_overhead): Use get_descriptor as
8430 (release_overhead): New.
8431 (bitmap_elem_to_freelist): Call it.
8432 (bitmap_elt_clear_from): Likewise.
8433 (bitmap_obstack_free): Likewise.
8434 (bitmap_move): Sensitively release memory.
8435 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
8436 (bitmap_initialize): Initialize alloc_descriptor to zero.
8437 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
8439 2019-05-07 Richard Biener <rguenther@suse.de>
8441 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
8442 we build a SLP node. Remove max_size and limiting.
8443 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
8445 2019-05-07 Richard Biener <rguenther@suse.de>
8447 PR tree-optimization/90316
8448 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
8450 (walk_non_aliased_vuses): Take walking limit argument.
8451 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
8452 walking if it is reached instead of just counting.
8453 (get_continuation_for_phi): Likewise.
8454 (walk_non_aliased_vuses): Likewise, instead of leaving counter
8455 limiting to the callback.
8456 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
8457 (vn_reference_lookup_3): Likewise.
8458 (vn_reference_lookup_pieces): Likewise.
8459 (vn_reference_lookup): Likewise.
8460 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
8461 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
8462 (avail_exprs_stack::lookup_avail_expr): Likewise.
8464 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
8466 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
8467 for comparaible types in the second direction even if first one
8468 hits incomparable type.
8470 2019-05-07 Richard Biener <rguenther@suse.de>
8473 * lto-wrapper.c (debug_objcopy): Use the original filename
8474 including archive offset for the filename used for -save-temps.
8476 2019-05-07 Li Jia He <helijia@linux.ibm.com>
8478 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
8481 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
8482 Hongtao Liu <hongtao.liu@intel.com>
8486 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
8487 Modified, original implementation isn't correct.
8489 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
8491 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
8492 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
8493 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
8494 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
8495 (FRAME_POINTER_REGNUM): Change numbering.
8496 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
8497 (alt_reg_names): Adjust.
8498 (rs6000_conditional_register_usage): Don't mark hard register 64 as
8500 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
8501 (DWARF_FRAME_REGISTERS): Delete.
8502 (DWARF2_FRAME_REG_OUT): Fix whitespace.
8503 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
8505 (REG_ALLOC_ORDER): Adjust.
8506 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
8507 (REG_CLASS_CONTENTS): Adjust.
8508 (RETURN_ADDR_RTX): Change comment.
8509 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
8511 (REGISTER_NAMES): Adjust.
8512 (ADDITIONAL_REGISTER_NAMES): Adjust.
8513 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
8515 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
8517 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
8519 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
8520 (DWARF_FRAME_REGISTERS): Adjust.
8521 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
8523 (REG_ALLOC_ORDER): Adjust.
8524 (enum reg_class): Delete SPR_REGS.
8525 (REG_CLASS_NAMES): Delete SPR_REGS.
8526 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
8527 (REGISTER_NAMES): Adjust.
8528 (ADDITIONAL_REGISTER_NAMES): Adjust.
8529 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
8530 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
8531 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
8532 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
8533 (htm_spr_regno): Delete.
8534 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
8536 (rs6000_dbx_register_number): Adjust.
8538 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
8540 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
8542 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
8544 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
8545 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
8547 2019-05-06 Jakub Jelinek <jakub@redhat.com>
8549 PR tree-optimization/88709
8550 PR tree-optimization/90271
8551 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
8552 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
8553 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
8555 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
8556 of the store merging group is larger than
8557 PARAM_STORE_MERGING_MAX_SIZE parameter.
8558 (split_group): Add bzero_first argument. If set, always emit first
8559 the first store which must be = {} of the whole area and then for the
8560 rest of the stores consider all zero bytes as paddings.
8561 (imm_store_chain_info::output_merged_store): Check if first store
8562 is = {} of the whole area and if yes, determine which setting of
8563 bzero_first for split_group gives smaller number of stores. Adjust
8564 split_group callers.
8565 (lhs_valid_for_store_merging_p): Allow decls.
8566 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
8568 (pass_store_merging::process_store): Likewise.
8570 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
8573 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
8574 handling of V1TImode.
8576 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
8579 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
8580 and enable_frame_pointer ...
8581 * configure.ac: ... here. Update help strings for
8582 --enable-frame-pointer.
8583 * configure: Regenerate.
8584 * config/i386/i386-options.c (ix86_option_override_internal): Remove
8585 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
8586 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
8587 (USE_X86_64_FRAME_POINTER): Ditto.
8589 2019-05-06 Martin Liska <mliska@suse.cz>
8591 * config.gcc: Append to target_gtfiles and fix indentation.
8593 2019-05-06 Richard Biener <rguenther@suse.de>
8595 PR tree-optimization/90358
8596 * tree-vect-stmts.c (get_group_load_store_type): Properly
8597 detect unused upper half of load.
8598 (vectorizable_load): Likewise.
8600 2019-05-06 Richard Biener <rguenther@suse.de>
8602 PR tree-optimization/88828
8603 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
8604 (simplify_vector_constructor): ...here. Handle constants in
8607 2019-05-06 Richard Biener <rguenther@suse.de>
8609 PR tree-optimization/90328
8610 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
8611 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
8612 is valid in the loop nest before using it.
8613 (initialize_data_dependence_relation): Adjust.
8614 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
8615 loop as loop-nest to dr_may_alias_p.
8617 2019-05-06 Richard Biener <rguenther@suse.de>
8619 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
8621 2019-05-06 Richard Biener <rguenther@suse.de>
8623 PR tree-optimization/90316
8624 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
8625 compute target on demand.
8626 (get_continuation_for_phi): Remove code walking stmts to
8627 get to a target virtual operand which could end up being
8630 2019-05-06 Martin Liska <mliska@suse.cz>
8633 * config/i386/i386-options.c (ix86_option_override_internal): Error only
8634 when -mabi is selected to a non-default version.
8636 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
8637 Martin Liska <mliska@suse.cz>
8639 * Makefile.in: Add lto-dump.texi.
8640 * cgraph.h: Add new functions get_visibility_string and
8641 get_symtab_type_string.
8642 * doc/gcc.texi: Include lto-dump section.
8643 * doc/lto-dump.texi: New file.
8644 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
8645 (parse_dump_option): Factor out this function.
8646 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
8647 (parse_dump_option): Export the function.
8648 * symtab.c (symtab_node::get_visibility_string): New function.
8649 (symtab_node::get_symtab_type_string): Likewise.
8651 2019-05-06 Martin Liska <mliska@suse.cz>
8653 * config/i386/i386-builtins.c: New file.
8654 * config/i386/i386-builtins.h: New file.
8655 * config/i386/i386-expand.c: New file.
8656 * config/i386/i386-expand.h: New file.
8657 * config/i386/i386-features.c: New file.
8658 * config/i386/i386-features.h: New file.
8659 * config/i386/i386-options.c: New file.
8660 * config/i386/i386-options.h: New file.
8661 * config.gcc: Add new files into extra_objs and
8663 * config/i386/i386.c: Split content of the file
8664 into newly introduced files.
8665 * config/i386/i386.h: Declare common variables
8667 * config/i386/t-i386: Define dependencies for new files.
8669 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
8672 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
8673 Restrict 'all' variant to 32-bit configurations.
8674 (unaligned_loadhiu): Likewise.
8675 (unaligned_storehi): Likewise.
8676 (unaligned_storesi): Likewise.
8677 (unaligned_loadhis): Disable when compiling for thumb1.
8679 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
8681 PR tree-optimization/90269
8682 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
8685 2019-05-03 Martin Liska <mliska@suse.cz>
8687 * hash-map.h: Add is_empty function.
8688 * hash-set.h: Likewise.
8689 * hash-table.h: Likewise.
8690 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
8691 elements () == 0 (and similar usages).
8692 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
8693 * gimplify.c (gimplify_bind_expr): Likewise.
8694 (gimplify_switch_expr): Likewise.
8695 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
8696 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
8697 * postreload-gcse.c (dump_hash_table): Likewise.
8698 (gcse_after_reload_main): Likewise.
8699 * predict.c (combine_predictions_for_bb): Likewise.
8700 * tree-parloops.c (reduction_phi): Likewise.
8701 (separate_decls_in_region): Likewise.
8702 (transform_to_exit_first_loop): Likewise.
8703 (gen_parallel_loop): Likewise.
8704 (gather_scalar_reductions): Likewise.
8705 (try_create_reduction_list): Likewise.
8706 * var-tracking.c (dump_vars): Likewise.
8707 (emit_notes_for_changes): Likewise.
8708 (vt_emit_notes): Likewise.
8710 2019-05-03 Richard Biener <rguenther@suse.de>
8712 PR tree-optimization/90316
8713 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
8716 2019-05-03 Richard Biener <rguenther@suse.de>
8718 * tree-vect-stmts.c (get_group_load_store_type): Avoid
8719 peeling for gaps by loading only lower halves of vectors
8721 (vectorizable_load): Likewise.
8723 2019-05-03 Richard Biener <rguenther@suse.de>
8726 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
8728 2019-05-03 Richard Biener <rguenther@suse.de>
8731 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
8732 Handle STRING_CST vs DECL or STRING_CST.
8734 2019-05-03 Richard Biener <rguenther@suse.de>
8736 PR tree-optimization/88963
8737 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
8738 vector loads feeding only BIT_FIELD_REFs to component
8739 loads. Rewrite stores fed by CONSTRUCTORs to component
8742 2019-05-03 Jakub Jelinek <jakub@redhat.com>
8744 * opts.h (finish_options): Remove lang_mask argument.
8745 (print_help, help_option_argument): Declare.
8746 * opts.c (print_help): Remove forward declaration, no longer static.
8747 (finish_options): Remove lang_mask argument, don't call print_help
8749 * opts-global.c (decode_options): Adjust finish_option caller, call
8752 PR tree-optimization/90303
8753 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
8754 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
8756 2019-05-03 Richard Biener <rguenther@suse.de>
8758 PR tree-optimization/89698
8759 * gimple-fold.c (canonicalize_constructor_val): Early out
8760 for constants, handle unfolded INTEGER_CSTs as they appear in
8761 C++ virtual table ctors.
8763 2019-05-03 Richard Biener <rguenther@suse.de>
8765 * passes.c (execute_function_todo): Remove dead code.
8767 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
8769 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
8770 the internal register number, for any "real" register.
8772 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
8774 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
8775 correct numbers for TFHAR, TFIAR, TEXASR.
8777 2019-05-02 Richard Biener <rguenther@suse.de>
8779 PR tree-optimization/89653
8780 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
8781 update-address-taken before the pass.
8782 * passes.def (pass_tree_loop_init): Put comment before it.
8784 2019-05-02 Richard Biener <rguenther@suse.de>
8786 PR tree-optimization/89509
8787 * tree-ssa-structalias.c (compute_dependence_clique): Look
8788 at the first subvar when determining whether it is restrict.
8790 2019-05-02 Richard Biener <rguenther@suse.de>
8792 PR tree-optimization/90273
8793 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
8794 useless debug stmts.
8796 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
8798 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
8800 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
8802 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
8803 VEC_COND_EXPR be inserted to emulate a conditional internal function.
8804 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
8805 (vectorizable_reduction): Use the functions above to vectorize in a
8806 fully masked loop codes that don't have a conditional internal
8809 2019-05-02 Martin Liska <mliska@suse.cz>
8811 * cgraphclones.c: Call valid_attribute_p with 1 for
8813 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
8814 it's for target attribute.
8815 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
8816 Add new boolean argument.
8817 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
8819 (ix86_valid_target_attribute_tree): Pass target_clone_attr
8820 to ix86_valid_target_attribute_inner_p.
8821 (ix86_valid_target_attribute_p): Pass flags argument to
8822 ix86_valid_target_attribute_inner_p.
8823 (get_builtin_code_for_version): Use 0 as it's target attribute.
8825 2019-05-02 Martin Liska <mliska@suse.cz>
8827 * gcc.c (process_command): Add dummy file only
8829 * opts-global.c (decode_options): Pass lang_mask.
8830 * opts.c (print_help): New function.
8831 (finish_options): Print --help if help_option_argument
8833 (common_handle_option): Factor out content of OPT__help_
8835 * opts.h (finish_options): Add new argument.
8837 2019-05-02 Martin Liska <mliska@suse.cz>
8840 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
8841 With -minline-all-stringops use inline expansion using 4B loop.
8842 * doc/invoke.texi: Document the change of
8843 -minline-all-stringops.
8845 2019-05-01 Jeff Law <law@redhat.com>
8847 PR tree-optimization/88797
8848 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
8849 PHI feeds a conditional on the RHS of an assignment.
8851 2019-04-30 Andrew Waterman <andrew@sifive.com>
8852 Jim Wilson <jimw@sifive.com>
8854 * config/riscv/constraints.md (L): New.
8855 * config/riscv/predicates.md (lui_operand): New.
8856 (sfb_alu_operand): New.
8857 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
8858 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
8859 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
8860 * config/riscv/risc.md (type): Add sfb_alu.
8861 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
8862 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
8863 (branch_zero<mode>): Delete.
8865 (mov<GPR:mode><X:mode>cc): Likewise.
8866 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
8868 2019-04-30 Nathan Sidwell <nathan@acm.org>
8870 * tree.h (MARK_TS_EXP): New.
8872 2019-04-30 Martin Liska <mliska@suse.cz>
8874 * opts.c (enable_warning_as_error): Provide hints
8875 for unknown options.
8877 2019-04-30 Martin Liska <mliska@suse.cz>
8880 * doc/invoke.texi: Add missing dash for gas-locview-support
8881 and gno-as-locview-support.
8883 2019-04-30 Jakub Jelinek <jakub@redhat.com>
8886 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
8887 whitespace at the start of target attribute string.
8889 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8892 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
8893 Define __ARM_FEATURE_ATOMICS.
8895 2019-04-30 Martin Liska <mliska@suse.cz>
8897 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
8898 into built_in_function enum. Remove code for endp == 2 and
8899 use BUILT_IN_* constants.
8900 (gimple_fold_builtin): Call the function with fcode.
8902 2019-04-30 Martin Liska <mliska@suse.cz>
8904 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
8905 DECL_FUNCTION_CODE into ix86_builtins enum before
8906 the switch statement.
8908 2019-04-30 Jakub Jelinek <jakub@redhat.com>
8910 PR tree-optimization/89475
8911 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
8914 2019-04-30 Martin Liska <mliska@suse.cz>
8916 PR translation/90274
8917 * opts.c (print_filtered_help): Wrap string in _(...).
8919 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
8921 PR tree-optimization/90240
8923 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
8925 PR tree-optimization/90078
8926 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
8927 checks for infinite_cost overflow.
8929 2019-04-29 Jeff Law <law@redhat.com>
8931 * passes.def: Move -Wrestrict pass after copy propagation.
8933 2019-04-29 Maya Rashish <coypu@sdf.org>
8935 * config.gcc (default_gnu_indirect_function): Default to yes
8936 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
8937 sparc*-*-netbsd*, x86_64-*-netbsd*.
8939 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
8941 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
8942 where cond2 is NE_EXPR.
8943 (is_value_included_in): Update comment.
8945 2019-04-29 Richard Biener <rguenther@suse.de>
8947 PR tree-optimization/90278
8948 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
8949 EH on comparison simplification.
8951 2019-04-29 Jason Merrill <jason@redhat.com>
8953 PR c++/82081 - tail call optimization breaks noexcept
8954 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
8955 nothrow function to a might-throw function into a tail call.
8957 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
8959 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
8960 (DDR_INNER_LOOP): Likewise.
8961 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
8962 (initialize_data_dependence_relation): Likewise.
8963 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
8965 2019-04-29 Jakub Jelinek <jakub@redhat.com>
8967 PR rtl-optimization/90257
8968 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
8972 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
8976 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
8979 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
8982 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
8984 * lra-spills.c (lra_final_code_change): Remove useless move insns.
8986 2019-04-29 Richard Biener <rguenther@suse.de>
8988 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
8991 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
8993 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
8994 varasm.h, and netbsd-protos.h.
8996 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
8999 * config/i386/i386-protos.h (ix86_data_alignment): Change
9000 the second argument type to unsigned int.
9001 * config/i386/i386.c (ix86_data_alignment): Change "align"
9002 argument type to unsigned int.
9004 2019-04-27 Martin Liska <mliska@suse.cz>
9007 * opt-suggestions.c (option_proposer::build_option_suggestions):
9008 When get_valid_option_values returns empty values, add the
9009 misspelling candidate.
9011 2019-04-26 Jim Wilson <jimw@sifive.com>
9013 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
9015 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
9016 Pass orig_mode to riscv_build_integer.
9017 (riscv_split_integer): Pass mode to riscv_move_integer.
9018 (riscv_legitimize_const_move): Likewise.
9019 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
9020 promoted_mode. Replace force_reg call with code to load constant into
9021 promoted reg and then subreg it for the store.
9022 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
9025 2018-04-26 Eugene Sharygin <eush@ispras.ru>
9027 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
9030 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
9032 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
9033 commentary about the encoding of precision.
9035 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
9037 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
9038 * config/i386/t-freebsd64: New file.
9039 * config.gcc: Add the t-freebsd64 for multilib support.
9041 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
9043 * doc/extend.texi (vector_size): Add missing comma after @xref.
9045 2019-04-25 Jakub Jelinek <jakub@redhat.com>
9047 * BASE-VER: Set to 10.0.0.
9049 2019-04-25 Richard Biener <rguenther@suse.de>
9052 * gimplify.c (gimplify_expr): Avoid turning a lvalue
9053 VIEW_CONVERT_EXPR into one operating on an rvalue.
9055 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
9058 * config/i386/i386.c (feature_priority): Moved to file scope.
9059 (processor_features): Likewise.
9060 (processor_model): Likewise.
9061 (_arch_names_table): Likewise.
9062 (arch_names_table): Likewise.
9063 (_feature_list): Removed.
9064 (feature_list): Likewise.
9065 (_isa_names_table): Moved to file scope. Add priority.
9066 (isa_names_table): Likewise.
9067 (get_builtin_code_for_version): Replace feature_list with
9068 isa_names_table. Update error message for P_ZERO priority.
9070 2019-04-25 Richard Biener <rguenther@suse.de>
9072 * tree-pass.h (make_pass_phi_only_cprop): Remove.
9073 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
9075 2019-04-24 Jeff Law <law@redhat.com>
9077 PR tree-optimization/90037
9078 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
9079 * passes.def: Replace all instance of phi-only cprop with the
9080 lattice propagator. Move propagation pass from after erroneous
9081 path isolation to before erroneous path isolation.
9082 * tree-ssa-phionlycprop.c: Remove.
9084 2019-04-24 Richard Biener <rguenther@suse.de>
9087 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
9088 by size and BITS_PER_UNIT on poly-wide-ints.
9090 2019-04-25 Richard Biener <rguenther@suse.de>
9093 * match.pd: Add pattern to simplify view-conversion of an
9096 2019-04-24 Clement Chigot <clement.chigot@atos.net>
9098 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
9099 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
9100 for Go on 32 bit AIX.
9101 * config/rs6000/aix72.h: Likewise.
9103 2019-04-24 Jakub Jelinek <jakub@redhat.com>
9106 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
9107 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
9109 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
9112 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
9113 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
9114 for restored hard frame pointer.
9115 (s390_sched_dependencies_evaluation): Implement new target hook.
9116 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
9118 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
9120 * config/arc/arc-options.def: Fix typos and spelling mistakes.
9121 * config/arc/arc.c (arc_init): Cleanup warning message.
9122 (arc_override_options): Likewise.
9124 2019-04-24 Jakub Jelinek <jakub@redhat.com>
9127 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
9128 a register if both if_true and if_false are MEMs.
9130 PR tree-optimization/90208
9131 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
9132 after labels of new_bb, not before them.
9134 PR tree-optimization/90211
9135 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
9136 which are not SSA_NAMEs.
9138 2018-04-23 Sudakshina Das <sudi.das@arm.com>
9140 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
9142 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
9144 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
9146 PR rtl-optimization/87979
9147 * modulo-sched.c (sms_schedule): Start ii value "mii" should
9150 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
9152 PR rtl-optimization/84032
9153 * modulo-sched.c (ps_insn_find_column): Change condition so that
9154 branch will always be the last insn in a row inside partial
9157 2019-04-23 Richard Biener <rguenther@suse.de>
9160 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
9161 dest_single_pred_p argument.
9162 (remove_forwarder_block): Adjust.
9163 (remove_forwarder_block_with_phi): Likewise.
9165 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9166 Bernd Edlinger <bernd.edlinger@hotmail.de>
9167 Jakub Jelinek <jakub@redhat.com>
9170 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
9171 if used with general-regs-only.
9172 (arm_conditional_register_usage): Don't add non-general regs if
9174 (arm_valid_target_attribute_rec): Handle general-regs-only.
9175 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
9177 (TARGET_HARD_FLOAT_SUB): Define.
9178 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
9179 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
9180 (TARGET_REALLY_IWMMXT2): Likewise.
9181 * config/arm/arm.opt: Add -mgeneral-regs-only.
9182 * doc/extend.texi: Document ARM general-regs-only target.
9183 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
9185 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
9187 PR tree-optimization/90078
9188 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
9189 checks for infinite_cost overflow.
9191 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
9193 PR tree-optimization/90021
9194 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
9195 and check univariate against it.
9196 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
9197 * tree-data-ref.c (add_other_self_distances): Pass new argument.
9199 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
9203 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
9206 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
9209 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
9211 * lra-spills.c (lra_final_code_change): Remove useless move insns.
9213 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
9215 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
9216 names using operand format, rather than hard-wired.
9217 (speculation_barrier): Likewise.
9219 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
9221 PR tree-optimization/88055
9222 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
9223 (gen_one_condition): Use it if !HONOR_NANS.
9225 2019-04-19 Jakub Jelinek <jakub@redhat.com>
9228 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
9229 assign_temp instead of gen_reg_rtx.
9231 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
9233 PR translation/90118
9234 * config/aarch64/aarch64.c (aarch64_override_options_internal):
9235 Add missing space before %<.
9237 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
9239 PR rtl-optimization/87871
9240 * ira-lives.c (make_object_dead): Don't add conflicts to
9241 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
9243 2019-04-18 Martin Sebor <msebor@redhat.com>
9246 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
9247 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
9248 assuming type size fits in SHWI.
9250 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
9253 * ipa-inline.c (flatten_function): New parameter UPDATE.
9254 (ipa_inline, early_inliner): Use it.
9256 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
9258 * fold-const.c (int_const_binop): Return early on failure.
9260 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
9263 * combine.c (force_int_to_mode): Cast the argument rather than
9264 the result of known_alignment.
9265 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
9267 2019-04-18 Richard Biener <rguenther@suse.de>
9270 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
9272 (remove_forwarder_block): ... here.
9273 (remove_forwarder_block_with_phi): Also move debug stmts here.
9275 2019-04-18 Jakub Jelinek <jakub@redhat.com>
9277 PR translation/79183
9278 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
9279 inform where appropriate.
9281 2019-04-18 Richard Biener <rguenther@suse.de>
9283 * tree.c (get_qualified_type): Put found type variants at the
9284 head of the variant list.
9286 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
9288 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
9290 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
9293 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
9294 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
9295 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
9296 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
9297 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
9299 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
9301 * ira-conflicts.c (print_allocno_conflicts): Always print something,
9302 even for allocno's with no conflicts.
9303 (print_conflicts): Print an extra newline.
9305 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
9307 * auto-inc-dec.c (attempt_change): Set the alignment of the
9308 temporary memory to that of the original.
9310 2019-04-17 Joao Moreira <jmoreira@suse.de>
9312 * targhooks.c (default_print_patchable_function_entry): Emit
9313 __patchable_function_entries section with writable flags to allow
9314 relocation resolution.
9316 2019-04-17 Jonny Grant <jg@jguk.org>
9318 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
9320 2019-04-17 Jakub Jelinek <jakub@redhat.com>
9323 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
9326 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
9328 * config/arc/arc.c (arc_init): Format diagnostic string.
9329 (arc_override_options): Likewise.
9330 (check_if_valid_regno_const): Likewise.
9331 (arc_reorg): Likewise.
9333 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
9336 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
9338 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
9340 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
9341 (*movdi_update1): Use Pmode.
9342 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
9343 (movdi_<mode>_update_stack): Rename to ...
9344 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
9346 (*movsi_update1): Use Pmode.
9347 (*movsi_update2): Use Pmode.
9348 (movsi_update): Rename to ...
9349 (movsi_<mode>_update): ... this. Use Pmode.
9350 (movsi_update_stack): Fix condition.
9351 (*movhi_update1): Use Pmode. Fix argument to
9352 avoiding_indexed_address_p.
9353 (*movhi_update2): Ditto.
9354 (*movhi_update3): Ditto.
9355 (*movhi_update4): Ditto.
9356 (*movqi_update1): Ditto.
9357 (*movqi_update2): Ditto.
9358 (*movqi_update3): Ditto.
9359 (*movsf_update1, *movdf_update1): Merge, rename to...
9360 (*mov<mode>_update1): This. Use Pmode. Fix argument to
9361 avoiding_indexed_address_p. Add "size" attribute.
9362 (*movsf_update2, *movdf_update2): Merge, rename to...
9363 (*mov<mode>_update2): This. Ditto.
9364 (*movsf_update3): Use Pmode. Fix argument to
9365 avoiding_indexed_address_p.
9366 (*movsf_update4): Ditto.
9367 (allocate_stack): Simplify condition. Adjust pattern names.
9369 2019-04-17 Jakub Jelinek <jakub@redhat.com>
9372 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
9373 whitespace at the start of target attribute string.
9375 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
9378 * config/rs6000/power9.md: Add store forwarding bypass.
9380 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
9383 * valtrack.c (dead_debug_insert_temp): Reset debug references
9384 to the return value of a call being removed.
9386 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
9388 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
9389 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
9390 implement target hook.
9391 (arc_memory_move_cost): New function.
9392 (TARGET_REGISTER_MOVE_COST): Define.
9393 (TARGET_MEMORY_MOVE_COST): Likewise.
9394 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
9395 (MEMORY_MOVE_COST): Likewise.
9397 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
9399 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
9400 (sibcall_value_insn): Likewise.
9401 * config/arc/constraints.md (Rs5): Remove.
9403 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
9405 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
9406 for last two fake registers.
9407 (arc_conditional_register_usage): Make sure fake frame and arg
9408 pointer regs are in general regs class.
9409 (FRAME_POINTER_MASK): Remove.
9410 (RETURN_ADDR_MASK): Remove.
9411 (arc_must_save_register): Use hard frame regnum.
9412 (frame_restore_reg): Use hard_frame_pointer_rtx.
9413 (arc_save_callee_saves): Likewise.
9414 (arc_restore_callee_saves): Likewise.
9415 (arc_save_callee_enter): Likewise.
9416 (arc_restore_callee_leave): Likewise.
9417 (arc_save_callee_milli): Likewise.
9418 (arc_eh_return_address_location): Likewise.
9419 (arc_check_multi): Use hard frame regnum.
9420 (arc_can_eliminate): Likewise.
9421 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
9422 for register allocator.
9423 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
9424 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
9425 (FRAME_POINTER_REGNUM): Change it to a fake register.
9426 (HARD_FRAME_POINTER_REGNUM): Defined.
9427 (ARG_POINTER_REGNUM): Change it to a new fake register.
9428 (ELIMINABLE_REGS): Update.
9429 (REGISTER_NAMES): Update names.
9430 * config/arc/arc.md (LP_START): Remove.
9432 (shift_si3_loop): Update pattern.
9434 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
9436 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
9437 to avoid delay slot scheduling.
9438 (arc_must_save_register): Don't save SP.
9439 * config/arc/arc.md (stack_tie): Remove.
9440 (UNSPEC_ARC_STKTIE): Likewise.
9442 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
9443 Shiva Chen <shiva0217@gmail.com>
9445 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
9446 code gen with large shift amount.
9448 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
9450 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
9453 2019-04-16 Jakub Jelinek <jakub@redhat.com>
9456 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
9457 print -m64/-mx32/-m32 if it is true.
9458 (ix86_debug_options, ix86_function_specific_print): Pass true as
9459 ADD_ABI_P to ix86_target_string.
9460 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
9461 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
9462 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
9464 PR rtl-optimization/90082
9465 * dce.c (can_delete_call): New function.
9466 (deletable_insn_p, mark_insn): Use it.
9468 PR tree-optimization/90090
9469 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
9471 (is_division_by_square): Likewise. Formatting fix.
9473 2019-04-16 Richard Biener <rguenther@suse.de>
9475 PR tree-optimization/56049
9476 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
9477 equality check if alias-set zero will prevail.
9479 2019-04-15 Jeff Law <law@redhat.com>
9481 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
9482 size and alignment as unsigned.
9484 2019-04-15 Richard Biener <rguenther@suse.de>
9487 * tree-loop-distribution.c (destroy_loop): Preserve correct
9490 2019-04-15 Richard Biener <rguenther@suse.de>
9492 PR tree-optimization/90071
9493 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
9494 abnormal operands from def stmts.
9496 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
9498 PR rtl-optimization/89794
9499 * combine.c (count_auto_inc): New function.
9500 (try_combine): Count how many auto_inc expressions there were in the
9501 original instructions. Ensure we have the same number in the new
9502 instructions. Remove the code that tried to ensure auto_inc side
9503 effects on i1 and i0 are not lost.
9505 2019-04-15 Richard Biener <rguenther@suse.de>
9508 * tree.h (auto_var_p): Declare.
9509 * tree.c (auto_var_p): New function, split out from ...
9510 (auto_var_in_fn_p): ... here.
9511 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
9513 (new_var_info): Initialize it.
9514 (set_uids_in_ptset): Also set the shadow variable uid if required.
9515 (ipa_pta_execute): Postprocess points-to solutions assigning
9516 shadow variable uids for locals that may reach their containing
9517 function recursively.
9518 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
9519 assert but instead check whether the points-to solution is
9522 2019-04-15 Martin Jambor <mjambor@suse.cz>
9525 * cgraph.c (clone_of_p): Loop over clone chain for each step in
9528 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
9530 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
9532 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
9533 Kito Cheng <kito.cheng@gmail.com>
9534 Shiva Chen <shiva0217@gmail.com>
9536 * config/nds32/nds32-md-auxiliary.c
9537 (nds32_legitimize_pic_address): Use new PIC pattern.
9538 (nds32_legitimize_tls_address): Use new TLS pattern.
9539 (nds32_output_symrel): New.
9540 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
9541 (nds32_alloc_relax_group_id): Ditto.
9542 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
9543 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
9545 (nds32_group_tls_insn): Ditto.
9546 (nds32_group_float_insns): Ditto.
9547 * config/nds32/nds32.md (tls_le): New.
9550 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
9552 * configure: Add nds32 target for dwarf2 debug_line checking.
9553 * configure.ac: Regenerated.
9555 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
9558 * ipa-devirt.c (skip_in_fields_list_p): New.
9559 (odr_types_equivalent_p): Use it.
9561 2019-04-13 Jakub Jelinek <jakub@redhat.com>
9564 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
9565 instead of strncmp when checking for thumb and arm. Formatting fixes.
9567 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
9569 * doc/install.texi: Document --with-target-system-zlib.
9571 2019-04-12 Martin Sebor <msebor@redhat.com>
9577 * targhooks.c (default_vector_alignment): Avoid assuming
9578 argument fits in SHWI.
9579 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
9581 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
9583 2019-04-12 Jakub Jelinek <jakub@redhat.com>
9585 PR rtl-optimization/89965
9586 * dce.c: Include rtl-iter.h.
9587 (struct check_argument_load_data): New type.
9588 (check_argument_load): New function.
9589 (find_call_stack_args): Check for loads from stack slots still tracked
9590 in sp_bytes and punt if any is found.
9592 * config/mips/loongson-mmiintrin.h: Fix up #error message.
9594 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
9596 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
9597 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
9599 2019-04-12 Martin Liska <mliska@suse.cz>
9602 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
9604 (separate_attrs): Handle multiple 'default's.
9605 (expand_target_clones): Rework error handling code.
9607 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
9610 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
9611 mode of vector rather than mode of destination for move instruction.
9612 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
9613 Use QI inner mode with V16QI vector mode.
9615 2019-04-12 Jakub Jelinek <jakub@redhat.com>
9618 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
9619 "invalid %%t operand" in output_operand_lossage message.
9621 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
9623 * config/s390/predicates.md (permute_pattern_operand): New
9625 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
9626 operand for the permute pattern.
9627 ("*vec_perm<mode>"): New insn definition.
9628 ("bswap<mode>"): Generate the permute pattern operand in the
9629 expander and perform the operand reloads for pre arch13 level
9631 ("*bswap<mode>_emu"): Rename to ...
9632 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
9633 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
9634 Add the USE operand for the permute pattern.
9635 ("*vec_set_bswap_vec<mode>"): Likewise.
9637 2019-04-12 Jakub Jelinek <jakub@redhat.com>
9640 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
9641 and gcc_unreachable if it fails, just call tree_to_uhwi which
9642 verifies that too. Test TREE_CHAIN instead of list_length > 1.
9643 Start warning message with a lower-case letter. Formatting fixes.
9645 PR rtl-optimization/90026
9646 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
9647 successors, look for BARRIERs inside of the whole BB_FOOTER chain
9648 rather than just at the start of it. If e->src BB_FOOTER is not NULL
9649 in cfglayout mode, use emit_barrier_after_bb.
9651 2018-04-11 Steve Ellcey <sellcey@marvell.com>
9653 PR rtl-optimization/87763
9654 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
9657 2019-04-11 Tom de Vries <tdevries@suse.de>
9659 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
9660 max macro using statement expression.
9662 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
9664 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
9665 * xcoffout.c (xcoff_private_rodata_section_name): Define.
9666 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
9667 read_only_private_data_section using xcoff_private_rodata_section_name.
9668 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
9670 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
9673 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
9675 2019-04-11 Jakub Jelinek <jakub@redhat.com>
9677 PR rtl-optimization/89965
9678 * dce.c (sp_based_mem_offset): New function.
9679 (find_call_stack_args): Use sp_based_mem_offset.
9681 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
9683 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
9685 2019-04-11 Richard Biener <rguenther@suse.de>
9687 PR tree-optimization/90020
9688 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
9689 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
9690 * tree-ssa-pre.c (compute_avail): Use it to not put
9691 possibly trapping references after a call that might not
9692 return into EXP_GEN.
9693 * gcse.c (compute_hash_table_work): Do not elide
9694 marking a block containing a call if the call might not
9697 2019-04-11 Richard Biener <rguenther@suse.de>
9699 PR tree-optimization/90018
9700 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
9701 Test both SLP and interleaving variants.
9703 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
9705 * config/s390/8561.md: New file.
9706 * config/s390/driver-native.c (s390_host_detect_local_cpu):
9707 Add arch13 cpu model.
9708 * config/s390/s390-opts.h (enum processor_type): Likewise.
9709 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
9710 (s390_get_unit_mask): Likewise.
9711 (s390_is_fpd): Likewise.
9712 (s390_is_fxd): Likewise.
9713 * config/s390/s390.h (s390_tune_attr): Likewise.
9714 * config/s390/s390.md: Include arch13 pipeline description.
9715 * config/s390/s390.opt: Add arch13.
9717 2018-04-10 Steve Ellcey <sellcey@marvell.com>
9719 PR rtl-optimization/87763
9720 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
9722 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
9724 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
9726 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
9727 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
9728 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
9729 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
9731 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
9733 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
9734 "Although" in -fipa-icf documentation.
9736 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
9737 of using multiple -g options.
9739 2019-04-10 Martin Liska <mliska@suse.cz>
9741 PR gcov-profile/89959
9742 * doc/gcov.texi: Make documentation of -x option
9745 2019-04-10 Richard Biener <rguenther@suse.de>
9747 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
9749 (DR_GROUP_SAME_DR_STMT): Remove.
9750 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
9751 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
9752 replace with assert.
9753 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
9754 (vect_record_grouped_load_vectors): Remove unreachable code.
9756 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
9759 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
9760 obsolete reference to N.
9762 2019-04-10 Jakub Jelinek <jakub@redhat.com>
9765 * expr.c (store_expr): Set properly size on the MEM passed to
9769 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
9770 with strlen in between hostsz-3 and hostsz-1 inclusive when no
9771 translation is needed, and when translation is needed, only append
9772 ... if the string length is hostsz or more bytes long. Avoid using
9775 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
9778 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
9779 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
9781 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
9782 differences directly.
9783 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
9785 2019-04-09 Jakub Jelinek <jakub@redhat.com>
9787 PR translation/90011
9788 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
9790 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
9792 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
9793 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
9794 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
9795 trailing space from -gsplit-dwarf diagnostics.
9797 PR tree-optimization/89998
9798 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
9799 instead of integer_type_node if possible, don't add ranges if return
9800 type is not compatible with int.
9801 * gimple-fold.c (gimple_fold_builtin_sprintf,
9802 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
9805 2019-04-09 Martin Liska <mliska@suse.cz>
9807 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
9808 * doc/install.texi: Document the new config.
9810 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
9812 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
9813 use gimple_expr_type for load and store calls. Skip over the
9814 condition argument in a conditional internal function.
9815 Protect use of TREE_INT_CST_LOW.
9817 2019-04-09 Jakub Jelinek <jakub@redhat.com>
9820 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
9821 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
9822 trailing period from it too.
9824 2019-04-08 wu yuan <wuyuan5@huawei.com>
9826 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
9827 * config/aarch64/aarch64.md : Add "tsv110.md"
9828 * config/aarch64/tsv110.md: New file.
9830 2019-04-08 Richard Biener <rguenther@suse.de>
9832 PR tree-optimization/90006
9833 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
9836 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
9839 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
9841 (fma_root_node): Likewise.
9842 (func_fma_steering): Likewise.
9844 2019-04-08 Jakub Jelinek <jakub@redhat.com>
9846 PR rtl-optimization/89865
9847 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
9849 PR rtl-optimization/89865
9850 * config/i386/i386.md
9851 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
9852 numbers not to clash with the additional operands[4].
9853 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
9854 with extra register copy in the middle.
9856 2019-04-08 Martin Liska <mliska@suse.cz>
9858 PR gcov-profile/89961
9859 * doc/gcov.texi: Document data_file.
9860 * gcov.c (generate_results): Add data_info into JSON output.
9862 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
9864 PR tree-optimization/89725
9865 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
9866 loop's chrec as invariant symbol.
9867 * tree-chrec.h (chrec_contains_symbols): New parameter.
9868 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
9869 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
9870 function of loops not in DDR's loop_nest.
9871 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
9873 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
9876 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
9879 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
9882 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
9883 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
9885 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
9887 * sched-deps.c (sched_macro_fuse_insns): Check return value of
9888 targetm.fixed_condition_code_regs.
9890 2019-04-05 Richard Biener <rguenther@suse.de>
9894 * tree-cfgcleanup.c (remove_forwarder_block): Always move
9895 debug bind stmts but reset them if they are not valid at the
9898 2019-04-05 Martin Liska <mliska@suse.cz>
9900 PR translation/89936
9901 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
9902 order to wrap keywords or arguments.
9903 * collect2.c (main): Likewise.
9904 (scan_prog_file): Likewise.
9905 (scan_libraries): Likewise.
9906 * common/config/riscv/riscv-common.c
9907 (riscv_subset_list::parsing_subset_version): Likewise.
9908 (riscv_subset_list::parse_std_ext): Likewise.
9909 * config/aarch64/aarch64.c (aarch64_override_options_internal):
9911 * config/arm/arm.c (arm_option_override): Likewise.
9912 * config/cris/cris.c (cris_print_operand): Likewise.
9913 * config/darwin-c.c (darwin_pragma_options): Likewise.
9914 (darwin_pragma_unused): Likewise.
9915 (darwin_pragma_ms_struct): Likewise.
9916 * config/ft32/ft32.c (ft32_print_operand): Likewise.
9917 * config/i386/i386.c (print_reg): Likewise.
9918 (ix86_print_operand): Likewise.
9919 * config/i386/xm-djgpp.h: Likewise.
9920 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
9921 * config/m32c/m32c.c (m32c_option_override): Likewise.
9922 * config/msp430/msp430.c (msp430_option_override): Likewise.
9923 * config/nds32/nds32.c (nds32_option_override): Likewise.
9924 * config/nvptx/mkoffload.c (main): Likewise.
9925 * config/rx/rx.c (rx_print_operand): Likewise.
9926 (valid_psw_flag): Likewise.
9927 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
9928 (vms_pragma_nomember_alignment): Likewise.
9929 (vms_pragma_extern_model): Likewise.
9930 * lto-wrapper.c (compile_offload_image): Likewise.
9931 * omp-offload.c (oacc_parse_default_dims): Likewise.
9932 * symtab.c (symtab_node::verify_base): Likewise.
9933 * tlink.c (recompile_files): Likewise.
9934 (start_tweaking): Likewise.
9935 * tree-profile.c (parse_profile_filter): Likewise.
9937 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
9939 PR tree-optimization/89956
9940 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
9941 multiple negates of the same value.
9943 2019-04-04 Martin Sebor <msebor@redhat.com>
9947 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
9948 have the same precision since the function crashes otherwise.
9949 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
9950 has non-zero arguments.
9952 2019-04-04 Martin Sebor <msebor@redhat.com>
9955 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
9956 out if the number of arguments is less than expected.
9958 2019-04-04 Jeff Law <law@redhat.com>
9960 PR rtl-optimization/89399
9961 * ree.c (combine_set_extension): Use single_set rather than
9962 digging into PATTERN for items on the candidate list.
9963 (combine_reaching_defs): Likewise.
9965 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
9967 PR rtl-optimization/46590
9968 * loop-invariant.c (find_defs): Move df_remove_problem and
9969 df_process_deferred_rescans to move_invariants.
9970 Move df_live_add_problem and df_live_set_all_dirty calls
9972 (move_invariants): Likewise.
9973 (move_loop_invariants): Likewise, making the df_live calls
9974 conditional on -O. Remove the problem again if we added it
9977 2019-04-03 qing zhao <qing.zhao@oracle.com>
9979 PR tree-optimization/89730
9980 * ipa-inline.c (can_inline_edge_p): Delete the checking for
9981 -flive-patching=inline-only-static.
9982 (can_inline_edge_by_limits_p): Add the checking for
9983 -flive-patching=inline-only-static and grant always_inline
9984 even when -flive-patching=inline-only-static is specified.
9986 2019-04-03 Jeff Law <law@redhat.com>
9988 PR rtl-optimization/81025
9989 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
9991 2019-04-03 Richard Biener <rguenther@suse.de>
9993 PR tree-optimization/84101
9994 * tree-vect-stmts.c: Include explow.h for hard_function_value,
9995 regs.h for hard_regno_nregs.
9996 (cfun_returns): New helper.
9997 (vect_model_store_cost): When vectorizing a store to a decl
9998 we return and the function ABI returns in a multi-reg location
9999 account for the possible spilling that will happen.
10001 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
10003 * config/s390/s390.c (s390_legitimate_address_p): Reject long
10004 displacement addresses for vector mode operands.
10006 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
10008 * config/arc/arc.c (GMASK_LEN): Define.
10009 (arc_restore_callee_saves): Restore first blink when
10012 2019-04-03 Sudakshina Das <sudi.das@arm.com>
10014 * doc/extend.texi: Add deprecated comment on sign-return-address
10015 function attribute and add mbranch-protection.
10016 * doc/invoke.texi: Add bti to the options for mbranch-protection.
10018 2019-04-03 Richard Biener <rguenther@suse.de>
10021 * lto-wrapper.c (run_gcc): Avoid implicit rules making
10022 the all target phony.
10024 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
10028 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
10029 Return false for variable DImode shifts.
10030 (dimode_scalar_chain::compute_convert_gain): Do not handle
10031 register count operand in variable DImode shifts.
10032 (dimode_scalar_chain::make_vector_copies): Remove support to copy
10033 count argument of a variable shift instruction to a vector register.
10034 (dimode_scalar_chain::convert_reg): Remove support to convert
10035 count argument of a variable shift instruction.
10037 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
10039 PR rtl-optimization/84206
10040 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
10041 iterating over loop headers.
10043 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
10045 PR rtl-optimization/85876
10046 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
10047 beyond the original fence.
10049 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
10051 * config.gcc: Mark spu* targets as deprecated/obsolete.
10053 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
10055 * config/s390/s390-builtin-types.def: New builtin function type
10056 definitions. Remove unused types.
10057 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
10058 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
10059 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
10060 overloaded builtins.
10061 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
10062 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
10063 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
10064 (vec_double, vec_signed, vec_unsigned): Define to use the new
10065 overloaded builtins.
10066 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
10069 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
10071 * config/s390/s390-builtin-types.def: New builtin function type
10073 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
10074 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
10075 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
10076 (s390_vstrszh, s390_vstrszf): New low-level builtins.
10077 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
10078 constant definitions.
10079 * config/s390/vecintrin.h (vec_search_string_cc)
10080 (vec_search_string_until_zero_cc): New builtin name definitions.
10081 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
10083 ("vec_vstrs<mode>"): New insn definition.
10085 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
10087 * config/s390/s390-builtin-types.def: Add new builtin function
10089 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
10090 New overloaded builtins.
10091 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
10093 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
10094 (UNSPEC_VEC_SLDBYTE): ... this.
10095 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
10096 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
10098 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
10099 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
10100 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
10102 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
10104 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
10105 New insn definition.
10106 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
10107 * config/s390/vector.md (V_HW_HSD): ... here.
10109 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
10111 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
10112 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
10113 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
10114 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
10115 New insn definitions.
10117 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
10119 * config/s390/s390-builtin-types.def: Add new builtin function type.
10120 * config/s390/s390-builtins.def: Add overloaded builtin
10121 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
10122 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
10123 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
10124 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
10125 ("eltswap<mode>"): New expander.
10126 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
10129 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
10131 * config/s390/s390-builtin-types.def: Add new builtin function types.
10132 * config/s390/s390-builtins.def: Add overloaded builtin
10133 s390_vec_revb. Add low-level builtins for vlbr and vstbr
10135 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
10136 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
10137 ("bswap<mode>"): New expander.
10138 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
10140 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
10142 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
10143 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
10144 vector builtin version number in __VEC__.
10146 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
10148 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
10150 (SFSI): New mode attribute.
10151 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
10152 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
10154 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
10155 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
10156 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
10157 ("floatsi<mode>2"): Add wcefb instruction.
10159 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
10161 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
10162 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
10164 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
10165 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
10166 support 32 bit fp-int conversions. Rename to ...
10167 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
10168 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
10169 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
10170 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
10173 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
10175 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
10176 if-then-else constructs if we can use the select instruction.
10177 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
10179 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
10181 * config/s390/s390.md ("*popcountdi_arch13_cc")
10182 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
10184 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
10185 Append _z196 to make it ...
10186 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
10187 ("popcounthi2_z196"): ... this.
10188 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
10189 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
10191 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
10193 * config/s390/s390.c (s390_canonicalize_comparison): Convert
10194 certain compares for arch13 in order to make use of the condition
10195 code result produced by the new instructions.
10196 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
10197 nxrk, and nxgrk instruction patterns.
10198 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
10199 (inv_no): Add new code iterator together with some attributes.
10200 ("*andc_split_<mode>"): Disable splitter for arch13.
10201 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
10202 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
10203 ("*<ANDOR:bitops_name>c<GPR:mode>")
10204 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
10205 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
10206 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
10207 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
10209 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
10211 * common/config/s390/s390-common.c (processor_flags_table): New
10213 * config.gcc: Support arch13 with the --with-arch= configure flag.
10214 * config/s390/driver-native.c (s390_host_detect_local_cpu):
10215 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
10216 * config/s390/s390.c (s390_get_sched_attrmask)
10217 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
10218 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
10219 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
10220 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
10221 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
10223 * config/s390/s390.opt: Support arch13 as processor type in
10224 command line options.
10226 2019-04-02 Martin Liska <mliska@suse.cz>
10228 PR translation/89912
10229 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
10230 Fix param description of graphite-max-arrays-per-scop.
10232 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
10234 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
10235 (ASAN_CC1_SPEC): Use it in 64-bit mode.
10236 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
10238 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
10240 PR rtl-optimization/85412
10241 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
10242 sel_sched_region_1, not after.
10244 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
10246 PR rtl-optimization/86928
10247 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
10248 compute_live if necessary.
10249 (sel_redirect_edge_and_branch): Likewise.
10251 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
10253 PR rtl-optimization/89865
10254 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
10255 register if it is a part of small class.
10257 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
10259 PR rtl-optimization/87273
10260 * sel-sched-ir.c (merge_fences): Remove assert.
10262 2019-04-01 Richard Biener <rguenther@suse.de>
10264 PR tree-optimization/46590
10265 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
10266 (dom_walker::m_reachability): Add in place of...
10267 (dom_walker::m_skip_unreachable_blocks): ...this.
10268 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
10269 Move complex initialization ...
10270 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
10271 lazily and initialize edge flags on each invocation.
10272 (dom_walker::bb_reachable): Use m_reachability.
10274 2019-04-01 Martin Liska <mliska@suse.cz>
10277 * opt-suggestions.c (option_proposer::build_option_suggestions):
10278 Add variant without any argument in order to provide better
10281 2019-04-01 Richard Biener <rguenther@suse.de>
10284 * gimple.c: Include langhooks.h.
10285 (gimple_get_alias_set): Treat enumeral types as the underlying
10288 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
10289 Eric Botcazou <ebotcazou@adacore.com>
10291 PR rtl-optimization/89862
10292 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
10293 that operates on the full registers for WORD_REGISTER_OPERATIONS
10296 2019-03-29 Jim Wilson <jimw@sifive.com>
10298 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
10299 Clear MASK_RVC and then set if C subset supported.
10301 2019-03-29 Jakub Jelinek <jakub@redhat.com>
10304 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
10305 non-addressable complit into its initializer if it is volatile.
10307 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
10309 * opts-common.c (integral_argument): Set errno properly in one case.
10311 2019-03-29 Martin Liska <mliska@suse.cz>
10313 * doc/invoke.texi: Remove -Wchkp from documentation.
10315 2019-03-29 Martin Liska <mliska@suse.cz>
10317 * dbgcnt.c (print_limit_reach): New function.
10320 2019-03-29 Martin Liska <mliska@suse.cz>
10322 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
10323 (dbg_cnt_process_opt): Parse first tokens aas
10324 dbg_cnt_process_single_pair is also using strtok.
10326 2019-03-29 Jakub Jelinek <jakub@redhat.com>
10328 PR rtl-optimization/87485
10329 * function.c (expand_function_end): Move stack_protect_epilogue
10330 before loading of return value into hard register(s).
10332 2019-03-28 Jakub Jelinek <jakub@redhat.com>
10334 PR middle-end/89621
10335 * tree-inline.h (struct copy_body_data): Add
10336 dont_remap_vla_if_no_change flag.
10337 * tree-inline.c (remap_type_3, remap_type_2): New functions.
10338 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
10339 and remap_type_2 returns false.
10340 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
10341 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
10342 only from where it is copied to nested contexts.
10344 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
10347 * config/i386/i386.md (RMW operation with LEA peephole):
10348 Use LEAMODE mode attribute instead of SWI mode iterator for
10351 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
10354 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
10355 Also process XEXP (src, 0) of a shift insn.
10357 2019-03-28 David Malcolm <dmalcolm@redhat.com>
10359 PR middle-end/89725
10360 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
10361 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
10363 2019-03-28 Jakub Jelinek <jakub@redhat.com>
10365 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
10367 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
10368 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
10369 immediately after first one with df_analyze in between, but rather
10370 process all bbs, queueing ones that need second pass in a worklist,
10371 df_analyze, process queued debug insn changes and if second pass is
10372 needed, process bbs from worklist, df_analyze, process queued debug
10375 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
10376 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
10377 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
10379 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
10382 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
10385 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
10388 * config/i386/i386.c (ix86_function_value_1): Call the newly added
10389 function for 32-bit MS_ABI.
10390 (function_value_ms_32): New function.
10392 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
10394 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
10395 (movdi): Call gen_movdi_symbol_save_scc.
10396 (gen_movdi_symbol_save_scc): New insn and split.
10398 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
10400 PR rtl-optimization/89313
10401 * function.c (matching_constraint_num): New static function.
10402 (match_asm_constraints_1): Use it. Fixup white space and comment.
10403 Don't replace inputs with non-matching constraints which conflict
10404 with early clobber outputs.
10406 2019-03-27 Jeff Law <law@redhat.com>
10409 PR rtl-optimization/87761
10410 PR rtl-optimization/89826
10411 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
10413 (pass_cprop_hardreg::execute): Call df_analyze after adding the
10414 note problem to get REG_DEAD/REG_UNUSED notes updated.
10416 2019-03-27 Richard Biener <rguenther@suse.de>
10418 PR tree-optimization/89463
10419 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
10420 queue edges to remove.
10421 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
10422 dead stmts. Delay edge removal until PHIs are removed to
10423 make debug-stmt creation not confused by seemingly degenerate
10426 2019-03-27 Alan Modra <amodra@gmail.com>
10428 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
10430 * config/rs6000/darwin.h: Likewise.
10431 * config/rs6000/rs6000.c: Likewise.
10433 2019-03-27 Alan Modra <amodra@gmail.com>
10435 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
10436 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
10438 2019-03-26 Andrew Waterman <andrew@sifive.com>
10439 Jim Wilson <jimw@sifive.com>
10441 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
10442 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
10443 (generic_idivdi, generic_fmul_single, generic_fmul_double)
10444 (generic_fdiv, generic_fsqrt): Add check for generic tune.
10445 (generic_alu): Add auipc to type list.
10446 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
10447 (riscv_microarchitecture): Declare.
10448 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
10449 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
10451 (riscv_microarchitecture): New.
10452 (sifive_7_tune_info): New.
10453 (riscv_cpu_info_table): Add microarchitecture value for rocket and
10454 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
10456 (riscv_store_data_bypass_p): New.
10457 (riscv_option_override): Set riscv_microarchitecture from
10458 cpu->microarchitecture.
10459 * config/riscv/riscv.md: Include sifive-7.md.
10462 (auipc<mode>): Change type to auipc.
10463 (restore_stack_nonlocal): New.
10464 * config/riscv/sifive-7.md: New.
10465 * doc/invoke.texi (RISC-V Options): Update mtune docs.
10467 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
10470 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
10471 Also process XEXP (src, 0) of a shift insn.
10473 2019-03-26 Richard Biener <rguenther@suse.de>
10475 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
10476 (copy_debug_stmt): Likewise.
10477 (expand_call_inline): Likewise.
10478 (copy_bb): Avoid redundant lookup & set of gimple_block.
10479 * gimple-low.c (lower_gimple_return): Likewise.
10480 (lower_builtin_setjmp): Likewise.
10482 2019-03-26 Jakub Jelinek <jakub@redhat.com>
10484 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
10485 is constant 0, turn into static const data member initialized to false.
10486 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
10487 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
10489 2019-03-26 Jason Merrill <jason@redhat.com>
10490 Jakub Jelinek <jakub@redhat.com>
10492 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
10494 (mem_alloc_description::release_object_overhead): Fix comment typos.
10495 * hash-table.h (hash_table::~hash_table): Call
10496 release_instance_overhead only if m_entries is non-NULL, otherwise
10497 call unregister_descriptor.
10499 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
10501 PR tree-optimization/81740
10502 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
10503 In case of outer loop vectorization, check for backward dependence
10504 at the inner loop if outer loop dependence is reversed.
10506 2019-03-26 Alan Modra <amodra@gmail.com>
10508 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
10509 rs6000_vector_mem init. Correct wI and wJ comment.
10511 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
10513 PR rtl-optimization/88347
10514 PR rtl-optimization/88423
10515 * sched-deps.c (sched_analyze_insn): Take into account that for
10516 tablejumps the barrier appears after a label and a jump_table_data.
10518 2019-03-25 Martin Sebor <msebor@redhat.com>
10521 * c-common.c (check_user_alignment): Rename local. Correct maximum
10522 alignment in diagnostic. Avoid assuming argument fits in SHWI,
10523 convert it to UHWI when it fits.
10525 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
10528 * dwarf2out.c (premark_used_variables): New function.
10529 (prune_unused_types_walk): Do not mark not premarked external
10531 (prune_unused_types): Call premark_used_variables.
10533 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
10535 PR rtl-optimization/89676
10536 * lra-constraints.c (curr_insn_transform): Do match reload for
10537 early clobbers when the match was successful only for different
10540 2019-03-25 Martin Sebor <msebor@redhat.com>
10542 * doc/extend.texi (Common Type Attributes): Document vector_size.
10543 (Common Variable Attributes): Mention size constraint. Correct
10545 (Vector Extensions): Use @dfn when defining bas type. Clarify
10546 base type and size constraints.
10548 2019-03-25 Richard Biener <rguenther@suse.de>
10550 PR tree-optimization/89789
10551 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
10552 changes from non-undefined back to undefined.
10554 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
10556 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
10557 heap string and a gc string, but since this variable is unknown to
10558 ggc the gc string might get reused and corrupted. Fixed by always
10559 using a heap string.
10561 2019-03-25 Richard Biener <rguenther@suse.de>
10563 PR tree-optimization/89779
10564 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
10565 to remove IV defs, delay actual removal.
10566 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
10567 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
10568 very end, properly also reset loop control IV information.
10570 2019-03-25 Richard Biener <rguenther@suse.de>
10572 PR tree-optimization/89802
10573 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
10574 move EH data to folded stmt.
10576 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
10578 * config/s390/s390-builtin-types.def: Remove few unused types and
10579 fix sort order for others.
10581 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
10583 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
10584 expected and found types with -mdebug during builtin matching.
10586 2019-03-25 Richard Biener <rguenther@suse.de>
10588 PR middle-end/89790
10589 * fold-const.c (operand_equal_p): Revert last change with
10592 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
10594 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
10595 notes for the result of the __tls_get_addr calls.
10596 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
10598 2019-03-24 Jeff Law <law@redhat.com>
10600 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
10602 PR rtl-optimization/87761
10603 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
10604 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
10606 (pass_cprop_hardreg::execute): Add df note problem and defer insn
10607 rescans. Reprocess blocks as needed, calling df_analyze before
10608 reprocessing. Always call df_analyze before fixing up debug bind
10611 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
10613 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
10616 2019-03-22 Andrew Pinski <apinski@marvell.com>
10618 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
10619 attrribute for uxtw.
10621 2019-03-26 Jeff Law <law@redhat.com>
10623 PR rtl-optimization/87761
10624 * config/mips/mips-protos.h (mips_split_move): Add new argument.
10625 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
10626 (mips_split_move): Accept new INSN argument. Try to forward SRC
10627 into the next instruction.
10628 (mips_split_move_insn): Pass INSN through to mips_split_move.
10630 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
10632 PR rtl-optimization/89676
10633 * lra-constraints.c (curr_insn_transform): Do match reload for
10634 early clobbers even if the match was successful.
10636 2019-03-22 Jakub Jelinek <jakub@redhat.com>
10639 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
10641 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
10643 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
10645 2019-03-22 Jakub Jelinek <jakub@redhat.com>
10647 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
10648 <avx512>_fmsub_<mode>_mask3<round_name>,
10649 <avx512>_fnmadd_<mode>_mask3<round_name>,
10650 <avx512>_fnmsub_<mode>_mask3<round_name>,
10651 avx512f_vmfmadd_<mode>_mask3<round_name>,
10652 avx512f_vmfmsub_<mode>_mask3<round_name>,
10653 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
10654 instead of register_operand and %v instead of v for match_operand 1.
10655 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
10656 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
10657 <round_nimm_predicate> instead of register_operand and %v instead of v
10658 for match_operand 1.
10660 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
10661 <avx512>_fmadd_<mode>_mask3<round_name>,
10662 <avx512>_fmsub_<mode>_mask<round_name>,
10663 <avx512>_fmsub_<mode>_mask3<round_name>,
10664 <avx512>_fnmadd_<mode>_mask<round_name>,
10665 <avx512>_fnmadd_<mode>_mask3<round_name>,
10666 <avx512>_fnmsub_<mode>_mask<round_name>,
10667 <avx512>_fnmsub_<mode>_mask3<round_name>,
10668 <avx512>_fmaddsub_<mode>_mask<round_name>,
10669 <avx512>_fmaddsub_<mode>_mask3<round_name>,
10670 <avx512>_fmsubadd_<mode>_mask<round_name>,
10671 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
10672 <round_nimm_predicate> instead of nonimmediate_operand.
10673 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
10674 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
10675 Use register_operand instead of <round_nimm_predicate> for the
10676 operand that needs to match output.
10677 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
10678 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
10679 Likewise. Formatting fixes.
10682 * config/i386/i386.c (enum ix86_builtins): Remove
10683 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
10684 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
10685 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
10686 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
10687 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
10688 __builtin_ia32_vfmsubss3_mask3): New builtins.
10689 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
10690 avx512f_vmfmadd_<mode>_mask3<round_name>,
10691 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
10692 *avx512f_vmfmsub_<mode>_mask<round_name>,
10693 avx512f_vmfmsub_<mode>_mask3<round_name>,
10694 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
10695 *avx512f_vmfnmadd_<mode>_mask<round_name>,
10696 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
10697 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
10698 *avx512f_vmfnmsub_<mode>_mask<round_name>,
10699 avx512f_vmfnmsub_<mode>_mask3<round_name>,
10700 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
10701 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
10702 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
10703 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
10704 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
10705 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
10706 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
10707 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
10708 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
10709 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
10710 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
10711 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
10712 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
10713 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
10714 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
10715 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
10716 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
10717 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
10718 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
10719 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
10720 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
10721 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
10723 2019-03-21 Martin Sebor <msebor@redhat.com>
10725 PR tree-optimization/89350
10726 * builtins.c (compute_objsize): Also ignore offsets whose upper
10728 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
10729 (builtin_memref::builtin_memref): Initialize new member.
10730 Allow EXPR to be null.
10731 (builtin_memref::extend_offset_range): Replace local with a member.
10732 Avoid assuming pointer offsets are unsigned.
10733 (builtin_memref::set_base_and_offset): Determine base object
10734 before computing offset range.
10735 (builtin_access::builtin_access): Handle memset.
10736 (builtin_access::generic_overlap): Replace local with a member.
10737 (builtin_access::strcat_overlap): Same.
10738 (builtin_access::overlap): Same.
10739 (maybe_diag_overlap): Same.
10740 (maybe_diag_access_bounds): Same.
10741 (wrestrict_dom_walker::check_call): Handle memset.
10742 (check_bounds_or_overlap): Same.
10744 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
10745 Jakub Jelinek <jakub@redhat.com>
10748 * tree.c (fld_type_variant, fld_incomplete_type_of,
10749 fld_process_array_type): Call fld->pset.add and don't call
10750 add_tree_to_fld_list if it returns true.
10751 (free_lang_data_in_type): Similarly with self-recursive call. Purge
10752 non-marked types from TYPE_NEXT_VARIANT list.
10753 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
10755 2019-03-21 Jakub Jelinek <jakub@redhat.com>
10757 * hash-table.h (hash_table): Add Lazy template parameter defaulted
10758 to false, if true, don't alloc_entries during construction, but defer
10759 it to the first method that needs m_entries allocated.
10760 (hash_table::hash_table, hash_table::~hash_table,
10761 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
10762 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
10763 hash_table::clear_slot, hash_table::traverse_noresize,
10764 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
10765 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
10767 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
10768 NO_INSERT instead of find_with_hash.
10769 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
10770 hash_set::m_table): Add Lazy to template params of hash_table.
10771 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
10772 * attribs.c (test_attribute_exclusions): Likewise.
10773 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
10774 hash_set. Add tests for hash_set with Lazy = true.
10776 2019-03-21 Richard Biener <rguenther@suse.de>
10778 PR tree-optimization/89779
10779 * tree.c (tree_nop_conversion): Consolidate and fix defensive
10780 checks with respect to released SSA names now having error_mark_node
10782 * fold-const.c (operand_equal_p): Likewise.
10784 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
10787 * config/s390/s390.c (global_not_special_regno_p): Move to make it
10789 (s390_optimize_register_info): Use global_not_special_regno_p to
10790 check for global regs.
10792 2019-03-20 Jakub Jelinek <jakub@redhat.com>
10795 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
10796 update this_alternative nor this_alternative_set.
10798 2019-03-19 Jim Wilson <jimw@sifive.com>
10801 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
10802 align, size, offset. Use them to handle a BLKmode reference. Update
10804 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
10806 2019-03-19 Jakub Jelinek <jakub@redhat.com>
10808 PR rtl-optimization/89768
10809 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
10810 instead of GEN_INT.
10811 (unroll_loop_runtime_iterations): Likewise.
10813 2019-03-19 Martin Sebor <msebor@redhat.com>
10815 PR tree-optimization/89644
10816 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
10817 rather than endptr as an indicator of nul-termination.
10819 PR tree-optimization/89644
10820 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
10821 arrays in determining sequence sizes in strncpy and stpncpy.
10823 2019-03-19 Martin Liska <mliska@suse.cz>
10825 PR middle-end/89737
10826 * predict.c (combine_predictions_for_bb): Empty likely_edges and
10827 unlikely_edges if there's an edge that belongs to both these sets.
10829 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
10832 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
10833 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
10834 go via a stack temporary.
10836 2019-03-19 Jakub Jelinek <jakub@redhat.com>
10839 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
10840 instead of gen_rtx_SUBREG.
10841 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
10843 2019-03-19 Richard Biener <rguenther@suse.de>
10846 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
10848 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
10852 * tree.c (free_lang_data_in_decl): Do not free context of C++
10855 2019-03-19 Jakub Jelinek <jakub@redhat.com>
10858 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
10859 subs for the first alternative except when operands[3] is 1.
10862 * gimplify.c (gimplify_asm_expr): For output argument with
10863 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
10866 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
10868 PR rtl-optimization/89753
10869 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
10870 explicit unrolling factor even more robust.
10872 2019-03-19 Jakub Jelinek <jakub@redhat.com>
10875 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
10876 compensation use x2 += 1 instead of x2 -= -1 and when honoring
10877 signed zeros, do another copysign after the compensation.
10879 2019-03-18 Martin Sebor <msebor@redhat.com>
10881 PR tree-optimization/89720
10882 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
10883 more conservatively, the same as anti-range.
10885 2019-03-18 Richard Biener <rguenther@suse.de>
10887 PR middle-end/88945
10888 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
10889 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
10890 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
10891 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
10893 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
10895 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
10896 Extend queue to 1024 entries.
10897 Add "consumed" field.
10898 (gomp_print_output): Remove print_index parameter.
10899 Add final parameter.
10900 Change limit to unsigned.
10901 Use consumed field to implement circular buffer.
10902 Detect interrupted print in final pass.
10903 Flush output at the end.
10904 (run): Update gomp_print_output usage.
10905 (main): Initialize kernargs->output_data.consumed.
10907 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
10909 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
10910 calculation of the minimum number of scalar iterations for
10911 fully-predicated loops.
10913 2019-03-18 Martin Jambor <mjambor@suse.cz>
10915 PR tree-optimization/89546
10916 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
10917 any propagation to its children took place.
10919 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
10922 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
10923 parameter, and make use of it.
10924 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
10926 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
10928 * config/arc/arc.opt (mcode-density-frame): Get the inital value
10929 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
10930 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
10931 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
10932 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
10933 match what the ops is doing.
10934 (push_multi_fp_blink): Likewise.
10935 * config/arc/arc.c (arc_override_options): Enable enter/leave when
10936 compiling for size and elf target.
10937 (arc_save_callee_enter): Adjust note to match what enter/leave
10940 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
10942 * config/arc/arc.md (tst_movb): Fix constraint.
10944 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
10946 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
10948 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
10950 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
10951 * config/arc/arc.c (arc_conditional_register_usage): Remove all
10952 reg_alloc_order references.
10953 (size_alloc_order): Define.
10954 (arc_adjust_reg_alloc_order): New function.
10955 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
10957 (ADJUST_REG_ALLOC_ORDER): Define.
10958 (HONOR_REG_ALLOC_ORDER): Likewise.
10960 2019-03-18 Richard Biener <rguenther@suse.de>
10963 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
10964 loads and stores a bit more.
10966 2019-03-18 Richard Biener <rguenther@suse.de>
10969 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
10970 load pessimization to stores as well.
10972 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
10974 PR middle-end/86979
10975 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
10976 successor, use NULL as its av set.
10978 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
10980 PR rtl-optimization/89721
10981 * lra-constraints (invariant_p): Return false if side_effects_p holds.
10983 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
10986 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
10987 When handling vec_extract, use modular arithmetic to allow
10988 constant selectors greater than vector length.
10989 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
10990 V1TImode vectors to have constant selector values greater than 0.
10991 Use modular arithmetic to compute vector index.
10992 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
10993 index for in-memory vectors. Correct code generation for
10994 in-register vectors.
10995 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
10998 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
11002 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
11005 2019-03-15 Jakub Jelinek <jakub@redhat.com>
11008 * tree.c (inchash::add_expr): Strip any location wrappers.
11009 * fold-const.c (operand_equal_p): Move stripping of location wrapper
11010 after hash verification.
11013 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
11014 SIGN_EXTEND and ZERO_EXTEND.
11016 2019-03-14 Jason Merrill <jason@redhat.com>
11017 Jakub Jelinek <jakub@redhat.com>
11019 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
11020 than if is_empty (*slot).
11021 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
11022 existing elt and for elt removal.
11023 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
11024 of already removed elt.
11026 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
11029 * config/i386/i386.c (remove_partial_avx_dependency): Handle
11030 REG_EH_REGION note.
11032 2019-03-14 Martin Liska <mliska@suse.cz>
11035 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
11037 2019-03-14 Richard Biener <rguenther@suse.de>
11040 * config/i386/i386.c (make_resolver_func): Properly set
11041 DECL_CONTEXT on the RESULT_DECL.
11042 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
11044 2019-03-14 Richard Biener <rguenther@suse.de>
11046 * gimple-pretty-print.c: Include cfgloop.h.
11047 (dump_gimple_phi): Adjust.
11048 (dump_gimple_bb_header): Dump loop header for GIMPLE.
11049 (pp_cfg_jump): Adjust.
11050 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
11051 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
11052 (lower_phi_internal_fn): Remove.
11053 (verify_gimple_call): Remove IFN_PHI special-casing.
11054 (dump_function_to_file): Dump IL state.
11055 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
11056 done to deal with PHI nodes being present in non-SSA state.
11058 2019-03-14 Jakub Jelinek <jakub@redhat.com>
11061 * multiple_target.c (create_dispatcher_calls): Change
11062 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
11063 In the node->iterate_referring loop, push *ref rather than ref, call
11064 ref->remove_reference () and always pass 0 to iterate_referring.
11066 PR rtl-optimization/89679
11067 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
11068 would contain a paradoxical SUBREG.
11070 2019-03-14 Richard Biener <rguenther@suse.de>
11072 PR tree-optimization/89710
11073 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
11076 2019-03-14 Martin Liska <mliska@suse.cz>
11078 * coverage.c (coverage_begin_function): Stream also
11080 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
11081 documentation about function declaration location.
11082 * gcov-dump.c (tag_function): Print whole range
11083 of function declaration.
11084 * gcov.c (struct function_info): Add end_column field.
11085 (function_info::function_info): Initialize it.
11086 (output_json_intermediate_file): Output {start,end}_column
11088 (read_graph_file): Read end_column.
11090 2019-03-14 Richard Biener <rguenther@suse.de>
11092 PR middle-end/89698
11093 * fold-const.c (operand_equal_p): For INDIRECT_REF check
11094 that the access types are similar.
11096 2019-03-14 Jakub Jelinek <jakub@redhat.com>
11098 PR tree-optimization/89703
11099 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
11100 aren't compatible also with builtin_decl_explicit. Check pure
11101 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
11102 and BUILT_IN_STPNCPY{,_CHK}.
11104 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
11107 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
11108 addr32 prefix to VSIB address for X32.
11109 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
11111 (*avx512pf_gatherpf<mode>df_mask): Likewise.
11112 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
11113 (*avx512pf_scatterpf<mode>df_mask): Likewise.
11114 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
11115 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
11116 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
11117 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
11118 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
11119 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
11120 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
11121 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
11122 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
11123 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
11124 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
11125 (*avx512f_scatterdi<mode>): Likewise.
11127 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
11130 * lra-constraints.c (inherit_in_ebb): Update
11131 potential_reload_hard_regs along with live_hard_regs.
11133 2019-03-13 Jakub Jelinek <jakub@redhat.com>
11136 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
11138 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
11140 2019-03-13 Martin Sebor <msebor@redhat.com>
11142 PR tree-optimization/89662
11143 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
11146 2019-03-13 Richard Biener <rguenther@suse.de>
11148 PR middle-end/89677
11149 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
11150 throw FP expressions at tree-affine.
11152 2019-03-14 Richard Biener <rguenther@suse.de>
11154 * tree-pretty-print.c (dump_generic_node): For -gimple properly
11155 dump negative integer constants using _Literal (type) -num.
11157 2019-03-13 Jakub Jelinek <jakub@redhat.com>
11159 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
11160 nonlocal_value member.
11162 PR middle-end/88588
11163 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
11164 (ipa_simd_modify_function_body): Handle PHIs.
11166 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
11168 * config/s390/s390.c (s390_option_override_internal): Use more
11169 aggressive inlining parameters.
11171 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
11173 * config/s390/3906.md: New file.
11174 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
11175 (LONGRUNNING_THRESHOLD): Remove.
11176 (MAX_SCHED_MIX_SCORE): Decrease.
11177 (MAX_SCHED_MIX_DISTANCE): Decrease.
11178 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
11179 (struct s390_sched_state): New struct to hold scheduling state.
11180 (S390_SCHED_STATE_NORMAL): Remove.
11181 (S390_SCHED_STATE_CRACKED): Remove.
11182 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
11183 (s390_get_sched_attrmask): Use new attribute.
11184 (s390_get_unit_mask): Use new units.
11185 (s390_is_fpd): New function.
11186 (s390_is_fxd): New function.
11187 (s390_is_longrunning): New function.
11188 (s390_sched_score): Use new functions.
11189 (s390_sched_reorder): Likewise.
11190 (s390_sched_variable_issue): Rework and use new functions.
11191 (s390_sched_init): Use new functions.
11192 * config/s390/s390.h (s390_tune_attr): Add z14.
11193 * config/s390/s390.md: Add z14.
11195 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
11197 * config/s390/2964.md: Update pipeline description.
11198 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
11199 (LONGRUNNING_THRESHOLD): Remove.
11200 (LATENCY_FACTOR): Remove.
11201 (s390_get_unit_mask): Add unit.
11202 (s390_sched_score): Use fxd/fpd.
11203 (s390_sched_variable_issue): Use fxd/fpd.
11205 2019-03-12 Martin Liska <mliska@suse.cz>
11207 * config/i386/i386.c: Reword an error message.
11209 2019-03-12 Martin Jambor <mjambor@suse.cz>
11211 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
11212 terminate with newline.
11214 2019-03-12 Jakub Jelinek <jakub@redhat.com>
11217 * config/s390/s390.md (tabort): Use %wd instead of
11218 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
11219 letters and periods.
11220 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
11221 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
11224 PR middle-end/89663
11225 * builtins.c (expand_builtin_int_roundingfn,
11226 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
11227 gcc_unreachable if validate_arglist fails.
11229 2019-03-12 Richard Biener <rguenther@suse.de>
11231 PR tree-optimization/89664
11232 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
11233 free the occurance tree after the early out.
11235 2019-03-11 Jakub Jelinek <jakub@redhat.com>
11237 PR middle-end/89655
11239 * vr-values.c (vr_values::update_value_range): If
11240 old_vr->varying_p (), don't update it, make new_vr also VARYING
11243 2019-03-11 Martin Liska <mliska@suse.cz>
11245 * config/aarch64/aarch64.c (aarch64_override_options_internal):
11246 Fix double string quoting.
11248 2019-03-11 Martin Liska <mliska@suse.cz>
11250 * collect-utils.c (collect_wait): Wrap apostrophes
11251 in gcc internal format with %'.
11252 * collect2.c (main): Likewise.
11253 (scan_prog_file): Likewise.
11254 (scan_libraries): Likewise.
11255 * config/i386/i386.c (ix86_expand_call): Likewise.
11256 (ix86_handle_interrupt_attribute): Likewise.
11257 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
11258 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
11259 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
11260 * lto-wrapper.c (find_crtoffloadtable): Likewise.
11261 * symtab.c (symtab_node::verify_base): Likewise.
11262 * tree-cfg.c (verify_gimple_label): Likewise.
11263 * tree.c (verify_type_variant): Likewise.
11265 2019-03-11 Martin Liska <mliska@suse.cz>
11267 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
11268 in a string format message and fix GNU coding style.
11269 (expand_builtin_set_thread_pointer): Likewise.
11270 * common/config/aarch64/aarch64-common.c
11271 (aarch64_rewrite_selected_cpu): Likewise.
11272 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
11273 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
11274 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
11275 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
11276 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
11277 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
11278 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
11279 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
11280 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
11281 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
11283 * common/config/riscv/riscv-common.c
11284 (riscv_subset_list::parsing_subset_version): Likewise.
11285 (riscv_subset_list::parse_std_ext): Likewise.
11286 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
11287 (riscv_subset_list::parse): Likewise.
11288 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
11289 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
11290 (aarch64_override_options_internal): Likewise.
11291 (aarch64_validate_mcpu): Likewise.
11292 (aarch64_validate_march): Likewise.
11293 (aarch64_validate_mtune): Likewise.
11294 (aarch64_override_options): Likewise.
11295 * config/alpha/alpha.c (alpha_option_override): Likewise.
11296 * config/arc/arc.c (arc_init): Likewise.
11297 (parse_mrgf_banked_regs_option): Likewise.
11298 (arc_override_options): Likewise.
11299 (arc_expand_builtin_aligned): Likewise.
11300 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
11301 (arm_expand_builtin): Likewise.
11302 * config/arm/arm.c (arm_option_check_internal): Likewise.
11303 (arm_configure_build_target): Likewise.
11304 (arm_option_override): Likewise.
11305 (arm_options_perform_arch_sanity_checks): Likewise.
11306 (arm_handle_cmse_nonsecure_entry): Likewise.
11307 (arm_handle_cmse_nonsecure_call): Likewise.
11308 (arm_tls_referenced_p): Likewise.
11309 (thumb1_expand_prologue): Likewise.
11310 * config/avr/avr.c (avr_option_override): Likewise.
11311 * config/bfin/bfin.c (bfin_option_override): Likewise.
11312 * config/c6x/c6x.c (c6x_option_override): Likewise.
11313 * config/cr16/cr16.c (cr16_override_options): Likewise.
11314 * config/cris/cris.c (cris_option_override): Likewise.
11315 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
11316 * config/darwin-c.c (macosx_version_as_macro): Likewise.
11317 * config/darwin.c (darwin_override_options): Likewise.
11318 * config/frv/frv.c (frv_expand_builtin): Likewise.
11319 * config/h8300/h8300.c (h8300_option_override): Likewise.
11320 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
11321 (ix86_option_override_internal): Likewise.
11322 (warn_once_call_ms2sysv_xlogues): Likewise.
11323 (ix86_expand_prologue): Likewise.
11324 (split_stack_prologue_scratch_regno): Likewise.
11325 (ix86_warn_parameter_passing_abi): Likewise.
11326 * config/ia64/ia64.c (fix_range): Likewise.
11327 * config/m68k/m68k.c (m68k_option_override): Likewise.
11328 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
11329 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
11330 (mips_set_compression_mode): Likewise.
11331 * config/mmix/mmix.c (mmix_option_override): Likewise.
11332 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
11333 * config/msp430/msp430.c (msp430_option_override): Likewise.
11334 * config/nds32/nds32.c (nds32_option_override): Likewise.
11335 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
11336 (nios2_option_override): Likewise.
11337 (nios2_expand_custom_builtin): Likewise.
11338 * config/nvptx/mkoffload.c (main): Likewise.
11339 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
11340 * config/pa/pa.c (fix_range): Likewise.
11341 (pa_option_override): Likewise.
11342 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
11343 (riscv_option_override): Likewise.
11344 * config/rl78/rl78.c (rl78_option_override): Likewise.
11345 * config/rs6000/aix61.h: Likewise.
11346 * config/rs6000/aix71.h: Likewise.
11347 * config/rs6000/aix72.h: Likewise.
11348 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
11349 * config/rs6000/freebsd64.h: Likewise.
11350 * config/rs6000/linux64.h: Likewise.
11351 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
11352 (rs6000_expand_zeroop_builtin): Likewise.
11353 (rs6000_expand_mtfsb_builtin): Likewise.
11354 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
11355 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
11356 (rs6000_invalid_builtin): Likewise.
11357 (rs6000_expand_split_stack_prologue): Likewise.
11358 * config/rs6000/rtems.h: Likewise.
11359 * config/rx/rx.c (valid_psw_flag): Likewise.
11360 (rx_expand_builtin): Likewise.
11361 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
11362 * config/s390/s390.c (s390_expand_builtin): Likewise.
11363 (s390_function_profiler): Likewise.
11364 (s390_option_override_internal): Likewise.
11365 (s390_option_override): Likewise.
11366 * config/sh/sh.c (sh_option_override): Likewise.
11367 (sh_builtin_saveregs): Likewise.
11368 (sh_fix_range): Likewise.
11369 * config/sh/vxworks.h: Likewise.
11370 * config/sparc/sparc.c (sparc_option_override): Likewise.
11371 * config/spu/spu.c (spu_option_override): Likewise.
11372 (fix_range): Likewise.
11373 * config/visium/visium.c (visium_option_override): Likewise.
11374 (visium_handle_interrupt_attr): Likewise.
11375 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
11376 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
11377 (dbg_cnt_process_opt): Likewise.
11378 * dwarf2out.c (output_dwarf_version): Likewise.
11379 * except.c (expand_eh_return): Likewise.
11380 * gcc.c (defined): Likewise.
11381 (driver_handle_option): Likewise.
11382 (process_command): Likewise.
11383 (compare_files): Likewise.
11384 (driver::prepare_infiles): Likewise.
11385 (driver::do_spec_on_infiles): Likewise.
11386 (driver::maybe_run_linker): Likewise.
11387 * omp-offload.c (oacc_parse_default_dims): Likewise.
11388 * opts-global.c (handle_common_deferred_options): Likewise.
11389 * opts.c (parse_sanitizer_options): Likewise.
11390 (common_handle_option): Likewise.
11391 (enable_warning_as_error): Likewise.
11392 * passes.c (enable_disable_pass): Likewise.
11393 * plugin.c (parse_plugin_arg_opt): Likewise.
11394 (default_plugin_dir_name): Likewise.
11395 * targhooks.c (default_expand_builtin_saveregs): Likewise.
11396 (default_pch_valid_p): Likewise.
11397 * toplev.c (init_asm_output): Likewise.
11398 (process_options): Likewise.
11399 (toplev::run_self_tests): Likewise.
11400 * tree-cfg.c (verify_gimple_call): Likewise.
11401 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
11402 (tree_inlinable_function_p): Likewise.
11403 * var-tracking.c (vt_find_locations): Likewise.
11405 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
11407 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
11408 only on the else branch.
11410 2019-03-11 Martin Liska <mliska@suse.cz>
11412 * gcov.c (output_intermediate_json_line): Print function
11414 (output_json_intermediate_file): Add new argument.
11415 * doc/gcov.texi: Document the change.
11417 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
11419 PR rtl-optimization/89588
11420 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
11421 explicit unrolling factor more robust.
11423 2019-03-11 Richard Biener <rguenther@suse.de>
11425 PR tree-optimization/89649
11426 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
11427 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
11428 on the prolog and epilog loops.
11429 (vect_loop_versioning): Return copy of loop.
11430 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
11431 on the non-vectorized version of the loop.
11433 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
11436 * config/i386/sse.md (*vec_extractv2di_0_sse):
11437 Add (=r,x) alternative and corresponding splitter.
11439 2019-03-10 Martin Jambor <mjambor@suse.cz>
11441 PR tree-optimization/85762
11442 PR tree-optimization/87008
11443 PR tree-optimization/85459
11444 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
11445 it points to if there is a type changing MEM_REF. Adjust all callers.
11446 (build_accesses_from_assign): Disable total scalarization if
11447 contains_vce_or_bfcref_p returns true through the new parameter, for
11450 2019-03-09 Jakub Jelinek <jakub@redhat.com>
11453 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
11454 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
11457 * common.opt (fdiagnostics-show-labels,
11458 fdiagnostics-show-line-numbers, fdiagnostics-format=,
11459 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
11460 gas-locview-support, ginline-points, ginternal-reset-location-views):
11461 Terminate description text with a dot.
11462 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
11463 * config/mcore/mcore.opt (m210, m340): Likewise.
11464 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
11465 mnops=): Start description text with a capital letter.
11466 * config/arc/arc.opt (msize-level=): Likewise.
11467 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
11468 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
11469 mnewlib): Likewise.
11470 * config/ft32/ft32.opt (msim): Likewise.
11471 (mft32b, mcompress): Likewise. Terminate description text with a dot.
11472 (mnodiv, mnopm): Terminate description text with a dot.
11473 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
11475 * config/i386/i386.opt (prefer_vector_width, instrument_return):
11477 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
11480 PR rtl-optimization/89634
11481 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
11482 are modified in BB_END (e->src) instruction.
11484 2019-03-08 David Malcolm <dmalcolm@redhat.com>
11487 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
11488 messages more amenable to translation, and improve wording.
11490 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
11492 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
11493 ud- and du-chains between phases.
11495 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
11498 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
11499 instead of POLY_INT_CST.
11501 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
11503 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
11506 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
11511 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
11512 (_mm_storeu_si64): Ditto.
11514 2019-03-08 Martin Liska <mliska@suse.cz>
11517 * config/i386/i386.c (ix86_option_override_internal): Disable
11518 jump tables when retpolines are used.
11520 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
11523 * ipa-split.c (execute_split_functions): Do not split
11524 'noinline' or 'section' function.
11526 2019-03-08 Jakub Jelinek <jakub@redhat.com>
11529 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
11530 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
11531 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
11534 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
11535 from diagnostics. Formatting fixes.
11538 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
11539 warn_odr diagnostics.
11542 * lra-constraints.c (process_alt_operands): Avoid one space before
11543 " at the end of line and another after " on another line in a string
11545 * attribs.c (handle_dll_attribute): Likewise.
11546 * config/avr/avr-devices.c (avr_texinfo): Likewise.
11548 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
11549 warning_at or inform messages in G_() if there is no ?:.
11551 PR tree-optimization/89550
11552 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
11553 returned true. Formatting fixes.
11554 (expand_builtin_strnlen): Formatting fixes.
11555 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
11556 if warning_at returned true.
11557 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
11559 2019-03-08 Richard Biener <rguenther@suse.de>
11561 PR middle-end/89578
11562 * cfgloop.h (struct loop): Add owned_clique field.
11563 * cfgloopmanip.c (copy_loop_info): Copy it.
11564 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
11566 * tree-inline.c (copy_loops): Remap owned_clique.
11567 * lto-streamer-in.c (input_cfg): Stream owned_clique.
11568 * lto-streamer-out.c (output_cfg): Likewise.
11570 2019-03-08 Jakub Jelinek <jakub@redhat.com>
11573 * config/darwin.c: Include intl.h.
11574 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
11575 composing the message out of two separate parts.
11577 2019-03-07 Jakub Jelinek <jakub@redhat.com>
11580 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
11581 doesn't start with a capital letter and doesn't end with a dot.
11582 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
11583 with a capital letter.
11584 (ix86_mangle_function_version_assembler_name): Likewise.
11585 (ix86_generate_version_dispatcher_body): Likewise.
11586 (fold_builtin_cpu): Likewise.
11587 (get_builtin_code_for_version): Likewise. Remove extraneous space.
11588 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
11589 translators, wrap full type name in %qs.
11591 PR translation/79999
11592 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
11593 depend clause with source (or sink) modifier.
11594 * omp-expand.c (expand_omp_ordered_sink): Likewise.
11597 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
11598 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
11599 (avx512f_load<mode>_mask): New define_expand.
11600 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
11601 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
11602 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
11603 __builtin_ia32_movess_mask): New builtins.
11604 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
11605 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
11606 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
11607 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
11609 2019-03-07 Martin Jambor <mjambor@suse.cz>
11612 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
11613 for extern inline functions.
11615 2019-03-07 Martin Jambor <mjambor@suse.cz>
11618 * cgraph.h (cgraph_node): New inline method former_thunk_p.
11619 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
11620 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
11621 have multiple callees. At the end check if declarations match as
11622 opposed to cgraph_nodes.
11624 2019-03-07 Martin Liska <mliska@suse.cz>
11626 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
11627 which is equivalent to searching for this in clones chain.
11628 * symtab.c (symtab_node::verify_base): Similarly compare ASM
11629 names with a neighbour and special case first node in a chain.
11631 2019-01-25 Jason Merrill <jason@redhat.com>
11633 PR c++/80916 - spurious "static but not defined" warning.
11634 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
11635 for an internal symbol with DECL_EXTERNAL.
11637 2019-04-07 Richard Biener <rguenther@suse.de>
11639 PR middle-end/89618
11640 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
11641 * tree-inline.c (copy_loops): Simplify.
11643 2019-03-07 Martin Liska <mliska@suse.cz>
11645 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
11647 2019-03-07 Richard Biener <rguenther@suse.de>
11649 PR tree-optimization/89595
11650 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
11651 stmt iterator as reference, take boolean output parameter to
11652 indicate whether the stmt was removed and thus the iterator
11654 (dom_opt_dom_walker::before_dom_children): Re-iterate over
11655 stmts created by folding.
11657 2019-03-07 Jakub Jelinek <jakub@redhat.com>
11660 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
11663 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
11665 PR rtl-optimization/88845
11666 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
11668 * lra.c (remove_scratches_1): New function.
11669 (remove_scratches): Use it.
11670 (lra_emit_move): Likewise.
11672 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
11674 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
11675 unaligned_access variable.
11676 * config/arc/arc.c (arc_override_options): Set unaligned access
11677 default on for HS CPUs.
11678 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
11680 2019-03-06 Martin Liska <mliska@suse.cz>
11682 PR gcov-profile/89577
11683 * doc/gcov.texi: Prefer to use --coverage.
11684 * doc/sourcebuild.texi: Likewise.
11686 2019-03-02 Jason Merrill <jason@redhat.com>
11688 PR c++/86485 - -Wmaybe-unused with empty class ?:
11689 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
11691 2019-03-05 Jakub Jelinek <jakub@redhat.com>
11694 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
11697 PR middle-end/89590
11698 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
11699 exactly one argument.
11701 2019-03-05 Jakub Jelinek <jakub@redhat.com>
11702 Richard Sandiford <richard.sandiford@arm.com>
11704 PR tree-optimization/89570
11705 * match.pd (vec_cond into cond_op simplification): Don't use
11706 get_conditional_internal_fn, use as_internal_fn (cond_op).
11708 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
11711 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
11712 to decide when to split off a non-zero offset from a symbol.
11713 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
11714 in function symbols.
11716 2019-03-05 Richard Biener <rguenther@suse.de>
11718 PR tree-optimization/89594
11719 * tree-if-conv.c (pass_if_conversion::execute): Handle
11720 case where .LOOP_VECTORIZED_FUNCTION was removed.
11722 2019-03-05 Jakub Jelinek <jakub@redhat.com>
11725 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
11726 instead alloca it only when needed with the needed size.
11728 PR tree-optimization/89570
11729 * match.pd (vec_cond into cond_op simplification): Guard with
11730 vectorized_internal_fn_supported_p test and #if GIMPLE.
11732 PR tree-optimization/89566
11733 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
11734 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
11735 Punt if get_user_idx_format succeeds, but idx_format argument is
11736 not provided or doesn't have pointer type, or if idx_args is above
11737 number of provided arguments.
11739 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
11741 PR tree-optimization/89437
11742 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
11744 2019-03-04 Richard Biener <rguenther@suse.de>
11746 PR middle-end/89572
11747 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
11750 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
11752 PR tree-optimization/89487
11753 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
11754 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
11755 (distribute_loop): Don't do runtime alias check if there is non-
11756 addressable data reference.
11757 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
11758 is a register variable.
11760 2019-03-02 Jakub Jelinek <jakub@redhat.com>
11763 * config/arm/arm.md (cmpsi2_addneg): Use
11764 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
11765 If operands[2] is 0 or INT_MIN, force use of subs.
11766 (*compare_scc splitter): Use gen_int_mode.
11767 (*negscc): Likewise.
11768 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
11770 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
11771 Monk Chiang <sh.chiang04@gmail.com>
11773 * common/config/riscv/riscv-common.c: Include sstream.
11774 (riscv_subset_list::to_string): New.
11775 (riscv_arch_str): Likewise.
11776 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
11777 * config.in: Regen.
11778 * config/riscv/riscv-protos.h (riscv_arch_str): New.
11779 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
11780 (riscv_emit_attribute): New.
11781 (riscv_file_start): Emit attribute if needed.
11782 (riscv_option_override): Init riscv_emit_attribute_p.
11783 * config/riscv/riscv.opt (mriscv-attribute): New option.
11784 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
11785 * configure: Regen.
11786 * doc/install.texi: Document --with-riscv-attribute.
11787 * doc/invoke.texi: Document -mriscv-attribute.
11789 * common/config/riscv/riscv-common.c:
11790 Include config/riscv/riscv-protos.h.
11791 (INCLUDE_STRING): Defined.
11792 (RISCV_DONT_CARE_VERSION): Defined.
11793 (riscv_subset_t): Declare.
11794 (riscv_subset_t::riscv_subset_t): New.
11795 (riscv_subset_list): Declare.
11796 (riscv_subset_list::riscv_subset_list): New.
11797 (riscv_subset_list::~riscv_subset_list): Likewise.
11798 (riscv_subset_list::parsing_subset_version): Likewise.
11799 (riscv_subset_list::parse_std_ext): Likewise.
11800 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
11801 (riscv_subset_list::add): Likewise.
11802 (riscv_subset_list::lookup): Likewise.
11803 (riscv_subset_list::xlen): Likewise.
11804 (riscv_subset_list::parse): Likewise.
11805 (riscv_supported_std_ext): Likewise.
11806 (current_subset_list): Likewise.
11807 (riscv_parse_arch_string): Using riscv_subset_list::parse to
11810 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
11812 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
11813 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
11814 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
11816 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
11818 PR rtl-optimization/85899
11819 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
11820 fallthru edges leading to the exit block.
11822 2019-03-01 Tamar Christina <tamar.christina@arm.com>
11825 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
11826 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
11828 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
11830 PR tree-optimization/89535
11831 * tree-vect-stmts.c (vectorizable_call): Record the vector types
11832 for each operand. Calculate the fallback choice for mask operands
11833 and pass it to vect_get_vec_def_for_operand.
11835 2019-03-01 Richard Biener <rguenther@suse.de>
11837 PR middle-end/89541
11838 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
11839 get virtual operands.
11840 (get_expr_operands): Handle CONST_DECL like other decls.
11842 2019-03-01 Jakub Jelinek <jakub@redhat.com>
11844 PR middle-end/89503
11845 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
11846 on DECL_P and EXPR_P.
11848 2019-03-01 Richard Biener <rguenther@suse.de>
11850 PR middle-end/89497
11851 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
11852 argument, defaulted to zero.
11853 * passes.c (execute_function_todo): Pass down SSA update flags
11854 to cleanup_tree_cfg.
11855 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
11856 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
11858 (cleanup_tree_cfg): Get and pass down SSA update flags.
11860 2019-03-01 Jakub Jelinek <jakub@redhat.com>
11863 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
11864 early_lto_debug argument.
11866 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
11868 PR tree-optimization/89536
11869 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
11870 only whether bit #0 of the value is 0 instead of the entire value.
11872 2019-02-28 Marek Polacek <polacek@redhat.com>
11874 PR c++/87068 - missing diagnostic with fallthrough statement.
11875 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
11876 at the end of a seq, save its location to walk_stmt_info.
11877 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
11880 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
11883 * tree.c (find_atomic_core_type): Move ahead in file.
11884 (check_base_type): Correctly compare alignments of atomic types.
11886 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
11889 * config/i386/i386.c (get_builtin_code_for_version): Identify
11890 Westmere from PCLMUL, instead of AES.
11892 2019-02-28 Jakub Jelinek <jakub@redhat.com>
11895 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
11896 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
11899 2019-02-28 Tamar Christina <tamar.christina@arm.com>
11902 * config/aarch64/aarch64-option-extensions.def: Document it.
11903 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
11906 2019-02-28 Jakub Jelinek <jakub@redhat.com>
11909 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
11910 builtins if they don't have a single scalar floating point argument.
11913 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
11915 PR rtl-optimization/89490
11916 * varasm.c (get_block_for_section): Bail out for mergeable sections.
11917 (default_use_anchors_for_symbol_p, output_object_block): Assert the
11918 block section is not mergeable.
11920 2019-02-27 Jakub Jelinek <jakub@redhat.com>
11923 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
11924 old define_insn to ...
11925 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
11926 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
11927 Rename old define_insn to ...
11928 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
11929 (thumb2_casesi_internal_pic): New define_expand. Rename old
11931 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
11932 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
11933 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
11935 2019-02-27 Richard Biener <rguenther@suse.de>
11938 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
11940 2019-02-27 Richard Biener <rguenther@suse.de>
11942 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
11945 2019-02-27 Richard Biener <rguenther@suse.de>
11948 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
11949 parameter, prefix section name with .gnu.debuglto_ if true.
11950 (dwarf2out_finish): Pass false to output_comdat_type_unit.
11951 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
11953 2019-02-27 Richard Biener <rguenther@suse.de>
11956 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
11957 rather than on use_debug_types, doing what output_die does.
11958 (value_format): Likewise.
11960 2019-02-27 Martin Jambor <mjambor@suse.cz>
11961 Martin Sebor <msebor@redhat.com>
11963 * doc/invoke.texi (Warning Options): Reword description of
11964 -Wno-absolute-value.
11966 2019-02-27 Jakub Jelinek <jakub@redhat.com>
11968 PR tree-optimization/89280
11969 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
11970 builtin_setjmp_setup_bb): New functions.
11971 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
11972 When visiting __builtin_setjmp_setup block, queue in special
11973 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
11974 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
11975 from visited after the loop if they don't have any visited successor
11978 2018-02-26 Steve Ellcey <sellcey@marvell.com>
11980 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
11982 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
11984 2019-02-26 Jakub Jelinek <jakub@redhat.com>
11987 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
11988 with types other than sizetype/ssizetype.
11990 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
11992 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
11993 (enum sparc_processor_type): ...this.
11994 (enum sparc_code_model_type): New enumeration type.
11995 (enum sparc_memory_model_type): Tweak comments.
11996 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
11998 (mcmodel): Use sparc_code_model enumeration and variable.
11999 (sparc_code_model): New enumeration.
12000 (mdebug): Add Undocumented marker.
12001 * config/sparc/sparc.h (enum cmodel): Delete.
12002 (sparc_cmodel): Likewise.
12003 (TARGET_CM_MEDLOW): Adjust to above renaming.
12004 (TARGET_CM_MEDMID): Likewise.
12005 (TARGET_CM_MEDANY): Likewise.
12006 (TARGET_CM_EMBMEDANY): Likewise.
12007 * config/sparc/sparc.c (sparc_cmodel): Delete.
12008 (sparc_option_override): Remove string/value mapping support for the
12009 code model. Move code and memory model support to after the handling
12010 of target flags. Do private machine setup last.
12011 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
12012 (sparc_legitimize_reload_address): Likewise.
12013 (sparc_output_mi_thunk): Likewise.
12014 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
12016 2019-02-26 Jakub Jelinek <jakub@redhat.com>
12018 PR tree-optimization/89500
12019 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
12020 (handle_builtin_strlen): Remove noncst_bound variable. Always
12021 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
12022 cst if the first cst bytes starting at x are known to be non-zero,
12023 even if the string is not zero terminated. Don't try to modify
12024 *si for strnlen. Update strlen_to_stridx only for strlen or if
12025 we can prove strnlen returns the same value as strlen would.
12027 2019-02-26 Martin Liska <mliska@suse.cz>
12029 * alloc-pool.h (struct pool_usage): Remove extra
12031 * bitmap.h (struct bitmap_usage): Likewise.
12032 * ggc-common.c (struct ggc_usage): Likewise.
12033 * mem-stats.h (struct mem_usage): Likewise.
12034 (mem_alloc_description::dump): Print dash lines
12035 here and repeat header at the end of a table report.
12036 It's then more readable.
12037 * tree-phinodes.c (phinodes_print_statistics): Make
12038 horizontal alignment.
12039 * tree-ssanames.c (ssanames_print_statistics): Likewise.
12040 * vec.c (struct vec_usage): Remove extra print_dash_line.
12041 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
12043 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
12045 * doc/extend.texi (__builtin_object_size):
12046 Use @pxref instead of @xref inside parenthesis.
12047 (__builtin_has_attribute): Add missing comma after @xref.
12048 (__builtin_object_size): Ditto.
12049 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
12050 * fortran/invoke.texi (-ffpe-trap): Use @var for every item
12053 2019-02-26 Jeff Law <law@redhat.com>
12055 PR rtl-optimization/87761
12056 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
12057 detect obviously dead insns and delete them.
12059 2019-02-26 Richard Biener <rguenther@suse.de>
12061 PR tree-optimization/89505
12062 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
12063 to handle restrict pointed-to vars with multiple subvars
12066 2019-02-26 Richard Biener <rguenther@suse.de>
12068 PR tree-optimization/89489
12069 * tree-parloops.c (create_loop_fn): Copy over last_clique.
12071 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
12073 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
12074 and move around comment.
12075 <BIT_AND_EXPR>: Likewise.
12076 <BIT_NOT_EXPR>: Add specific handling for boolean types.
12078 2019-02-26 Jakub Jelinek <jakub@redhat.com>
12081 * config/i386/i386.c (remove_partial_avx_dependency): Call
12082 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
12083 after changing possibly many instructions to use that pseudo. Fix up
12084 insertion of v4sf_const0 setter at the start of bb.
12086 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
12089 * doc/extend.texi (Variadic Pointer Args): New section.
12091 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
12092 Martin Sebor <msebor@gmail.com>
12094 * common.opt (Wattribute-alias): Likewise.
12095 * doc/invoke.texi (Option Summary): List general form of
12096 -Wattribute-alias=. List positive form of -Wmissing-attributes.
12097 (-Wmissing-attributes): Invert entry, rewrite and correct default.
12098 Add cross-references.
12099 (-Wattribute-alias): Rewrite and correct default. Mention
12100 considered attributes (same as for -Wmissing-attributes).
12102 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
12104 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
12105 (_mm_cvtpd_ps): Likewise.
12106 (_mm_cvttpd_epi32): Likewise.
12109 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
12110 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
12113 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
12115 2019-02-25 Tamar Christina <tamar.christina@arm.com>
12118 * common/config/aarch64/aarch64-common.c
12119 (struct aarch64_option_extension): Add is_synthetic.
12120 (all_extensions): Use it.
12121 (TARGET_OPTION_INIT_STRUCT): Define hook.
12122 (struct gcc_targetm_common): Moved to end.
12123 (all_extensions_by_on): New.
12124 (opt_ext_cmp, typedef opt_ext): New.
12125 (aarch64_option_init_struct): New.
12126 (aarch64_contains_opt): New.
12127 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
12128 * config/aarch64/aarch64-option-extensions.def
12129 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
12130 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
12131 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
12132 Set is_synthetic to false.
12133 (crypto): Set is_synthetic to true.
12134 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
12137 2019-02-25 Tamar Christina <tamar.christina@arm.com>
12139 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
12140 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
12141 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
12142 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
12143 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
12144 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
12145 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
12146 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
12148 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
12149 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
12150 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
12151 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
12152 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
12153 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
12154 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
12155 vfmlsl_laneq_high_f16): ... To this.
12156 * config/arm/neon.md: Update comments.
12158 2019-02-25 Tamar Christina <tamar.christina@arm.com>
12160 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
12161 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
12162 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
12163 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
12164 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
12165 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
12166 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
12167 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
12169 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
12170 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
12171 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
12172 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
12173 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
12174 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
12175 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
12176 vfmlslq_laneq_high_f16): ... To this.
12178 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
12180 PR rtl-optimization/86096
12181 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
12182 comparing mw_order values.
12184 2019-02-25 Jakub Jelinek <jakub@redhat.com>
12187 * config/arm/arm.md (*subsi3_carryin_const): Use
12188 arm_neg_immediate_operand predicate instead of
12189 arm_not_immediate_operand, "L" constraint instead of "K" and
12190 print it using %n2 instead of %B2.
12191 (*subsi3_carryin_const0): New define_insn.
12192 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
12193 instead of arm_not_operand and "I" constraint instead of "K" and
12194 print it using %n3 instead of %B2. Instead of using match_dup 2 add
12195 another match_operand and in the condition check that it is negation
12197 (*subsi3_carryin_compare_const0): New define_ins.
12198 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
12199 *subsi3_carryin_const.
12200 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
12201 split into *subsi3_carryin_compare_const0 if the highpart is zero.
12204 * config/arm.vfp.md (*negdf2_vfp): Use
12205 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
12206 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
12208 2019-02-24 Jakub Jelinek <jakub@redhat.com>
12210 PR rtl-optimization/89445
12211 * simplify-rtx.c (simplify_ternary_operation): Don't use
12212 simplify_merge_mask on operands that may trap.
12213 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
12214 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
12215 second operand is CONST_VECTOR, check if any element could be zero.
12216 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
12217 their operands can trap.
12219 2019-02-23 Martin Sebor <msebor@redhat.com>
12221 * gimple-ssa-sprintf.c (target_strtol): Rename...
12222 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
12223 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
12224 check for range error.
12226 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
12229 * opts-common.c (prune_options): Also prune joined switches
12230 with Negative and RejectNegative.
12231 * config/i386/i386.opt (march=): Add Negative(march=).
12232 (mtune=): Add Negative(mtune=).
12233 * doc/options.texi: Document Negative used together with Joined
12234 and RejectNegative.
12236 2019-02-22 Martin Sebor <msebor@redhat.com>
12238 * doc/extend.texi (Other Builtins): Add
12239 __builtin_is_constant_evaluated.
12241 2019-02-22 Richard Biener <rguenther@suse.de>
12243 PR tree-optimization/87609
12244 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
12246 2019-02-22 Jeff Law <law@redhat.com>
12248 PR rtl-optimization/87761
12249 * config/mips/mips.md: Add new combiner pattern to recognize
12250 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
12252 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
12255 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
12256 destination register in peepholes generating patterns for ADDS/SUBS.
12257 (add<mode>3_compare0,
12258 *addsi3_compare0_uxtw, add<mode>3_compareC,
12259 add<mode>3_compareV_imm, add<mode>3_compareV,
12260 *adds_<optab><ALLX:mode>_<GPI:mode>,
12261 *subs_<optab><ALLX:mode>_<GPI:mode>,
12262 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
12263 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
12264 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
12265 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
12266 sub<mode>3_compare1): Allow stack pointer for source register.
12267 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
12269 2019-02-22 Martin Sebor <msebor@redhat.com>
12271 PR tree-optimization/88993
12272 PR tree-optimization/88853
12273 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
12275 (sprintf_dom_walker::call_info::is_string_func): New helper.
12276 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
12277 for formatted string functions.
12278 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
12280 2019-02-22 Martin Sebor <msebor@redhat.com>
12283 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
12284 unreachable subexpressions.
12286 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
12287 Hongtao Liu <hongtao.liu@intel.com>
12288 Sunil K Pandey <sunil.k.pandey@intel.com>
12291 * config/i386/i386-passes.def: Add
12292 pass_remove_partial_avx_dependency.
12293 * config/i386/i386-protos.h
12294 (make_pass_remove_partial_avx_dependency): New.
12295 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
12297 (pass_data_remove_partial_avx_dependency): New.
12298 (pass_remove_partial_avx_dependency): Likewise.
12299 (make_pass_remove_partial_avx_dependency): Likewise.
12300 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
12301 (*extendsfdf2): Add avx_partial_xmm_update.
12302 (truncdfsf2): Likewise.
12303 (*float<SWI48:mode><MODEF:mode>2): Likewise.
12304 (SF/DF conversion splitters): Disabled for TARGET_AVX.
12306 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
12308 PR middle-end/85598
12309 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
12312 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
12315 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
12316 (PTA_SKYLAKE): Add PTA_AES.
12317 (PTA_GOLDMONT): Likewise.
12319 2019-02-22 Sudakshina Das <sudi.das@arm.com>
12321 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
12322 instruction if enabled.
12323 (aarch64_override_options): Remove reference to return address key.
12325 2019-02-22 Richard Biener <rguenther@suse.de>
12327 PR tree-optimization/89440
12328 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
12329 not necessary assert.
12331 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
12334 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
12335 (oacc_replace_fn_attrib_attr): ... this new function.
12336 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
12337 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
12339 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12341 * config/arm/arm-cpus.in (ares): Rename to...
12342 (neoverse-n1): ... This. Add ares as alias.
12343 * config/arm/arm-tables.opt: Regenerate.
12344 * config/arm/arm-tune.md: Likewise.
12345 * doc/invoke.txt (ARM Options): Document neoverse-n1.
12347 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12349 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
12350 * config/aarch64/aarch64-tune.md: Regenerate.
12351 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
12353 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12355 * config/aarch64/aarch64.c (ares_tunings): Rename to...
12356 (neoversen1_tunings): ... This.
12357 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
12358 (neoverse-n1): New CPU.
12359 * config/aarch64/aarch64-tune.md: Regenerate.
12360 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
12362 2019-02-22 Richard Biener <rguenther@suse.de>
12364 PR middle-end/87609
12365 * cfghooks.h (dependence_hash): New typedef.
12366 (struct copy_bb_data): New type.
12367 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
12368 (duplicate_block): Likewise.
12369 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
12370 (copy_bbs): Create and pass down copy_bb_data.
12371 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
12372 (rtl_duplicate_bb): Likewise.
12373 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
12374 remap dependence info.
12376 2019-02-22 Richard Biener <rguenther@suse.de>
12378 PR tree-optimization/87609
12379 * tree-core.h (tree_base): Document special clique values.
12380 * tree-inline.c (remap_dependence_clique): Do not use the
12381 special clique value of one.
12382 (maybe_set_dependence_info): Use clique one.
12383 (clear_dependence_clique): New callback.
12384 (compute_dependence_clique): Clear clique one from all refs
12385 before assigning it (again).
12387 2019-02-21 Martin Sebor <msebor@redhat.com>
12389 * doc/extend.texi (__clear_cache): Correct signature.
12391 2019-02-21 Ian Lance Taylor <iant@golang.org>
12394 * varasm.c (decode_addr_const): Call lookup_constant_def rather
12395 than output_constant_def.
12396 (add_constant_to_table): New static function.
12397 (output_constant_def): Call add_constant_to_table.
12398 (tree_output_constant_def): Likewise.
12400 2019-02-21 Jakub Jelinek <jakub@redhat.com>
12403 * builtins.c (fold_builtin_arith_overflow): If first two args are
12404 INTEGER_CSTs, set intres and ovfres to constants rather than calls
12407 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
12410 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
12411 error for -mindirect-branch/-mfunction-return with incompatible
12414 2019-02-21 Jakub Jelinek <jakub@redhat.com>
12417 * constraints.md (q): Remove.
12418 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
12421 2019-02-21 Martin Jambor <mjambor@suse.cz>
12424 * omp-general.c (omp_extract_for_data): Removed a duplicate call
12425 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
12426 (omp_adjust_for_condition): ...here. Added necessary parameters.
12427 * omp-general.h (omp_adjust_for_condition): Updated declaration.
12428 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
12429 proper values to new parameters of omp_adjust_for_condition.
12431 2019-02-20 Jakub Jelinek <jakub@redhat.com>
12433 PR middle-end/89412
12434 * expr.c (expand_assignment): If result is a MEM, use change_address
12435 instead of simplify_gen_subreg.
12437 2019-02-20 Jakub Jelinek <jakub@redhat.com>
12438 David Malcolm <dmalcolm@redhat.com>
12440 PR middle-end/89091
12441 * fold-const.c (decode_field_reference): Return NULL_TREE if
12442 lang_hooks.types.type_for_size returns NULL. Check it before
12443 overwriting *exp_. Use return NULL_TREE instead of return 0.
12445 2019-02-20 Jakub Jelinek <jakub@redhat.com>
12447 PR middle-end/88074
12448 PR middle-end/89415
12449 * toplev.c (do_compile): Double the emin/emax exponents to workaround
12452 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
12455 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
12456 TARGET_SSE in addition to TARGET_SSE_MATH.
12458 (ix86_excess_precision): Ditto.
12459 (ix86_float_exceptions_rounding_supported_p): Ditto.
12460 (use_rsqrt_p): Ditto.
12461 * config/i386/sse.md (rsqrt<mode>2): Ditto.
12463 2019-02-20 David Malcolm <dmalcolm@redhat.com>
12466 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
12467 linenum_arith_t when determining if two adjacent line spans are
12468 close enough to merge.
12469 (diagnostic_show_locus): Use linenum_arith_t when iterating over
12470 lines within each line_span.
12472 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
12475 * lra-constraints.c(uses_hard_regs_p): Fix handling of
12476 paradoxical SUBREGS.
12478 2019-02-20 Li Jia He <helijia@linux.ibm.com>
12481 * gcc/config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
12482 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
12483 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
12486 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
12488 * config/gcn/gcn.c (print_operand): Fix typo.
12490 2019-02-19 Richard Biener <rguenther@suse.de>
12492 PR middle-end/88074
12493 * toplev.c (do_compile): Initialize mpfr's exponent range
12494 based on available float modes.
12496 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
12498 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
12499 as long as the epilogue isn't completed.
12501 2019-02-18 Martin Sebor <msebor@redhat.com>
12503 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
12504 __has_cpp_attribute, and __has_include.
12506 2019-02-18 Martin Sebor <msebor@redhat.com>
12508 * doc/invoke.texi (-Wreturn-type): Correct and expand.
12510 2019-02-18 Martin Sebor <msebor@redhat.com>
12512 PR middle-end/89294
12513 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
12515 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
12517 2019-02-18 Richard Biener <rguenther@suse.de>
12519 PR tree-optimization/89296
12520 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
12521 of no-warning flag to cases that might emit the bogus warning.
12523 2019-02-18 Jakub Jelinek <jakub@redhat.com>
12526 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
12528 * config/arm/vfp.md (*movdi_vfp): Likewise.
12529 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
12530 "q" constraint for operands[0].
12533 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
12534 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
12535 pattern in a temporary buffer.
12536 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
12537 than 64-operands[2].
12540 * config/s390/s390.c (s390_indirect_branch_attrvalue,
12541 s390_indirect_branch_settings): Define unconditionally.
12542 (s390_set_current_function): Likewise, but guard the whole body except
12543 the s390_indirect_branch_settings call with
12544 #if S390_USE_TARGET_ATTRIBUTE.
12545 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
12547 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
12548 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
12549 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
12550 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
12551 HOST_WIDE_INT_1U instead of 1ULL.
12552 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
12553 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
12554 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
12555 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
12557 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
12560 2019-02-18 Martin Jambor <mjambor@suse.cz>
12562 PR tree-optimization/89209
12563 * tree-sra.c (create_access_replacement): New optional parameter
12564 reg_tree. Use it as a type if non-NULL and access type is not of
12566 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
12567 to create_access_replacement.
12568 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
12569 Check lacc is non-NULL before attempting to re-create it on the RHS.
12571 2019-02-18 Martin Liska <mliska@suse.cz>
12574 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
12576 (symbol_table::free_edge): Recycle m_summary_id.
12577 * cgraph.h (get_summary_id): New.
12578 (symbol_table::release_symbol): Set m_summary_id to -1
12580 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
12581 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
12582 function_summary to fast_function_summary.
12583 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
12584 * ipa-pure-const.c (class funct_state_summary_t):
12585 Switch from function_summary to fast_function_summary.
12586 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
12587 (class ipa_ref_opt_summary_t): Switch from function_summary
12588 to fast_function_summary.
12589 * symbol-summary.h (class function_summary_base): New class
12590 that is created from base of former function_summary.
12591 (function_summary_base::unregister_hooks): New.
12592 (class function_summary): Inherit from function_summary_base.
12593 (class call_summary_base): New class
12594 that is created from base of former call_summary.
12595 (class call_summary): Inherit from call_summary_base.
12596 (struct is_same): New.
12597 (class fast_function_summary): New summary class.
12598 (class fast_call_summary): New summary class.
12599 * vec.h (vec_safe_grow_cleared): New function.
12601 2019-02-18 Martin Liska <mliska@suse.cz>
12603 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
12604 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
12605 * doc/tm.texi: Document new target hook.
12606 * doc/tm.texi.in: Likewise.
12607 * target.def: Add new target macro.
12608 * gcc.c (find_fortran_preinclude_file): Do not search multilib
12611 2019-02-17 Alan Modra <amodra@gmail.com>
12614 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
12615 output reg on add insn.
12616 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
12618 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
12621 * config/i386/sse.md (ssedoublemode): Remove V4HI.
12622 (PMULHRSW): Likewise.
12623 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
12625 (ssse3_pmulhrswv4hi3): New expander.
12627 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
12629 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
12630 MMX. Add isa attribute.
12632 2019-02-16 Jakub Jelinek <jakub@redhat.com>
12634 PR rtl-optimization/66152
12635 * builtins.h (c_readstr): Declare.
12636 * builtins.c (c_readstr): Remove forward declaration. Add
12637 null_terminated_p argument, if false, read all bytes from the
12638 string instead of stopping after '\0'.
12639 * expr.c (string_cst_read_str): New function.
12640 (store_expr): Use string_cst_read_str instead of
12641 builtin_strncpy_read_str. Try to store by pieces the whole
12642 exp_len first, and only if that fails, split it up into
12643 store by pieces followed by clear_storage. Formatting fix.
12645 * config/i386/i386.md (*movqi_internal): Remove static from
12646 buf variable. Use output_asm_insn (buf, operands); return "";
12647 instead of return buf;.
12648 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
12649 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
12650 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
12652 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
12654 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
12655 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
12656 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
12657 (CC1_SPEC): Likewise.
12658 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
12660 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
12662 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
12663 the base address on 64-bit strict-alignment platforms.
12665 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
12667 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
12669 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
12671 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
12673 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
12675 PR rtl-optimization/88308
12676 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
12677 on copied instruction.
12679 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
12681 * final.c (insn_current_reference_address): Replace test on JUMP_P
12682 with test on jump_to_label_p.
12683 * config/visium/visium-passes.def: New file.
12684 * config/visium/t-visium (PASSES_EXTRA): Define.
12685 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
12686 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
12687 (TRAMPOLINE_ALIGNMENT): Define.
12688 * config/visium/visium.c (visium_option_override): Do not register
12689 the machine-specific reorg pass here.
12690 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
12692 (output_branch): Adjust threshold for long branch instruction.
12693 * config/visium/visium.md (cpu): Move around.
12694 (length): Adjust for the GR6.
12696 2019-02-15 Richard Biener <rguenther@suse.de>
12697 Jakub Jelinek <jakub@redhat.com>
12699 PR tree-optimization/89278
12700 * tree-loop-distribution.c: Include tree-eh.h.
12701 (generate_memset_builtin, generate_memcpy_builtin): Call
12702 rewrite_to_non_trapping_overflow on builtin->size before passing it
12703 to force_gimple_operand_gsi.
12705 2019-02-15 Jakub Jelinek <jakub@redhat.com>
12708 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
12710 * opth-gen.awk: Likewise.
12712 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
12714 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
12715 Enable MMX, SSE and SSE2 by default.
12716 * config/i386/i386.c (ix86_option_override_internal): Do not
12717 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
12719 2019-02-14 Jakub Jelinek <jakub@redhat.com>
12721 PR rtl-optimization/89354
12722 * combine.c (make_extraction): Punt if extraction_mode is narrower
12725 2019-02-14 Maya Rashish <coypu@sdf.org>
12727 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
12728 * config/netbsd-d.c: New file.
12729 * config/t-netbsd: Add netbsd-d.o
12731 2018-02-14 Steve Ellcey <sellcey@marvell.com>
12733 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
12734 affects_type_identity to true for aarch64_vector_pcs.
12735 (aarch64_comp_type_attributes): New function.
12736 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
12738 2019-02-14 Tamar Christina <tamar.christina@arm.com>
12741 * config/arm/iterators.md (ANY64): Add V4HF.
12743 2019-02-14 Martin Liska <mliska@suse.cz>
12745 PR rtl-optimization/89242
12746 * dce.c (delete_unmarked_insns): Call free_dominance_info we
12747 process a transformation.
12749 2019-02-14 Jakub Jelinek <jakub@redhat.com>
12751 PR tree-optimization/89314
12752 * fold-const.c (fold_binary_loc): Cast strlen argument to
12753 const char * before dereferencing it. Formatting fixes.
12755 PR middle-end/89284
12756 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
12758 2019-02-13 Ian Lance Taylor <iant@golang.org>
12760 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
12761 and set current index for other optimizations.
12763 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
12765 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
12766 nonimmediate_operand as operand 2 predicate.
12767 (vec_set<VF2_512_256:mode>_0): Ditto.
12768 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
12769 (*vec_concatv2si): Remove alternative 2.
12770 (*vec_concatv4si_0): Use vm constraint for alternative 0.
12771 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
12772 (vec_concatv2di): Split alternatives 4,5,6 to ...
12773 (*vec_concatv2di_0) ... new pattern.
12775 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
12778 * config/arm/arm.c (ldm_stm_operation_p) Set
12779 addr_reg_in_reglist correctly for first register.
12780 (load_multiple_sequence): Remove dead base check.
12781 (gen_ldm_seq): Correctly set write_back for Thumb-1.
12783 2019-02-13 Tamar Christina <tamar.christina@arm.com>
12786 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
12787 Expose as @aarch64_pred_mov.
12788 * config/aarch64/aarch64.c (aarch64_classify_address):
12789 Use expand_insn which legitimizes operands.
12791 2019-02-13 Martin Liska <mliska@suse.cz>
12793 * builtins.h (expand_builtin_with_bounds): Remove declaration.
12794 * calls.c (struct arg_data): Remove special_slot, pointer_arg
12795 and pointer_offset fields.
12796 (initialize_argument_information): Remove usage of dead
12798 * cgraph.h (struct cgraph_thunk_info): Remove
12799 add_pointer_bounds_args.
12800 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
12802 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
12804 * config/i386/i386.c (ix86_function_arg_advance): Remove
12806 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
12807 (def_builtin): Remove usage of dead
12809 (ix86_add_new_builtins): Likewise.
12810 * ipa-fnsummary.c (compute_fn_summary): Likewise.
12811 * ipa-icf.c (sem_function::equals_wpa): Likewise.
12812 (sem_function::init): Likewise.
12813 (sem_variable::merge): Likewise.
12814 * ipa-visibility.c (function_and_variable_visibility): Likewise.
12815 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
12816 * lto-cgraph.c (lto_output_node): Likewise.
12817 (lto_output_varpool_node): Likewise.
12818 (input_node): Likewise.
12819 (input_varpool_node): Likewise.
12820 * lto-streamer-out.c (lto_output): Likewise.
12821 * tree-inline.c (expand_call_inline): Remove usage of
12823 * tree-inline.h (struct copy_body_data): Likewise.
12824 * varpool.c (varpool_node::dump): Likewise.
12826 2019-02-13 Jakub Jelinek <jakub@redhat.com>
12828 PR middle-end/89303
12829 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
12830 into pt->vars_contains_escaped_heap instead of setting
12831 pt->vars_contains_escaped_heap to it.
12833 PR middle-end/89281
12834 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
12835 INTVAL (size), compare it to GET_MODE_MASK instead of
12836 1 << GET_MODE_BITSIZE.
12839 * config/i386/predicates.md (x86_64_immediate_operand): Allow
12840 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
12843 2019-02-13 Martin Liska <mliska@suse.cz>
12846 * cfgrtl.c (remove_barriers_from_footer): New function.
12847 (try_redirect_by_replacing_jump): Use it.
12848 (cfg_layout_redirect_edge_and_branch): Likewise.
12850 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
12852 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
12853 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
12854 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
12855 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
12856 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
12857 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
12859 * config/rs6000/rs6000.c (builtin_function_type)
12860 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
12861 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
12862 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
12863 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
12864 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
12866 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
12868 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
12869 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
12871 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
12874 * config/i386/i386.md (*movoi_internal_avx): Revert revision
12875 268678 and revision 268657.
12876 (*movti_internal): Likewise.
12878 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
12881 * config/s390/s390.c (s390_decompose_address): Update comment.
12882 (s390_check_qrst_address): Reject invalid address forms after
12885 2019-02-12 Martin Liska <mliska@suse.cz>
12888 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
12889 we need default values of funct_state for a function that
12892 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
12894 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
12895 the object to pick the size of stores on strict-alignment platforms.
12897 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
12898 (*movdi_insn_sp32): Likewise.
12899 (*movdi_insn_sp64): Likewise.
12901 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
12904 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
12905 types that needs constructiong.
12906 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
12908 2019-02-12 Richard Biener <rguenther@suse.de>
12910 PR tree-optimization/89253
12911 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
12912 duplicate the loop.
12914 2019-02-11 David Malcolm <dmalcolm@redhat.com>
12917 * input.c (selftest::test_line_offset_overflow): New selftest.
12918 (selftest::input_c_tests): Call it.
12920 2019-02-11 Martin Sebor <msebor@redhat.com>
12922 PR tree-optimization/88771
12923 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
12924 when -Wstringop-overflow is set.
12925 (builtin_memref::builtin_memref): Adjust excessive upper bound
12926 only when lower bound is not excessive.
12927 (maybe_diag_overlap): Detect and diagnose excessive bounds via
12928 -Wstringop-ovefflow.
12929 (maybe_diag_offset_bounds): Rename...
12930 (maybe_diag_access_bounds): ...to this.
12931 (check_bounds_or_overlap): Adjust for name change above.
12933 2019-02-11 Martin Sebor <msebor@redhat.com>
12936 * builtins.c (max_object_size): Move from here...
12937 * builtins.h (max_object_size): ...and here...
12938 * tree.c (max_object_size): ...to here...
12939 * tree.h (max_object_size): ...and here.
12941 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
12943 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
12944 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
12945 for correct semantics.
12947 2019-02-11 Alan Modra <amodra@gmail.com>
12949 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
12950 -mlongcall and -mpltseq.
12951 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
12952 (RS/6000 and PowerPC Options <-mpltseq>): Document.
12953 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
12954 * config/rs6000/sysv4.opt (mpltseq): New option.
12955 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
12956 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
12957 support is lacking. Don't allow -mpltseq with -mbss-plt.
12958 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
12959 -mpltseq given for ELFv1.
12960 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
12961 Only use UNSPEC_PLTSEQ for inline PLT calls.
12962 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
12963 use UNSPEC_PLTSEQ for inline PLT calls.
12964 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
12965 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
12966 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
12967 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
12968 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
12969 (pltseq_mtctr_<mode>): Likewise.
12971 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12973 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
12975 * configure: Regenerate.
12977 2019-02-11 Jakub Jelinek <jakub@redhat.com>
12980 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
12983 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
12985 * function.c (assign_parm_setup_block): Use the stored
12986 size, not the passed size, when allocating stack-space,
12987 also for a parameter with alignment larger than
12988 MAX_SUPPORTED_STACK_ALIGNMENT.
12990 2019-02-11 Martin Liska <mliska@suse.cz>
12993 * ipa-cp.c (build_toporder_info): Remove usage of a param.
12994 * ipa-inline.c (inline_small_functions): Likewise.
12995 * ipa-pure-const.c (propagate_pure_const): Likewise.
12996 (propagate_nothrow): Likewise.
12997 * ipa-reference.c (propagate): Likewise.
12998 * ipa-utils.c (struct searchc_env): Remove unused field.
12999 (searchc): Always search across AVAIL_INTERPOSABLE.
13000 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
13001 the only called IPA pure const can properly not propagate
13002 across interposable boundary.
13003 * ipa-utils.h (ipa_reduced_postorder): Remove param.
13005 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
13007 * config/nds32/nds32.md (call_internal, call_value_internal,
13008 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
13010 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
13012 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
13015 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
13017 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
13020 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
13022 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
13024 2019-02-10 Jakub Jelinek <jakub@redhat.com>
13026 PR tree-optimization/89268
13027 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
13028 if preds is non-NULL.
13030 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
13033 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
13036 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
13038 * config/nds32/nds32.md (trap): New pattern.
13040 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
13042 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
13045 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
13047 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
13050 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
13052 * ipa-visibility.c (localize_node): Also do not localize
13053 LDPR_PREVAILING_DEF_IRONLY_EXP.
13055 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
13058 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
13059 instead of type_with_linkage.
13061 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
13064 * params.def (uninlined-function-insns, uninlined-function-time,
13065 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
13066 bound so we don't get overflows.
13068 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
13070 * config/rs6000/rs6000-string.c (expand_compare_loop,
13071 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
13074 2019-02-09 Jakub Jelinek <jakub@redhat.com>
13076 PR middle-end/89246
13077 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
13078 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
13079 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
13081 2019-02-09 Alan Modra <amodra@gmail.com>
13084 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
13085 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
13088 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
13090 PR middle-end/88560
13091 * lra-constraints.c (process_alt_operands): Don't increase reject
13092 for memory when offset memory is required.
13094 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
13096 * config/s390/vector.md: Implement vector copysign.
13098 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
13100 * expr.c (expand_constructor): Correct indentations.
13102 2019-02-08 Richard Biener <rguenther@suse.de>
13104 PR tree-optimization/89247
13105 * tree-if-conv.c: Include tree-cfgcleanup.h.
13106 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
13107 (tree_if_conversion): Pass through predicate vector.
13108 (pass_if_conversion::execute): Do CFG cleanup and SSA update
13109 inline, see if any if-converted loops we refrece in
13110 LOOP_VECTORIZED calls vanished and fixup.
13111 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
13113 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
13115 * config/s390/constraints.md (jdd): New constraint.
13117 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
13120 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
13121 upper 16 vector registers without TARGET_AVX512VL.
13122 (*movti_internal): Likewise.
13124 2019-02-08 Jakub Jelinek <jakub@redhat.com>
13126 PR rtl-optimization/89234
13127 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
13128 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
13129 (copy_reg_eh_region_note_backward): Likewise.
13131 2019-02-08 Richard Biener <rguenther@suse.de>
13133 PR middle-end/89223
13134 * tree-data-ref.c (initialize_matrix_A): Fail if constant
13135 doesn't fit in HWI.
13136 (analyze_subscript_affine_affine): Handle failure from
13137 initialize_matrix_A.
13139 2019-02-08 Jakub Jelinek <jakub@redhat.com>
13141 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
13144 2019-02-07 David Malcolm <dmalcolm@redhat.com>
13146 PR tree-optimization/86637
13147 PR tree-optimization/89235
13148 * tree-vect-loop.c (optimize_mask_stores): Add an
13149 auto_purge_vect_location sentinel to ensure that vect_location is
13151 * tree-vectorizer.c
13152 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
13153 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
13154 to ensure that vect_location is purged on exit.
13155 (pass_slp_vectorize::execute): Likewise, replacing the manual
13157 * tree-vectorizer.h (class auto_purge_vect_location): New class.
13159 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13161 * config/aarch64/iterators.md (max_opp): New code_attr.
13162 (USMAX): New code iterator.
13163 * config/aarch64/predicates.md (aarch64_smin): New predicate.
13164 (aarch64_smax): Likewise.
13165 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
13166 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
13169 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
13172 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
13173 for TARGET_AVX512VL.
13174 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
13176 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
13178 * config/s390/s390-builtin-types.def: Add new types.
13179 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
13180 (s390_vec_xlw4): Make the memory operand into a const pointer.
13181 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
13183 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
13184 a new vector type with the alignment of the scalar memory operand.
13186 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
13187 Jakub Jelinek <jakub@redhat.com>
13190 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
13191 arm_count_ldrdstrd_insns): New declarations.
13192 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
13194 (valid_operands_ldrd_strd): New function.
13195 (arm_count_ldrdstrd_insns): New function.
13196 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
13197 sets instead of single DImode set and define new insns to match this.
13199 2019-02-07 Tamar Christina <tamar.christina@arm.com>
13201 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
13202 Make it a C initializer.
13204 2019-02-07 Tamar Christina <tamar.christina@arm.com>
13207 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
13209 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13211 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
13212 Use neon_dot<q> for type.
13213 (neon_<sup>dot_lane<vsi2qi>): Likewise.
13215 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13217 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
13218 Use neon_dot<q> for type.
13219 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
13220 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
13222 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
13224 PR rtl-optimization/89225
13225 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
13228 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
13230 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
13231 after restoring registers saved to allocate the frame on Windows.
13233 2019-02-06 Richard Biener <rguenther@suse.de>
13235 PR tree-optimization/89182
13236 * graphite.h (cached_scalar_evolution_in_region): Declare.
13237 * graphite.c (struct seir_cache_key): New.
13238 (struct sese_scev_hash): Likewise.
13239 (seir_cache): New global.
13240 (cached_scalar_evolution_in_region): New function.
13241 (graphite_transform_loops): Allocate and release seir_cache.
13242 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
13243 cached_scalar_evolution_in_region.
13244 * graphite-scop-detection.c (scop_detection::can_represent_loop):
13246 (scop_detection::graphite_can_represent_expr: Use
13247 cached_scalar_evolution_in_region.
13248 (scop_detection::stmt_simple_for_scop_p): Likewise.
13249 (find_params_in_bb): Likewise.
13250 (gather_bbs::before_dom_children): Likewise.
13251 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
13252 (add_loop_constraints): Likewise.
13254 2019-02-06 Jakub Jelinek <jakub@redhat.com>
13256 PR middle-end/89210
13257 * fold-const-call.c (fold_const_vec_convert): Pass true as last
13258 operand to new_unary_operation only if both element types are integral
13259 and it isn't a widening conversion. Return NULL_TREE if
13260 new_unary_operation failed.
13262 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
13265 * config/s390/s390.md: Remove load and test FP splitter.
13267 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
13270 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
13271 expand_compare_loop, expand_block_compare_gpr,
13272 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
13273 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
13274 #include "profile-count.h" and "predict.h" for types and functions
13275 needed to work with REG_BR_PROB notes.
13277 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
13280 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
13281 for the long branch case.
13283 2019-02-05 Jakub Jelinek <jakub@redhat.com>
13286 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
13287 can throw, non-call exceptions are enabled and we can't delete
13288 dead exceptions or alter cfg. Set must_clean if
13289 delete_insn_and_edges returns true, don't set it blindly for calls.
13290 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
13292 PR rtl-optimization/89195
13293 * combine.c (make_extraction): For MEMs, don't extract bytes outside
13294 of the original MEM.
13296 2019-02-05 Martin Liska <mliska@suse.cz>
13298 PR gcov-profile/89000
13299 * gcov.c (function_summary): Remove argument.
13300 (file_summary): New function.
13301 (print_usage): Replace tabs with spaces.
13302 (generate_results): Use new function file_summary.
13304 2019-02-05 Jakub Jelinek <jakub@redhat.com>
13307 * optabs.c (prepare_cmp_insn): Pass x and y to
13308 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
13310 2019-02-05 Richard Biener <rguenther@suse.de>
13312 PR middle-end/89150
13313 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
13314 (struct bitmap_element): Drop chain_prev so we properly recurse on
13315 the prev member, supporting tree views.
13316 (struct bitmap_head): GTY skip the obstack member.
13318 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
13321 * doc/extend.texi (Vector Extensions): Add an example of using vector
13322 types together with x86 intrinsics.
13324 2019-02-04 Alan Modra <amodra@gmail.com>
13326 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
13327 str[] size to 160, and comment.
13329 2019-02-04 Alan Modra <amodra@gmail.com>
13331 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
13332 (rs6000_pltseq_template): Guard output of TLS markers with
13333 TARGET_TLS_MARKERS.
13334 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
13335 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
13336 to use inline PLT sequences.
13337 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
13338 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
13339 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
13341 2019-02-04 Martin Liska <mliska@suse.cz>
13344 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
13345 out when ipa_fn_summaries does not contain entry for callee.
13347 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
13349 * config/sparc/sparc.h: Remove superfluous blank lines.
13350 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
13351 (got_register_rtx): ...this.
13352 (sparc_got): Adjust to above renaming.
13353 (sparc_tls_got): Likewise.
13354 (sparc_delegitimize_address): Likewise.
13355 (sparc_output_mi_thunk): Likewise.
13356 (sparc_init_pic_reg): Likewise.
13357 (save_local_or_in_reg_p): Fix test on the GOT register.
13358 (USE_HIDDEN_LINKONCE): Move around.
13359 (get_pc_thunk_name): Likewise.
13360 (gen_load_pcrel_sym): Likewise.
13361 (load_got_register): Likewise.
13363 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
13365 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
13366 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
13368 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
13370 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
13371 into consideration.
13373 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
13375 * config.gcc (with_nds32_lib, glibc):
13376 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
13377 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
13378 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
13380 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
13383 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
13384 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
13385 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
13386 (*rcpsf2_sse): Ditto.
13387 (*rsqrtsf2_sse): Ditto.
13388 (sse4_1_round<mode<2): Ditto.
13390 2019-02-03 Richard Biener <rguenther@suse.de>
13393 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
13396 2019-02-02 Jakub Jelinek <jakub@redhat.com>
13398 PR middle-end/87887
13399 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
13400 Punt with warning on aggregate return or argument types. Ignore
13401 type/mode checking for uniform arguments.
13403 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
13405 * combine.c (try_combine): Do not print "Can't combine" messages unless
13406 printing failed combination attempts.
13408 2019-02-01 Martin Jambor <mjambor@suse.cz>
13411 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
13412 segment and global segment variables before making them static.
13414 2019-02-01 Martin Jambor <mjambor@suse.cz>
13416 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
13417 missed optimization dump with dump_enabled_p.
13419 2019-02-01 Richard Biener <rguenther@suse.de>
13421 PR middle-end/88597
13422 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
13423 the instantiate cache.
13424 (instantiate_scev_binary): Elide second operand procesing
13425 if equal to the first.
13426 * tree-chrec.c (chrec_contains_symbols): Add visited set.
13427 (chrec_contains_undetermined): Likewise.
13428 (tree_contains_chrecs): Likewise.
13430 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
13432 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
13434 2019-02-01 Jakub Jelinek <jakub@redhat.com>
13436 PR tree-optimization/89143
13437 * wide-int-range.h (wide_int_range_absu): Declare.
13438 * wide-int-range.cc (wide_int_range_absu): New function.
13439 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
13441 PR tree-optimization/88107
13442 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
13443 instead of assertion that eh_region_outermost is non-NULL, if it
13444 is NULL, set *ALL to true and return NULL.
13445 (move_sese_region_to_fn): Adjust caller, if all is set, call
13446 duplicate_eh_regions with NULL region.
13448 2019-02-01 Richard Biener <rguenth@suse.de>
13450 PR rtl-optimization/88593
13451 * mode-switching.c (optimize_mode_switching): Free dominators before
13452 calling cleanup_cfg.
13454 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
13456 PR tree-optimization/88932
13457 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
13459 2019-01-31 Jakub Jelinek <jakub@redhat.com>
13461 PR middle-end/89137
13462 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
13463 bogus clang warning.
13465 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
13468 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
13469 alternative to avoid partial SSE register stall for TARGET_AVX.
13470 (truncdfsf2): Ditto.
13471 (sse4_1_round<mode>2): Ditto.
13473 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
13475 PR tree-optimization/89008
13476 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
13477 process anything of the form X * 0.
13479 2019-01-31 Richard Biener <rguenther@suse.de>
13481 PR tree-optimization/89135
13482 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
13483 with abnormal preds.
13485 2019-01-31 Jakub Jelinek <jakub@redhat.com>
13488 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
13489 always_inline callees into no_sanitize_address callers.
13491 2019-01-31 Richard Biener <rguenther@suse.de>
13493 PR rtl-optimization/89115
13494 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
13496 2019-01-30 Martin Sebor <msebor@redhat.com>
13499 * doc/extend.texi (cast to a union): Correct and expand.
13501 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
13503 PR rtl-optimization/87246
13504 * lra-constraints.c (simplify_operand_subreg): Reload memory
13505 in subreg if the address became invalid.
13507 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
13510 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
13511 Disable for little-endian.
13513 2019-01-30 Richard Biener <rguenther@suse.de>
13515 PR rtl-optimization/89115
13516 * opts.c (default_options_optimization): Reduce
13517 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
13518 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
13521 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
13523 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
13524 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
13525 type of vector element when vec_extract is implemented by direct
13528 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
13530 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
13532 2019-01-30 Richard Biener <rguenther@suse.de>
13534 PR tree-optimization/89111
13535 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
13536 canonicalization to appropriately sized access types.
13538 2019-01-30 Jakub Jelinek <jakub@redhat.com>
13541 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
13542 for arguments to functions that are TU-local and shouldn't be
13543 referenced by assembly.
13545 2019-01-30 Ulrich Drepper <drepper@redhat.com>
13547 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
13550 2019-01-29 Martin Sebor <msebor@redhat.com>
13553 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
13555 2019-01-29 Jakub Jelinek <jakub@redhat.com>
13559 * omp-simd-clone.c (simd_clone_clauses_extract)
13560 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
13561 OMP_CLAUSE_ALIGNED_ALIGNMENT.
13563 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
13565 * config.gcc: Force .init_array for ARC.
13567 2019-01-29 Richard Biener <rguenther@suse.de>
13570 * dwarf2out.c (collect_skeleton_dies): New helper.
13571 (copy_decls_for_unworthy_types): Call it.
13572 (build_abbrev_table): Assert we do not try to replace
13573 DW_AT_signature refs with local refs.
13575 2019-01-28 Jakub Jelinek <jakub@redhat.com>
13577 PR middle-end/89002
13578 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
13579 for lastprivate/linear IV, push gimplify context around gimplify_assign
13580 and, if it needed any temporaries, pop it into a gimple bind around the
13583 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
13585 * common.opt (-Wattribute-alias): Remove "no-" from name.
13586 Make -Wattribute-alias command line option and
13587 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
13589 2019-01-28 Jakub Jelinek <jakub@redhat.com>
13592 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
13593 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
13595 (bmi2): Add missing @opindex.
13596 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
13597 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
13598 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
13599 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
13600 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
13601 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
13602 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
13603 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
13604 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
13605 xsavec, xsaveopt and xsaves options.
13607 2019-01-28 Richard Biener <rguenther@suse.de>
13610 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
13613 2019-01-28 Richard Biener <rguenther@suse.de>
13615 PR tree-optimization/88739
13616 * tree-cfg.c (verify_types_in_gimple_reference): Verify
13617 BIT_FIELD_REFs only are applied to mode-precision operands
13618 when they are integral.
13619 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
13620 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
13621 BIT_FIELD_REFs of non-mode-precision integral operands.
13623 2019-01-27 Jakub Jelinek <jakub@redhat.com>
13626 * config/i386/sse.md
13627 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
13628 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
13629 first constants in pairs are multiples of 2. Formatting fixes.
13630 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
13631 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
13632 first constants in each quadruple are multiples of 4. Formatting fixes.
13634 2019-01-26 Martin Jambor <mjambor@suse.cz>
13637 * tree-inline.c: Include tree-cfgcleanup.h.
13638 (delete_unreachable_blocks_update_callgraph): Move...
13639 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
13640 ...here, make externally visible, make second argument bool, adjust
13642 * tree-cfgcleanup.c: Include cgraph.h.
13643 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
13645 * ipa-prop.c: Include tree-cfgcleanup.h.
13646 (ipcp_transform_function): Call
13647 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
13649 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
13651 PR rtl-optimization/88846
13652 * ira.c (process_set_for_memref_referenced_p): New.
13653 (memref_referenced_p): Add new param. Use
13654 process_set_for_memref_referenced_p. Add new switch cases.
13655 (memref_used_between_p): Pass new arg to memref_referenced_p.
13657 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
13660 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
13661 argument ABI_BREAK. Set to true if the calculated alignment has
13662 changed in gcc-9. Check bit-fields for their base type alignment.
13663 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
13664 (aarch64_function_arg_boundary): Likewise.
13665 (aarch64_gimplify_va_arg_expr): Likewise.
13667 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
13669 PR middle-end/89037
13670 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
13671 instead of accessing TREE_INT_CST_ELT directly.
13673 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
13675 * doc/sourcebuild.texi (Environment attributes): Add fenv and
13676 fenv_exceptions description.
13678 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
13680 PR rtl-optimization/87763
13681 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
13682 Allow SUBREG when matching CC_NZmode compare.
13684 2019-01-25 Richard Biener <rguenther@suse.de>
13686 PR tree-optimization/89049
13687 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
13688 Look at the pattern stmt to determine if the stmt is vectorized.
13690 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
13692 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
13693 (pred_mov<mode>): Handle all-register forms using both a new
13694 alternative and a split.
13696 2019-01-25 Richard Biener <rguenther@suse.de>
13698 PR tree-optimization/86865
13699 * graphite-scop-detection.c (scop_detection::can_represent_loop):
13700 Reject non-do-while loops.
13702 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
13704 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
13705 * config/rs6000/constraints.md (Q constraint): Use REG_P.
13706 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
13707 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
13708 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
13709 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
13710 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
13711 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
13712 vlogical_operand, gpc_reg_operand, int_reg_operand,
13713 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
13714 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
13715 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
13716 (save_world_operation, restore_world_operation, lmw_operation,
13717 stmw_operation): Use MEM_P and REG_P.
13718 (tie_operand): Use MEM_P.
13719 (vrsave_operation, crsave_operation): Use REG_P.
13720 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
13721 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
13722 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
13723 (call_operand): Use HARD_REGISTER_P.
13724 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
13726 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
13727 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
13728 quad_aligned_load_p, replace_swapped_aligned_store,
13729 recombine_lvx_pattern, replace_swapped_aligned_load,
13730 recombine_stvx_pattern): Use MEM_P.
13731 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
13732 Use MEM_P and SYMBOL_REF_P.
13733 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
13734 (insn_is_swappable_p): Use REG_P and MEM_P.
13735 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
13736 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
13738 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
13739 Use CONST_DOUBLE_P.
13740 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
13742 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
13743 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
13744 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
13745 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
13747 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
13748 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
13749 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
13750 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
13751 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
13752 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
13753 rs6000_split_logical_di): Use CONST_INT_P.
13754 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
13755 REG_P and SYMBOL_REF_P.
13756 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
13757 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
13758 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
13759 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
13760 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
13761 (small_data_operand, print_operand_address): Use CONST_INT_P and
13763 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
13764 (rs6000_init_hard_regno_mode_ok, direct_move_p):
13765 Use HARD_REGISTER_NUM_P.
13766 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
13767 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
13768 SUBREG_P and SYMBOL_REF_P.
13769 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
13770 and HARD_REGISTER_NUM_P.
13771 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
13773 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
13774 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
13776 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
13777 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
13778 find_addr_reg): Use REG_P.
13779 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
13780 (rs6000_emit_le_vsx_move): Use SUBREG_P.
13781 (offsettable_ok_by_alignment, constant_pool_expr_p,
13782 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
13783 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
13784 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
13785 rs6000_assemble_integer, create_TOC_reference,
13786 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
13787 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
13788 (rs6000_split_vec_extract_var): Use reg_or_subregno.
13789 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
13790 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
13791 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
13792 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
13793 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
13794 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
13795 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
13796 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
13797 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
13798 and cbranch<mode>4): Use CONST_INT_P.
13799 (multiple define_splits): Use REG_P and SUBREG_P.
13800 (define_expands call, call_value): Use MEM_P.
13801 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
13802 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
13803 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
13804 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
13805 and HARD_REGISTER_NUM_P.
13806 (multiple define_splits): Use HARD_REGISTER_NUM_P.
13808 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
13810 PR rtl-optimization/88948
13811 * rtl.h (prepare_copy_insn): New prototype.
13812 * gcse.c (prepare_copy_insn): New function, split out from
13813 process_insert_insn.
13814 (process_insert_insn): Use prepare_copy_insn.
13815 * store-motion.c (replace_store_insn): Use prepare_copy_insn
13816 instead of gen_move_insn.
13818 2019-01-24 Jakub Jelinek <jakub@redhat.com>
13821 * config/i386/i386.c (ix86_pic_register_p): Return true for
13822 UNSPEC_SET_GOT too.
13824 PR tree-optimization/88964
13825 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
13826 punt if HONOR_SNANS (chrec).
13828 PR middle-end/89015
13829 * tree-nested.c (convert_nonlocal_reference_stmt,
13830 convert_local_reference_stmt, convert_tramp_reference_stmt,
13831 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
13832 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
13833 or GIMPLE_OMP_TASK.
13835 PR tree-optimization/89027
13836 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
13837 for "omp simd array" variables.
13839 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
13842 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
13843 force the alignment of m_val.
13845 2019-01-24 Richard Biener <rguenther@suse.de>
13848 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
13849 When in "legacy" debug mode make sure to reset self-origins.
13851 2019-01-24 Martin Liska <mliska@suse.cz>
13853 PR gcov-profile/88994
13854 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
13855 result will be always smaller or equal to the original.
13856 * gcov.c (mangle_name): Fix else branch where we should
13857 also copy to PTR and shift the pointer.
13859 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
13861 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
13862 * vr-values.c (find_case_label_ranges): Fix a comment typo.
13864 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
13866 * common/config/i386/i386-common.c
13867 (OPTION_MASK_ISA_ENQCMD_SET,
13868 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
13869 (ix86_handle_option): Handle -menqcmd.
13870 * config.gcc (enqcmdintrin.h): New header file.
13871 * config/i386/cpuid.h (bit_ENQCMD): New bit.
13872 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
13874 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
13876 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
13877 __builtin_ia32_enqcmds): New builtins.
13878 * config/i386/i386-c.c (__ENQCMD__): New macro.
13879 * config/i386/i386-option.c (ix86_target_string): Add
13881 (ix86_valid_target_attribute_inner_p): Likewise.
13882 * config/i386/i386-expand.c
13883 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
13884 IX86_BUILTIN_ENQCMDS.
13885 * config/i386/i386.h (TARGET_ENQCMD): New.
13886 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
13887 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
13888 (movdir64b_<mode>): Parameterize to enable share expansion code
13889 with ENQCMD in function ix86_expand_builtin.
13890 * config/i386/i386.opt: Add -menqcmd.
13891 * config/i386/immintrin.h: Include enqcmdintrin.h.
13892 * config/i386/enqcmdintrin.h: New intrinsic file.
13893 * doc/invoke.texi: Add -menqcmd.
13895 2019-01-23 Bin Cheng <bin.cheng@arm.com>
13896 Steve Ellcey <sellcey@marvell.com>
13899 * recog.c (address_operand): Return false on wrong mode for address.
13900 (constrain_operands): Check for mode with 'p' constraint.
13902 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
13905 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
13906 Disparage MMX alternative.
13907 (sse2_cvtpd2pi): Ditto.
13908 (sse2_cvttpd2pi): Ditto.
13910 2019-01-23 David Malcolm <dmalcolm@redhat.com>
13913 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
13914 use-after-free of the result of
13915 aarch64_get_extension_string_for_isa_flags.
13917 2019-01-23 Jakub Jelinek <jakub@redhat.com>
13920 * doc/extend.texi: Document break and continue behavior in
13921 statement expressions.
13923 2019-01-23 Richard Biener <rguenther@suse.de>
13925 PR tree-optimization/89008
13926 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
13927 not leave another stray operand.
13929 2019-01-23 Jakub Jelinek <jakub@redhat.com>
13931 * BASE-VER: Bump to 9.0.1.
13933 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
13935 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
13936 thunk that returns by reference, use the type of the return object
13937 of the thunk instead of that of the alias to build the dereference.
13939 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
13941 * config/arc/atomic.md: Add operand to DMB instruction.
13943 2019-01-23 Jakub Jelinek <jakub@redhat.com>
13945 PR tree-optimization/88964
13946 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
13947 build_zero_cst instead of build_int_cst. Return false for loop
13948 invariants which honor signed zeros.
13950 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
13952 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
13954 2019-01-22 Jakub Jelinek <jakub@redhat.com>
13957 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
13958 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
13959 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
13961 PR middle-end/88968
13962 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
13963 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
13966 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
13967 Disable for little endian.
13969 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
13972 * config/arm/arm.c (arm_needs_double_word_align): Check
13973 DECL_BIT_FIELD_TYPE.
13975 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
13976 H.J. Lu <hongjiu.lu@intel.com>
13979 * config/i386/i386-builtin.def: Add mask2 to all builtin
13980 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
13982 * config/i386/i386.c (BDESC): Add mask2 to the definition.
13983 (BDESC_FIRST): Likewise.
13984 (define_builtin): Add an argument for mask2. Updated to handle
13985 both ix86_isa_flags and ix86_isa_flags2.
13986 (define_builtin_const): Likewise.
13987 (define_builtin_pure): Likewise.
13988 (define_builtin2): Deleted.
13989 (define_builtin_const2): Likewise.
13990 (builtin_description): Add a member, mask2.
13991 (bdesc_*): Add mask2 to builtin initializations.
13992 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
13993 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
13995 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
13997 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
14000 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
14003 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
14006 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
14007 alignment is dominated by a bitfield with 64-bit aligned base type.
14008 (arm_function_arg): Emit a warning if the alignment has changed since
14009 earlier GCC releases.
14010 (arm_function_arg_boundary): Likewise.
14011 (arm_setup_incoming_varargs): Likewise.
14013 2019-01-22 Richard Biener <rguenther@suse.de>
14015 PR tree-optimization/88862
14016 * graphite-scop-detection.c
14017 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
14019 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
14021 * doc/extend.tex (AMD GCN Function Attributes): New section.
14022 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
14023 * doc/invoke.texi (AMD GCN Options): New section.
14024 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
14026 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
14028 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
14029 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
14031 2019-01-22 Jakub Jelinek <jakub@redhat.com>
14033 PR tree-optimization/88044
14034 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
14035 is false in the first iteration, but !every_iteration, return false
14036 instead of true with niter->niter zero.
14038 PR rtl-optimization/88904
14039 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
14040 any nonequal registers before processing BB_END (b).
14043 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
14045 (expand_binop_directly, expand_doubleword_clz,
14046 expand_doubleword_popcount, expand_ctz, expand_ffs,
14047 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
14049 PR rtl-optimization/49429
14051 PR rtl-optimization/86334
14053 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
14054 addressable from here...
14055 (emit_block_op_via_libcall): ... to here.
14057 2019-01-22 Richard Biener <rguenther@suse.de>
14059 * tree-vect-loop.c (vect_analyze_loop_operations): Use
14060 auto_vec for cost vector to fix memleak.
14061 (vectorize_fold_left_reduction): Properly gather SLP defs.
14062 (vectorizable_comparison): Do not swap operands to properly
14065 2019-01-22 Alan Modra <amodra@gmail.com>
14068 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
14069 stays a reg. Allow a const_int.
14070 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
14071 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
14072 (IS_NOMARK_TLSGETADDR): Define.
14073 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
14074 (rs6000_output_tlsargs): New function.
14075 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
14076 __tls_get_addr call takes an arg.
14077 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
14078 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
14080 (call_value_nonlocal_sysv): ..or here, delete split.
14081 (tls_gdld_nomark): Delete.
14082 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
14083 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
14084 (call_value_nonlocal_sysv): Likewise.
14085 (call_value_nonlocal_sysv_secure): Likewise.
14086 (call_value_nonlocal_aix): Likewise.
14087 (call_value_indirect_aix): Likewise.
14088 (call_value_indirect_elfv2): Likewise.
14089 (call_value_local32, call_value_local64): Disable for no-mark tls.
14090 (call_value_local_aix): Likewise.
14092 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
14095 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
14096 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
14098 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
14100 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
14101 string contents as hash_map keys.
14103 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
14106 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
14107 for rvalue context. Handle rvalues correctly. Use min_align_of_type
14108 instead of TYPE_ALIGN.
14109 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
14110 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
14111 pointer from TYPE_STUB_DECL.
14113 2019-01-21 Richard Biener <rguenther@suse.de>
14115 PR tree-optimization/88934
14116 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
14117 at the possibly non-constant operand.
14118 (vect_get_constant_vectors): Adjust.
14120 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
14123 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
14124 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
14125 instead of _X86INTRIN_H_INCLUDED.
14126 * onfig/i386/clwbintrin.h: Likewise.
14127 * config/i386/pkuintrin.h: Likewise.
14128 * config/i386/prfchwintrin.h: Likewise.
14129 * config/i386/rdseedintrin.h: Likewise.
14130 * config/i386/wbnoinvdintrin.h: Likewise.
14131 * config/i386/xsavecintrin.h: Likewise.
14132 * config/i386/xsavesintrin.h: Likewise.
14133 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
14134 * config/i386/xsaveintrin.h: Likewise.
14135 * config/i386/xsaveoptintrin.h: Likewise.
14136 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
14137 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
14138 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
14139 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
14140 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
14141 * config/i386/immintrin.h: Here.
14143 2019-01-20 Martin Jambor <mjambor@suse.cz>
14146 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
14147 with aa_walk_budget.
14148 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
14149 aa_walk_budget_p parameter.
14150 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
14151 walk. Updated all callers.
14152 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
14153 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
14155 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
14156 parameter info. Extract info from fbi. Pass fbi to recursive calls
14157 and to unmodified_parm.
14158 (phi_result_unknown_predicate): New parameter fbi, removed parameter
14159 info, updated call to will_be_nonconstant_expr_predicate.
14160 (param_change_prob): New parameter fbi, limit AA walking.
14161 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
14162 calls to various above functions.
14163 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
14164 parameter. Use it to limit AA walking.
14165 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
14166 fbi, limit AA walk.
14167 (detect_type_change): New parameter fbi, pass it on to
14168 detect_type_change_from_memory_writes.
14169 (detect_type_change_ssa): Likewise.
14170 (aa_overwalked): Removed.
14171 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
14172 accordingly, adjust to the neew AA limiting scheme.
14173 (parm_ref_data_preserved_p): Likewise.
14174 (ipa_compute_jump_functions_for_edge): Adjust call to
14176 (ipa_analyze_call_uses): Likewise.
14177 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
14178 (ipa_analyze_node): Initialize aa_walk_budget.
14179 (ipcp_transform_function): Likewise.
14180 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
14181 to get_dynamic_type.
14183 2019-01-19 Jakub Jelinek <jakub@redhat.com>
14185 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
14186 outside of #if CHECKING_P code.
14188 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
14190 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
14191 New function, split out from...
14192 (loop_versioning::analyze_stride): ...here.
14193 (loop_versioning::find_per_loop_multiplication): Use gassign.
14194 (loop_versioning::analyze_term_using_scevs): Return a success code.
14195 (loop_versioning::analyze_arbitrary_term): New function.
14196 (loop_versioning::analyze_address_fragment): Use
14197 analyze_arbitrary_term if all else fails.
14199 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
14202 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
14205 2019-01-18 Richard Biener <rguenther@suse.de>
14207 PR tree-optimization/88903
14208 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
14209 scalar stmts a SLP shift amount is composed of when detecting
14212 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
14215 * config/arm/arm-cpus.in (mp): New feature.
14216 (sec): New feature.
14217 (fgroup ARMv7ve): Add mp and sec features.
14218 (arch armv7-a): Add options to allow mp and sec extensions.
14219 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
14220 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
14221 extenstions to the base architecture.
14222 (cpu cortex-a8): Add sec extension to the base architecture.
14223 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
14224 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
14225 variants down to the base v7-a varaint.
14226 * config/arm/t-multilib (v7_a_arch_variants): New variable.
14227 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
14228 of permitted extensions for -march=armv7-a and for
14229 -mcpu=generic-armv7-a.
14231 2019-01-18 Martin Liska <mliska@suse.cz>
14233 * params.def: Fix comment.
14234 * tree-profile.c (gimple_init_gcov_profiler): Bump function
14236 (gimple_gen_ic_func_profiler): Likewise.
14238 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14240 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
14241 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
14242 and put in error checks for stack protector guard options.
14243 (aarch64_stack_protect_guard): New.
14244 (TARGET_STACK_PROTECT_GUARD): Define.
14245 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
14246 (reg_stack_protect_address<mode>): New.
14247 (stack_protect_set): Adjust for SSP_GLOBAL.
14248 (stack_protect_test): Likewise.
14249 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
14250 (-mstack-protector-guard): Likewise.
14251 (-mstack-protector-guard-offset): Likewise.
14253 2019-01-18 Jakub Jelinek <jakub@redhat.com>
14255 PR tree-optimization/86214
14256 * tree-inline.h (struct copy_body_data): Add
14257 add_clobbers_to_eh_landing_pads member.
14258 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
14259 (copy_edges_for_bb): Call it if EH edge destination is <
14260 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
14261 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
14262 if flag_stack_reuse != SR_NONE and clear it afterwards.
14264 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
14267 * doc/install.texi (with-multilib-list): Document for aarch64.
14269 2019-01-18 Jakub Jelinek <jakub@redhat.com>
14272 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
14273 (("..."))) with ("...").
14275 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
14277 * doc/extend.texi (Built-in Functions for Memory Model Aware
14278 Atomic Operations): Document atomic fetch and nand.
14280 2019-01-18 Martin Liska <mliska@suse.cz>
14281 Richard Biener <rguenther@suse.de>
14283 PR middle-end/88587
14284 * cgraph.h (create_version_clone_with_body): Add new argument
14286 * cgraphclones.c (cgraph_node::create_version_clone): Add
14287 DECL_ATTRIBUTES to a newly created decl. And call
14288 valid_attribute_p so that proper cl_target_optimization_node
14289 is set for the newly created declaration.
14290 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
14292 (expand_target_clones): Do not call valid_attribute_p, it must
14294 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
14297 2019-01-17 Jakub Jelinek <jakub@redhat.com>
14300 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
14301 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
14302 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
14304 2019-01-17 Martin Sebor <msebor@redhat.com>
14306 PR middle-end/88273
14307 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
14308 Handle anti-ranges the same as no range at all.
14310 2018-01-17 Steve Ellcey <sellcey@cavium.com>
14312 * config/aarch64/aarch64.c (cgraph.h): New include.
14313 (intl.h): New include.
14314 (supported_simd_type): New function.
14315 (currently_supported_simd_type): Ditto.
14316 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
14317 (aarch64_simd_clone_adjust): Ditto.
14318 (aarch64_simd_clone_usable): Ditto.
14319 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
14320 (TARGET_SIMD_CLONE_ADJUST): Ditto.
14321 (TARGET_SIMD_CLONE_USABLE): Ditto.
14322 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
14323 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
14326 2019-01-17 Martin Sebor <msebor@redhat.com>
14328 PR tree-optimization/88800
14329 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
14330 NO_WARNING bit here. Avoid folding out-of-bounds calls.
14331 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
14332 redundant argument. Add new argument and issue diagnostics under
14333 its control. Detect out-of-bounds access even with warnings
14335 (check_bounds_or_overlap): Change return type. Add argument.
14336 (wrestrict_dom_walker::check_call): Adjust.
14337 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
14338 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
14339 check_bounds_or_overlap's return value.
14340 (handle_builtin_stxncpy): Same.
14341 (handle_builtin_strcat): Same.
14343 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
14344 Kwok Cheung Yeung <kcy@codesourcery.com>
14345 Julian Brown <julian@codesourcery.com>
14346 Tom de Vries <tom@codesourcery.com>
14348 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
14350 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
14352 * doc/sourcebuild.texi: Document dg-require-effective-target
14353 llvm_binutils and offload_gcn.
14355 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
14356 Kwok Cheung Yeung <kcy@codesourcery.com>
14357 Julian Brown <julian@codesourcery.com>
14358 Tom de Vries <tom@codesourcery.com>
14360 * doc/sourcebuild.texi: Document dg-required-effective-target
14363 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
14364 Kwok Cheung Yeung <kcy@codesourcery.com>
14365 Julian Brown <julian@codesourcery.com>
14366 Tom de Vries <tom@codesourcery.com>
14367 Jan Hubicka <hubicka@ucw.cz>
14368 Martin Jambor <mjambor@suse.cz>
14370 * config.gcc: Add amdgcn*-*-amdhsa configuration.
14371 * configure.ac: Check for dlopen.
14372 * configure: Regenerate.
14374 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
14375 Kwok Cheung Yeung <kcy@codesourcery.com>
14376 Julian Brown <julian@codesourcery.com>
14377 Tom de Vries <tom@codesourcery.com>
14378 Jan Hubicka <hubicka@ucw.cz>
14379 Martin Jambor <mjambor@suse.cz>
14381 * common/config/gcn/gcn-common.c: New file.
14382 * config/gcn/driver-gcn.c: New file.
14383 * config/gcn/gcn-builtins.def: New file.
14384 * config/gcn/gcn-hsa.h: New file.
14385 * config/gcn/gcn-modes.def: New file.
14386 * config/gcn/gcn-opts.h: New file.
14387 * config/gcn/gcn-passes.def: New file.
14388 * config/gcn/gcn-protos.h: New file.
14389 * config/gcn/gcn-run.c: New file.
14390 * config/gcn/gcn-tree.c: New file.
14391 * config/gcn/gcn.c: New file.
14392 * config/gcn/gcn.h: New file.
14393 * config/gcn/gcn.opt: New file.
14394 * config/gcn/t-gcn-hsa: New file.
14396 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
14397 Kwok Cheung Yeung <kcy@codesourcery.com>
14398 Julian Brown <julian@codesourcery.com>
14399 Tom de Vries <tom@codesourcery.com>
14400 Jan Hubicka <hubicka@ucw.cz>
14401 Martin Jambor <mjambor@suse.cz>
14403 * config/gcn/constraints.md: New file.
14404 * config/gcn/gcn-valu.md: New file.
14405 * config/gcn/gcn.md: New file.
14406 * config/gcn/predicates.md: New file.
14408 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
14410 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
14411 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
14412 (stmt_uses_0_or_null_in_undefined_way): Likewise.
14413 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
14415 2019-01-17 Tamar Christina <tamar.christina@arm.com>
14418 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
14419 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
14420 it and document registers.
14422 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14424 * config/aarch64/aarch64.c (ares_tunings): Define.
14425 * config/aarch64/aarch64-cores.def (ares): Use the above.
14427 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
14431 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
14433 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
14434 (_mm512_fixupimm_round_pd): Update parameters and builtin.
14435 (_mm512_maskz_fixupimm_round_pd): Ditto.
14436 (_mm512_fixupimm_round_ps): Ditto.
14437 (_mm512_maskz_fixupimm_round_ps): Ditto.
14438 (_mm_fixupimm_round_sd): Ditto.
14439 (_mm_maskz_fixupimm_round_sd): Ditto.
14440 (_mm_fixupimm_round_ss): Ditto.
14441 (_mm_maskz_fixupimm_round_ss): Ditto.
14442 (_mm512_fixupimm_pd): Ditto.
14443 (_mm512_maskz_fixupimm_pd): Ditto.
14444 (_mm512_fixupimm_ps): Ditto.
14445 (_mm512_maskz_fixupimm_ps): Ditto.
14446 (_mm_fixupimm_sd): Ditto.
14447 (_mm_maskz_fixupimm_sd): Ditto.
14448 (_mm_fixupimm_ss): Ditto.
14449 (_mm_maskz_fixupimm_ss): Ditto.
14450 (_mm512_mask_fixupimm_round_pd): Update builtin.
14451 (_mm512_mask_fixupimm_round_ps): Ditto.
14452 (_mm_mask_fixupimm_round_sd): Ditto.
14453 (_mm_mask_fixupimm_round_ss): Ditto.
14454 (_mm512_mask_fixupimm_pd): Ditto.
14455 (_mm512_mask_fixupimm_ps): Ditto.
14456 (_mm_mask_fixupimm_sd): Ditto.
14457 (_mm_mask_fixupimm_ss): Ditto.
14458 * config/i386/avx512vlintrin.h:
14459 (_mm256_fixupimm_pd): Update parameters and builtin.
14460 (_mm256_maskz_fixupimm_pd): Ditto.
14461 (_mm256_fixupimm_ps): Ditto.
14462 (_mm256_maskz_fixupimm_ps): Ditto.
14463 (_mm_fixupimm_pd): Ditto.
14464 (_mm_maskz_fixupimm_pd): Ditto.
14465 (_mm_fixupimm_ps): Ditto.
14466 (_mm_maskz_fixupimm_ps): Ditto.
14467 (_mm256_mask_fixupimm_pd): Update builtin.
14468 (_mm256_mask_fixupimm_ps): Ditto.
14469 (_mm_mask_fixupimm_pd): Ditto.
14470 (_mm_mask_fixupimm_ps): Ditto.
14471 * config/i386/i386-builtin-types.def: Add new types and remove
14473 * config/i386/i386-builtin.def: Update builtin definitions.
14474 * config/i386/i386.c: Handle new builtin types and remove useless ones.
14475 * config/i386/sse.md: Update VFIXUPIMM* patterns.
14476 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
14477 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
14478 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
14479 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
14480 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
14481 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
14482 * config/i386/subst.md:
14483 (round_saeonly_sd_mask_operand4): Add new subst_attr.
14484 (round_saeonly_sd_mask_op4): Ditto.
14485 (round_saeonly_expand_operand5): Ditto.
14486 (round_saeonly_expand): Update.
14488 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
14492 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
14494 * config/i386/sse.md: Combine VFIXUPIMM* patterns
14495 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
14496 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
14497 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
14498 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
14499 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
14500 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
14502 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
14506 2018-12-15 Jakub Jelinek <jakub@redhat.com>
14509 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
14510 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
14511 instead of UNSPEC_FIXUPIMM.
14513 2019-01-17 Richard Biener <rguenther@suse.de>
14516 * dwarf2out.c (want_pubnames): Never generate pubnames sections
14517 and friends for the LTO part of debug info.
14519 2019-01-17 Jakub Jelinek <jakub@redhat.com>
14521 PR tree-optimization/86214
14522 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
14525 PR rtl-optimization/88870
14526 * dce.c (deletable_insn_p): Never delete const/pure calls that can
14527 throw if we can't alter the cfg or delete dead exceptions.
14528 (mark_insn): Don't call find_call_stack_args for such calls.
14530 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
14532 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
14533 prototypes for vec_st.
14534 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
14535 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
14536 mainly on signed/unsigned long long and double.
14538 2019-01-16 David Malcolm <dmalcolm@redhat.com>
14541 * combine.c (delete_noop_moves): Convert to "bool" return,
14542 returning true if any edges are eliminated.
14543 (combine_instructions): Also return true if delete_noop_moves
14546 2019-01-16 Tamar Christina <tamar.christina@arm.com>
14548 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
14549 correct max nunits for endian swap.
14550 (aarch64_expand_fcmla_builtin): Correct subreg code.
14551 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
14552 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
14555 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
14557 * config/alpha/alpha.c (alpha_gimplify_va_arg):
14558 Handle split indirect COMPLEX_TYPE arguments.
14560 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
14563 * config/aarch64/aarch64-modes.def: Add comment about how the carry
14564 bit is set by add and compare.
14565 (CC_ADC): New CC_MODE.
14566 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
14567 to cache the code and mode of X. Adjust the shape of a CC_Cmode
14568 comparison. Add detection for CC_ADCmode.
14569 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
14571 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
14572 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
14573 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
14574 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
14575 to eliminate the need for zero-extending the operands.
14576 (add<mode>3_compareC_imm): Delete. Merge into ...
14577 (add<mode>3_compareC): ... this. Restructure the comparison to
14578 eliminate the need for zero-extending the operands.
14579 (add<mode>3_carryin): Use LTU for the overflow detection.
14580 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
14581 Reexpress comparison for overflow.
14582 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
14583 (add<mode>3_carryinC): Likewise.
14584 (add<mode>3_carryinV): Use LTU for carry between partials.
14585 * config/aarch64/predicates.md (aarch64_carry_operation): Update
14586 handling of CC_Cmode and add CC_ADCmode.
14587 (aarch64_borrow_operation): Likewise.
14589 2019-01-16 Tamar Christina <tamar.christina@arm.com>
14591 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
14592 Remove patternmode.
14593 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
14594 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
14595 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
14596 Remove endianness conversion.
14598 2019-01-16 Martin Liska <mliska@suse.cz>
14600 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
14602 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
14604 * gcc.c (add_sysrooted_hdrs_prefix): New function.
14605 (path_prefix_reset): Move up in the source file.
14606 (find_fortran_preinclude_file): Make complex search for the
14607 fortran header files.
14609 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
14611 * godump.c (go_output_typedef): When outputting a typedef, refer
14612 to the underlying type by its name and not its structure.
14614 2019-01-15 David Malcolm <dmalcolm@redhat.com>
14617 * tree.c (build_function_type): Assert that arg_types is not
14620 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
14622 PR inline-asm/52813
14623 * doc/extend.texi: Document that listing the stack pointer in the
14624 clobber list of an asm is a deprecated feature.
14625 * common.opt (Wdeprecated): Moved from c-family/c.opt.
14626 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
14627 warning instead of an error for clobbers of the stack pointer.
14628 Add a note explaining why.
14630 2019-01-15 Richard Biener <rguenther@suse.de>
14633 * dwarf2out.c (gen_member_die): Do not generate inheritance
14636 2019-01-15 Richard Biener <rguenther@suse.de>
14638 PR tree-optimization/88855
14639 * tree-if-conv.c (combine_blocks): Collect
14640 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
14642 2019-01-15 Tom de Vries <tdevries@suse.de>
14645 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
14646 lhs == NULL_TREE for gang-level reduction.
14648 2019-01-15 Richard Biener <rguenther@suse.de>
14649 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14652 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
14653 return true if SSA_NAME is already marked in visited bitmap.
14654 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
14656 2019-01-15 Jakub Jelinek <jakub@redhat.com>
14658 PR tree-optimization/88775
14659 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
14660 equal == 0 equality pointer comparisons some more if compared in
14661 integral types and either one points to an automatic var and the
14662 other to a global, or we can prove at least one points to the middle
14663 or both point to start or both point to end.
14665 2019-01-14 Andi Kleen <ak@linux.intel.com>
14667 * Makefile.in: Lower autofdo sampling rate by 10x.
14668 * Makefile.tpl: Dito.
14670 2019-01-14 Tom Honermann <tom@honermann.net>
14672 * defaults.h: Define CHAR8_TYPE.
14674 2019-01-14 Martin Sebor <msebor@redhat.com>
14677 * doc/extend.texi (Darwin Format Checks): Clarify.
14679 2019-01-14 Richard Biener <rguenther@suse.de>
14681 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
14682 whether we are in (simplify ...) or (match ...) context.
14684 2019-01-14 Jakub Jelinek <jakub@redhat.com>
14686 PR rtl-optimization/88796
14687 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
14688 * cfgexpand.c (stack_protect_prologue): Initialize
14689 crtl->stack_protect_guard_decl.
14690 * function.c (stack_protect_epilogue): Use it instead of calling
14691 targetm.stack_protect_guard again.
14692 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
14693 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
14694 crtl->stack_protect_guard_decl.
14695 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
14696 on the returned MEM_EXPR.
14698 2019-01-12 Tom de Vries <tdevries@suse.de>
14700 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
14701 vector length using -fopenacc-dim.
14703 2019-01-12 Tom de Vries <tdevries@suse.de>
14705 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
14706 lengths into account.
14708 2019-01-12 Svante Signell <svante.signell@gmail.com>
14710 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
14711 (TARGET_CAN_SPLIT_STACK): Define.
14712 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
14714 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
14716 * params.def (inline-unit-growth): Set to 40.
14718 2019-01-12 Jakub Jelinek <jakub@redhat.com>
14720 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
14722 2019-01-12 Tom de Vries <tdevries@suse.de>
14724 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
14725 region calling vector-partitionable routine, set default_vector_length
14728 2019-01-12 Tom de Vries <tdevries@suse.de>
14730 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
14731 variable default_vector_length.
14733 2019-01-12 Tom de Vries <tdevries@suse.de>
14735 PR middle-end/88703
14736 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
14737 from oacc_default_dims, as oacc_validate_dims would do it, and apply
14740 2019-01-12 Tom de Vries <tdevries@suse.de>
14742 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
14743 (nvptx_goacc_validate_dims): Add used parameter.
14744 * doc/tm.texi: Regenerate.
14745 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
14746 argument to call to targetm.goacc.validate_dims.
14747 (default_goacc_validate_dims): Add used
14749 * target.def (validate_dims): Add used parameter in DEFHOOK.
14750 * targhooks.h (default_goacc_validate_dims): Add used parameter.
14752 2019-01-11 Jakub Jelinek <jakub@redhat.com>
14754 PR middle-end/85956
14756 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
14758 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
14759 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
14760 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
14761 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
14763 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
14765 PR rtl-optimization/87305
14767 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
14768 for little endian pseudos used as paradoxical subreg.
14770 2019-01-11 Jakub Jelinek <jakub@redhat.com>
14772 PR tree-optimization/88693
14773 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
14774 for STRING_CSTs that don't contain any NUL characters in the first
14775 TREE_STRING_LENGTH bytes.
14777 2019-01-11 Alan Modra <amodra@gmail.com>
14781 * genattrtab.c (min_fn): Don't translate values.
14782 (min_attr_value): Return INT_MAX when the value can't be calculated.
14783 Return minimum among any values that can be calculated.
14784 (max_attr_value): Adjust.
14786 2019-01-11 Jakub Jelinek <jakub@redhat.com>
14788 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
14790 2019-01-11 Steve Ellcey <sellcey@marvell.com>
14792 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
14793 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
14794 (aarch64_return_call_with_max_clobbers): New function.
14795 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
14796 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
14798 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
14799 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
14800 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
14801 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
14802 * cselib.c (cselib_process_insn): Add argument to
14803 targetm.hard_regno_call_part_clobbered call.
14804 * ira-conflicts.c (ira_build_conflicts): Ditto.
14805 * ira-costs.c (ira_tune_allocno_costs): Ditto.
14806 * lra-constraints.c (inherit_reload_reg): Ditto.
14807 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
14808 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
14809 argument. Call targetm.return_call_with_max_clobbers.
14810 Add argument to targetm.hard_regno_call_part_clobbered call.
14811 (calls_have_same_clobbers_p): New function.
14812 (process_bb_lives): Add call_insn and last_call_insn variables.
14813 Pass call_insn to check_pseudos_live_through_calls.
14814 Modify if stmt to check targetm.return_call_with_max_clobbers.
14815 Update setting of flush variable.
14816 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
14818 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
14819 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
14820 targetm.hard_regno_call_part_clobbered call.
14821 * reginfo.c (choose_hard_reg_mode): Ditto.
14822 * regrename.c (check_new_reg_p): Ditto.
14823 * reload.c (find_equiv_reg): Ditto.
14824 * reload1.c (emit_reload_insns): Ditto.
14825 * sched-deps.c (deps_analyze_insn): Ditto.
14826 * sel-sched.c (init_regs_for_mode): Ditto.
14827 (mark_unavailable_hard_regs): Ditto.
14828 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
14829 * target.def (hard_regno_call_part_clobbered): Add insn argument.
14830 (return_call_with_max_clobbers): New target function.
14831 * doc/tm.texi: Regenerate.
14832 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
14833 * hooks.c (hook_bool_uint_mode_false): Change to
14834 hook_bool_insn_uint_mode_false.
14835 * hooks.h (hook_bool_uint_mode_false): Ditto.
14837 2019-01-11 Steve Ellcey <sellcey@marvell.com>
14839 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
14840 (aarch64_remove_extra_call_preserved_regs): New function.
14841 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
14842 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
14843 * doc/tm.texi: Regenerate.
14844 * final.c (get_call_reg_set_usage): Call new hook.
14845 * target.def (remove_extra_call_preserved_regs): New hook.
14846 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
14847 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
14849 2019-01-11 Jakub Jelinek <jakub@redhat.com>
14852 * passes.c (finish_optimization_passes): Call print_combine_total_stats
14853 inside of pass_combine_1 dump rather than pass_profile_1.
14855 2019-01-11 Tom de Vries <tdevries@suse.de>
14857 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
14858 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
14859 (PTX_NUM_PER_WORKER_BARRIERS): Define.
14860 (nvptx_apply_dim_limits): Prevent vector_length 64 and
14863 2019-01-11 Tom de Vries <tdevries@suse.de>
14865 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
14867 2019-01-11 Jan Beulich <jbeulich@suse.com>
14869 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
14870 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
14871 sse2_cvtsi2sd): Add {l}.
14872 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
14875 2019-01-10 Jakub Jelinek <jakub@redhat.com>
14878 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
14880 (*float<floatunssuffix>v2div2sf2): New define_insn.
14881 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
14882 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
14883 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
14884 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
14885 match_operands with "const0_operand" "C".
14887 2019-01-10 Tamar Christina <tamar.christina@arm.com>
14889 * config/aarch64/aarch64-builtins.c
14890 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
14891 (aarch64_init_simd_builtins): ...Here
14893 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
14895 PR rtl-optimization/87305
14897 (setup_live_pseudos_and_spill_after_risky_transforms): Check
14898 allocation for big endian pseudos used as paradoxical subregs and
14899 spill them if it is wrong.
14900 * lra-constraints.c (lra_constraints): Add a comment.
14902 2019-01-10 Richard Biener <rguenther@suse.de>
14904 PR tree-optimization/88792
14905 * tree-ssa-pre.c (get_representative_for): Do not return a
14908 2019-01-10 Jakub Jelinek <jakub@redhat.com>
14910 PR middle-end/84877
14912 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
14913 (assign_parm_setup_block): Do the argument slot realignment here
14916 2019-01-10 Stefan Agner <stefan@agner.ch>
14919 * config/arm/arm.c (arm_option_override_internal): Force
14920 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
14922 2019-01-10 Jakub Jelinek <jakub@redhat.com>
14925 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
14928 2019-01-10 Tamar Christina <tamar.christina@arm.com>
14930 * config/arm/arm-builtins.c
14931 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
14932 (MAC_LANE_PAIR_QUALIFIERS): New.
14933 (arm_expand_builtin_args): Use it.
14934 (arm_expand_builtin_1): Likewise.
14935 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
14936 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
14937 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
14938 * config/arm/arm_neon.h:
14939 (vcadd_rot90_f16): New.
14940 (vcaddq_rot90_f16): New.
14941 (vcadd_rot270_f16): New.
14942 (vcaddq_rot270_f16): New.
14945 (vcmla_lane_f16): New.
14946 (vcmla_laneq_f16): New.
14947 (vcmlaq_lane_f16): New.
14948 (vcmlaq_laneq_f16): New.
14949 (vcmla_rot90_f16): New.
14950 (vcmlaq_rot90_f16): New.
14951 (vcmla_rot90_lane_f16): New.
14952 (vcmla_rot90_laneq_f16): New.
14953 (vcmlaq_rot90_lane_f16): New.
14954 (vcmlaq_rot90_laneq_f16): New.
14955 (vcmla_rot180_f16): New.
14956 (vcmlaq_rot180_f16): New.
14957 (vcmla_rot180_lane_f16): New.
14958 (vcmla_rot180_laneq_f16): New.
14959 (vcmlaq_rot180_lane_f16): New.
14960 (vcmlaq_rot180_laneq_f16): New.
14961 (vcmla_rot270_f16): New.
14962 (vcmlaq_rot270_f16): New.
14963 (vcmla_rot270_lane_f16): New.
14964 (vcmla_rot270_laneq_f16): New.
14965 (vcmlaq_rot270_lane_f16): New.
14966 (vcmlaq_rot270_laneq_f16): New.
14967 (vcadd_rot90_f32): New.
14968 (vcaddq_rot90_f32): New.
14969 (vcadd_rot270_f32): New.
14970 (vcaddq_rot270_f32): New.
14973 (vcmla_lane_f32): New.
14974 (vcmla_laneq_f32): New.
14975 (vcmlaq_lane_f32): New.
14976 (vcmlaq_laneq_f32): New.
14977 (vcmla_rot90_f32): New.
14978 (vcmlaq_rot90_f32): New.
14979 (vcmla_rot90_lane_f32): New.
14980 (vcmla_rot90_laneq_f32): New.
14981 (vcmlaq_rot90_lane_f32): New.
14982 (vcmlaq_rot90_laneq_f32): New.
14983 (vcmla_rot180_f32): New.
14984 (vcmlaq_rot180_f32): New.
14985 (vcmla_rot180_lane_f32): New.
14986 (vcmla_rot180_laneq_f32): New.
14987 (vcmlaq_rot180_lane_f32): New.
14988 (vcmlaq_rot180_laneq_f32): New.
14989 (vcmla_rot270_f32): New.
14990 (vcmlaq_rot270_f32): New.
14991 (vcmla_rot270_lane_f32): New.
14992 (vcmla_rot270_laneq_f32): New.
14993 (vcmlaq_rot270_lane_f32): New.
14994 (vcmlaq_rot270_laneq_f32): New.
14995 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
14996 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
14997 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
14998 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
14999 vcmlaq_lane270): New.
15000 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
15001 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
15002 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
15003 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
15004 (arm_option_reconfigure_globals): Use them.
15005 * config/arm/iterators.md (VDF, VQ_HSF): New.
15006 (VCADD, VCMLA): New.
15007 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
15008 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
15010 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
15011 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
15013 2019-01-10 Tamar Christina <tamar.christina@arm.com>
15015 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
15016 Add qualifier_lane_pair_index.
15017 (emit-rtl.h): Include.
15018 (TYPES_QUADOP_LANE_PAIR): New.
15019 (aarch64_simd_expand_args): Use it.
15020 (aarch64_simd_expand_builtin): Likewise.
15021 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
15023 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
15024 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
15025 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
15026 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
15027 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
15028 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
15029 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
15030 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
15031 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
15032 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
15033 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
15034 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
15035 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
15036 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
15037 Add __ARM_FEATURE_COMPLEX.
15038 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
15039 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
15040 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
15041 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
15042 fcmlaq_lane270): New.
15043 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
15044 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
15045 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
15046 * config/aarch64/arm_neon.h:
15047 (vcadd_rot90_f16): New.
15048 (vcaddq_rot90_f16): New.
15049 (vcadd_rot270_f16): New.
15050 (vcaddq_rot270_f16): New.
15053 (vcmla_lane_f16): New.
15054 (vcmla_laneq_f16): New.
15055 (vcmlaq_lane_f16): New.
15056 (vcmlaq_rot90_lane_f16): New.
15057 (vcmla_rot90_laneq_f16): New.
15058 (vcmla_rot90_lane_f16): New.
15059 (vcmlaq_rot90_f16): New.
15060 (vcmla_rot90_f16): New.
15061 (vcmlaq_laneq_f16): New.
15062 (vcmla_rot180_laneq_f16): New.
15063 (vcmla_rot180_lane_f16): New.
15064 (vcmlaq_rot180_f16): New.
15065 (vcmla_rot180_f16): New.
15066 (vcmlaq_rot90_laneq_f16): New.
15067 (vcmlaq_rot270_laneq_f16): New.
15068 (vcmlaq_rot270_lane_f16): New.
15069 (vcmla_rot270_laneq_f16): New.
15070 (vcmlaq_rot270_f16): New.
15071 (vcmla_rot270_f16): New.
15072 (vcmlaq_rot180_laneq_f16): New.
15073 (vcmlaq_rot180_lane_f16): New.
15074 (vcmla_rot270_lane_f16): New.
15075 (vcadd_rot90_f32): New.
15076 (vcaddq_rot90_f32): New.
15077 (vcaddq_rot90_f64): New.
15078 (vcadd_rot270_f32): New.
15079 (vcaddq_rot270_f32): New.
15080 (vcaddq_rot270_f64): New.
15084 (vcmla_lane_f32): New.
15085 (vcmla_laneq_f32): New.
15086 (vcmlaq_lane_f32): New.
15087 (vcmlaq_laneq_f32): New.
15088 (vcmla_rot90_f32): New.
15089 (vcmlaq_rot90_f32): New.
15090 (vcmlaq_rot90_f64): New.
15091 (vcmla_rot90_lane_f32): New.
15092 (vcmla_rot90_laneq_f32): New.
15093 (vcmlaq_rot90_lane_f32): New.
15094 (vcmlaq_rot90_laneq_f32): New.
15095 (vcmla_rot180_f32): New.
15096 (vcmlaq_rot180_f32): New.
15097 (vcmlaq_rot180_f64): New.
15098 (vcmla_rot180_lane_f32): New.
15099 (vcmla_rot180_laneq_f32): New.
15100 (vcmlaq_rot180_lane_f32): New.
15101 (vcmlaq_rot180_laneq_f32): New.
15102 (vcmla_rot270_f32): New.
15103 (vcmlaq_rot270_f32): New.
15104 (vcmlaq_rot270_f64): New.
15105 (vcmla_rot270_lane_f32): New.
15106 (vcmla_rot270_laneq_f32): New.
15107 (vcmlaq_rot270_lane_f32): New.
15108 (vcmlaq_rot270_laneq_f32): New.
15109 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
15110 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
15111 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
15112 (FCADD, FCMLA): New.
15114 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
15116 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
15120 * config/pa/pa.c: Change "can not" to "cannot".
15121 * gimple-ssa-evrp-analyze.c: Likewise.
15122 * ipa-icf.c: Likewise.
15123 * ipa-polymorphic-call.c: Likewise.
15124 * ipa-pure-const.c: Likewise.
15125 * lra-constraints.c: Likewise.
15126 * lra-remat.c: Likewise.
15127 * reload1.c: Likewise.
15128 * reorg.c: Likewise.
15129 * tree-ssa-uninit.c: Likewise.
15131 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
15135 * Makefile.in: Mechanically replace "can not" with "cannot".
15136 * alias.c: Likewise.
15137 * builtins.c: Likewise.
15138 * calls.c: Likewise.
15139 * cgraph.c: Likewise.
15140 * cgraph.h: Likewise.
15141 * cgraphclones.c: Likewise.
15142 * cgraphunit.c: Likewise.
15143 * combine-stack-adj.c: Likewise.
15144 * combine.c: Likewise.
15145 * common/config/i386/i386-common.c: Likewise.
15146 * config/aarch64/aarch64.c: Likewise.
15147 * config/alpha/sync.md: Likewise.
15148 * config/arc/arc.c: Likewise.
15149 * config/arc/predicates.md: Likewise.
15150 * config/arm/arm-c.c: Likewise.
15151 * config/arm/arm.c: Likewise.
15152 * config/arm/arm.h: Likewise.
15153 * config/arm/arm.md: Likewise.
15154 * config/arm/cortex-r4f.md: Likewise.
15155 * config/csky/csky.c: Likewise.
15156 * config/csky/csky.h: Likewise.
15157 * config/darwin-f.c: Likewise.
15158 * config/epiphany/epiphany.md: Likewise.
15159 * config/i386/i386.c: Likewise.
15160 * config/i386/sol2.h: Likewise.
15161 * config/m68k/m68k.c: Likewise.
15162 * config/mcore/mcore.h: Likewise.
15163 * config/microblaze/microblaze.md: Likewise.
15164 * config/mips/20kc.md: Likewise.
15165 * config/mips/sb1.md: Likewise.
15166 * config/nds32/nds32.c: Likewise.
15167 * config/nds32/predicates.md: Likewise.
15168 * config/pa/pa.c: Likewise.
15169 * config/rs6000/e300c2c3.md: Likewise.
15170 * config/rs6000/rs6000.c: Likewise.
15171 * config/s390/s390.h: Likewise.
15172 * config/sh/sh.c: Likewise.
15173 * config/sh/sh.md: Likewise.
15174 * config/spu/vmx2spu.h: Likewise.
15175 * cprop.c: Likewise.
15176 * dbxout.c: Likewise.
15177 * df-scan.c: Likewise.
15178 * doc/cfg.texi: Likewise.
15179 * doc/extend.texi: Likewise.
15180 * doc/fragments.texi: Likewise.
15181 * doc/gty.texi: Likewise.
15182 * doc/invoke.texi: Likewise.
15183 * doc/lto.texi: Likewise.
15184 * doc/md.texi: Likewise.
15185 * doc/objc.texi: Likewise.
15186 * doc/rtl.texi: Likewise.
15187 * doc/tm.texi: Likewise.
15189 * emit-rtl.c: Likewise.
15190 * emit-rtl.h: Likewise.
15191 * except.c: Likewise.
15192 * expmed.c: Likewise.
15193 * expr.c: Likewise.
15194 * fold-const.c: Likewise.
15195 * genautomata.c: Likewise.
15196 * gimple-fold.c: Likewise.
15197 * hard-reg-set.h: Likewise.
15198 * ifcvt.c: Likewise.
15199 * ipa-comdats.c: Likewise.
15200 * ipa-cp.c: Likewise.
15201 * ipa-devirt.c: Likewise.
15202 * ipa-fnsummary.c: Likewise.
15203 * ipa-icf.c: Likewise.
15204 * ipa-inline-transform.c: Likewise.
15205 * ipa-inline.c: Likewise.
15206 * ipa-polymorphic-call.c: Likewise.
15207 * ipa-profile.c: Likewise.
15208 * ipa-prop.c: Likewise.
15209 * ipa-pure-const.c: Likewise.
15210 * ipa-reference.c: Likewise.
15211 * ipa-split.c: Likewise.
15212 * ipa-visibility.c: Likewise.
15214 * ira-build.c: Likewise.
15215 * ira-color.c: Likewise.
15216 * ira-conflicts.c: Likewise.
15217 * ira-costs.c: Likewise.
15218 * ira-int.h: Likewise.
15219 * ira-lives.c: Likewise.
15222 * loop-invariant.c: Likewise.
15223 * loop-unroll.c: Likewise.
15224 * lower-subreg.c: Likewise.
15225 * lra-assigns.c: Likewise.
15226 * lra-constraints.c: Likewise.
15227 * lra-eliminations.c: Likewise.
15228 * lra-lives.c: Likewise.
15229 * lra-remat.c: Likewise.
15230 * lra-spills.c: Likewise.
15232 * lto-cgraph.c: Likewise.
15233 * lto-streamer-out.c: Likewise.
15234 * postreload-gcse.c: Likewise.
15235 * predict.c: Likewise.
15236 * profile-count.h: Likewise.
15237 * profile.c: Likewise.
15238 * recog.c: Likewise.
15240 * reload.c: Likewise.
15241 * reload1.c: Likewise.
15242 * reorg.c: Likewise.
15243 * resource.c: Likewise.
15244 * rtl.def: Likewise.
15246 * rtlanal.c: Likewise.
15247 * sched-deps.c: Likewise.
15248 * sched-ebb.c: Likewise.
15249 * sched-rgn.c: Likewise.
15250 * sel-sched-ir.c: Likewise.
15251 * sel-sched.c: Likewise.
15252 * shrink-wrap.c: Likewise.
15253 * simplify-rtx.c: Likewise.
15254 * symtab.c: Likewise.
15255 * target.def: Likewise.
15256 * toplev.c: Likewise.
15257 * tree-call-cdce.c: Likewise.
15258 * tree-cfg.c: Likewise.
15259 * tree-complex.c: Likewise.
15260 * tree-core.h: Likewise.
15261 * tree-eh.c: Likewise.
15262 * tree-inline.c: Likewise.
15263 * tree-loop-distribution.c: Likewise.
15264 * tree-nrv.c: Likewise.
15265 * tree-profile.c: Likewise.
15266 * tree-sra.c: Likewise.
15267 * tree-ssa-alias.c: Likewise.
15268 * tree-ssa-dce.c: Likewise.
15269 * tree-ssa-dom.c: Likewise.
15270 * tree-ssa-forwprop.c: Likewise.
15271 * tree-ssa-loop-im.c: Likewise.
15272 * tree-ssa-loop-ivcanon.c: Likewise.
15273 * tree-ssa-loop-ivopts.c: Likewise.
15274 * tree-ssa-loop-niter.c: Likewise.
15275 * tree-ssa-phionlycprop.c: Likewise.
15276 * tree-ssa-phiopt.c: Likewise.
15277 * tree-ssa-propagate.c: Likewise.
15278 * tree-ssa-threadedge.c: Likewise.
15279 * tree-ssa-threadupdate.c: Likewise.
15280 * tree-ssa-uninit.c: Likewise.
15281 * tree-ssanames.c: Likewise.
15282 * tree-streamer-out.c: Likewise.
15283 * tree.c: Likewise.
15284 * tree.h: Likewise.
15285 * vr-values.c: Likewise.
15287 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
15289 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
15290 (ix86_split_xorsign): Ditto.
15291 * config/i386/i386.c (ix86_expand_xorsign): New function.
15292 (ix86_split_xorsign): Ditto.
15293 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
15294 (xorsign<mode>3): New expander.
15295 (xorsign<mode>3_1): New insn_and_split pattern.
15296 * config/i386/sse.md (xorsign<mode>3): New expander.
15298 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
15300 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
15301 (*tablejump_sp64): Likewise.
15302 (*tablejump<P:mode>): ...this.
15303 (*call_address_sp32): Merge into...
15304 (*call_address_sp64): Likewise.
15305 (*call_address<P:mode>): ...this.
15306 (*call_symbolic_sp32): Merge into...
15307 (*call_symbolic_sp64): Likewise.
15308 (*call_symbolic<P:mode>): ...this.
15309 (call_value): Remove constraint and add predicate.
15310 (*call_value_address_sp32): Merge into...
15311 (*call_value_address_sp64): Likewise.
15312 (*call_value_address<P:mode>): ...this.
15313 (*call_value_symbolic_sp32): Merge into...
15314 (*call_value_symbolic_sp64): Likewise.
15315 (*call_value_symbolic<P:mode>): ...this.
15316 (*sibcall_symbolic_sp32): Merge into...
15317 (*sibcall_symbolic_sp64): Likewise.
15318 (*sibcall_symbolic<P:mode>): ...this.
15319 (sibcall_value): Remove constraint and add predicate.
15320 (*sibcall_value_symbolic_sp32): Merge into...
15321 (*sibcall_value_symbolic_sp64): Likewise.
15322 (*sibcall_value_symbolic<P:mode>): ...this.
15323 (window_save): Minor tweak.
15324 (*branch_sp32): Merge into...
15325 (*branch_sp64): Likewise.
15326 (*branch<P:mode>): ...this.
15328 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
15329 James Clarke <jrtc27@jrtc27.com>
15332 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
15333 consistently in TLS address generation and adjust code to the renaming
15334 of patterns. Mark calls to __tls_get_addr as const.
15335 * config/sparc/sparc.md (tgd_hi22): Turn into...
15336 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
15337 (tgd_lo10): Turn into...
15338 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
15339 (tgd_add32): Merge into...
15340 (tgd_add64): Likewise.
15341 (tgd_add<P:mode>): ...this and use Pmode throughout.
15342 (tldm_hi22): Turn into...
15343 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
15344 (tldm_lo10): Turn into...
15345 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
15346 (tldm_add32): Merge into...
15347 (tldm_add64): Likewise.
15348 (tldm_add<P:mode>): ...this and use Pmode throughout.
15349 (tldm_call32): Merge into...
15350 (tldm_call64): Likewise.
15351 (tldm_call<P:mode>): ...this and use Pmode throughout.
15352 (tldo_hix22): Turn into...
15353 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
15354 (tldo_lox10): Turn into...
15355 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
15356 (tldo_add32): Merge into...
15357 (tldo_add64): Likewise.
15358 (tldo_add<P:mode>): ...this and use Pmode throughout.
15359 (tie_hi22): Turn into...
15360 (tie_hi22<P:mode>): ...this and use Pmode throughout.
15361 (tie_lo10): Turn into...
15362 (tie_lo10<P:mode>): ...this and use Pmode throughout.
15363 (tie_ld64): Use DImode throughout.
15364 (tie_add32): Merge into...
15365 (tie_add64): Likewise.
15366 (tie_add<P:mode>): ...this and use Pmode throughout.
15367 (tle_hix22_sp32): Merge into...
15368 (tle_hix22_sp64): Likewise.
15369 (tle_hix22<P:mode>): ...this and use Pmode throughout.
15370 (tle_lox22_sp32): Merge into...
15371 (tle_lox22_sp64): Likewise.
15372 (tle_lox22<P:mode>): ...this and use Pmode throughout.
15373 (*tldo_ldub_sp32): Merge into...
15374 (*tldo_ldub_sp64): Likewise.
15375 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
15376 (*tldo_ldub1_sp32): Merge into...
15377 (*tldo_ldub1_sp64): Likewise.
15378 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
15379 (*tldo_ldub2_sp32): Merge into...
15380 (*tldo_ldub2_sp64): Likewise.
15381 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
15382 (*tldo_ldsb1_sp32): Merge into...
15383 (*tldo_ldsb1_sp64): Likewise.
15384 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
15385 (*tldo_ldsb2_sp32): Merge into...
15386 (*tldo_ldsb2_sp64): Likewise.
15387 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
15388 (*tldo_ldub3_sp64): Use DImode throughout.
15389 (*tldo_ldsb3_sp64): Likewise.
15390 (*tldo_lduh_sp32): Merge into...
15391 (*tldo_lduh_sp64): Likewise.
15392 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
15393 (*tldo_lduh1_sp32): Merge into...
15394 (*tldo_lduh1_sp64): Likewise.
15395 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
15396 (*tldo_ldsh1_sp32): Merge into...
15397 (*tldo_ldsh1_sp64): Likewise.
15398 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
15399 (*tldo_lduh2_sp64): Use DImode throughout.
15400 (*tldo_ldsh2_sp64): Likewise.
15401 (*tldo_lduw_sp32): Merge into...
15402 (*tldo_lduw_sp64): Likewise.
15403 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
15404 (*tldo_lduw1_sp64): Use DImode throughout.
15405 (*tldo_ldsw1_sp64): Likewise.
15406 (*tldo_ldx_sp64): Likewise.
15407 (*tldo_stb_sp32): Merge into...
15408 (*tldo_stb_sp64): Likewise.
15409 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
15410 (*tldo_sth_sp32): Merge into...
15411 (*tldo_sth_sp64): Likewise.
15412 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
15413 (*tldo_stw_sp32): Merge into...
15414 (*tldo_stw_sp64): Likewise.
15415 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
15416 (*tldo_stx_sp64): Use DImode throughout.
15418 2018-01-09 Sudakshina Das <sudi.das@arm.com>
15420 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
15421 check configure option to set BTI and Return Address Signing.
15422 * configure.ac: Add --enable-standard-branch-protection and
15423 --disable-standard-branch-protection.
15424 * configure: Regenerated.
15425 * doc/install.texi: Document the same.
15427 2018-01-09 Sudakshina Das <sudi.das@arm.com>
15428 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15430 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
15431 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
15432 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
15434 * config/aarch64/aarch64-bti-insert.c: New file.
15435 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
15437 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
15439 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
15440 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
15441 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
15442 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
15444 2018-01-09 Sudakshina Das <sudi.das@arm.com>
15446 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
15447 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
15448 Disable bti for -mbranch-protection=none.
15449 (aarch64_handle_standard_branch_protection): Enable bti for
15450 -mbranch-protection=standard.
15451 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
15452 -mbranch-protection.
15453 (aarch64_bti_enabled): Check if bti is enabled.
15454 * config/aarch64/aarch64.opt: Declare target variable.
15455 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
15457 2018-01-09 Sudakshina Das <sudi.das@arm.com>
15459 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
15460 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
15461 (aarch64_expand_epilogue): Likewise.
15462 (aarch64_output_mi_thunk): Likewise
15463 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
15464 TAILCALL_ADDR_REGS to x16 and x17.
15465 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
15467 2018-01-09 Sudakshina Das <sudi.das@arm.com>
15469 * config/aarch64/aarch64-option-extensions.def: Define
15470 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
15471 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
15472 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
15473 (AARCH64_FL_PREDRES): New.
15474 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
15475 AARCH64_FL_PREDRES by default.
15476 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
15478 2018-01-09 Sudakshina Das <sudi.das@arm.com>
15480 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
15482 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
15483 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
15484 * doc/invoke.texi: Document ARMv8.5-A.
15486 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
15488 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
15489 (xorsign<mode>3): Likewise.
15491 2019-01-09 Jelinek <jakub@redhat.com>
15493 PR middle-end/88758
15494 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
15495 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
15497 PR rtl-optimization/88331
15498 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
15499 not currently_expanding_to_rtl.
15501 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
15503 * doc/invoke.texi (-Os): Remove trailing spaces.
15504 (-finline-functions): Remove reference to -O2.
15506 2019-01-08 Jakub Jelinek <jakub@redhat.com>
15508 PR rtl-optimization/79593
15509 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
15511 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
15512 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
15514 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
15517 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
15521 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
15522 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
15524 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
15527 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
15528 ix86_avx_u128_mode_entry.
15530 2019-01-08 Martin Liska <mliska@suse.cz>
15532 PR tree-optimization/88753
15533 * tree-switch-conversion.c (switch_conversion::build_one_array):
15534 Come up with local variable constructor. Convert first to
15535 type of constructor values.
15537 2019-01-08 Richard Biener <rguenther@suse.de>
15539 PR tree-optimization/86554
15540 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
15541 rpo_avail): Move earlier.
15542 (visit_nary_op): When value-numbering to expressions
15543 with different overflow behavior make sure there's an
15544 available expression on the path.
15546 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
15548 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
15549 aarch64_parse_branch_protection,
15550 struct aarch64_branch_protect_type,
15551 aarch64_handle_no_branch_protection,
15552 aarch64_handle_standard_branch_protection,
15553 aarch64_validate_mbranch_protection,
15554 aarch64_handle_pac_ret_protection,
15555 aarch64_handle_attr_branch_protection,
15556 accepted_branch_protection_string,
15557 aarch64_pac_ret_subtypes,
15558 aarch64_branch_protect_types,
15559 aarch64_handle_pac_ret_leaf): Define.
15560 (aarch64_override_options_after_change_1, aarch64_override_options):
15561 Add check for accepted_branch_protection_string.
15562 (aarch64_option_save): Save accepted_branch_protection_string.
15563 (aarch64_option_restore): Save accepted_branch_protection_string.
15564 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
15565 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
15566 msign-return-address.
15567 * doc/invoke.texi: Add mbranch-protection.
15569 2019-01-08 Alan Modra <amodra@gmail.com>
15572 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
15573 Delete "unknownp" parameter. Adjust callers. Handle
15574 CONST_INT, PLUS, MINUS, and MULT.
15575 (attr_value_aligned): Renamed from or_attr_value.
15576 (min_attr_value): Return INT_MIN for unhandled rtl case..
15577 (min_fn): ..and translate to INT_MAX here.
15578 (write_length_unit_log): Modify to cope without "unknown".
15579 (write_attr_value): Handle IF_THEN_ELSE.
15581 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
15583 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
15584 optimization for masked stores.
15586 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
15588 PR middle-end/88567
15589 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
15590 output vector directly to duplicate_and_interleave instead of
15591 going through a temporary. Postpone insertion of ctor_seq to
15592 the end of the loop.
15594 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
15597 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
15598 unsigned_p. Handle signed and unsigned overflow correction as
15600 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
15602 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
15604 (add<mode>3_compareV_imm): Make this callable for expanding.
15605 (subv<GPI:mode>4): Use register_operand for operand 1. Use
15606 aarch64_plus_operand for operand 2.
15607 (subv<GPI:mode>_insn): New insn pattern.
15608 (subv<GPI:mode>_imm): Likewise.
15609 (negv<GPI:mode>3): New expand pattern.
15610 (negv<GPI:mode>_insn): New insn pattern.
15611 (negv<GPI:mode>_cmp_only): Likewise.
15612 (cmpv<GPI:mode>_insn): Likewise.
15613 (subvti4): Use register_operand for operand 1. Update call to
15614 aarch64_expand_subvti.
15615 (usubvti4): Likewise.
15616 (negvti3): New expand pattern.
15617 (negdi_carryout): New insn pattern.
15618 (negvdi_carryinV): New insn pattern.
15619 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
15620 version the named version.
15621 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
15623 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
15625 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
15627 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
15628 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
15629 (sub<mode>3_carryinCV): Delete.
15630 (sub<GPI:mode>3_carryinV): New expand pattern.
15631 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
15633 2019-01-07 Richard Biener <rguenther@suse.de>
15635 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
15636 of tree_operand_hash.
15638 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
15640 PR tree-optimization/88598
15641 * tree.h (single_nonzero_element): Declare.
15642 * tree.c (single_nonzero_element): New function.
15643 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
15644 if I is the only nonzero element of CST.
15646 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
15648 PR tree-optimization/88598
15649 * tree.h (initializer_each_zero_or_onep): Declare.
15650 * tree.c (initializer_each_zero_or_onep): New function.
15651 (signed_or_unsigned_type_for): Handle float types too.
15652 (unsigned_type_for, signed_type_for): Update comments accordingly.
15653 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
15654 x & { 0 or -1, 0 or -1, ... }.
15656 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
15658 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
15659 with x86_64-pc-linux-gnu.
15661 2019-01-07 Tom de Vries <tdevries@suse.de>
15664 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
15666 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
15669 2019-01-07 Jakub Jelinek <jakub@redhat.com>
15671 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
15672 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
15673 TARGET_AVX512F as condition.
15676 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
15677 const_not_ok_for_debug_p target hook.
15678 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
15679 on UNSPEC and subexpressions thereof if all subexpressions of the
15680 UNSPEC are CONSTANT_P.
15682 PR tree-optimization/88676
15683 * tree-ssa-phiopt.c (two_value_replacement): New function.
15684 (tree_ssa_phiopt_worker): Call it.
15687 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
15688 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
15691 * tree-vect-generic.c: Include insn-config.h and recog.h.
15692 (expand_vector_piecewise): Add defaulted ret_type argument,
15693 if non-NULL, use that in preference to type for the result type.
15694 (expand_vector_parallel): Formatting fix.
15695 (do_vec_conversion, do_vec_narrowing_conversion,
15696 expand_vector_conversion): New functions.
15697 (expand_vector_operations_1): Call expand_vector_conversion
15698 for VEC_CONVERT ifn calls.
15699 * internal-fn.def (VEC_CONVERT): New internal function.
15700 * internal-fn.c (expand_VEC_CONVERT): New function.
15701 * fold-const-call.c (fold_const_vec_convert): New function.
15702 (fold_const_call): Use it for CFN_VEC_CONVERT.
15703 * doc/extend.texi (__builtin_convertvector): Document.
15705 2019-01-07 Tom de Vries <tdevries@suse.de>
15707 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
15708 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
15709 vector_red_partition, vector_red_sym): New global variables.
15710 (nvptx_option_override): Initialize vector_red_sym.
15711 (nvptx_declare_function_name): Restore red_partition register.
15712 (nvptx_file_end): Emit code to declare the vector reduction variables.
15713 (nvptx_output_red_partition): New function.
15714 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
15715 large vector reductions.
15716 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
15717 (nvptx_init_builtins): Add VECTOR_ADDR.
15718 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
15719 Handle nvptx_expand_shared_addr.
15720 (nvptx_get_shared_red_addr): Add vector argument and handle large
15722 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
15724 (nvptx_goacc_reduction_init): Likewise.
15725 (nvptx_goacc_reduction_fini): Likewise.
15726 (nvptx_goacc_reduction_teardown): Likewise.
15727 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
15728 init,fini,teardown}.
15729 (nvptx_init_axis_predicate): Initialize vector_red_partition.
15730 (nvptx_set_current_function): Init vector_red_partition.
15731 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
15732 (nvptx_red_partition): New insn.
15733 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
15735 2019-01-07 Tom de Vries <tdevries@suse.de>
15738 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
15741 2019-01-07 Tom de Vries <tdevries@suse.de>
15743 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
15744 (nvptx_option_override): Init oacc_bcast_partition.
15745 (nvptx_init_oacc_workers): New function.
15746 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
15747 (nvptx_needs_shared_bcast): New function.
15748 (nvptx_find_par): Generalize to enable vectors to use shared-memory
15749 to propagate state.
15750 (nvptx_shared_propagate): Initialize vector bcast partition and
15751 synchronization state.
15752 (nvptx_single): Generalize to enable vectors to use shared-memory
15753 to propagate state.
15754 (nvptx_process_pars): Likewise.
15755 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
15756 * config/nvptx/nvptx.h (struct machine_function): Add
15757 bcast_partition and sync_bar members.
15759 2019-01-07 Tom de Vries <tdevries@suse.de>
15761 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
15762 (nvptx_apply_dim_limits): New function.
15763 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
15766 2019-01-07 Tom de Vries <tdevries@suse.de>
15768 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
15769 as late as possible.
15771 2019-01-07 Tom de Vries <tdevries@suse.de>
15773 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
15774 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
15775 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
15776 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
15777 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
15779 2019-01-07 Tom de Vries <tdevries@suse.de>
15781 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
15783 2019-01-07 Tom de Vries <tdevries@suse.de>
15785 * omp-offload.c (oacc_get_min_dim): New function.
15786 * omp-offload.h (oacc_get_min_dim): Declare.
15788 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
15791 * config/i386/i386.c (function_value_ms_64): Return small sturct in
15792 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
15794 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
15798 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
15800 * ipa-inline.c (edge_badness): Use inlined_time instead of
15801 inline_summaries->get.
15803 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
15805 * opts.c (enable_fdo_optimizations): Enable
15806 version-loops-for-strides, loop-interchange, unrol-and-jam
15807 and tree-loop-distribution.
15808 * invoke.texi: Document newly enabled options.
15810 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
15812 * doc/invoke.texi (max-inline-insns-small): New parameters.
15813 * ipa-inline.c (want_early_inline_function_p): simplify.
15814 (want_inline_small_function_p): Fix pasto from previous patch;
15815 use max-inline-insns-small bound.
15816 * params.def (max-inline-insns-small): New param.
15817 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
15818 variables correctly.
15820 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
15822 * doc/invoke.texi: Document max-inline-insns-size,
15823 uninlined-function-insns, uninlined-function-time,
15824 uninlined-thunk-insns and uninlined-thunk-time.
15825 * params.def: Add max-inline-insns-size,
15826 uninlined-function-insns, uninlined-function-time,
15827 uninlined-thunk-insns and uninlined-thunk-time.
15828 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
15830 * ipa-inline.c (can_inline_edge_by_limits_p,
15831 want_inline_small_function_p): Use new parameters.
15833 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
15835 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
15837 2019-01-05 Jakub Jelinek <jakub@redhat.com>
15839 PR middle-end/82564
15841 * expr.c (expand_assignment): For calls returning VLA structures
15842 if to_rtx is not a MEM, force it into a stack temporary.
15845 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
15846 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
15847 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
15848 subexpressions of both operands.
15849 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
15850 subrtxes are CONSTANT_P.
15851 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
15852 2018-11-09 changes.
15854 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
15856 * params.def (hot-bb-count-ws-permille): Set to 990.
15858 2019-01-04 Martin Sebor <msebor@redhat.com>
15861 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
15864 2019-01-04 Martin Sebor <msebor@redhat.com>
15867 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
15869 2019-01-04 Jakub Jelinek <jakub@redhat.com>
15871 * gdbinit.in: Turn off pagination for the skip commands, restore
15872 it to previous state afterwards.
15874 2019-01-04 Jakub Jelinek <jakub@redhat.com>
15877 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
15878 of GET_MODE (opN) as modes of the libcall arguments.
15880 2019-01-04 Jan Beulich <jbeulich@suse.com>
15882 * config/i386/sse.md
15883 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
15884 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
15885 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
15886 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
15887 avx512f_vmcmp<mode>3<round_saeonly_name>,
15888 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
15889 avx512f_maskcmp<mode>3,
15890 <avx512>_cvt<ssemodesuffix>2mask<mode>,
15891 <avx512>_cvt<ssemodesuffix>2mask<mode>,
15892 *<avx512>_cvtmask2<ssemodesuffix><mode>,
15893 *<avx512>_cvtmask2<ssemodesuffix><mode>,
15894 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
15895 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
15896 <avx512>_gt<mode>3<mask_scalar_merge_name>,
15897 <avx512>_gt<mode>3<mask_scalar_merge_name>,
15898 <avx512>_testm<mode>3<mask_scalar_merge_name>,
15899 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
15900 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
15901 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
15902 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
15903 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
15904 avx512cd_maskb_vec_dup<mode>,
15905 avx512cd_maskw_vec_dup<mode>,
15906 avx512dq_fpclass<mode><mask_scalar_merge_name>,
15907 avx512dq_vmfpclass<mode>,
15908 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
15911 2019-01-03 Martin Sebor <msebor@redhat.com>
15913 PR tree-optimization/88659
15914 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
15916 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
15918 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
15919 unaligned vsx and avoid lxvd2x/stxvd2x.
15920 (gen_lvx_v4si_move): New function.
15922 2019-01-03 Tom de Vries <tdevries@suse.de>
15924 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
15925 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
15927 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
15929 2019-01-03 Tom de Vries <tdevries@suse.de>
15931 * config/nvptx/nvptx.c (struct offload_attrs): New.
15932 (populate_offload_attrs): New function. Factor mask extraction out of
15933 nvptx_reorg. Add extraction of dimensions.
15934 (nvptx_reorg): Use populate_offload_attrs.
15936 2019-01-03 Tom de Vries <tdevries@suse.de>
15938 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
15939 cases for oacc_min_dims_p and routine_p. Add asserts for
15940 oacc_default_dims_p and offload_region_p.
15942 2019-01-03 Tom de Vries <tdevries@suse.de>
15944 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
15945 factored out of ...
15946 (nvptx_goacc_validate_dims): ... here.
15948 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
15950 PR tree-optimization/85574
15951 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
15953 (struct ssa_equip_hash_traits): Declare.
15954 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
15956 2019-01-03 Jakub Jelinek <jakub@redhat.com>
15959 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
15960 change it to qualified_type.
15962 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
15964 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
15965 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
15967 2019-01-02 Martin Sebor <msebor@redhat.com>
15968 Jeff Law <law@redhat.com>
15970 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
15971 (get_range_strlen_tree): Update appropriately.
15973 * gimple-fold.h (get_range_strlen): Drop unused last argument.
15975 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
15976 rather than set_range_info.
15977 * tree-ssa-strlen.c (set_strlen_range): Extracted from
15978 maybe_set_strlen_range. Handle potentially boundary crossing
15979 cases more conservatively.
15980 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
15981 Call set_strlen_range.
15982 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
15984 PR middle-end/88663
15985 * gimple-fold.c (get_range_strlen): Update prototype to no longer
15986 need the flexp argument.
15987 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
15988 from calls to get_range_strlen. Update comments. Just update
15989 VAL for an unterminated const char array and let the reset of the
15990 code handle it normally. No longer try to set *flexp. Adjust
15992 (get_range_strlen): Update for the new get_range_strlen API.
15993 (get_maxval_strlen): Similarly.
15994 (gimple_fold_builtin_strlen): Handle update meaning of return value
15995 from get_range_strlen.
15996 * gimple-ssa-sprintf.c (get_string_length): Update for the new
15997 get_range_strlen API.
15999 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
16002 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
16003 false at WPA time when body was removed.
16005 2019-01-02 Martin Liska <mliska@suse.cz>
16007 PR tree-optimization/88650
16008 * predict.c (set_even_probabilities): Calculate probability
16009 remainer only when really used.
16011 2019-01-02 Richard Biener <rguenther@suse.de>
16013 PR middle-end/88651
16014 * tree-data-ref.c (analyze_subscript_affine_affine): Use
16015 widest_ints when mangling max_stmt_execution results.
16017 2019-01-02 Richard Biener <rguenther@suse.de>
16019 PR tree-optimization/88621
16020 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
16021 bitfields when canoncalizing.
16023 2019-01-02 Richard Biener <rguenther@suse.de>
16026 * config/i386/x86-tune-costs.h (intel_cost): Adjust
16027 cost of cheap SSE instruction.
16029 2019-01-02 Richard Biener <rguenther@suse.de>
16032 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
16033 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
16035 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
16036 set after UIDs before splitting them.
16038 2019-01-01 Martin Sebor <msebor@redhat.com>
16039 Jeff Law <law@redhat.com>
16041 * gimple-fold.c (get_range_strlen_tree): Record if the computed
16042 length is optimistic. If it is, then arrange to compute the
16043 conservative length as well.
16045 * gimple-fold.h (get_range_strlen): Update prototype.
16046 * builtins.c (check_access): Update call to get_range_strlen to use
16047 c_strlen_data pointer. Change various variable accesses to instead
16048 pull data from the c_strlen_data structure.
16049 (check_strncat_sizes, expand_builtin_strncat): Likewise.
16050 * calls.c (maybe_warn_nonstring_arg): Likewise.
16051 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
16052 minimum length if maximum lengh is unknown.
16053 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
16054 that used c_strlen, it's no longer needed. Restructure slightly.
16055 (format_string): Set unlikely range appropriately.
16056 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
16058 (get_range_strlen): Accept c_strlen_data pointer for external
16059 call sites as well. Pass through to call to internal get_range_strlen.
16060 Adjust minlen, maxlen and maxbound as needed.
16061 (get_maxval_strlen): Update comments.
16062 (gimple_fold_builtin_strlen): Update call to get_range_strlen
16063 to use c_strlen_data pointer. Change variable accesses to instead
16064 use c_strlen_data data members.
16066 * gimple-fold.c (get_range_strlen): Update prototype.
16067 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
16068 local variables. Use pdata to return information to caller.
16069 Update calls to get_range_strlen. Update pdata->maxbound.
16070 (get_range_strlen -- static version): Similarly.
16071 (get_range_strlen -- extern version): Update for internal
16072 get_range_strlen API change. Convert to external data format.
16073 (get_maxval_strlen): Similarly.
16075 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
16077 * coverage.c (get_coverage_counts): Use current_function_decl.
16078 * profile.c (read_thunk_profile): New function.
16079 (branch_prob): Add THUNK parameter.
16080 * tree-profile.c (tree_profiling): Handle thunks.
16081 * value-prof.c (init_node_map): Handle thunks.
16082 * value-prof.h (branch_prob): Upate prototype.
16083 (read_thunk_profile): Declare.
16085 2019-01-01 Jakub Jelinek <jakub@redhat.com>
16087 Update copyright years.
16089 * gcc.c (process_command): Update copyright notice dates.
16090 * gcov-dump.c (print_version): Ditto.
16091 * gcov.c (print_version): Ditto.
16092 * gcov-tool.c (print_version): Ditto.
16093 * gengtype.c (create_file): Ditto.
16094 * doc/cpp.texi: Bump @copying's copyright year.
16095 * doc/cppinternals.texi: Ditto.
16096 * doc/gcc.texi: Ditto.
16097 * doc/gccint.texi: Ditto.
16098 * doc/gcov.texi: Ditto.
16099 * doc/install.texi: Ditto.
16100 * doc/invoke.texi: Ditto.
16102 Copyright (C) 2019 Free Software Foundation, Inc.
16104 Copying and distribution of this file, with or without modification,
16105 are permitted in any medium without royalty provided the copyright
16106 notice and this notice are preserved.