d8998f6b8088de8241096e937aaf8d48b40d92f0
[gcc.git] / gcc / ChangeLog
1 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
2
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
11 QHSI implicit.
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.
19
20 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
21
22 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
23 Explicitly use <MOVEP1:MODE> for the mode attribute.
24
25 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
26
27 PR bootstrap/91176
28 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
29
30 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
31
32 PR target/91050
33 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
34 .machine directive.
35
36 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
37
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.
45
46 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
47
48 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
49 to 0.
50
51 2019-07-15 Richard Biener <rguenther@suse.de>
52
53 PR middle-end/91162
54 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
55 node make sure to replace all uses with something valid.
56
57 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
58
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.
66
67 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
68
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.
77
78 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
79
80 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
81 fopen and fclose to their respective types.
82 (DotFn.invoke): Ditto.
83
84 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
85
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
91 indexing.
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
101 array_index.
102 (edge_badness): Likewise.
103 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
104
105 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
106
107 PR target/91148
108 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
109 superfluous "builtin function" phrasing.
110
111 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
112
113 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
114 Break out from ...
115 (aliasing_component_refs_walk): Break out from ...
116 (aliasing_component_refs_p): ... here.
117
118 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
119
120 PR target/91148
121 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
122 "builtin function" phrasing.
123
124 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
125
126 PR target/90723
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.
132
133 2019-07-13 Jakub Jelinek <jakub@redhat.com>
134
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.
152
153 2019-07-12 Martin Sebor <msebor@redhat.com>
154
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.
159
160 2019-07-12 Jan Hubicka <jh@suse.cz>
161
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.
166
167 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
168
169 PR tree-optimization/89430
170 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
171 store elimination for local variable without address escape.
172
173 2019-07-12 Jeff Law <law@redhat.com>
174
175 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
176 for the ".far" section.
177
178 2019-07-12 Richard Biener <rguenther@suse.de>
179
180 PR tree-optimization/91145
181 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
182 chain check.
183
184 2019-07-12 Alexandre Oliva <oliva@adacore.com>
185
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.
189
190 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
191
192 * vector-builder.h (vector_builder::elt): Allow already-supplied
193 elements to be read back before building is complete.
194
195 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
196
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.
201
202 2019-07-12 Richard Biener <rguenther@suse.de>
203
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.
211
212 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
213
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.
216
217 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
218
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.
229
230 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
231
232 * doc/md.texi: Document that @ patterns can have different
233 numbers of operands.
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.
238
239 2019-07-12 Jakub Jelinek <jakub@redhat.com>
240
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):
247 Likewise.
248 * omp-low.c (scan_sharing_clauses): Likewise.
249 * tree-nested.c (convert_nonlocal_omp_clauses,
250 convert_local_omp_clauses): Likewise.
251
252 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
253
254 * gcc/cfgrtl.c (print_rtl_with_bb): Emit a hint if the
255 fallthrough target of current basic block isn't the placed
256 right next.
257
258 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
259
260 PR target/90980
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.
269
270 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
271
272 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
273
274 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
275
276 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
277 Handle Modula-2.
278
279 2019-07-11 Jakub Jelinek <jakub@redhat.com>
280
281 PR target/91124
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
288 define_insns.
289 (ufix_truncv2dfv2si2<mask_name>): Change into ...
290 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
291 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
292 define_insns.
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
301 changes.
302
303 PR target/91124
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.
355
356 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
357
358 * tree-vrp.c (intersect_ranges): If we know the intersection is
359 empty, there is no need to conservatively add anything else to
360 the set.
361
362 2019-07-11 Richard Biener <rguenther@suse.de>
363
364 PR middle-end/91131
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.
368
369 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
370
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
378 argument.
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.
384
385 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
386
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.
391
392 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
393
394 * fold-const.c (fold_relational_const): Fix folding of
395 vector-to-scalar NE_EXPRs.
396 (test_vector_folding): Add more tests.
397
398 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
399
400 PR target/91060
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>.
407
408 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
409
410 PR target/91102
411 * lra-constraints.c (process_alt_operands): Don't match user
412 defined regs only if they are early clobbers.
413
414 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
415
416 * wide-int.h (wi::lshift): Reject negative values for the fast path.
417
418 2019-07-10 Richard Biener <rguenther@suse.de>
419
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.
424
425 2019-07-10 Richard Biener <rguenther@suse.de>
426
427 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
428 LHS whenever possible.
429
430 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
431
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
437 available.
438 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
439 the types and nonoverlapping_component_refs_p_1 to disambiguate.
440
441 2019-07-09 Martin Sebor <msebor@redhat.com>
442
443 PR tree-optimization/90989
444 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
445 optimization to just single character stores.
446
447 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
448
449 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
450 Swap operands only once.
451
452 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
453
454 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
455 for both call instructions.
456
457 2019-07-09 John Darrington <john@darrington.wattle.id.au>
458
459 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
460 rather than GET_MODE_BITSIZE to better handle partial integer modes.
461
462 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
463
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.
468
469 2019-07-09 Martin Sebor <msebor@redhat.com>
470
471 PR c++/61339
472 * auto-profile.c: Change class-key of PODs to struct and others
473 to class.
474 * basic-block.h: Same.
475 * bitmap.c (bitmap_alloc): Same.
476 * bitmap.h: 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.
489 (insert_save): Same.
490 (add_used_regs): Same.
491 * cfg.c (get_bb_copy): Same.
492 (set_loop_copy): Same.
493 * cfg.h: Same.
494 * cfganal.h: 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.
503 (split_edge): Same.
504 (make_forwarder_block): Same.
505 (force_nonfallthru): Same.
506 (duplicate_block): Same.
507 (lv_flush_pending_stmts): Same.
508 * cfghooks.h: 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.
529 (glb_enum_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.
540 (delete_loop): Same.
541 (cancel_loop): Same.
542 (verify_loop_structure): Same.
543 (loop_preheader_edge): Same.
544 (loop_exit_edge_p): Same.
545 (single_exit): 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.
558 (get_loop): Same.
559 (loop_depth): Same.
560 (loop_outer): 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.
572 (remove_path): Same.
573 (place_new_loop): Same.
574 (add_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.
579 (loopify): Same.
580 (unloop): 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.
595 * cgraph.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.
606 * coretypes.h: 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.
633 (df_rd_free): Same.
634 (df_rd_dump_defs_set): Same.
635 (df_rd_top_dump): Same.
636 (df_lr_alloc): Same.
637 (df_lr_reset): Same.
638 (df_lr_local_compute): Same.
639 (df_lr_init): Same.
640 (df_lr_confluence_n): Same.
641 (df_lr_free): 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.
654 (df_mir_init): Same.
655 (df_mir_confluence_n): Same.
656 (df_mir_free): 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.
664 (df_md_alloc): Same.
665 (df_md_simulate_one_insn): Same.
666 (df_md_reset): Same.
667 (df_md_init): Same.
668 (df_md_free): 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.
691 * doc/tm.texi: Same.
692 * dse.c (record_store): Same.
693 * dumpfile.h: 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.
699 * emit-rtl.h: 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.
710 (emit_cstore): 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.
719 (try_casesi): Same.
720 * flags.h: 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.
730 (assign_temp): Same.
731 (combine_temp_slots): Same.
732 (update_temp_slot_address): Same.
733 (preserve_temp_slots): Same.
734 * function.h: Same.
735 * fwprop.c: Same.
736 * gcc-rich-location.h: Same.
737 * gcov.c: Same.
738 * genattrtab.c (check_attr_test): Same.
739 (check_attr_value): Same.
740 (convert_set_attr_alternative): Same.
741 (convert_set_attr): Same.
742 (check_defs): Same.
743 (copy_boolean): Same.
744 (get_attr_value): Same.
745 (expand_delays): Same.
746 (make_length_attrs): Same.
747 (min_fn): 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.
753 (gen_attr): Same.
754 (compares_alternatives_p): Same.
755 (gen_insn): Same.
756 (gen_delay): 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.
768 (find_attr): 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.
774 (handle_arg): Same.
775 * genextract.c (gen_insn): Same.
776 (VEC_char_to_string): Same.
777 * genmatch.c (print_operand): Same.
778 (lower): Same.
779 (parser::parse_operation): Same.
780 (parser::parse_capture): Same.
781 (parser::parse_c_expr): Same.
782 (parser::parse_simplify): Same.
783 (main): 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.
791 (gen_expand): 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.
805 (process_rtx): 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.
814 (subst_dup): Same.
815 (process_define_cond_exec): Same.
816 (mnemonic_htab_callback): Same.
817 (gen_mnemonic_attr): Same.
818 (read_md_rtx): Same.
819 * ggc-page.c: 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.
836 (fuse_loops): 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.
858 (split_group): 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.
863 (is_max): 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.
879 * hsa-brig.c: 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.
885 (test_lexer): Same.
886 * input.h: 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.
1031 * ipa-ref.h: 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.
1041 * ira-int.h: Same.
1042 * ira.c (setup_reg_equiv): Same.
1043 (print_insn_chain): Same.
1044 (ira): Same.
1045 * loop-doloop.c (doloop_condition_get): Same.
1046 (add_test): 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.
1053 (find_exits): 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.
1071 (iv_subreg): Same.
1072 (iv_extend): Same.
1073 (iv_neg): Same.
1074 (iv_add): Same.
1075 (iv_mult): Same.
1076 (get_biv_step): Same.
1077 (record_iv): Same.
1078 (analyzed_for_bivness_p): Same.
1079 (record_biv): Same.
1080 (iv_analyze_biv): Same.
1081 (iv_analyze_expr): Same.
1082 (iv_analyze_def): Same.
1083 (iv_analyze_op): Same.
1084 (iv_analyze): Same.
1085 (iv_analyze_result): Same.
1086 (biv_p): 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.
1110 (form_sum): 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.
1117 * lra-int.h: 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.
1128 (input_node): Same.
1129 (input_varpool_node): Same.
1130 (input_ref): Same.
1131 (input_edge): Same.
1132 (input_cgraph_1): Same.
1133 (input_refs): 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.
1152 (input_cfg): 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.
1222 * optinfo.h: Same.
1223 * poly-int.h: 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.
1236 * predict.h: 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.
1253 * reload.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.
1259 (find_reg): 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.
1272 * rtl.h: 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.
1290 (init_deps): Same.
1291 (init_deps_reg_last): Same.
1292 (free_deps): 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.
1297 (deps_join): 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.
1312 * selftest.h: 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.
1317 * sreal.h: Same.
1318 * streamer-hooks.h: Same.
1319 * target-globals.c (save_target_globals): Same.
1320 * target-globals.h: Same.
1321 * target.def: Same.
1322 * target.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.
1327 * toplev.c: 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.
1335 (remove_bb): 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.
1343 (print_loop): Same.
1344 (print_loops): Same.
1345 (debug): Same.
1346 (debug_loops): Same.
1347 * tree-cfg.h: 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.
1410 (free_rdg): 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.
1436 (num_phis): 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.
1505 (scev_reset): 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.
1524 (stmt_cost): 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.
1544 (execute_sm): 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.
1568 (name_info): Same.
1569 (stmt_after_inc_pos): Same.
1570 (contains_abnormal_ssa_name_p): Same.
1571 (niter_for_exit): Same.
1572 (find_bivs): Same.
1573 (mark_bivs): 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.
1589 (iv_period): 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.
1602 (iv_ca_cost): 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.
1608 (iv_ca_new): Same.
1609 (iv_ca_free): Same.
1610 (iv_ca_dump): 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.
1635 (ip_end_pos): 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.
1715 (split_loop): 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.
1734 (get_ops): 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.
1804 (iv_phi_p): 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.
1898 * wide-int.h: Same.
1899
1900 2019-07-09 Martin Sebor <msebor@redhat.com>
1901
1902 PR c++/61339
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.
1909 * bitmap.h: Same.
1910 * cfgexpand.c (set_rtl): Same.
1911 (expand_one_stack_var_at): Same.
1912 * cfghooks.h: Same.
1913 * cfgloop.h: Same.
1914 * cgraph.h: Same.
1915 * config/i386/i386.h: Same.
1916 * df-problems.c (df_print_bb_index): Same.
1917 * df-scan.c: 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.
1924 * dojump.h: Same.
1925 * dse.c: Same.
1926 * dump-context.h: Same.
1927 * dumpfile.h: Same.
1928 * dwarf2out.c: Same.
1929 * edit-context.c: Same.
1930 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
1931 * flags.h: Same.
1932 * function.c (assign_stack_local): Same.
1933 * function.h: Same.
1934 * gcc.c: 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):
1960 Same.
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.
1969 * hash-map.h: Same.
1970 * hash-set-tests.c (test_set_of_strings): Same.
1971 * hsa-brig.c: Same.
1972 * hsa-common.h: Same.
1973 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
1974 * input.c (assert_loceq): Same.
1975 * input.h: Same.
1976 * ipa-cp.c: Same.
1977 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
1978 * ipa-fnsummary.h: Same.
1979 * ipa-inline.h: Same.
1980 * ipa-prop.h: Same.
1981 * ipa-split.c (visit_bb): Same.
1982 * ira-int.h (minmax_set_iter_next): Same.
1983 * loop-invariant.c: Same.
1984 * loop-iv.c: Same.
1985 * lra-eliminations.c: Same.
1986 * lra-int.h: 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.
1995 * optabs.h: Same.
1996 * opts.c (wrap_help): Same.
1997 * poly-int.h: Same.
1998 * predict.c (predict_paths_leading_to_edge): Same.
1999 * pretty-print.h: Same.
2000 * profile-count.h: Same.
2001 * read-md.h: Same.
2002 * read-rtl-function.c: Same.
2003 * ree.c: Same.
2004 * reginfo.c: Same.
2005 * regrename.c: Same.
2006 * regrename.h: Same.
2007 * reload.h: Same.
2008 * rtl-iter.h: Same.
2009 * rtl.h (costs_add_n_insns): Same.
2010 * sanopt.c: Same.
2011 * sched-int.h: Same.
2012 * sel-sched-ir.h: Same.
2013 * selftest.h: Same.
2014 * sese.h (vec_find): Same.
2015 * stmt.c: 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.
2046 * vec.c: Same.
2047 * wide-int-bitmask.h: Same.
2048 * wide-int.h (decompose): Same.
2049
2050 2019-07-09 Richard Biener <rguenther@suse.de>
2051
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.
2055
2056 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
2057
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.
2066
2067 2019-07-09 Richard Biener <rguenther@suse.de>
2068
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):
2074 Make static.
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.
2078
2079 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
2080
2081 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
2082
2083 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
2084
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.
2090 * config/arm/arm.c
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.
2103
2104 2019-07-09 Richard Biener <rguenther@suse.de>
2105
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.
2111
2112 2019-07-09 Martin Liska <mliska@suse.cz>
2113
2114 * doc/extend.texi: Document influence on loop
2115 optimizers.
2116
2117 2019-07-09 Martin Liska <mliska@suse.cz>
2118
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.
2122
2123 2019-07-09 Martin Liska <mliska@suse.cz>
2124
2125 * doc/invoke.texi: Add link from -fprofile-dir option.
2126 Use better wording for 'gcno filename'.
2127
2128 2019-07-08 Martin Sebor <msebor@redhat.com>
2129
2130 PR middle-end/71924
2131 PR middle-end/90549
2132 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
2133 comment.
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.
2141
2142 2019-07-08 Jakub Jelinek <jakub@redhat.com>
2143
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
2148 for each operand.
2149
2150 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
2151
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.
2159
2160 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
2161
2162 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
2163 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
2164 .machine string.
2165
2166 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
2167
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
2172 OPT_LEVELS_ALL.
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.
2184
2185 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
2186
2187 * config/s390/s390.c (s390_shift_truncation_mask): Define.
2188 (TARGET_SHIFT_TRUNCATION_MASK): Define.
2189
2190 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
2191
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.
2201
2202 2019-07-08 Joern Rennecke <joern.rennecke@riscy-ip.com>
2203
2204 Avoid clash with system header declaration.
2205 * testsuite/gcc.dg/vect/slp-reduc-sad.c (uint32_t):
2206 Remove unused declaration.
2207
2208 2019-07-08 Andrew Waterman <andrew@sifive.com>
2209 Jim Wilson <jimw@sifive.com>
2210
2211 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
2212 bitsize instead of BITS_PER_WORD.
2213 gcc/testsuite/
2214
2215 2019-07-08 Martin Liska <mliska@suse.cz>
2216
2217 * collect2.c (defined): Revert to before r254460.
2218 (scan_prog_file): Revert to before r254460.
2219
2220 2019-07-08 Richard Biener <rguenther@suse.de>
2221
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.
2232
2233 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
2234
2235 * doc/install.texi (bootstrap-Og): Document.
2236
2237 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
2238
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.
2246
2247 2019-07-07 Jeff Law <law@redhat.com>
2248
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.
2252
2253 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
2254
2255 * config/darwin.c (darwin_override_options): Make a final check on PIC
2256 options.
2257
2258 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
2259
2260 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
2261 on for kernel code.
2262
2263 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
2264
2265 PR target/91068
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.
2269
2270 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
2271
2272 * config/mips/mips.c (mips_split_move): Zero-initialize addr
2273 and check whether addr.reg is nonnull before using it.
2274
2275 2019-07-06 Jakub Jelinek <jakub@redhat.com>
2276
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.
2283
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.
2290
2291 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
2292
2293 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
2294 operand 1.
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.
2298
2299 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
2300
2301 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
2302 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
2303 of .md attributes.
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.
2314
2315 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
2316
2317 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
2318 specify the mode iterator referenced by <mode>, giving...
2319 (*push1_h8300hs_<QHI:mode>): ...this.
2320
2321 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
2322
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.
2336
2337 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
2338
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
2344 <SIDI:cas_cmp_str>.
2345
2346 2019-07-06 Jakub Jelinek <jakub@redhat.com>
2347
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
2362 loop.
2363 (lower_omp_for_scan): Handle worksharing loop composited with simd.
2364
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].
2369
2370 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
2371
2372 * config/rs6000/rs6000-logue.c: Remove unused code.
2373
2374 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
2375
2376 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
2377
2378 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
2379
2380 PR target/90712
2381 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
2382 check with a frame laid out check.
2383
2384 2019-07-05 Richard Biener <rguenther@suse.de>
2385
2386 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
2387 when comparing against a store with possibly the same value.
2388
2389 2019-07-05 Richard Biener <rguenther@suse.de>
2390
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
2396 it down.
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):
2401 Likewise.
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.
2409
2410 2019-07-05 Richard Biener <rguenther@suse.de>
2411
2412 PR tree-optimization/91091
2413 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
2414 accesses can happen with -fno-strict-aliasing.
2415
2416 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
2417
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.
2423
2424 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
2425
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.
2435
2436 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
2437
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.
2444
2445 2019-07-04 Jakub Jelinek <jakub@redhat.com>
2446
2447 PR middle-end/78884
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.
2453
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.
2459
2460 2019-07-04 Jan Hubicka <jh@suse.cz>
2461
2462 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
2463 Fix check for match in the ref walk.
2464
2465 2019-07-04 Martin Liska <mliska@suse.cz>
2466
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.
2472
2473 2019-07-04 Alexandre Oliva <oliva@adacore.com>
2474
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
2479 TRY_FINALLY_EXPR.
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.
2486
2487 2019-07-04 Richard Biener <rguenther@suse.de>
2488
2489 PR ipa/91062
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
2493 honor it.
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.
2499
2500 2019-07-04 Richard Biener <rguenther@suse.de>
2501
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.
2512
2513 2019-07-04 Jan Hubicka <jh@suse.cz>
2514
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.
2522
2523 2019-07-04 Richard Biener <rguenther@suse.de>
2524
2525 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
2526 argument.
2527 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
2528 globals into...
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.
2535
2536 2019-07-04 Jakub Jelinek <jakub@redhat.com>
2537
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.
2541 Formatting fix.
2542
2543 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2544
2545 PR target/88833
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
2557 to true.
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.
2561
2562 2019-07-04 Jakub Jelinek <jakub@redhat.com>
2563
2564 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
2565 in worksharing loop scans.
2566
2567 PR tree-optimization/91074
2568 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
2569 temporary.
2570
2571 PR rtl-optimization/90756
2572 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
2573 for VECTOR_TYPE_P.
2574
2575 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
2576
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
2582 define_expand.
2583 * config/aarch64/aarch64-simd.md: Likewise.
2584
2585 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
2586
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
2590 clauses.
2591 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
2592 DARWIN_NOPIE_SPEC.
2593
2594 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
2595
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.
2604
2605 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
2606
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):
2612 Likewise.
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):
2626 Likewise.
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.
2631
2632 2019-07-03 Mark Wielaard <mark@klomp.org>
2633
2634 PR debug/90981
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
2637 addresses.
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.
2642
2643 2019-07-03 Richard Biener <rguenther@suse.de>
2644
2645 PR middle-end/91069
2646 * match.pd (vec_perm -> bit_insert): Fix element read from
2647 first vector.
2648
2649 2019-07-03 Martin Liska <mliska@suse.cz>
2650
2651 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
2652 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
2653 condition.
2654 * generic-match-head.c: Include dbgcnt.h.
2655 * gimple-match-head.c: Likewise.
2656
2657 2019-07-03 Martin Liska <mliska@suse.cz>
2658
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.
2667 * tree-profile.c:
2668 (gimple_init_gcov_profiler): Rename variables from one_value
2669 to topn_values.
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.
2685
2686 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
2687
2688 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
2689 if it has the DW_AT_data_member_location attribute.
2690
2691 2019-07-03 Richard Biener <rguenther@suse.de>
2692
2693 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
2694 dumping.
2695
2696 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
2697
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.
2701
2702 2019-07-03 Martin Liska <mliska@suse.cz>
2703
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
2710 and detect ZSTD.
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.
2725
2726 2019-07-03 Martin Liska <mliska@suse.cz>
2727
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
2732 and minor_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
2737 minor_version.
2738 (produce_asm_for_decls): Likewise.
2739 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
2740 type.
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.
2745
2746 2019-07-03 Martin Liska <mliska@suse.cz>
2747
2748 * lra-eliminations.c (eliminate_regs_in_insn): Remove
2749 dead assignemts.
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
2754 force_expand_binop.
2755
2756 2019-07-03 Martin Liska <mliska@suse.cz>
2757
2758 PR tree-optimization/90892
2759 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
2760 in string constants.
2761
2762 2019-07-03 Martin Liska <mliska@suse.cz>
2763
2764 PR middle-end/90899
2765 * multiple_target.c (create_dispatcher_calls): Add to comdat
2766 group only if set for ifunc.
2767
2768 2019-07-03 Martin Liska <mliska@suse.cz>
2769
2770 PR target/88056
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.
2774
2775 2019-07-03 Martin Liska <mliska@suse.cz>
2776
2777 * common.opt: Add fprofile-note.
2778 * coverage.c (coverage_init): Append the option
2779 to bbg_file_name.
2780 * doc/invoke.texi: Document -fprofile-note.
2781
2782 2019-07-03 Jakub Jelinek <jakub@redhat.com>
2783
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.
2794
2795 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
2796 clause.
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
2827 inscan reductions.
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.
2831
2832 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
2833 on worksharing loop propagate it as shared clause to containing
2834 combined parallel.
2835
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
2839 at the end.
2840
2841 2019-07-02 Joern Rennecke <joern.rennecke@riscy-ip.com>
2842
2843 PR testsuite/91065
2844 * testsuite/gcc.dg/plugin/start_unit_plugin.c: Register a root tab
2845 to reference fake_var.
2846
2847 2019-07-02 qing zhao <qing.zhao@oracle.com>
2848
2849 PR preprocessor/90581
2850 * doc/cppopts.texi: Add document for -fmax-include-depth.
2851 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
2852
2853 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
2854
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.
2874
2875 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
2876
2877 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
2878 with inlined save and restore.
2879
2880 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
2881
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.
2887
2888 2019-07-02 Richard Biener <rguenther@suse.de>
2889
2890 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
2891 TI_CHREC_KNOWN.
2892 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
2893 Define here.
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.
2903
2904 2019-07-02 Jan Hubicka <jh@suse.cz>
2905
2906 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
2907 sanity check.
2908
2909 2019-07-02 Jan Hubicka <jh@suse.cz>
2910
2911 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
2912 to ..
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.
2931
2932 2019-07-02 Jan Hubicka <jh@suse.cz>
2933
2934 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
2935 to clobber of return value.
2936
2937 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2938
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.
2941
2942 2019-07-02 Richard Biener <rguenther@suse.de>
2943
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.
2948
2949 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
2950
2951 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
2952 parameterized name.
2953 (signbit<mode>2): Use that name. Simplify.
2954
2955 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
2956
2957 PR middle-end/66726
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.
2961
2962 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
2963
2964 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
2965 parameterized name.
2966 (abs<mode>2): Use that name. Simplify.
2967
2968 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
2969
2970 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
2971 parameterized name.
2972 (neg<mode>2): Use that name. Simplify.
2973
2974 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
2975
2976 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
2977 name.
2978 (abs<mode>2): Use that name. Simplify.
2979
2980 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
2981
2982 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
2983 name.
2984 (neg<mode>2): Use that name. Simplify.
2985
2986 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
2987
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.
2993
2994 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
2995
2996 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
2997 name.
2998 (floatsi<mode>2): Use that name. Simplify.
2999
3000 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
3001
3002 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
3003 parameterized name.
3004 (extenddf<mode>2_vsx): Make this a parameterized name.
3005 (extenddf<mode>2): Use those names. Simplify.
3006
3007 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
3008
3009 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
3010 name.
3011 (eh_return): Use that name. Simplify.
3012
3013 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
3014
3015 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
3016 (doloop_end): Use that name. Simplify.
3017
3018 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
3019
3020 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
3021 parameterized name.
3022 (indirect_jump): Use that name. Simplify.
3023
3024 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
3025
3026 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
3027 parameterized name.
3028 (abs<mode>2): Use that name. Simplify.
3029
3030 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
3031
3032 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
3033 parameterized name.
3034 (fix_trunc<mode>si2): Use that name. Simplify.
3035
3036 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
3037
3038 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
3039 (allocate_stack): Use that name. Simplify.
3040
3041 2019-07-01 Martin Sebor <msebor@redhat.com>
3042
3043 PR middle-end/90923
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.
3052
3053 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
3054 John David Anglin <danglin@gcc.gnu.org>
3055
3056 PR target/90963
3057 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
3058 using saved frame pointer.
3059
3060 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
3061
3062 PR middle-end/64242
3063 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
3064 Add frame clobber and schedule blockage.
3065
3066 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
3067
3068 * doc/invoke.texi (Link Options): Further editorial changes to
3069 -flinker-output docs.
3070
3071 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
3072
3073 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
3074 Load both operands of a PLUS into registers separately.
3075
3076 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
3077
3078 * config/s390/vector.md: Fix shift count operand printing.
3079
3080 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
3081
3082 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
3083
3084 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
3085
3086 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
3087 Use recog_data to test for an output operand.
3088
3089 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
3090
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
3093 a reload or spill.
3094 (ira_get_dup_out_num): Expand comment.
3095
3096 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
3097
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
3101 the main loop.
3102
3103 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
3104
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.
3110
3111 2019-07-01 Martin Liska <mliska@suse.cz>
3112
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
3117 argument.
3118 (free_page): Likewise.
3119
3120 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
3121
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.
3125
3126 2019-07-01 Richard Biener <rguenther@suse.de>
3127
3128 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
3129 pass parameter.
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.
3133
3134 2019-07-01 Richard Biener <rguenther@suse.de>
3135
3136 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
3137 TARGET_MEM_REF handling to also handle address-taken ones.
3138
3139 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
3140
3141 * doc/sourcebuild.texi (Effective-Target Keywords, Other
3142 hardware attributes): Document avx512vp2intersect.
3143
3144 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
3145
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.
3152
3153 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
3154
3155 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
3156 to sse, sse_noavx and avx. Update all uses.
3157
3158 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
3159
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.
3186
3187 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
3188
3189 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
3190 adjustment for bit-fields to all aggregate types.
3191
3192 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
3193
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
3200 addressing.
3201 (SYMBOL_REF_PCREL_P): Likewise.
3202
3203 PR target/91009
3204 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
3205 alternative.
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.
3209
3210 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
3211
3212 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
3213 override on extra_headers.
3214
3215 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
3216
3217 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
3218 * config/darwin-driver.c (darwin_default_min_version): Remove newline
3219 from warning.
3220 (darwin_driver_init): Likewise.
3221
3222 2019-06-28 Jan Beulich <jbeulich@suse.com>
3223
3224 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
3225 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
3226 Eliminate redundant alternative.
3227
3228 2019-06-28 Jan Beulich <jbeulich@suse.com>
3229
3230 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
3231 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
3232 Use vector_operand.
3233
3234 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
3235
3236 * config/arc/arc.c (arc_rtx_costs): All short instructions are
3237 having a lower cost regardless of the speed option.
3238
3239 2019-06-28 Jan Beulich <jbeulich@suse.com>
3240
3241 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
3242 vector_operand plus, on both alternatives, "Bm" constraint.
3243
3244 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
3245
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
3250 define_expand.
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.
3256
3257 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
3258
3259 * doc/install.texi: Document --disable-tm-clone-registry.
3260
3261 2019-06-27 Jakub Jelinek <jakub@redhat.com>
3262
3263 PR c++/91024
3264 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
3265 statements.
3266
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.
3271
3272 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
3273
3274 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
3275 user-specified float mode choice for kernel mode code.
3276
3277 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
3278
3279 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
3280 spec.
3281
3282 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
3283
3284 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
3285 use longcall for 64b code.
3286
3287 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
3288
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
3298 to cpymem.
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
3303 movmem to cpymem.
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
3347 to cpymem.
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
3374 movmem to cpymem.
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.
3393
3394 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
3395
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
3399 default for Power.
3400
3401 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
3402
3403 Revert
3404 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
3405 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
3406
3407 * config.gcc(rs6000-*-*): Define target_gtfiles.
3408
3409 2019-06-27 Jan Hubicka <jh@suse.cz>
3410
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.
3419
3420 2019-06-27 Martin Liska <mliska@suse.cz>
3421
3422 PR tree-optimization/90974
3423 PR rtl-optimization/90975
3424 PR rtl-optimization/90976
3425 PR target/91016
3426 PR tree-optimization/91017
3427 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
3428 unused tmp.
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
3432 of op0 and op1.
3433 * tree-vect-loop.c (vect_create_epilog_for_reduction):
3434 Remove unused mode1.
3435 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
3436 to new_stmt_info.
3437
3438 2019-06-27 Jakub Jelinek <jakub@redhat.com>
3439
3440 PR target/90991
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
3446 misaligned_operand.
3447
3448 2019-06-27 Martin Liska <mliska@suse.cz>
3449
3450 * asan.c (asan_emit_allocas_unpoison): Remove obviously
3451 dead assignments.
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):
3472 Likewise.
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.
3487
3488 2019-06-27 Richard Biener <rguenther@suse.de>
3489
3490 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
3491
3492 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
3493
3494 PR tree-optimization/89772
3495 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
3496 out-of-bound accesses checking.
3497
3498 2019-06-27 Martin Liska <mliska@suse.cz>
3499
3500 PR tree-optimization/91014
3501 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
3502 when LHS is NULL_TREE.
3503
3504 2019-06-27 Martin Liska <mliska@suse.cz>
3505
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.
3510
3511 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
3512
3513 PR target/62147
3514 * gcc/loop-iv.c (find_simple_exit): Call finite_loop_p to update
3515 finiteness.
3516
3517 2019-06-26 Jeff Law <law@redhat.com>
3518
3519 PR tree-optimization/90883
3520 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
3521 (delete_dead_or_redundant_assignment): Likewise.
3522
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
3531 callers updated.
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
3535 store is redundant.
3536
3537 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
3538
3539 PR target/89021
3540 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
3541 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
3542
3543 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
3544
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.
3549
3550 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
3551
3552 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
3553 (powerpc*-*-*) ... to here.
3554
3555 2019-06-26 Jeff Law <law@redhat.com>
3556
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.
3560
3561 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
3562
3563 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
3564
3565 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
3566
3567 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
3568
3569 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
3570
3571 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
3572 declaration.
3573 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
3574 "static".
3575 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
3576 declaration.
3577
3578 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
3579
3580 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
3581
3582 2019-06-26 Richard Biener <rguenther@suse.de>
3583
3584 PR ipa/90982
3585 * tree-inline.c (remap_ssa_name): Copy SSA range info.
3586
3587 2019-06-26 Richard Biener <rguenther@suse.de>
3588
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.
3597
3598 2019-06-26 Jakub Jelinek <jakub@redhat.com>
3599
3600 PR target/90991
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.
3605
3606 2019-06-26 Li Jia He <helijia@linux.ibm.com>
3607
3608 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
3609 TARGET_POWERPC64.
3610 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
3611 to GPR.
3612
3613 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
3614
3615 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
3616
3617 2019-06-26 Martin Liska <mliska@suse.cz>
3618
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
3622 a epilogue cost.
3623
3624 2019-06-26 Martin Liska <mliska@suse.cz>
3625
3626 * bb-reorder.c (connect_better_edge_p): Add missing else
3627 statement in the middle of if-else statements.
3628
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>
3632
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
3643 AVX512VP2INTERSECT.
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.
3678
3679 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
3680
3681 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
3682
3683 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
3684
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
3719 to rs6000-logue.c.
3720 (machine_function): Moved to rs6000.h.
3721 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
3722 rs6000-internal.h.
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
3763 collector.
3764
3765 2019-06-25 Martin Liska <mliska@suse.cz>
3766
3767 * hash-table.c (hashtab_chk_error): Move here from ...
3768 * hash-table.h (hashtab_chk_error): ... here.
3769
3770 2019-06-25 Martin Liska <mliska@suse.cz>
3771
3772 PR tree-optimization/90978
3773 * df-scan.c (df_update_entry_block_defs): Remove dead else
3774 branch.
3775 (df_update_exit_block_uses): Likewise.
3776
3777 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
3778 Andrew Stubbs <ams@codesourcery.com>
3779
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.
3783
3784 2019-06-25 Martin Jambor <mjambor@suse.cz>
3785
3786 PR ipa/90939
3787 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
3788
3789 2019-06-25 Richard Biener <rguenther@suse.de>
3790
3791 PR tree-optimization/90930
3792 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
3793 into parallel form in the last pass instance.
3794
3795 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
3796
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.
3808
3809 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3810
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
3816 PTRDIFF_TYPE.
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
3833 warnings.
3834
3835 2019-06-25 Jan Hubicka <jh@suse.cz>
3836
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.
3839
3840 2019-06-25 Martin Liska <mliska@suse.cz>
3841
3842 PR tree-optimization/90973
3843 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
3844 of prologue and epilogue.
3845
3846 2019-06-24 Jan Hubicka <jh@suse.cz>
3847
3848 * ipa-utils.h (type_with_linkage_p): Verify that type is
3849 CXX_ODR_P.
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):
3854 Update analogously.
3855 * tree-streamer-out.c (pack_ts_type_common_value_fields):
3856 Likewise.
3857 * print-tree.c (print_node): Print cxx-odr-p
3858 and string-flag.
3859 * tree.c (need_assembler_name_p): Also check that type
3860 is CXX_ODR_TYPE_P
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.
3868
3869 2019-06-24 Richard Biener <rguenther@suse.de>
3870
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.
3874
3875 2019-06-24 Richard Biener <rguenther@suse.de>
3876
3877 PR tree-optimization/90930
3878 PR tree-optimization/90316
3879 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
3880 decrement of limit.
3881
3882 2019-06-24 Martin Sebor <msebor@redhat.com>
3883
3884 * tree-pretty-print.h: Remove unnecessary punctuation characters
3885 from a diagnostic.
3886 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
3887
3888 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
3889
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.
3893
3894 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
3895
3896 * config/rs6000/darwin.h: Handle GCC target pragma.
3897
3898 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
3899
3900 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
3901
3902 2019-06-22 Jeff Law <law@redhat.com>
3903
3904 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
3905
3906 2019-06-22 Jan Hubicka <jh@suse.cz>
3907
3908 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
3909 give up on bitfields; continue searching for different refs
3910 appearing later.
3911
3912 2019-06-21 Jakub Jelinek <jakub@redhat.com>
3913
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.
3919
3920 2019-06-21 Richard Biener <rguenther@suse.de>
3921
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.
3925
3926 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
3927
3928 PR c++/90875 - added -Wswitch-outside-range option
3929 * doc/invoke.texi (Wswitch-outside-range): Document.
3930
3931 2019-06-21 Jeff Law <law@redhat.com>
3932
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.
3936
3937 2019-06-21 Richard Biener <rguenther@suse.de>
3938
3939 PR debug/90914
3940 * dwarf2out.c (prune_unused_types_walk): Always consider
3941 function-local extern declarations as used.
3942
3943 2019-06-21 Richard Biener <rguenther@suse.de>
3944
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.
3948
3949 2019-06-21 Jakub Jelinek <jakub@redhat.com>
3950
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.
3965
3966 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
3967 "omp simd array" arrays with one byte elements.
3968
3969 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
3970
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.
3993
3994 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
3995
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.
4003
4004 2019-06-20 Marek Polacek <polacek@redhat.com>
4005
4006 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
4007
4008 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
4009
4010 * config/rs6000/rs6000.md (isa attribute): Add support for
4011 for a future processor.
4012
4013 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
4014
4015 PR target/54855
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.
4022
4023 2019-06-20 Jan Hubicka <jh@suse.cz>
4024
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.
4028
4029 2019-06-20 Martin Liska <mliska@suse.cz>
4030
4031 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
4032 to 10.
4033
4034 2019-06-20 Jakub Jelinek <jakub@redhat.com>
4035
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.
4042
4043 2019-06-20 Alexandre Oliva <oliva@adacore.com>
4044
4045 * config.gcc: Fix ARM --with-fpu checking and error message.
4046
4047 2019-06-19 Marek Polacek <polacek@redhat.com>
4048
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
4052 attributes.
4053 (attr_noreturn_exclusions): Make it extern.
4054 * attribs.h (get_attribute_namespace): Declare.
4055 * tree-inline.c (function_attribute_inlinable_p): Use
4056 get_attribute_name.
4057
4058 2019-06-19 Martin Sebor <msebor@redhat.com>
4059
4060 PR tree-optimization/90626
4061 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
4062
4063 PR tree-optimization/90626
4064 * tree-ssa-strlen.c (strxcmp_unequal): New function.
4065 (handle_builtin_string_cmp): Call it.
4066
4067 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
4068
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
4079
4080 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
4081
4082 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
4083 in computing the number of options to be moved.
4084
4085 2019-06-19 Maya Rashish <coypu@sdf.org>
4086
4087 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
4088 (CLEAR_INSN_CACHE) Use it.
4089
4090 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
4091
4092 * config/i386/i386.md (cmpstrnsi): Remove dead code.
4093
4094 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
4095
4096 PR middle-end/84521
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
4100 restore fp.
4101 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
4102 non-local goto.
4103 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
4104 elimination code.
4105 (remove_reg_equal_offset_note): Remove unused function.
4106 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
4107 code.
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.
4121
4122 2019-06-19 Jakub Jelinek <jakub@redhat.com>
4123
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
4131 in the comment.
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
4138 after it.
4139 * config/i386/sse.md (vec_shl_<mode>): New expander.
4140
4141 * omp-low.c (lower_rec_input_clauses): Handle references properly
4142 in inscan clauses.
4143 (lower_omp_scan): Likewise.
4144
4145 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
4146
4147 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
4148 mem_mode is BLKmode.
4149
4150 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
4151
4152 PR target/90922
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.
4156
4157 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
4158
4159 PR middle-end/90862
4160 * omp-low.c (check_omp_nesting_restrictions): Handle
4161 GF_OMP_TARGET_KIND_OACC_DECLARE.
4162
4163 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
4164
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.
4189
4190 2019-06-18 Jason Merrill <jason@redhat.com>
4191
4192 * tree.c (build_constructor): Add MEM_STAT_DECL.
4193
4194 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
4195
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.
4209
4210 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
4211
4212 * config/aarch64/aarch64-sve.md: Tabify file.
4213
4214 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
4215
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.
4219
4220 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
4221
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.
4229
4230 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
4231 Kugan Vivekanandarajah <kuganv@linaro.org>
4232
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).
4237
4238 2019-06-18 Richard Biener <rguenther@suse.de>
4239
4240 PR debug/90900
4241 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
4242 as if optimized away.
4243
4244 2019-06-18 Tom de Vries <tdevries@suse.de>
4245
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>"):
4249 Rename to ...
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.
4255
4256 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
4257
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.
4265
4266 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
4267
4268 * config/darwin.c: Strip trailing whitespace.
4269
4270 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
4271
4272 * config/darwin.c (darwin_emit_unwind_label): New default to false.
4273 (darwin_override_options): Set darwin_emit_unwind_label as needed.
4274
4275 2019-06-18 Martin Jambor <mjambor@suse.cz>
4276
4277 PR ipa/90889
4278 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
4279 caller does not have flag_ipa_cp set.
4280
4281 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
4282
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.
4294
4295 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
4296
4297 PR middle-end/80791
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.
4306
4307 2019-06-17 Jakub Jelinek <jakub@redhat.com>
4308
4309 * omp-low.c (struct omp_context): Add scan_inclusive field.
4310 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
4311 if inclusive scan.
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
4315 1 or 2 argument.
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
4324 2-bit bitfield.
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
4327 than 2nd.
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
4331 init.
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
4339 functions.
4340 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
4341 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
4342
4343 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
4344
4345 PR target/62055
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.
4350
4351 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
4352
4353 PR bootstrap/90873.
4354 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
4355 TMR index check.
4356
4357 2019-06-17 Tom de Vries <tdevries@suse.de>
4358
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
4362 ...
4363 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
4364 match_operand 0.
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
4373 match_operand 0.
4374
4375 2019-06-17 Matthew Green <mrg@eterna.com.au>
4376 Maya Rashish <coypu@sdf.org>
4377
4378 * config.gcc (aarch64*-*-netbsd*): New target.
4379 * config/aarch64/aarch64-netbsd.h: New file.
4380 * config/aarch64/t-aarch64-netbsd: Likewise.
4381
4382 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
4383
4384 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
4385 the access path from base to first VIEW_CONVERT_EXPR or
4386 BIT_FIELD_REF.
4387
4388 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
4389
4390 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
4391 access path on BIT_FIELD_REFs.
4392
4393 2019-06-17 Martin Liska <mliska@suse.cz>
4394
4395 PR ipa/90874
4396 * ipa-utils.h (odr_type_p): Remove dead code.
4397
4398 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4399
4400 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
4401 alternative Solaris 11.4 format.
4402 * configure: Regenerate.
4403
4404 2019-06-17 Tom de Vries <tdevries@suse.de>
4405
4406 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
4407 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
4408 match_operand 0.
4409 (define_insn "call_value_insn"): Rename to ...
4410 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
4411 match_operand 0.
4412 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
4413 DI.
4414
4415 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
4416
4417 PR middle-end/64242
4418 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
4419 frame clobbers and schedule block.
4420 (builtin_longjmp): Likewise.
4421
4422 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4423
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.
4429
4430 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4431
4432 * doc/sourcebuild.texi: Document new effective target keyword
4433 longlong64.
4434
4435 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
4436
4437 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
4438 indirect_refs_may_alias_p): Revert accidental commits.
4439
4440 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
4441 at the end of structures.
4442
4443 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
4444
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.
4459
4460 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
4461
4462 * config/darwin.opt (prebind, noprebind, seglinkedit,
4463 noseglinkedit): Add RejectNegative.
4464
4465 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
4466
4467 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
4468 in my previous patch.
4469
4470 2019-06-16 Tom de Vries <tdevries@suse.de>
4471
4472 PR tree-optimization/89376
4473 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
4474
4475 2019-06-15 Maya Rashish <coypu@sdf.org>
4476
4477 * doc/invoke.texi (Spec Files): Update location of the
4478 Fortran spec file.
4479
4480 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
4481
4482 * doc/extend.texi (Common Function Attributes): Clarify
4483 no_sanitize. Fix grammar.
4484
4485 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
4486
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
4495 ARRAY_REF.
4496
4497 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
4498
4499 * config/i386/i386.md (and<mode>3): Generate zero-extends for
4500 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
4501 only.
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.
4507
4508 2019-06-15 Jakub Jelinek <jakub@redhat.com>
4509
4510 PR middle-end/90779
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
4514 functions.
4515
4516 2019-06-15 Tom de Vries <tdevries@suse.de>
4517
4518 PR tree-optimization/90009
4519 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
4520 Return NULL if bb contains IFN_UNIQUE.
4521
4522 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
4523
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,
4529 merge into ...
4530 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
4531
4532 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
4533
4534 * config/darwin.opt: Add RejectNegative where needed, reorder
4535 and add minimal functional descriptions.
4536
4537 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
4538
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.
4546
4547 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
4548
4549 PR target/90877
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
4558
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>
4564
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
4569 redefining.
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.
4574
4575 2019-06-14 Richard Biener <rguenther@suse.de>
4576
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.
4583
4584 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
4585
4586 PR ipa/90401
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
4593 aa_walk_budget_p.
4594
4595 2019-06-13 Martin Sebor <msebor@redhat.com>
4596
4597 PR tree-optimization/90662
4598 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
4599 to the same type.
4600
4601 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
4602
4603 PR bootstrap/90873
4604 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
4605 dbase is not TARGET_MEM_REF.
4606
4607 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
4608
4609 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
4610 Update all uses.
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.
4619
4620 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
4621
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
4625 indirect function.
4626 (ix86_adjust_counter): Ditto.
4627
4628 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
4629 Lijia He <helijia@linux.ibm.com>
4630
4631 PR tree-optimization/77820
4632 * tree-ssa-threadedge.c
4633 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
4634 function.
4635 (thread_across_edge): Add call to
4636 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
4637
4638 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
4639
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.
4643
4644 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
4645
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.
4650
4651 2019-06-13 Richard Biener <rguenther@suse.de>
4652
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.
4656
4657 2019-06-13 Jakub Jelinek <jakub@redhat.com>
4658
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.
4662
4663 2019-06-13 Richard Biener <rguenther@suse.de>
4664
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.
4671
4672 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
4673
4674 * gimple-loop-versioning.cc (prune_loop_conditions): Use
4675 may_contain_p.
4676 * tree-vrp (value_range_base::may_contain_p): Call into
4677 value_inside_range.
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.
4685
4686 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
4687
4688 * doc/extend.texi (ARC Function Attributes): Update info.
4689
4690 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
4691
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
4698 is finite.
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+.
4702
4703 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
4704
4705 PR target/88838
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.
4714
4715 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
4716
4717 PR target/88834
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
4724 allow_reg_index_p.
4725
4726 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
4727
4728 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
4729
4730 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
4731
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.
4749
4750 2019-06-12 Martin Sebor <msebor@redhat.com>
4751
4752 PR middle-end/90676
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.
4756
4757 2019-06-12 Martin Sebor <msebor@redhat.com>
4758
4759 PR tree-optimization/90662
4760 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
4761 to arrays.
4762
4763 2019-06-12 Tom de Vries <tdevries@suse.de>
4764
4765 PR tree-optimization/90009
4766 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
4767
4768 2019-06-12 Martin Liska <mliska@suse.cz>
4769
4770 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
4771 the created map.
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.
4775
4776 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
4777
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.
4784
4785 2019-06-12 Jakub Jelinek <jakub@redhat.com>
4786
4787 PR target/90811
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
4795 add_stack_var.
4796 (expand_one_var): Pass really_expand through to add_stack_var.
4797
4798 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
4799
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.
4804
4805 2019-06-12 Martin Liska <mliska@suse.cz>
4806
4807 * value-prof.c (stream_out_histogram_value): Only first value
4808 can't be negative.
4809
4810 2019-06-12 Jakub Jelinek <jakub@redhat.com>
4811
4812 PR c/90760
4813 * symtab.c (symtab_node::set_section): Allow being called on aliases
4814 as long as they aren't analyzed yet.
4815
4816 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
4817
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.
4821
4822 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
4823
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.
4831
4832 2019-06-11 Jakub Jelinek <jakub@redhat.com>
4833
4834 PR target/90811
4835 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
4836 instead of and.u%d.
4837
4838 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
4839
4840 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
4841
4842 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
4843
4844 PR c++/90449 - add -Winaccessible-base option.
4845 * doc/invoke.texi (Winaccessible-base): Document.
4846
4847 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
4848
4849 PR tree-optimization/62041
4850 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
4851
4852 2019-06-11 Jason Merrill <jason@redhat.com>
4853
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
4857 invalid code.
4858
4859 2019-06-11 Jakub Jelinek <jakub@redhat.com>
4860
4861 PR bootstrap/90819
4862 * trans-mem.c (tm_memopt_compute_available): Add assertion
4863 that blocks is not empty. Formatting fix.
4864
4865 2019-06-11 Martin Liska <mliska@suse.cz>
4866
4867 PR c++/87847
4868 * hash-table.h: Extend create_gcc, add one parameter
4869 that is passed into hash_table::hash_table.
4870
4871 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
4872
4873 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
4874 New prototype.
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.
4900 (CSGNMODE): Remove.
4901 (CSGNVMODE): Ditto.
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.
4909
4910 2019-06-10 Martin Sebor <msebor@redhat.com>
4911
4912 * gimple-fold.c (get_range_strlen): Update comment that didn't
4913 make it into r267503 or related commits.
4914
4915 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
4916
4917 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
4918 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
4919
4920 2019-06-10 Jakub Jelinek <jakub@redhat.com>
4921
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
4932 GIMPLE_OMP_SCAN.
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
4963 simd constructs.
4964 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
4965 GIMPLE_OMP_SCAN.
4966
4967 2019-06-10 Martin Liska <mliska@suse.cz>
4968
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
4977 for opt_for_fn.
4978 * ipa-utils.c (searchc): Refactor.
4979 * ipa-utils.h: Fix coding style.
4980
4981 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
4982
4983 * config/arc/arc.c (arc_rtx_costs): Update costs.
4984
4985 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
4986
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.
5000 (iorsi3): Likewise.
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.
5008 (Crr): Remove it.
5009 (C0x): New pattern.
5010 (Cax): New pattern.
5011
5012 2019-06-10 Martin Liska <mliska@suse.cz>
5013
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
5018 coding style.
5019
5020 2019-06-10 Martin Liska <mliska@suse.cz>
5021
5022 * value-prof.c (dump_histogram_value): Change dump format.
5023 (gimple_mod_subtract_transform): Remove legacy comment.
5024
5025 2019-06-10 Martin Liska <mliska@suse.cz>
5026
5027 * value-prof.c (dump_histogram_value): Print histogram values
5028 only if present.
5029
5030 2019-06-10 Martin Liska <mliska@suse.cz>
5031
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
5042 N values.
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.
5053
5054 2019-06-10 Martin Liska <mliska@suse.cz>
5055
5056 * hash-map.h: Pass default value to hash_table ctor.
5057 * hash-table.h: Add default value to call of a ctor.
5058
5059 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
5060
5061 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
5062 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
5063
5064 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
5065
5066 PR target/90751
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
5072 to declaration.
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.
5079
5080 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
5081
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
5091 calling intersect.
5092 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
5093 Same.
5094 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
5095
5096 2019-06-07 Jakub Jelinek <jakub@redhat.com>
5097
5098 * Makefile.in (genprogerr): Add condmd.
5099 (genprog): Remove it here.
5100
5101 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
5102
5103 * doc/invoke.texi (AMD GCN Options): Add gfx906.
5104
5105 2019-06-07 Richard Biener <rguenther@suse.de>
5106
5107 PR debug/90574
5108 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
5109 that appear after user labels.
5110
5111 2019-06-07 Martin Liska <mliska@suse.cz>
5112
5113 * cselib.c (cselib_init): Disable hash table
5114 sanitization.
5115 * hash-set.h: Pass new default argument to m_table.
5116 * hash-table.c: Add global variable with hash table
5117 sanitization limit.
5118 * hash-table.h (Allocator>::hash_table): Add new argument
5119 to ctor.
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.
5124
5125 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
5126
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
5145 test.
5146
5147 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
5148
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;
5155 update comment.
5156
5157 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
5158
5159 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
5160
5161 2019-06-07 Martin Liska <mliska@suse.cz>
5162
5163 * doc/invoke.texi: Remove param.
5164 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
5165 Remove.
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.
5181
5182 2019-06-07 Martin Liska <mliska@suse.cz>
5183
5184 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
5185 function.
5186
5187 2019-06-07 Martin Liska <mliska@suse.cz>
5188
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):
5203 New.
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.
5220
5221 2019-06-06 Jim Wilson <jimw@sifive.com>
5222
5223 PR target/89955
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.
5227
5228 2019-06-06 Martin Sebor <msebor@redhat.com>
5229
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.
5238
5239 2019-06-06 Martin Jambor <mjambor@suse.cz>
5240
5241 * tree-sra.c (build_reconstructed_reference): Drop the alignment
5242 check.
5243
5244 2019-06-06 Martin Jambor <mjambor@suse.cz>
5245
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.
5256
5257 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
5258
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.
5263 Add gfx906.
5264
5265 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5266
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
5271 to...
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.
5277
5278 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5279
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.
5287
5288 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
5289
5290 PR rtl-optimization/88751
5291 * ira.c (ira): Use the number of the actually referenced registers
5292 when calculating the threshold.
5293
5294 2019-06-06 Jakub Jelinek <jakub@redhat.com>
5295
5296 * configure: Regenerate.
5297
5298 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5299
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
5302 instruction.
5303 (ashrhi3): Likewise.
5304 (lshrhi3): Likewise.
5305
5306 2019-06-06 Martin Liska <mliska@suse.cz>
5307
5308 PR tree-optimization/87954
5309 * match.pd: Simplify mult where both arguments are 0 or 1.
5310
5311 2019-06-06 Richard Biener <rguenther@suse.de>
5312
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
5317 to VARYING.
5318
5319 2019-06-06 Richard Biener <rguenther@suse.de>
5320
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
5324 functions.
5325 (find_func_aliases): Delay processing of simple enough returns
5326 in non-IPA mode.
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.
5333
5334 2019-06-06 Martin Liska <mliska@suse.cz>
5335
5336 PR web/87933
5337 * doc/install.texi: Fix HTML headers and
5338 titles for 'Installing GCC' pages.
5339
5340 2019-06-06 Martin Liska <mliska@suse.cz>
5341
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
5349 to dump_message.
5350
5351 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
5352
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.
5357
5358 2019-06-05 Martin Sebor <msebor@redhat.com>
5359
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.
5379
5380 2019-06-05 Richard Henderson <rth@twiddle.net>
5381
5382 * config/alpha/alpha.c (direct_return): Move down after
5383 struct machine_function definition; use saved frame_size;
5384 return bool.
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.
5398
5399 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
5400
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.
5405
5406 2019-06-05 Jakub Jelinek <jakub@redhat.com>
5407
5408 PR debug/90733
5409 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
5410 with VOIDmode inner operands.
5411
5412 2019-06-05 Richard Biener <rguenther@suse.de>
5413
5414 PR middle-end/90726
5415 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
5416 turn an expression graph into a tree.
5417
5418 2019-06-05 Jakub Jelinek <jakub@redhat.com>
5419
5420 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
5421 member.
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
5426 schedule modifier.
5427
5428 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
5429 references, lookup in in hash map MEM_REF operand instead of the
5430 MEM_REF itself.
5431 (lower_omp_1): When looking for lastprivate conditional assignments,
5432 handle MEM_REFs with REFERENCE_TYPE operands.
5433
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.
5442
5443 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
5444
5445 PR target/89803
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):
5451 New builtins.
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.
5460
5461 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
5462
5463 * config/rs6000/constraints.md (define_register_constraint "wp"):
5464 Delete.
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.
5475
5476 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
5477
5478 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
5479 (define_attr "enabled"): Handle those new isa values.
5480
5481 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
5482
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.
5495
5496 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
5497
5498 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
5499 and V2DF.
5500 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
5501 (rest of file): Adjust.
5502
5503 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
5504
5505 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
5506 (vsx_extract_<mode>_var): Ditto.
5507
5508 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
5509
5510 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
5511 with just "wa".
5512
5513 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
5514
5515 * config/rs6000/constraints.md (define_register_constraint "ww"):
5516 Delete.
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.
5524
5525 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
5526
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.
5535
5536 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
5537
5538 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
5539 with just "wa".
5540
5541 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
5542
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".
5546
5547 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
5548
5549 PR target/78263
5550 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
5551 C++ with strict ANSI requirements.
5552
5553 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
5554
5555 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
5556 computations when step is 1.
5557
5558 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
5559
5560 * config/rs6000/constraints.md (define_register_constraint "wf"):
5561 Delete.
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.
5569
5570 2019-06-04 Andrew Pinski <apinski@marvell.com>
5571
5572 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
5573 Fix ILP32 value.
5574
5575 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
5576
5577 * config/rs6000/constraints.md (define_register_constraint "wd"):
5578 Delete.
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.
5586
5587 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
5588
5589 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
5590 (rest of file): Adjust.
5591
5592 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
5593
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.
5597
5598 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
5599
5600 * config/rs6000/constraints.md (define_register_constraint "ws"):
5601 Delete.
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.
5609
5610 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
5611
5612 * config/rs6000/constraints.md (define_register_constraint "wv"):
5613 Delete.
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.
5621
5622 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
5623
5624 * config/rs6000/constraints.md (define_register_constraint "wi"):
5625 Delete.
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.
5634
5635 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
5636
5637 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
5638 const.
5639 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
5640 default_elf_asm_output_external.
5641
5642 2019-06-04 Martin Liska <mliska@suse.cz>
5643
5644 * ipa-icf.c (INCLUDE_LIST): Remove.
5645 (sem_item_optimizer::execute): Remove call to init_wpa.
5646 * ipa-icf.h (init_wpa): Remove.
5647
5648 2019-06-04 Jakub Jelinek <jakub@redhat.com>
5649
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
5653 member.
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
5667 there.
5668
5669 2019-06-04 Martin Liska <mliska@suse.cz>
5670
5671 * value-prof.c (dump_histogram_value): Fix typo.
5672 (gimple_mod_subtract_transform): Likewise.
5673
5674 2019-06-04 Richard Biener <rguenther@suse.de>
5675
5676 PR middle-end/90726
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):
5682 ... here.
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.
5690
5691 2019-06-04 Richard Biener <rguenther@suse.de>
5692
5693 PR tree-optimization/90738
5694 Revert
5695 2019-06-03 Richard Biener <rguenther@suse.de>
5696
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.
5705
5706 2019-06-04 Martin Liska <mliska@suse.cz>
5707
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
5712 a class has.
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.
5716
5717 2019-06-04 Martin Liska <mliska@suse.cz>
5718
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
5728 dead vectors.
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
5732 m_references.
5733 (sem_item_optimizer::read_section): Remove useless
5734 dump.
5735 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
5736 (sem_item_optimizer::build_graph): Pass m_references
5737 to ::add_reference.
5738 (sem_item_optimizer::verify_classes): Remove usage of dead
5739 vectors.
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.
5748
5749 2019-06-04 Alan Modra <amodra@gmail.com>
5750
5751 PR target/90689
5752 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
5753 error.
5754
5755 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
5756
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
5763 comment.
5764 (power6x): 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.
5774
5775 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
5776
5777 * config/rs6000/constraints.md (define_register_constraint "wg"):
5778 Delete.
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.
5786
5787 2019-06-03 Alan Modra <amodra@gmail.com>
5788
5789 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
5790 (get_uncond_jump_length): Assert length less than INT_MAX and
5791 non-negative.
5792
5793 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
5794
5795 PR middle-end/64242
5796 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
5797 block.
5798 (expand_builtin_nonlocal_goto): Likewise.
5799
5800 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
5801
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.
5810
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
5831 set_*zero.
5832 (extract_range_from_unary_expr): Same.
5833 (union_helper): Same.
5834 * vr-values.c (get_value_range): Use set_*zero instead of
5835 set_*null.
5836 (vr_values::extract_range_from_binary_expr): Same.
5837 (vr_values::extract_range_basic): Same.
5838
5839 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
5840
5841 PR driver/90684
5842 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
5843
5844 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5845
5846 * config/aarch64/iterators.md (MAX_OPP): New code attr.
5847 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
5848 Rename to...
5849 (aarch64_<su>abd<mode>_3): ... This.
5850 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
5851
5852 2019-06-03 Richard Biener <rguenther@suse.de>
5853
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.
5862
5863 2019-06-03 Martin Liska <mliska@suse.cz>
5864
5865 * doc/generic.texi: Remove Java Trees.
5866
5867 2019-06-03 Martin Liska <mliska@suse.cz>
5868
5869 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
5870 returns 0 when operands are equal.
5871
5872 2019-06-03 Richard Biener <rguenther@suse.de>
5873
5874 PR tree-optimization/90716
5875 * tree-loop-distribution.c (destroy_loop): Process blocks in
5876 correct order.
5877
5878 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5879
5880 PR target/88837
5881 * vector-builder.h (vector_builder::count_dups): New method.
5882 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
5883 Declare prototype.
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.
5891
5892 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
5893
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.
5898
5899 2019-06-03 Martin Liska <mliska@suse.cz>
5900
5901 * cfg.c (debug): Use TDF_DETAILS for debug and
5902 print edge info only once.
5903
5904 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
5905
5906 PR fortran/90539
5907 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
5908
5909 2019-06-01 Martin Sebor <msebor@redhat.com>
5910
5911 PR middle-end/90694
5912 * tree-pretty-print.c (dump_generic_node): Add parentheses.
5913
5914 2019-05-31 Jan Hubicka <jh@suse.cz>
5915
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.
5920
5921 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
5922 Hongtao Liu <hongtao.liu@intel.com>
5923
5924 PR target/89355
5925 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
5926 NOTE_INSN_DELETED_LABEL check.
5927
5928 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
5929 Robert Suchanek <robert.suchanek@mips.com>
5930
5931 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
5932 and 3rd operands of the fmadd/fmsub/maddv builtin.
5933
5934 2019-05-31 Jakub Jelinek <jakub@redhat.com>
5935
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
5942 on simd.
5943 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
5944 on simd construct.
5945 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
5946 on simd construct.
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.
5955
5956 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
5957 ivar and lvar.
5958
5959 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
5960
5961 PR c/43673
5962 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
5963 TEX_D32, TEX_D64 or TEX_D128.
5964
5965 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
5966
5967 * match.pd (~(vec?cst1:cst2)): New transformation.
5968
5969 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
5970
5971 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
5972 ((size_t)(A /[ex] B) CMP C): New transformation.
5973
5974 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
5975
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.
5991
5992 2019-05-31 Jan Hubicka <jh@suse.cz>
5993
5994 * tree-ssa-alias.c (type_has_components_p): New function.
5995 (aliasing_component_refs_p): Use it.
5996
5997 2019-05-31 Martin Liska <mliska@suse.cz>
5998
5999 * gdbhooks.py: Add const_tree to TreePrinter.
6000
6001 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
6002
6003 PR debug/86964
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'.
6007
6008 2019-05-31 Jakub Jelinek <jakub@redhat.com>
6009
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.
6015
6016 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
6017
6018 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
6019
6020 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
6021 Michael Meissner <meissner@linux.ibm.com>
6022
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
6027 prototype.
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.
6034
6035 2019-05-30 Jakub Jelinek <jakub@redhat.com>
6036
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
6043 assertion failure.
6044 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
6045 member.
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.
6064
6065 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
6066 Michael Meissner <meissner@linux.ibm.com>
6067
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.
6073
6074 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
6075
6076 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
6077
6078 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
6079 Michael Meissner <meissner@linux.ibm.com>
6080
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.
6092
6093 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
6094
6095 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
6096 cfun->is_thunk check.
6097
6098 2019-05-30 Jakub Jelinek <jakub@redhat.com>
6099
6100 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
6101 to length.
6102
6103 2019-05-30 Martin Liska <mliska@suse.cz>
6104
6105 * gdbinit.in: Fix 'ptc' command. Add trt
6106 that prints TREE_TYPE($).
6107
6108 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
6109 Alan Modra <amodra@gmail.com>
6110
6111 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
6112 calls here...
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
6116 rs6000_pltseq_enum.
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.
6136
6137
6138 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
6139
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>.
6147
6148 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
6149
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,
6155 make it zero.
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
6159 moved elsewhere.
6160
6161 2019-05-29 Jan Hubicka <jh@suse.cz>
6162
6163 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
6164 variants are pointer equivalent.
6165
6166 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
6167
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.
6175
6176 2019-05-29 Jakub Jelinek <jakub@redhat.com>
6177
6178 PR bootstrap/90543
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.
6185
6186 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
6187
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.
6230
6231 2019-05-29 Jakub Jelinek <jakub@redhat.com>
6232
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.
6240
6241 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
6242 Michael Meissner <meissner@linux.ibm.com>
6243
6244 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
6245
6246 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
6247
6248 * rtl.h (LABEL_REF_P): New #define.
6249
6250 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
6251
6252 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
6253
6254 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
6255
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
6265 masks.
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
6269 loads for SLP only.
6270 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
6271 vectorizable.
6272 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
6273
6274 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6275
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.
6287
6288 2019-05-28 Nathan Sidwell <nathan@acm.org>
6289
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.
6298
6299 2019-05-28 Martin Liska <mliska@suse.cz>
6300
6301 PR other/90315
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.
6308
6309 2019-05-28 Martin Liska <mliska@suse.cz>
6310
6311 PR ipa/90555
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.
6315
6316 2019-05-27 Jakub Jelinek <jakub@redhat.com>
6317
6318 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
6319 on sections construct.
6320 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
6321 construct.
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.
6326
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.
6330
6331 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
6332
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.
6354
6355 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
6356
6357 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
6358 and DW_OP_GNU_const_index opcodes.
6359
6360 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
6361
6362 * config/i386/i386.h (STACK_SIZE_MODE): Define.
6363
6364 2019-05-27 Richard Biener <rguenther@suse.de>
6365
6366 PR tree-optimization/90637
6367 * tree-ssa-sink.c (statement_sink_location): Honor the
6368 computed sink location for single-uses.
6369
6370 2019-05-27 Richard Biener <rguenther@suse.de>
6371
6372 PR middle-end/90610
6373 * match.pd (vec_perm): Avoid clobbering op0 when not generating
6374 a bit-insert.
6375
6376 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
6377
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.
6404
6405 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
6406
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.
6421
6422 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
6423
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.
6459
6460 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
6461
6462 * doc/invoke.texi (Link Options): Many editorial changes around
6463 -flinker-output.
6464
6465 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6466
6467 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
6468 pre-Solaris 11 referene and most Studio compiler details.
6469
6470 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
6471
6472 PR target/90530
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.
6477
6478 2019-05-24 Jakub Jelinek <jakub@redhat.com>
6479
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
6492 on OMP_FOR.
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
6496 member.
6497 * omp-general.c (omp_extract_for_data): Initialize it.
6498 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
6499 member.
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
6515 callers.
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_
6519 clause is present.
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
6523 fd.have_reductemp.
6524
6525 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
6526
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.
6530
6531 2019-05-24 Jason Merrill <jason@redhat.com>
6532
6533 Revert:
6534 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
6535
6536 2019-05-24 Richard Biener <rguenther@suse.de>
6537
6538 PR testsuite/90607
6539 * tree-loop-distribution.c (struct partition): Add location
6540 member.
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.
6547
6548 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
6549
6550 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
6551 for lo-part.
6552
6553 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
6554
6555 PR target/90588
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.
6562
6563 2019-05-24 Jakub Jelinek <jakub@redhat.com>
6564
6565 PR target/90568
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
6569 sub instruction.
6570
6571 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
6572
6573 * config/i386/darwin.h: Reject -mfentry*.
6574 * doc/sourcebuild.texi: Document mfentry target support.
6575
6576 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
6577
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.
6586
6587 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
6588
6589 PR target/90552
6590 * config/i386/i386.c (gen_rtx_cost):
6591 Use ix86_tune_cost instead of ix86_cost.
6592
6593 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
6594 Michael Meissner <meissner@linux.ibm.com>
6595 Segher Boessenkool <segher@kernel.crashing.org>
6596
6597 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
6598 OPTION_MASK_PCREL.
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.
6609
6610 2019-05-23 Jan Hubicka <jh@suse.cz>
6611 Martin Liska <mliska@suse.cz>
6612
6613 PR tree-optimization/90576
6614 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
6615 poly_int_tree_p.
6616 (aliasing_component_refs_p): Fix three way size compare conditional;
6617 give up earlier in case we can not decide on equivalence.
6618
6619 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
6620 Michael Meissner <meissner@linux.ibm.com>
6621 Segher Boessenkool <segher@kernel.crashing.org>
6622
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
6626 #define.
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
6630 PROCESSOR_FUTURE.
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.
6648
6649 2019-05-23 Martin Liska <mliska@suse.cz>
6650
6651 PR c++/90587
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 &.
6655
6656 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
6657
6658 PR c++/90592
6659 * doc/extend.texi (Function Names): Add missing word.
6660
6661 2019-05-23 Richard Biener <rguenther@suse.de>
6662
6663 PR tree-optimization/88440
6664 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
6665 at -O[2s]+.
6666 * tree-loop-distribution.c (generate_memset_builtin): Fold the
6667 generated call.
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.
6673
6674 2019-05-23 Jakub Jelinek <jakub@redhat.com>
6675
6676 PR target/90568
6677 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
6678 of xor.
6679
6680 2019-05-23 Martin Liska <mliska@suse.cz>
6681
6682 PR sanitizer/90570
6683 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
6684 expression similarly to gimplify_decl_expr.
6685
6686 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6687
6688 * cse.c (cse_dump_path): s/dump_file/f.
6689
6690 2019-05-22 David Malcolm <dmalcolm@redhat.com>
6691
6692 PR c++/90462
6693 * diagnostic-format-json.cc: Include "selftest.h".
6694 (json_from_expanded_location): Only add "file" key for non-NULL
6695 file strings.
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
6708 decl.
6709
6710 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
6711 Andrew Stubbs <amd@codesourcery.com>
6712
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.
6730
6731 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
6732
6733 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
6734
6735 2019-05-22 Jason Merrill <jason@redhat.com>
6736
6737 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
6738
6739 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
6740
6741 PR target/88483
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.
6754
6755 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
6756
6757 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
6758
6759 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
6760
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
6774 variables uint64_t.
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.
6784
6785 2019-05-22 Richard Biener <rguenther@suse.de>
6786
6787 * alias.c (ao_ref_from_mem): Move stack-slot sharing
6788 rewrite ...
6789 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
6790
6791 2019-05-22 Martin Liska <mliska@suse.cz>
6792
6793 PR lto/90500
6794 * doc/extend.texi: Document the change.
6795
6796 2019-05-22 Richard Biener <rguenther@suse.de>
6797
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.
6803
6804 2019-05-22 Richard Biener <rguenther@suse.de>
6805
6806 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
6807 Add ABS_EXPR.
6808 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
6809 as ABSU_EXPR.
6810
6811 2019-05-22 Alan Modra <amodra@gmail.com>
6812
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
6818 test all ISA bits.
6819 (rs6000_output_function_prologue): Emit .machine as necessary.
6820 * testsuite/gcc.target/powerpc/ppc32-abi-dfp-1.c: Don't use
6821 power mnemonics.
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.
6826
6827 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
6828
6829 PR middle-end/90553
6830 * ira-lives.c (process_bb_node_lives): Consider defs
6831 for a call insn to be die before the call, not after.
6832
6833 * function.c (assign_parm_setup_block): Raise alignment of
6834 stacked parameter only for STRICT_ALIGNMENT targets.
6835
6836 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
6837
6838 * config/rs6000/constraints.md (define_register_constraint "wz"):
6839 Delete.
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.
6846
6847 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
6848
6849 * config/rs6000/constraints.md (define_register_constraint "wl"):
6850 Delete.
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.
6857
6858 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
6859
6860 * config/rs6000/constraints.md (define_register_constraint "wm"):
6861 Delete.
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.
6868
6869 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
6870
6871 * config/rs6000/constraints.md (define_register_constraint "wk"):
6872 Delete.
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.
6879
6880 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
6881
6882 * config/rs6000/constraints.md (define_register_constraint "wj"):
6883 Delete.
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".
6889 (VS_64dm): Delete.
6890 * config/rs6000/vsx.md: Ditto.
6891 * doc/md.texi (Machine Constraints): Adjust.
6892
6893 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
6894
6895 * config/rs6000/constraints.md (define_register_constraint "wh"):
6896 Delete.
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.
6903
6904 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
6905
6906 PR target/90547
6907 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
6908 Avoid calling gen_lowpart with CONST operand.
6909
6910 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
6911
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.
6916
6917 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
6918
6919 * config/i386/sse.md (VF1_AVX2): New mode iterator.
6920 (signbit<mode>2): New expander
6921
6922 2019-05-21 James Clarke <jrtc27@jrtc27.com>
6923
6924 PR bootstrap/87338
6925 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
6926 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
6927
6928 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
6929
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.
6933
6934 2019-05-21 Alan Modra <amodra@gmail.com>
6935
6936 PR target/90545
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.
6941
6942 2019-05-21 Richard Biener <rguenther@suse.de>
6943
6944 PR middle-end/90510
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.
6950
6951 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
6952
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.
6964
6965 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
6966
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
6971 positives.
6972
6973 2019-05-21 Martin Liska <mliska@suse.cz>
6974
6975 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
6976 an extra newline.
6977 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
6978 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
6979 vec_lvsr.
6980 * config/rs6000/rs6000.c (rs6000_option_override_internal):
6981 Quote a C type.
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.
6988
6989 2019-05-20 Jakub Jelinek <jakub@redhat.com>
6990
6991 PR c++/59813
6992 PR target/90418
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
6997 to 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
7004 calls_eh_return.
7005
7006 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
7007
7008 PR rtl-optimization/43147
7009 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
7010 IX86_BUILTIN_SHUFPD.
7011
7012 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
7013
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.
7017
7018 2019-05-20 Richard Biener <rguenther@suse.de>
7019
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.
7024
7025 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
7026
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.
7031
7032 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7033
7034 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
7035
7036 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7037
7038 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
7039 (LIBLSAN_EARLY_SPEC): Likewise.
7040 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
7041
7042 2019-05-20 Martin Liska <mliska@suse.cz>
7043
7044 * config/i386/i386.c (ix86_libc_has_fast_function):
7045 Add ATTRIBUTE_UNUSED for the argument.
7046
7047 2019-05-20 Richard Biener <rguenther@suse.de>
7048
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
7052 is included.
7053 * fold-const.c (fold_vec_perm): Export.
7054 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
7055 (match.pd): ...here.
7056
7057 2019-05-20 Jakub Jelinek <jakub@redhat.com>
7058
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
7066 successful one.
7067 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
7068 caller.
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
7074 document it.
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
7079 bool argument.
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.
7087
7088 2019-05-20 Martin Liska <mliska@suse.cz>
7089
7090 * targhooks.c (default_libc_has_fast_function): New function.
7091 * targhooks.h (default_libc_has_fast_function): Likewise.
7092
7093 2019-05-20 Martin Liska <mliska@suse.cz>
7094
7095 PR middle-end/90263
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.
7102 * target.def:
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.
7106
7107 2019-05-20 Martin Liska <mliska@suse.cz>
7108
7109 * profile-count.c: Add vertical spacing in order
7110 to separate functions.
7111 * profile-count.h: Likewise.
7112
7113 2019-05-20 Martin Liska <mliska@suse.cz>
7114
7115 * profile-count.h: Do not use full qualified
7116 names if possible.
7117 * profile-count.c (profile_count::to_frequency): Likewise.
7118
7119 2019-05-20 Martin Liska <mliska@suse.cz>
7120
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.
7124
7125 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
7126
7127 * config/rs6000/constraints.md (define_register_constraint "wH"):
7128 Delete.
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.
7138
7139 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
7140
7141 * config/rs6000/constraints.md (define_register_constraint "wy"):
7142 Delete.
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.
7152
7153 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
7154
7155 * config/rs6000/constraints.md (define_register_constraint "wu"):
7156 Delete.
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",
7162 both with "p8v".
7163 (define_mode_attr Fa): Delete.
7164 * config/rs6000/vsx.md: Ditto.
7165 * doc/md.texi (Machine Constraints): Adjust.
7166
7167 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
7168
7169 * config/rs6000/constraints.md (define_register_constraint "wJ"):
7170 Delete.
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.
7180
7181 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
7182
7183 * config/rs6000/constraints.md (define_register_constraint "wb"):
7184 Delete.
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.
7192
7193 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
7194
7195 * config/rs6000/constraints.md (define_register_constraint "wo"):
7196 Delete.
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.
7204
7205 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
7206
7207 * config/darwin-c.c (darwin_register_objc_includes): Do not
7208 prepend the sysroot when building gnu-runtime header search
7209 paths.
7210
7211 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
7212
7213 * config/darwin.c (darwin_file_end): Use switch_to_section ()
7214 instead of direct output of the asm.
7215
7216 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
7217
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.
7223
7224 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
7225
7226 * config/rs6000/rs6000.md (isa): New attribute.
7227 (enabled): New attribute.
7228
7229 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
7230
7231 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
7232 assemble_start_function and assemble_end_function.
7233
7234 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
7235
7236 PR middle-end/89433
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.
7240
7241 PR middle-end/89433
7242 * omp-general.c (oacc_build_routine_dims): Move some of its
7243 processing into...
7244 (oacc_verify_routine_clauses): ... this new function.
7245 * omp-general.h (oacc_verify_routine_clauses): New prototype.
7246
7247 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
7248
7249 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
7250 formating of picbase labels to match other ports.
7251
7252 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
7253
7254 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
7255 in the generated code.
7256
7257 2019-05-16 Martin Sebor <msebor@redhat.com>
7258
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.
7282 (do_merge): Same.
7283 (do_rewrite): 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.
7307 (run_gcc): Same.
7308 (main): Same.
7309 * opts.c (print_specific_help): Same.
7310 (parse_no_sanitize_attribute): Same.
7311 (print_help): 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
7318 issues.
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.
7328 (do_compile): 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.
7358
7359 2019-05-16 Martin Sebor <msebor@redhat.com>
7360
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.
7373
7374 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
7375
7376 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
7377 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
7378 and fpxx modes.
7379
7380 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
7381
7382 PR target/90497
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
7386 check.
7387 (*mmx_uavgv8qi3): Likewise.
7388
7389 2019-05-17 Richard Biener <rguenther@suse.de>
7390
7391 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
7392 VEC_PERM_EXPR as __VEC_PERM with -gimple.
7393
7394 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
7395
7396 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
7397 vec_sldw insn pattern.
7398
7399 2019-05-17 Richard Biener <rguenther@suse.de>
7400
7401 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
7402
7403 2019-05-17 Martin Liska <mliska@suse.cz>
7404
7405 PR driver/90496
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.
7409
7410 2019-05-16 Jakub Jelinek <jakub@redhat.com>
7411
7412 PR c++/90484
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.
7415
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
7422 member.
7423 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
7424 Define.
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
7428 simd_if_cond.
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.
7432
7433 2019-05-16 Richard Biener <rguenther@suse.de>
7434
7435 * tree-affine.c (expr_to_aff_combination): New function split
7436 out from...
7437 (tree_to_aff_combination): ... here.
7438 (aff_combination_expand): Avoid building a GENERIC tree.
7439
7440 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
7441
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):
7458 Likewise.
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):
7473 Likewise.
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.
7477
7478 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
7479
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.
7485
7486 2019-05-16 Martin Liska <mliska@suse.cz>
7487
7488 PR lto/90500
7489 * multiple_target.c (expand_target_clones): Do not allow
7490 target_clones being used with a symbol that is an alias.
7491
7492 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
7493
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).
7498
7499 2019-05-16 Jakub Jelinek <jakub@redhat.com>
7500
7501 PR fortran/90329
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
7508 stack.
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.
7513
7514 * lto-streamer.h (LTO_major_version): Bump to 9.
7515
7516 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
7517
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
7521 basic block.
7522 (use_internal_fn): Pass internal function call to
7523 shrink_wrap_one_built_in_call_with_conds.
7524
7525 2019-05-15 Jakub Jelinek <jakub@redhat.com>
7526
7527 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
7528 max_vf to 1.
7529 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
7530 safelen_int and set loop->dont_vectorize.
7531
7532 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7533
7534 PR target/89021
7535 * config/i386/i386-builtin.def: Enable MMX intrinsics with
7536 SSE/SSE2/SSSE3.
7537 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
7538 Likewise.
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__
7542 is defined.
7543
7544 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7545
7546 PR target/89021
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.
7578
7579 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7580
7581 PR target/89021
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.
7586
7587 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
7588
7589 PR target/89021
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.
7600
7601 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7602
7603 PR target/89021
7604 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
7605
7606 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7607
7608 PR target/89021
7609 * config/i386/sse.md (ssse3_palignrdi): Changed to
7610 define_insn_and_split to support SSE emulation.
7611
7612 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7613
7614 PR target/89021
7615 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
7616
7617 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7618
7619 PR target/89021
7620 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
7621 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
7622 SSE emulation.
7623
7624 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7625
7626 PR target/89021
7627 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
7628 or TARGET_MMX_WITH_SSE.
7629 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
7630
7631 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7632
7633 PR target/89021
7634 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
7635
7636 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7637
7638 PR target/89021
7639 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
7640 Changed to define_insn_and_split to support SSE emulation.
7641
7642 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7643
7644 PR target/89021
7645 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
7646 Changed to define_insn_and_split to support SSE emulation.
7647
7648 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7649
7650 PR target/89021
7651 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
7652 (*mmx_<emms>): This.
7653 (mmx_<emms>): New expander.
7654
7655 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7656
7657 PR target/89021
7658 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
7659 support.
7660 (*sse2_umulv1siv1di3): Add SSE2 emulation.
7661
7662 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7663
7664 PR target/89021
7665 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
7666
7667 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7668
7669 PR target/89021
7670 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
7671
7672 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7673
7674 PR target/89021
7675 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
7676 TARGET_MMX_WITH_SSE.
7677 (*mmx_uavgv4hi3): Add SSE emulation.
7678
7679 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7680
7681 PR target/89021
7682 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
7683 and TARGET_MMX_WITH_SSE.
7684 (*mmx_uavgv8qi3): Add SSE emulation.
7685
7686 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7687
7688 PR target/89021
7689 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
7690 maskmovdqu for __MMX_WITH_SSE__.
7691
7692 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7693
7694 PR target/89021
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.
7698
7699 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7700
7701 PR target/89021
7702 * config/i386/mmx.md (mmx_pmovmskb): Changed to
7703 define_insn_and_split to support SSE emulation.
7704
7705 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7706
7707 PR target/89021
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.
7715
7716 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7717
7718 PR target/89021
7719 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
7720 TARGET_MMX_WITH_SSE.
7721 (*mmx_pinsrw): Add SSE emulation.
7722
7723 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7724
7725 PR target/89021
7726 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
7727
7728 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7729
7730 PR target/89021
7731 * config/i386/sse.md (sse_cvtpi2ps): Changed to
7732 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
7733 SSE emulation.
7734
7735 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7736
7737 PR target/89021
7738 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
7739 (sse_cvttps2pi): Likewise.
7740
7741 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7742
7743 PR target/89021
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.
7749
7750 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7751
7752 PR target/89021
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.
7757
7758 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7759
7760 PR target/89021
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
7764 support.
7765 (mmx_gt<mode>3): Likewise.
7766
7767 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7768
7769 PR target/89021
7770 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
7771 TARGET_MMX_WITH_SSE. Add SSE support.
7772
7773 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7774
7775 PR target/89021
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.
7780 Add SSE support.
7781
7782 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7783
7784 PR target/89021
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.
7788 (ashr<mode>3): New.
7789 (<shift_insn><mode>3): Likewise.
7790
7791 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7792
7793 PR target/89021
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.
7796
7797 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7798
7799 PR target/89021
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
7803 SSE support.
7804
7805 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7806
7807 PR target/89021
7808 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
7809 TARGET_MMX_WITH_SSE.
7810 (mulv4hi3): New.
7811 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
7812 support.
7813
7814 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7815
7816 PR target/89021
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.
7824
7825 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7826
7827 PR target/89021
7828 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
7829 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
7830 prototype.
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.
7838
7839 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7840 Uros Bizjak <ubizjak@gmail.com>
7841
7842 PR target/89021
7843 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
7844 New function.
7845 (ix86_split_mmx_pack): Likewise.
7846 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
7847 New prototype.
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.
7860
7861 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7862
7863 PR target/89021
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.
7870
7871 2019-05-15 Martin Liska <mliska@suse.cz>
7872
7873 PR middle-end/90478
7874 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
7875 Check for overflow.
7876
7877 2019-05-15 Richard Biener <rguenther@suse.de>
7878
7879 * tree-into-ssa.c (pass_build_ssa::execute): Run
7880 update_address_taken before going into SSA.
7881
7882 2019-05-15 Richard Biener <rguenther@suse.de>
7883
7884 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
7885 as __BIT_FIELD_REF with type with -gimple.
7886
7887 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
7888
7889 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
7890 semantically equivalent branches (left over after prior refactorings).
7891
7892 2019-05-15 Richard Biener <rguenther@suse.de>
7893
7894 PR tree-optimization/88828
7895 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
7896 bogus check.
7897
7898 2019-05-14 Richard Biener <rguenther@suse.de>
7899
7900 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
7901 as __VIEW_CONVERT with -gimple.
7902
7903 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
7904
7905 PR target/82920
7906 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
7907 Darwin.
7908
7909 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
7910
7911 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
7912 define_split to become a define_insn_and_split.
7913
7914 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
7915
7916 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
7917 arguments.
7918 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
7919 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
7920 (sibcall_epilogue): Adjust.
7921 (epilogue): Adjust.
7922
7923 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7924
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]*
7934 to *-*-solaris2*.
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.
7947
7948 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
7949
7950 * config/i386/i386.md (any_div): New code iterator.
7951 (paired_mod): New code attribute.
7952 (sgnprefix): Handle DIV and UDIV RTXes.
7953 (u): Ditto.
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.
7969
7970 2019-05-14 Richard Biener <rguenther@suse.de>
7971 H.J. Lu <hongjiu.lu@intel.com>
7972
7973 PR tree-optimization/88828
7974 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
7975 permuting in a single non-constant element not extracted
7976 from a vector.
7977
7978 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
7979
7980 * internal-fn.def (SIGNBIT): New.
7981 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
7982 defined.
7983 (signbitv4sf2): Likewise.
7984
7985 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
7986
7987 PR target/90357
7988 * config/mips/mips.c (mips_split_move): Skip forward SRC into
7989 next insn when the SRC reg is dead.
7990
7991 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
7992
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.
8002
8003 2019-05-13 Nathan Sidwell <nathan@acm.org>
8004
8005 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
8006 (run_attempt): Reformat line break.
8007
8008 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
8009
8010 PR target/90418
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.
8014
8015 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
8016
8017 PR target/89221
8018 * configure.ac (--enable-frame-pointer):
8019 Disable by default for cygwin and mingw.
8020 * configure: Regenerate.
8021
8022 2019-05-13 Nathan Sidwell <nathan@acm.org>
8023
8024 * dwarf2out.c (breakout_comdat_types): Move comment to correct
8025 piece of code.
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.
8029
8030 2019-05-13 Richard Biener <rguenther@suse.de>
8031
8032 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
8033 VIEW_CONVERT_EXPR.
8034 (vect_build_slp_tree_1): Likewise.
8035
8036 2019-05-13 Richard Biener <rguenther@suse.de>
8037
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
8041 as well.
8042 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
8043 processing PHIs.
8044 (do_rpo_vn): Deal with multiple edges into the entry block
8045 that are not backedges inside the region by skipping PHIs
8046 of the entry block.
8047
8048 2019-05-13 Richard Biener <rguenther@suse.de>
8049
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.
8054
8055 2019-05-13 Martin Liska <mliska@suse.cz>
8056
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.
8060
8061 2019-05-13 Martin Liska <mliska@suse.cz>
8062
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.
8068
8069 2019-05-13 Martin Liska <mliska@suse.cz>
8070
8071 PR gcov-profile/90380
8072 * gcov.c (enum loop_type): Remove the enum and
8073 the operator.
8074 (handle_cycle): Assert that we should not reach
8075 a negative count.
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
8078 happen.
8079
8080 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
8081
8082 PR target/82920
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.
8089
8090 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
8091
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.
8105
8106 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
8107
8108 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
8109 is given, print the state of the EH "save world" computation for
8110 Darwin.
8111
8112 2019-05-11 Jakub Jelinek <jakub@redhat.com>
8113
8114 PR c++/59813
8115 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
8116 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
8117
8118 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
8119
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.
8123
8124 2019-05-10 Richard Biener <rguenther@suse.de>
8125
8126 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
8127 (do_rpo_vn): Initialize next_value_id.
8128
8129 2019-05-10 Martin Liska <mliska@suse.cz>
8130
8131 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
8132 Fix plural form.
8133
8134 2019-05-10 Jakub Jelinek <jakub@redhat.com>
8135
8136 PR tree-optimization/90385
8137 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
8138 arguments of the exit phis.
8139
8140 PR c++/90383
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
8143 id->do_not_fold.
8144 (copy_tree_body_r): Likewise.
8145 (copy_fn): Set id.do_not_fold to true.
8146
8147 2019-05-10 Martin Liska <mliska@suse.cz>
8148
8149 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
8150 Reapply changes from r269790.
8151
8152 2019-05-10 Martin Liska <mliska@suse.cz>
8153
8154 PR middle-end/90340
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):
8159 Use it.
8160 * tree-switch-conversion.h (struct jump_table_cluster):
8161 Likewise.
8162
8163 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
8164
8165 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
8166
8167 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
8168
8169 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
8170
8171 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
8172
8173 PR rtl-optimization/88879
8174 * sel-sched.c (sel_target_adjust_priority): Remove assert.
8175
8176 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
8177
8178 PR target/90405
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.
8187
8188 2019-05-09 Martin Liska <mliska@suse.cz>
8189
8190 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
8191 and MAX_EXPR in GIMPLE FE format.
8192
8193 2019-05-09 Martin Liska <mliska@suse.cz>
8194
8195 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
8196 * gimple-pretty-print.c (dump_gimple_bb_header):
8197 Dump BB count.
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):
8207 New param.
8208 * predict.c (get_hot_bb_threshold): Set from the new param.
8209 (set_hot_bb_threshold): New.
8210
8211 2019-05-09 Richard Biener <rguenther@suse.de>
8212
8213 PR tree-optimization/90395
8214 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
8215 rewrite vector stores that throw internally.
8216
8217 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
8218
8219 * cif-code.def (CHKP): Remove.
8220
8221 PR target/89221
8222 * configure.ac (--enable-frame-pointer): Disable by default for
8223 GNU systems.
8224 * configure: Regenerate.
8225
8226 2019-05-09 Alan Modra <amodra@gmail.com>
8227
8228 PR target/89271
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
8241 alternatives.
8242 (movsi_internal1): Don't disparage vector alternatives.
8243 (mov<mode>_internal): Likewise, excepting alternative that
8244 will be split.
8245 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
8246 we <- b alternative.
8247
8248 2019-05-08 Jakub Jelinek <jakub@redhat.com>
8249
8250 PR c++/59813
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
8263 member.
8264 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
8265 Perform variable life analysis to select variables that really need
8266 clobbers added.
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.
8270
8271 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
8272 Richard Earnshaw <rearnsha@arm.com>
8273
8274 PR target/88167
8275 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
8276 function.
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
8280 regs.
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.
8290
8291 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
8292
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
8301 to int64_t.
8302 (struct ainc_cost_data, struct iv_ca): Promote type of member to
8303 int64_t.
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.
8308
8309 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
8310
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.
8320
8321 2019-05-08 Jakub Jelinek <jakub@redhat.com>
8322
8323 PR tree-optimization/90356
8324 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
8325
8326 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
8327
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
8333 to extra_headers.
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
8341 __AVX512BF16__.
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
8347 F_AVX512BF16.
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.
8359
8360 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
8361
8362 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
8363 Delete declaration.
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.
8373
8374 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
8375
8376 PR target/89765
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
8380 operands.
8381
8382 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
8383
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.
8387
8388 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
8389
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.
8397
8398 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
8399
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.
8406
8407 2019-05-07 Richard Biener <rguenther@suse.de>
8408
8409 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
8410 not specified still compute a comp_vectype for invariant
8411 compares.
8412
8413 2019-05-07 Richard Biener <rguenther@suse.de>
8414
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
8418 PHI continuation.
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.
8422
8423 2019-05-07 Martin Liska <mliska@suse.cz>
8424
8425 * bitmap.c (bitmap_register): Come up with
8426 alloc_descriptor_max_uid and assign it for
8427 a new bitmap.
8428 (register_overhead): Use get_descriptor as
8429 a descriptor.
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.
8438
8439 2019-05-07 Richard Biener <rguenther@suse.de>
8440
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.
8444
8445 2019-05-07 Richard Biener <rguenther@suse.de>
8446
8447 PR tree-optimization/90316
8448 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
8449 limit by reference.
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.
8463
8464 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
8465
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.
8469
8470 2019-05-07 Richard Biener <rguenther@suse.de>
8471
8472 PR lto/90369
8473 * lto-wrapper.c (debug_objcopy): Use the original filename
8474 including archive offset for the filename used for -save-temps.
8475
8476 2019-05-07 Li Jia He <helijia@linux.ibm.com>
8477
8478 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
8479 detection.
8480
8481 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
8482 Hongtao Liu <hongtao.liu@intel.com>
8483
8484 PR target/89750
8485 PR target/86444
8486 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
8487 Modified, original implementation isn't correct.
8488
8489 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
8490
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
8499 fixed.
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):
8504 Adjust.
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
8510 instead of 67.
8511 (REGISTER_NAMES): Adjust.
8512 (ADDITIONAL_REGISTER_NAMES): Adjust.
8513 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
8514
8515 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
8516
8517 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
8518 Delete.
8519 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
8520 (DWARF_FRAME_REGISTERS): Adjust.
8521 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
8522 Adjust.
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
8535 argument.
8536 (rs6000_dbx_register_number): Adjust.
8537
8538 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
8539
8540 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
8541
8542 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
8543
8544 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
8545 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
8546
8547 2019-05-06 Jakub Jelinek <jakub@redhat.com>
8548
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
8554 variable.
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
8567 no elts.
8568 (pass_store_merging::process_store): Likewise.
8569
8570 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
8571
8572 PR target/89424
8573 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
8574 handling of V1TImode.
8575
8576 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
8577
8578 PR target/89221
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.
8588
8589 2019-05-06 Martin Liska <mliska@suse.cz>
8590
8591 * config.gcc: Append to target_gtfiles and fix indentation.
8592
8593 2019-05-06 Richard Biener <rguenther@suse.de>
8594
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.
8599
8600 2019-05-06 Richard Biener <rguenther@suse.de>
8601
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
8605 the constructor.
8606
8607 2019-05-06 Richard Biener <rguenther@suse.de>
8608
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.
8616
8617 2019-05-06 Richard Biener <rguenther@suse.de>
8618
8619 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
8620
8621 2019-05-06 Richard Biener <rguenther@suse.de>
8622
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
8628 quadratic.
8629
8630 2019-05-06 Martin Liska <mliska@suse.cz>
8631
8632 PR sanitizer/90312
8633 * config/i386/i386-options.c (ix86_option_override_internal): Error only
8634 when -mabi is selected to a non-default version.
8635
8636 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
8637 Martin Liska <mliska@suse.cz>
8638
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.
8650
8651 2019-05-06 Martin Liska <mliska@suse.cz>
8652
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
8662 target_gtfiles.
8663 * config/i386/i386.c: Split content of the file
8664 into newly introduced files.
8665 * config/i386/i386.h: Declare common variables
8666 and macros.
8667 * config/i386/t-i386: Define dependencies for new files.
8668
8669 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
8670
8671 PR target/89400
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.
8678
8679 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
8680
8681 PR tree-optimization/90269
8682 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
8683 Ignore clobbers.
8684
8685 2019-05-03 Martin Liska <mliska@suse.cz>
8686
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.
8709
8710 2019-05-03 Richard Biener <rguenther@suse.de>
8711
8712 PR tree-optimization/90316
8713 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
8714 before running VN.
8715
8716 2019-05-03 Richard Biener <rguenther@suse.de>
8717
8718 * tree-vect-stmts.c (get_group_load_store_type): Avoid
8719 peeling for gaps by loading only lower halves of vectors
8720 if possible.
8721 (vectorizable_load): Likewise.
8722
8723 2019-05-03 Richard Biener <rguenther@suse.de>
8724
8725 PR middle-end/89518
8726 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
8727
8728 2019-05-03 Richard Biener <rguenther@suse.de>
8729
8730 PR middle-end/87314
8731 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
8732 Handle STRING_CST vs DECL or STRING_CST.
8733
8734 2019-05-03 Richard Biener <rguenther@suse.de>
8735
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
8740 stores.
8741
8742 2019-05-03 Jakub Jelinek <jakub@redhat.com>
8743
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
8748 here.
8749 * opts-global.c (decode_options): Adjust finish_option caller, call
8750 print_help here.
8751
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.
8755
8756 2019-05-03 Richard Biener <rguenther@suse.de>
8757
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.
8762
8763 2019-05-03 Richard Biener <rguenther@suse.de>
8764
8765 * passes.c (execute_function_todo): Remove dead code.
8766
8767 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
8768
8769 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
8770 the internal register number, for any "real" register.
8771
8772 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
8773
8774 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
8775 correct numbers for TFHAR, TFIAR, TEXASR.
8776
8777 2019-05-02 Richard Biener <rguenther@suse.de>
8778
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.
8783
8784 2019-05-02 Richard Biener <rguenther@suse.de>
8785
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.
8789
8790 2019-05-02 Richard Biener <rguenther@suse.de>
8791
8792 PR tree-optimization/90273
8793 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
8794 useless debug stmts.
8795
8796 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
8797
8798 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
8799 ACLE branch.
8800 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
8801 SVE ACLE branch.
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
8807 function.
8808
8809 2019-05-02 Martin Liska <mliska@suse.cz>
8810
8811 * cgraphclones.c: Call valid_attribute_p with 1 for
8812 target_clone.
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):
8818 Likewise.
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.
8824
8825 2019-05-02 Martin Liska <mliska@suse.cz>
8826
8827 * gcc.c (process_command): Add dummy file only
8828 if n_infiles == 0.
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
8832 is set.
8833 (common_handle_option): Factor out content of OPT__help_
8834 into print_help.
8835 * opts.h (finish_options): Add new argument.
8836
8837 2019-05-02 Martin Liska <mliska@suse.cz>
8838
8839 PR target/88809
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.
8844
8845 2019-05-01 Jeff Law <law@redhat.com>
8846
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.
8850
8851 2019-04-30 Andrew Waterman <andrew@sifive.com>
8852 Jim Wilson <jimw@sifive.com>
8853
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.
8864 (mov<mode>cc): New.
8865 (mov<GPR:mode><X:mode>cc): Likewise.
8866 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
8867
8868 2019-04-30 Nathan Sidwell <nathan@acm.org>
8869
8870 * tree.h (MARK_TS_EXP): New.
8871
8872 2019-04-30 Martin Liska <mliska@suse.cz>
8873
8874 * opts.c (enable_warning_as_error): Provide hints
8875 for unknown options.
8876
8877 2019-04-30 Martin Liska <mliska@suse.cz>
8878
8879 PR debug/90288
8880 * doc/invoke.texi: Add missing dash for gas-locview-support
8881 and gno-as-locview-support.
8882
8883 2019-04-30 Jakub Jelinek <jakub@redhat.com>
8884
8885 PR target/89093
8886 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
8887 whitespace at the start of target attribute string.
8888
8889 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8890
8891 PR target/86538
8892 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
8893 Define __ARM_FEATURE_ATOMICS.
8894
8895 2019-04-30 Martin Liska <mliska@suse.cz>
8896
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.
8901
8902 2019-04-30 Martin Liska <mliska@suse.cz>
8903
8904 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
8905 DECL_FUNCTION_CODE into ix86_builtins enum before
8906 the switch statement.
8907
8908 2019-04-30 Jakub Jelinek <jakub@redhat.com>
8909
8910 PR tree-optimization/89475
8911 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
8912 calls.
8913
8914 2019-04-30 Martin Liska <mliska@suse.cz>
8915
8916 PR translation/90274
8917 * opts.c (print_filtered_help): Wrap string in _(...).
8918
8919 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
8920
8921 PR tree-optimization/90240
8922 Revert:
8923 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
8924
8925 PR tree-optimization/90078
8926 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
8927 checks for infinite_cost overflow.
8928
8929 2019-04-29 Jeff Law <law@redhat.com>
8930
8931 * passes.def: Move -Wrestrict pass after copy propagation.
8932
8933 2019-04-29 Maya Rashish <coypu@sdf.org>
8934
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*.
8938
8939 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
8940
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.
8944
8945 2019-04-29 Richard Biener <rguenther@suse.de>
8946
8947 PR tree-optimization/90278
8948 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
8949 EH on comparison simplification.
8950
8951 2019-04-29 Jason Merrill <jason@redhat.com>
8952
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.
8956
8957 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
8958
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.
8964
8965 2019-04-29 Jakub Jelinek <jakub@redhat.com>
8966
8967 PR rtl-optimization/90257
8968 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
8969 return value.
8970
8971 Revert the revert:
8972 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
8973
8974 PR target/90178
8975 Revert:
8976 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
8977
8978 Revert the revert:
8979 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
8980
8981 Revert:
8982 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
8983
8984 * lra-spills.c (lra_final_code_change): Remove useless move insns.
8985
8986 2019-04-29 Richard Biener <rguenther@suse.de>
8987
8988 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
8989 rhs issue a reset.
8990
8991 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
8992
8993 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
8994 varasm.h, and netbsd-protos.h.
8995
8996 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
8997
8998 PR target/89261
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.
9003
9004 2019-04-27 Martin Liska <mliska@suse.cz>
9005
9006 PR middle-end/90258
9007 * opt-suggestions.c (option_proposer::build_option_suggestions):
9008 When get_valid_option_values returns empty values, add the
9009 misspelling candidate.
9010
9011 2019-04-26 Jim Wilson <jimw@sifive.com>
9012
9013 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
9014 parameter.
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
9023 riscv_move_integer.
9024
9025 2018-04-26 Eugene Sharygin <eush@ispras.ru>
9026
9027 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
9028 corrupt codes.
9029
9030 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
9031
9032 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
9033 commentary about the encoding of precision.
9034
9035 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
9036
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.
9040
9041 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
9042
9043 * doc/extend.texi (vector_size): Add missing comma after @xref.
9044
9045 2019-04-25 Jakub Jelinek <jakub@redhat.com>
9046
9047 * BASE-VER: Set to 10.0.0.
9048
9049 2019-04-25 Richard Biener <rguenther@suse.de>
9050
9051 PR middle-end/89765
9052 * gimplify.c (gimplify_expr): Avoid turning a lvalue
9053 VIEW_CONVERT_EXPR into one operating on an rvalue.
9054
9055 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
9056
9057 PR target/89929
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.
9069
9070 2019-04-25 Richard Biener <rguenther@suse.de>
9071
9072 * tree-pass.h (make_pass_phi_only_cprop): Remove.
9073 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
9074
9075 2019-04-24 Jeff Law <law@redhat.com>
9076
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.
9083
9084 2019-04-24 Richard Biener <rguenther@suse.de>
9085
9086 PR middle-end/90213
9087 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
9088 by size and BITS_PER_UNIT on poly-wide-ints.
9089
9090 2019-04-25 Richard Biener <rguenther@suse.de>
9091
9092 PR middle-end/90194
9093 * match.pd: Add pattern to simplify view-conversion of an
9094 empty constructor.
9095
9096 2019-04-24 Clement Chigot <clement.chigot@atos.net>
9097
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.
9102
9103 2019-04-24 Jakub Jelinek <jakub@redhat.com>
9104
9105 PR target/90193
9106 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
9107 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
9108
9109 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
9110
9111 PR target/89952
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.
9117
9118 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
9119
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.
9123
9124 2019-04-24 Jakub Jelinek <jakub@redhat.com>
9125
9126 PR target/90187
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.
9129
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.
9133
9134 PR tree-optimization/90211
9135 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
9136 which are not SSA_NAMEs.
9137
9138 2018-04-23 Sudakshina Das <sudi.das@arm.com>
9139
9140 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
9141 AArch64.
9142 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
9143
9144 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
9145
9146 PR rtl-optimization/87979
9147 * modulo-sched.c (sms_schedule): Start ii value "mii" should
9148 not equal zero.
9149
9150 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
9151
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
9155 schedule.
9156
9157 2019-04-23 Richard Biener <rguenther@suse.de>
9158
9159 PR debug/90131
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.
9164
9165 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9166 Bernd Edlinger <bernd.edlinger@hotmail.de>
9167 Jakub Jelinek <jakub@redhat.com>
9168
9169 PR target/89093
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
9173 general-regs-only.
9174 (arm_valid_target_attribute_rec): Handle general-regs-only.
9175 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
9176 general-regs-only.
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.
9184
9185 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
9186
9187 PR tree-optimization/90078
9188 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
9189 checks for infinite_cost overflow.
9190
9191 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
9192
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.
9198
9199 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
9200
9201 PR target/90178
9202 Revert:
9203 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
9204
9205 Revert the revert:
9206 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
9207
9208 Revert:
9209 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
9210
9211 * lra-spills.c (lra_final_code_change): Remove useless move insns.
9212
9213 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
9214
9215 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
9216 names using operand format, rather than hard-wired.
9217 (speculation_barrier): Likewise.
9218
9219 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
9220
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.
9224
9225 2019-04-19 Jakub Jelinek <jakub@redhat.com>
9226
9227 PR middle-end/90139
9228 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
9229 assign_temp instead of gen_reg_rtx.
9230
9231 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
9232
9233 PR translation/90118
9234 * config/aarch64/aarch64.c (aarch64_override_options_internal):
9235 Add missing space before %<.
9236
9237 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
9238
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.
9242
9243 2019-04-18 Martin Sebor <msebor@redhat.com>
9244
9245 PR middle-end/89797
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.
9249
9250 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
9251
9252 PR ipa/85051
9253 * ipa-inline.c (flatten_function): New parameter UPDATE.
9254 (ipa_inline, early_inliner): Use it.
9255
9256 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
9257
9258 * fold-const.c (int_const_binop): Return early on failure.
9259
9260 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
9261
9262 PR middle-end/85164
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.
9266
9267 2019-04-18 Richard Biener <rguenther@suse.de>
9268
9269 PR debug/90131
9270 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
9271 out from ...
9272 (remove_forwarder_block): ... here.
9273 (remove_forwarder_block_with_phi): Also move debug stmts here.
9274
9275 2019-04-18 Jakub Jelinek <jakub@redhat.com>
9276
9277 PR translation/79183
9278 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
9279 inform where appropriate.
9280
9281 2019-04-18 Richard Biener <rguenther@suse.de>
9282
9283 * tree.c (get_qualified_type): Put found type variants at the
9284 head of the variant list.
9285
9286 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
9287
9288 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
9289
9290 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
9291
9292 PR target/90125
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.
9298
9299 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
9300
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.
9304
9305 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
9306
9307 * auto-inc-dec.c (attempt_change): Set the alignment of the
9308 temporary memory to that of the original.
9309
9310 2019-04-17 Joao Moreira <jmoreira@suse.de>
9311
9312 * targhooks.c (default_print_patchable_function_entry): Emit
9313 __patchable_function_entries section with writable flags to allow
9314 relocation resolution.
9315
9316 2019-04-17 Jonny Grant <jg@jguk.org>
9317
9318 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
9319
9320 2019-04-17 Jakub Jelinek <jakub@redhat.com>
9321
9322 PR middle-end/90095
9323 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
9324 on lowpart SUBREGs.
9325
9326 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
9327
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.
9332
9333 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
9334
9335 PR target/17108
9336 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
9337 name.
9338 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
9339 name.
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
9345 use Pmode.
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.
9368
9369 2019-04-17 Jakub Jelinek <jakub@redhat.com>
9370
9371 PR target/89093
9372 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
9373 whitespace at the start of target attribute string.
9374
9375 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
9376
9377 PR target/84369
9378 * config/rs6000/power9.md: Add store forwarding bypass.
9379
9380 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
9381
9382 PR debug/89528
9383 * valtrack.c (dead_debug_insert_temp): Reset debug references
9384 to the return value of a call being removed.
9385
9386 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
9387
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.
9396
9397 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
9398
9399 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
9400 (sibcall_value_insn): Likewise.
9401 * config/arc/constraints.md (Rs5): Remove.
9402
9403 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
9404
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.
9431 (LP_END): Likewise.
9432 (shift_si3_loop): Update pattern.
9433
9434 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
9435
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.
9441
9442 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
9443 Shiva Chen <shiva0217@gmail.com>
9444
9445 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
9446 code gen with large shift amount.
9447
9448 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
9449
9450 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
9451 subreg.
9452
9453 2019-04-16 Jakub Jelinek <jakub@redhat.com>
9454
9455 PR target/90096
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.
9463
9464 PR rtl-optimization/90082
9465 * dce.c (can_delete_call): New function.
9466 (deletable_insn_p, mark_insn): Use it.
9467
9468 PR tree-optimization/90090
9469 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
9470 throw internally.
9471 (is_division_by_square): Likewise. Formatting fix.
9472
9473 2019-04-16 Richard Biener <rguenther@suse.de>
9474
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.
9478
9479 2019-04-15 Jeff Law <law@redhat.com>
9480
9481 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
9482 size and alignment as unsigned.
9483
9484 2019-04-15 Richard Biener <rguenther@suse.de>
9485
9486 PR debug/90074
9487 * tree-loop-distribution.c (destroy_loop): Preserve correct
9488 debug info.
9489
9490 2019-04-15 Richard Biener <rguenther@suse.de>
9491
9492 PR tree-optimization/90071
9493 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
9494 abnormal operands from def stmts.
9495
9496 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
9497
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.
9504
9505 2019-04-15 Richard Biener <rguenther@suse.de>
9506
9507 PR ipa/88936
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
9512 member.
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
9520 a singleton.
9521
9522 2019-04-15 Martin Jambor <mjambor@suse.cz>
9523
9524 PR ipa/pr89693
9525 * cgraph.c (clone_of_p): Loop over clone chain for each step in
9526 the thunk chain.
9527
9528 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
9529
9530 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
9531
9532 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
9533 Kito Cheng <kito.cheng@gmail.com>
9534 Shiva Chen <shiva0217@gmail.com>
9535
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
9544 relax_group_id.
9545 (nds32_group_tls_insn): Ditto.
9546 (nds32_group_float_insns): Ditto.
9547 * config/nds32/nds32.md (tls_le): New.
9548 (sym_got): Ditto.
9549
9550 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
9551
9552 * configure: Add nds32 target for dwarf2 debug_line checking.
9553 * configure.ac: Regenerated.
9554
9555 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
9556
9557 PR lto/89358
9558 * ipa-devirt.c (skip_in_fields_list_p): New.
9559 (odr_types_equivalent_p): Use it.
9560
9561 2019-04-13 Jakub Jelinek <jakub@redhat.com>
9562
9563 PR target/89093
9564 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
9565 instead of strncmp when checking for thumb and arm. Formatting fixes.
9566
9567 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
9568
9569 * doc/install.texi: Document --with-target-system-zlib.
9570
9571 2019-04-12 Martin Sebor <msebor@redhat.com>
9572
9573 PR c/88383
9574 PR c/89288
9575 PR c/89798
9576 PR c/89797
9577 * targhooks.c (default_vector_alignment): Avoid assuming
9578 argument fits in SHWI.
9579 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
9580 a shift expression.
9581 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
9582
9583 2019-04-12 Jakub Jelinek <jakub@redhat.com>
9584
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.
9591
9592 * config/mips/loongson-mmiintrin.h: Fix up #error message.
9593
9594 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
9595
9596 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
9597 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
9598
9599 2019-04-12 Martin Liska <mliska@suse.cz>
9600
9601 PR middle-end/89970
9602 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
9603 in error message.
9604 (separate_attrs): Handle multiple 'default's.
9605 (expand_target_clones): Rework error handling code.
9606
9607 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
9608
9609 PR target/87532
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.
9614
9615 2019-04-12 Jakub Jelinek <jakub@redhat.com>
9616
9617 PR target/52726
9618 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
9619 "invalid %%t operand" in output_operand_lossage message.
9620
9621 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
9622
9623 * config/s390/predicates.md (permute_pattern_operand): New
9624 predicate.
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
9630 already.
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.
9636
9637 2019-04-12 Jakub Jelinek <jakub@redhat.com>
9638
9639 PR c/89946
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.
9644
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.
9650
9651 2018-04-11 Steve Ellcey <sellcey@marvell.com>
9652
9653 PR rtl-optimization/87763
9654 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
9655 New Instruction.
9656
9657 2019-04-11 Tom de Vries <tdevries@suse.de>
9658
9659 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
9660 max macro using statement expression.
9661
9662 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
9663
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.
9669
9670 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
9671
9672 PR target/90016
9673 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
9674
9675 2019-04-11 Jakub Jelinek <jakub@redhat.com>
9676
9677 PR rtl-optimization/89965
9678 * dce.c (sp_based_mem_offset): New function.
9679 (find_call_stack_args): Use sp_based_mem_offset.
9680
9681 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
9682
9683 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
9684
9685 2019-04-11 Richard Biener <rguenther@suse.de>
9686
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
9695 return.
9696
9697 2019-04-11 Richard Biener <rguenther@suse.de>
9698
9699 PR tree-optimization/90018
9700 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
9701 Test both SLP and interleaving variants.
9702
9703 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
9704
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.
9716
9717 2018-04-10 Steve Ellcey <sellcey@marvell.com>
9718
9719 PR rtl-optimization/87763
9720 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
9721 New prototype.
9722 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
9723 New function.
9724 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
9725 New instruction.
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.
9730
9731 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
9732
9733 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
9734 "Although" in -fipa-icf documentation.
9735
9736 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
9737 of using multiple -g options.
9738
9739 2019-04-10 Martin Liska <mliska@suse.cz>
9740
9741 PR gcov-profile/89959
9742 * doc/gcov.texi: Make documentation of -x option
9743 more precise.
9744
9745 2019-04-10 Richard Biener <rguenther@suse.de>
9746
9747 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
9748 member.
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.
9755
9756 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
9757
9758 PR target/90016
9759 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
9760 obsolete reference to N.
9761
9762 2019-04-10 Jakub Jelinek <jakub@redhat.com>
9763
9764 PR middle-end/90025
9765 * expr.c (store_expr): Set properly size on the MEM passed to
9766 clear_storage.
9767
9768 PR c++/90010
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
9773 strncpy or strcat.
9774
9775 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
9776
9777 PR target/90024
9778 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
9779 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
9780 into three.
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.
9784
9785 2019-04-09 Jakub Jelinek <jakub@redhat.com>
9786
9787 PR translation/90011
9788 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
9789 from diagnostics.
9790 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
9791 diagnostics.
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.
9796
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
9803 integer_type_node.
9804
9805 2019-04-09 Martin Liska <mliska@suse.cz>
9806
9807 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
9808 * doc/install.texi: Document the new config.
9809
9810 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
9811
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.
9816
9817 2019-04-09 Jakub Jelinek <jakub@redhat.com>
9818
9819 PR target/90015
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.
9823
9824 2019-04-08 wu yuan <wuyuan5@huawei.com>
9825
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.
9829
9830 2019-04-08 Richard Biener <rguenther@suse.de>
9831
9832 PR tree-optimization/90006
9833 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
9834 calls like lrint.
9835
9836 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
9837
9838 PR target/83033
9839 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
9840 construction.
9841 (fma_root_node): Likewise.
9842 (func_fma_steering): Likewise.
9843
9844 2019-04-08 Jakub Jelinek <jakub@redhat.com>
9845
9846 PR rtl-optimization/89865
9847 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
9848
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.
9855
9856 2019-04-08 Martin Liska <mliska@suse.cz>
9857
9858 PR gcov-profile/89961
9859 * doc/gcov.texi: Document data_file.
9860 * gcov.c (generate_results): Add data_info into JSON output.
9861
9862 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
9863
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.
9872
9873 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
9874
9875 PR target/89623
9876 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
9877 Mask.
9878
9879 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
9880
9881 PR target/89945
9882 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
9883 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
9884
9885 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
9886
9887 * sched-deps.c (sched_macro_fuse_insns): Check return value of
9888 targetm.fixed_condition_code_regs.
9889
9890 2019-04-05 Richard Biener <rguenther@suse.de>
9891
9892 PR debug/89892
9893 PR debug/89905
9894 * tree-cfgcleanup.c (remove_forwarder_block): Always move
9895 debug bind stmts but reset them if they are not valid at the
9896 destination.
9897
9898 2019-04-05 Martin Liska <mliska@suse.cz>
9899
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):
9910 Likewise.
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.
9936
9937 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
9938
9939 PR tree-optimization/89956
9940 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
9941 multiple negates of the same value.
9942
9943 2019-04-04 Martin Sebor <msebor@redhat.com>
9944
9945 PR middle-end/89957
9946 PR middle-end/89911
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.
9951
9952 2019-04-04 Martin Sebor <msebor@redhat.com>
9953
9954 PR middle-end/89934
9955 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
9956 out if the number of arguments is less than expected.
9957
9958 2019-04-04 Jeff Law <law@redhat.com>
9959
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.
9964
9965 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
9966
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
9971 to move_invariants.
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
9975 locally.
9976
9977 2019-04-03 qing zhao <qing.zhao@oracle.com>
9978
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.
9985
9986 2019-04-03 Jeff Law <law@redhat.com>
9987
9988 PR rtl-optimization/81025
9989 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
9990
9991 2019-04-03 Richard Biener <rguenther@suse.de>
9992
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.
10000
10001 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
10002
10003 * config/s390/s390.c (s390_legitimate_address_p): Reject long
10004 displacement addresses for vector mode operands.
10005
10006 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
10007
10008 * config/arc/arc.c (GMASK_LEN): Define.
10009 (arc_restore_callee_saves): Restore first blink when
10010 !optimize_size.
10011
10012 2019-04-03 Sudakshina Das <sudi.das@arm.com>
10013
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.
10017
10018 2019-04-03 Richard Biener <rguenther@suse.de>
10019
10020 PR lto/89896
10021 * lto-wrapper.c (run_gcc): Avoid implicit rules making
10022 the all target phony.
10023
10024 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
10025
10026 PR target/89902
10027 PR target/89903
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.
10036
10037 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
10038
10039 PR rtl-optimization/84206
10040 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
10041 iterating over loop headers.
10042
10043 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
10044
10045 PR rtl-optimization/85876
10046 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
10047 beyond the original fence.
10048
10049 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
10050
10051 * config.gcc: Mark spu* targets as deprecated/obsolete.
10052
10053 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
10054
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"):
10067 Remove expanders.
10068
10069 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
10070
10071 * config/s390/s390-builtin-types.def: New builtin function type
10072 definitions.
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
10082 expanders.
10083 ("vec_vstrs<mode>"): New insn definition.
10084
10085 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
10086
10087 * config/s390/s390-builtin-types.def: Add new builtin function
10088 types.
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
10092 s390_vsrd.
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
10097 definitions.
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.
10101
10102 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
10103
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.
10108
10109 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
10110
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.
10116
10117 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
10118
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
10127 insn definitions.
10128
10129 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
10130
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
10134 instructions.
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.
10139
10140 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
10141
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__.
10145
10146 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
10147
10148 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
10149 iterators.
10150 (SFSI): New mode attribute.
10151 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
10152 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
10153 rename to ...
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.
10158
10159 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
10160
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
10163 mode iterators.
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"):
10171 ... to these.
10172
10173 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
10174
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.
10178
10179 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
10180
10181 * config/s390/s390.md ("*popcountdi_arch13_cc")
10182 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
10183 definition.
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.
10190
10191 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
10192
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.
10208
10209 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
10210
10211 * common/config/s390/s390-common.c (processor_flags_table): New
10212 entry for arch13.
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
10222 definitions.
10223 * config/s390/s390.opt: Support arch13 as processor type in
10224 command line options.
10225
10226 2019-04-02 Martin Liska <mliska@suse.cz>
10227
10228 PR translation/89912
10229 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
10230 Fix param description of graphite-max-arrays-per-scop.
10231
10232 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
10233
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.
10237
10238 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
10239
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.
10243
10244 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
10245
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.
10250
10251 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
10252
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.
10256
10257 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
10258
10259 PR rtl-optimization/87273
10260 * sel-sched-ir.c (merge_fences): Remove assert.
10261
10262 2019-04-01 Richard Biener <rguenther@suse.de>
10263
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.
10273
10274 2019-04-01 Martin Liska <mliska@suse.cz>
10275
10276 PR driver/89861
10277 * opt-suggestions.c (option_proposer::build_option_suggestions):
10278 Add variant without any argument in order to provide better
10279 hints.
10280
10281 2019-04-01 Richard Biener <rguenther@suse.de>
10282
10283 PR c/71598
10284 * gimple.c: Include langhooks.h.
10285 (gimple_get_alias_set): Treat enumeral types as the underlying
10286 integer type.
10287
10288 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
10289 Eric Botcazou <ebotcazou@adacore.com>
10290
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
10294 architectures.
10295
10296 2019-03-29 Jim Wilson <jimw@sifive.com>
10297
10298 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
10299 Clear MASK_RVC and then set if C subset supported.
10300
10301 2019-03-29 Jakub Jelinek <jakub@redhat.com>
10302
10303 PR c/89872
10304 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
10305 non-addressable complit into its initializer if it is volatile.
10306
10307 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
10308
10309 * opts-common.c (integral_argument): Set errno properly in one case.
10310
10311 2019-03-29 Martin Liska <mliska@suse.cz>
10312
10313 * doc/invoke.texi: Remove -Wchkp from documentation.
10314
10315 2019-03-29 Martin Liska <mliska@suse.cz>
10316
10317 * dbgcnt.c (print_limit_reach): New function.
10318 (dbg_cnt): Use it.
10319
10320 2019-03-29 Martin Liska <mliska@suse.cz>
10321
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.
10325
10326 2019-03-29 Jakub Jelinek <jakub@redhat.com>
10327
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).
10331
10332 2019-03-28 Jakub Jelinek <jakub@redhat.com>
10333
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.
10343
10344 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
10345
10346 PR target/89865
10347 * config/i386/i386.md (RMW operation with LEA peephole):
10348 Use LEAMODE mode attribute instead of SWI mode iterator for
10349 LEA pattern.
10350
10351 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
10352
10353 PR target/89848
10354 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
10355 Also process XEXP (src, 0) of a shift insn.
10356
10357 2019-03-28 David Malcolm <dmalcolm@redhat.com>
10358
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.
10362
10363 2019-03-28 Jakub Jelinek <jakub@redhat.com>
10364
10365 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
10366 test.
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
10373 insns again.
10374
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.
10378
10379 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
10380
10381 PR c/79022
10382 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
10383 definition.
10384
10385 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
10386
10387 PR target/85667
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.
10391
10392 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
10393
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.
10397
10398 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
10399
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.
10405
10406 2019-03-27 Jeff Law <law@redhat.com>
10407
10408
10409 PR rtl-optimization/87761
10410 PR rtl-optimization/89826
10411 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
10412 slightly later.
10413 (pass_cprop_hardreg::execute): Call df_analyze after adding the
10414 note problem to get REG_DEAD/REG_UNUSED notes updated.
10415
10416 2019-03-27 Richard Biener <rguenther@suse.de>
10417
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
10424 PHIs.
10425
10426 2019-03-27 Alan Modra <amodra@gmail.com>
10427
10428 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
10429 throughout file.
10430 * config/rs6000/darwin.h: Likewise.
10431 * config/rs6000/rs6000.c: Likewise.
10432
10433 2019-03-27 Alan Modra <amodra@gmail.com>
10434
10435 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
10436 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
10437
10438 2019-03-26 Andrew Waterman <andrew@sifive.com>
10439 Jim Wilson <jimw@sifive.com>
10440
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
10450 field.
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
10455 entries.
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.
10460 (type): Add auipc.
10461 (tune): New.
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.
10466
10467 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
10468
10469 PR target/89827
10470 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
10471 Also process XEXP (src, 0) of a shift insn.
10472
10473 2019-03-26 Richard Biener <rguenther@suse.de>
10474
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.
10481
10482 2019-03-26 Jakub Jelinek <jakub@redhat.com>
10483
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.
10488
10489 2019-03-26 Jason Merrill <jason@redhat.com>
10490 Jakub Jelinek <jakub@redhat.com>
10491
10492 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
10493 method.
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.
10498
10499 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
10500
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.
10505
10506 2019-03-26 Alan Modra <amodra@gmail.com>
10507
10508 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
10509 rs6000_vector_mem init. Correct wI and wJ comment.
10510
10511 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
10512
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.
10517
10518 2019-03-25 Martin Sebor <msebor@redhat.com>
10519
10520 PR c/89812
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.
10524
10525 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
10526
10527 PR debug/86964
10528 * dwarf2out.c (premark_used_variables): New function.
10529 (prune_unused_types_walk): Do not mark not premarked external
10530 variables.
10531 (prune_unused_types): Call premark_used_variables.
10532
10533 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
10534
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
10538 registers.
10539
10540 2019-03-25 Martin Sebor <msebor@redhat.com>
10541
10542 * doc/extend.texi (Common Type Attributes): Document vector_size.
10543 (Common Variable Attributes): Mention size constraint. Correct
10544 quoting and typos.
10545 (Vector Extensions): Use @dfn when defining bas type. Clarify
10546 base type and size constraints.
10547
10548 2019-03-25 Richard Biener <rguenther@suse.de>
10549
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.
10553
10554 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
10555
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.
10560
10561 2019-03-25 Richard Biener <rguenther@suse.de>
10562
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.
10569
10570 2019-03-25 Richard Biener <rguenther@suse.de>
10571
10572 PR tree-optimization/89802
10573 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
10574 move EH data to folded stmt.
10575
10576 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
10577
10578 * config/s390/s390-builtin-types.def: Remove few unused types and
10579 fix sort order for others.
10580
10581 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
10582
10583 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
10584 expected and found types with -mdebug during builtin matching.
10585
10586 2019-03-25 Richard Biener <rguenther@suse.de>
10587
10588 PR middle-end/89790
10589 * fold-const.c (operand_equal_p): Revert last change with
10590 updated comment.
10591
10592 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
10593
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.
10597
10598 2019-03-24 Jeff Law <law@redhat.com>
10599
10600 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
10601
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
10605 as needed.
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
10609 insns.
10610
10611 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
10612
10613 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
10614 big endian.
10615
10616 2019-03-22 Andrew Pinski <apinski@marvell.com>
10617
10618 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
10619 attrribute for uxtw.
10620
10621 2019-03-26 Jeff Law <law@redhat.com>
10622
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.
10629
10630 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
10631
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.
10635
10636 2019-03-22 Jakub Jelinek <jakub@redhat.com>
10637
10638 PR c++/87481
10639 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
10640
10641 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
10642
10643 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
10644
10645 2019-03-22 Jakub Jelinek <jakub@redhat.com>
10646
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.
10659
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.
10680
10681 PR target/89784
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.
10722
10723 2019-03-21 Martin Sebor <msebor@redhat.com>
10724
10725 PR tree-optimization/89350
10726 * builtins.c (compute_objsize): Also ignore offsets whose upper
10727 bound is negative.
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.
10743
10744 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
10745 Jakub Jelinek <jakub@redhat.com>
10746
10747 PR lto/89692
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).
10754
10755 2019-03-21 Jakub Jelinek <jakub@redhat.com>
10756
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
10766 false.
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.
10775
10776 2019-03-21 Richard Biener <rguenther@suse.de>
10777
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
10781 type.
10782 * fold-const.c (operand_equal_p): Likewise.
10783
10784 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
10785
10786 PR target/89775
10787 * config/s390/s390.c (global_not_special_regno_p): Move to make it
10788 available to ...
10789 (s390_optimize_register_info): Use global_not_special_regno_p to
10790 check for global regs.
10791
10792 2019-03-20 Jakub Jelinek <jakub@redhat.com>
10793
10794 PR target/89752
10795 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
10796 update this_alternative nor this_alternative_set.
10797
10798 2019-03-19 Jim Wilson <jimw@sifive.com>
10799
10800 PR target/89411
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
10803 comment.
10804 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
10805
10806 2019-03-19 Jakub Jelinek <jakub@redhat.com>
10807
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.
10812
10813 2019-03-19 Martin Sebor <msebor@redhat.com>
10814
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.
10818
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.
10822
10823 2019-03-19 Martin Liska <mliska@suse.cz>
10824
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.
10828
10829 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
10830
10831 PR target/89746
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.
10835
10836 2019-03-19 Jakub Jelinek <jakub@redhat.com>
10837
10838 PR target/89378
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.
10842
10843 2019-03-19 Richard Biener <rguenther@suse.de>
10844
10845 PR debug/88389
10846 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
10847
10848 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
10849
10850 PR lto/87809
10851 PR lto/89335
10852 * tree.c (free_lang_data_in_decl): Do not free context of C++
10853 destrutors.
10854
10855 2019-03-19 Jakub Jelinek <jakub@redhat.com>
10856
10857 PR target/89506
10858 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
10859 subs for the first alternative except when operands[3] is 1.
10860
10861 PR target/89752
10862 * gimplify.c (gimplify_asm_expr): For output argument with
10863 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
10864 diagnose error.
10865
10866 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
10867
10868 PR rtl-optimization/89753
10869 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
10870 explicit unrolling factor even more robust.
10871
10872 2019-03-19 Jakub Jelinek <jakub@redhat.com>
10873
10874 PR target/89726
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.
10878
10879 2019-03-18 Martin Sebor <msebor@redhat.com>
10880
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.
10884
10885 2019-03-18 Richard Biener <rguenther@suse.de>
10886
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.
10892
10893 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
10894
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.
10906
10907 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
10908
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.
10912
10913 2019-03-18 Martin Jambor <mjambor@suse.cz>
10914
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.
10918
10919 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
10920
10921 PR target/89627
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.
10925
10926 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
10927
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
10938 operation does.
10939
10940 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
10941
10942 * config/arc/arc.md (tst_movb): Fix constraint.
10943
10944 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
10945
10946 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
10947
10948 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
10949
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
10956 order.
10957 (ADJUST_REG_ALLOC_ORDER): Define.
10958 (HONOR_REG_ALLOC_ORDER): Likewise.
10959
10960 2019-03-18 Richard Biener <rguenther@suse.de>
10961
10962 PR target/87561
10963 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
10964 loads and stores a bit more.
10965
10966 2019-03-18 Richard Biener <rguenther@suse.de>
10967
10968 PR target/87561
10969 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
10970 load pessimization to stores as well.
10971
10972 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
10973
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.
10977
10978 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
10979
10980 PR rtl-optimization/89721
10981 * lra-constraints (invariant_p): Return false if side_effects_p holds.
10982
10983 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
10984
10985 PR target/87532
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
10996 compute index.
10997
10998 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
10999
11000 PR c++/88534
11001 PR c++/88537
11002 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
11003 VAR_DECL args.
11004
11005 2019-03-15 Jakub Jelinek <jakub@redhat.com>
11006
11007 PR c++/89709
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.
11011
11012 PR debug/89704
11013 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
11014 SIGN_EXTEND and ZERO_EXTEND.
11015
11016 2019-03-14 Jason Merrill <jason@redhat.com>
11017 Jakub Jelinek <jakub@redhat.com>
11018
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.
11025
11026 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
11027
11028 PR target/89650
11029 * config/i386/i386.c (remove_partial_avx_dependency): Handle
11030 REG_EH_REGION note.
11031
11032 2019-03-14 Martin Liska <mliska@suse.cz>
11033
11034 PR other/89712
11035 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
11036
11037 2019-03-14 Richard Biener <rguenther@suse.de>
11038
11039 PR target/89711
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.
11043
11044 2019-03-14 Richard Biener <rguenther@suse.de>
11045
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.
11057
11058 2019-03-14 Jakub Jelinek <jakub@redhat.com>
11059
11060 PR ipa/89684
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.
11065
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.
11069
11070 2019-03-14 Richard Biener <rguenther@suse.de>
11071
11072 PR tree-optimization/89710
11073 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
11074 safe_dyn_cast.
11075
11076 2019-03-14 Martin Liska <mliska@suse.cz>
11077
11078 * coverage.c (coverage_begin_function): Stream also
11079 end_column.
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
11087 fields.
11088 (read_graph_file): Read end_column.
11089
11090 2019-03-14 Richard Biener <rguenther@suse.de>
11091
11092 PR middle-end/89698
11093 * fold-const.c (operand_equal_p): For INDIRECT_REF check
11094 that the access types are similar.
11095
11096 2019-03-14 Jakub Jelinek <jakub@redhat.com>
11097
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}.
11103
11104 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
11105
11106 PR target/89523
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
11110 "%M2" to opcode.
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.
11126
11127 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
11128
11129 PR target/85860
11130 * lra-constraints.c (inherit_in_ebb): Update
11131 potential_reload_hard_regs along with live_hard_regs.
11132
11133 2019-03-13 Jakub Jelinek <jakub@redhat.com>
11134
11135 PR debug/89498
11136 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
11137 DWARF_OFFSET_SIZE.
11138 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
11139
11140 2019-03-13 Martin Sebor <msebor@redhat.com>
11141
11142 PR tree-optimization/89662
11143 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
11144 has a size.
11145
11146 2019-03-13 Richard Biener <rguenther@suse.de>
11147
11148 PR middle-end/89677
11149 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
11150 throw FP expressions at tree-affine.
11151
11152 2019-03-14 Richard Biener <rguenther@suse.de>
11153
11154 * tree-pretty-print.c (dump_generic_node): For -gimple properly
11155 dump negative integer constants using _Literal (type) -num.
11156
11157 2019-03-13 Jakub Jelinek <jakub@redhat.com>
11158
11159 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
11160 nonlocal_value member.
11161
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.
11165
11166 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
11167
11168 * config/s390/s390.c (s390_option_override_internal): Use more
11169 aggressive inlining parameters.
11170
11171 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
11172
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.
11194
11195 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
11196
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.
11204
11205 2019-03-12 Martin Liska <mliska@suse.cz>
11206
11207 * config/i386/i386.c: Reword an error message.
11208
11209 2019-03-12 Martin Jambor <mjambor@suse.cz>
11210
11211 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
11212 terminate with newline.
11213
11214 2019-03-12 Jakub Jelinek <jakub@redhat.com>
11215
11216 PR target/52726
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
11222 's with %< and %>.
11223
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.
11228
11229 2019-03-12 Richard Biener <rguenther@suse.de>
11230
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.
11234
11235 2019-03-11 Jakub Jelinek <jakub@redhat.com>
11236
11237 PR middle-end/89655
11238 PR bootstrap/89656
11239 * vr-values.c (vr_values::update_value_range): If
11240 old_vr->varying_p (), don't update it, make new_vr also VARYING
11241 and return false.
11242
11243 2019-03-11 Martin Liska <mliska@suse.cz>
11244
11245 * config/aarch64/aarch64.c (aarch64_override_options_internal):
11246 Fix double string quoting.
11247
11248 2019-03-11 Martin Liska <mliska@suse.cz>
11249
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.
11264
11265 2019-03-11 Martin Liska <mliska@suse.cz>
11266
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):
11282 Likewise.
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.
11404
11405 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
11406
11407 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
11408 only on the else branch.
11409
11410 2019-03-11 Martin Liska <mliska@suse.cz>
11411
11412 * gcov.c (output_intermediate_json_line): Print function
11413 name of each line.
11414 (output_json_intermediate_file): Add new argument.
11415 * doc/gcov.texi: Document the change.
11416
11417 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
11418
11419 PR rtl-optimization/89588
11420 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
11421 explicit unrolling factor more robust.
11422
11423 2019-03-11 Richard Biener <rguenther@suse.de>
11424
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.
11432
11433 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
11434
11435 PR target/68924
11436 * config/i386/sse.md (*vec_extractv2di_0_sse):
11437 Add (=r,x) alternative and corresponding splitter.
11438
11439 2019-03-10 Martin Jambor <mjambor@suse.cz>
11440
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
11448 both rhs and lhs.
11449
11450 2019-03-09 Jakub Jelinek <jakub@redhat.com>
11451
11452 PR c/88568
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.
11455
11456 PR target/79645
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
11474 a colon.
11475 * config/i386/i386.opt (prefer_vector_width, instrument_return):
11476 Likewise.
11477 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
11478 text.
11479
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.
11483
11484 2019-03-08 David Malcolm <dmalcolm@redhat.com>
11485
11486 PR target/79926
11487 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
11488 messages more amenable to translation, and improve wording.
11489
11490 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
11491
11492 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
11493 ud- and du-chains between phases.
11494
11495 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
11496
11497 PR debug/89631
11498 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
11499 instead of POLY_INT_CST.
11500
11501 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
11502
11503 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
11504 requirement.
11505
11506 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
11507
11508 PR target/68924
11509 PR target/78782
11510 PR target/87558
11511 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
11512 (_mm_storeu_si64): Ditto.
11513
11514 2019-03-08 Martin Liska <mliska@suse.cz>
11515
11516 PR target/86952
11517 * config/i386/i386.c (ix86_option_override_internal): Disable
11518 jump tables when retpolines are used.
11519
11520 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
11521
11522 PR go/63560
11523 * ipa-split.c (execute_split_functions): Do not split
11524 'noinline' or 'section' function.
11525
11526 2019-03-08 Jakub Jelinek <jakub@redhat.com>
11527
11528 PR target/79846
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.
11532
11533 PR ipa/80000
11534 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
11535 from diagnostics. Formatting fixes.
11536
11537 PR target/85665
11538 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
11539 warn_odr diagnostics.
11540
11541 PR other/80058
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
11544 literal.
11545 * attribs.c (handle_dll_attribute): Likewise.
11546 * config/avr/avr-devices.c (avr_texinfo): Likewise.
11547
11548 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
11549 warning_at or inform messages in G_() if there is no ?:.
11550
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.
11558
11559 2019-03-08 Richard Biener <rguenther@suse.de>
11560
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
11565 cliques.
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.
11569
11570 2019-03-08 Jakub Jelinek <jakub@redhat.com>
11571
11572 PR target/80190
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.
11576
11577 2019-03-07 Jakub Jelinek <jakub@redhat.com>
11578
11579 PR target/80003
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.
11590
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.
11595
11596 PR target/89602
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.
11608
11609 2019-03-07 Martin Jambor <mjambor@suse.cz>
11610
11611 PR lto/87525
11612 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
11613 for extern inline functions.
11614
11615 2019-03-07 Martin Jambor <mjambor@suse.cz>
11616
11617 PR ipa/88235
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.
11623
11624 2019-03-07 Martin Liska <mliska@suse.cz>
11625
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.
11630
11631 2019-01-25 Jason Merrill <jason@redhat.com>
11632
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.
11636
11637 2019-04-07 Richard Biener <rguenther@suse.de>
11638
11639 PR middle-end/89618
11640 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
11641 * tree-inline.c (copy_loops): Simplify.
11642
11643 2019-03-07 Martin Liska <mliska@suse.cz>
11644
11645 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
11646
11647 2019-03-07 Richard Biener <rguenther@suse.de>
11648
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
11653 already advanced.
11654 (dom_opt_dom_walker::before_dom_children): Re-iterate over
11655 stmts created by folding.
11656
11657 2019-03-07 Jakub Jelinek <jakub@redhat.com>
11658
11659 PR c++/89585
11660 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
11661 at toplevel.
11662
11663 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
11664
11665 PR rtl-optimization/88845
11666 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
11667 LRA.
11668 * lra.c (remove_scratches_1): New function.
11669 (remove_scratches): Use it.
11670 (lra_emit_move): Likewise.
11671
11672 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
11673
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.
11679
11680 2019-03-06 Martin Liska <mliska@suse.cz>
11681
11682 PR gcov-profile/89577
11683 * doc/gcov.texi: Prefer to use --coverage.
11684 * doc/sourcebuild.texi: Likewise.
11685
11686 2019-03-02 Jason Merrill <jason@redhat.com>
11687
11688 PR c++/86485 - -Wmaybe-unused with empty class ?:
11689 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
11690
11691 2019-03-05 Jakub Jelinek <jakub@redhat.com>
11692
11693 PR target/89587
11694 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
11695 if_multiarch.
11696
11697 PR middle-end/89590
11698 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
11699 exactly one argument.
11700
11701 2019-03-05 Jakub Jelinek <jakub@redhat.com>
11702 Richard Sandiford <richard.sandiford@arm.com>
11703
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).
11707
11708 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
11709
11710 PR target/89222
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.
11715
11716 2019-03-05 Richard Biener <rguenther@suse.de>
11717
11718 PR tree-optimization/89594
11719 * tree-if-conv.c (pass_if_conversion::execute): Handle
11720 case where .LOOP_VECTORIZED_FUNCTION was removed.
11721
11722 2019-03-05 Jakub Jelinek <jakub@redhat.com>
11723
11724 PR bootstrap/89560
11725 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
11726 instead alloca it only when needed with the needed size.
11727
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.
11731
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.
11738
11739 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
11740
11741 PR tree-optimization/89437
11742 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
11743
11744 2019-03-04 Richard Biener <rguenther@suse.de>
11745
11746 PR middle-end/89572
11747 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
11748 safe_dyn_cast.
11749
11750 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
11751
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.
11759
11760 2019-03-02 Jakub Jelinek <jakub@redhat.com>
11761
11762 PR target/89506
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.
11769
11770 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
11771 Monk Chiang <sh.chiang04@gmail.com>
11772
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.
11788
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
11808 parse.
11809
11810 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
11811
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.
11815
11816 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
11817
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.
11821
11822 2019-03-01 Tamar Christina <tamar.christina@arm.com>
11823
11824 PR target/89517
11825 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
11826 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
11827
11828 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
11829
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.
11834
11835 2019-03-01 Richard Biener <rguenther@suse.de>
11836
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.
11841
11842 2019-03-01 Jakub Jelinek <jakub@redhat.com>
11843
11844 PR middle-end/89503
11845 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
11846 on DECL_P and EXPR_P.
11847
11848 2019-03-01 Richard Biener <rguenther@suse.de>
11849
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
11857 form if requested.
11858 (cleanup_tree_cfg): Get and pass down SSA update flags.
11859
11860 2019-03-01 Jakub Jelinek <jakub@redhat.com>
11861
11862 PR bootstrap/89539
11863 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
11864 early_lto_debug argument.
11865
11866 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
11867
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.
11871
11872 2019-02-28 Marek Polacek <polacek@redhat.com>
11873
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
11878 a switch.
11879
11880 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
11881
11882 PR lto/88585
11883 * tree.c (find_atomic_core_type): Move ahead in file.
11884 (check_base_type): Correctly compare alignments of atomic types.
11885
11886 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
11887
11888 PR target/89455
11889 * config/i386/i386.c (get_builtin_code_for_version): Identify
11890 Westmere from PCLMUL, instead of AES.
11891
11892 2019-02-28 Jakub Jelinek <jakub@redhat.com>
11893
11894 PR target/89434
11895 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
11896 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
11897 -UINTVAL (...).
11898
11899 2019-02-28 Tamar Christina <tamar.christina@arm.com>
11900
11901 PR target/88530
11902 * config/aarch64/aarch64-option-extensions.def: Document it.
11903 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
11904 if empty hwcaps.
11905
11906 2019-02-28 Jakub Jelinek <jakub@redhat.com>
11907
11908 PR c/89520
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.
11911 Formatting fixes.
11912
11913 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
11914
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.
11919
11920 2019-02-27 Jakub Jelinek <jakub@redhat.com>
11921
11922 PR target/70341
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
11930 define_insn to ...
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.
11934
11935 2019-02-27 Richard Biener <rguenther@suse.de>
11936
11937 PR debug/88878
11938 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
11939
11940 2019-02-27 Richard Biener <rguenther@suse.de>
11941
11942 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
11943 building.
11944
11945 2019-02-27 Richard Biener <rguenther@suse.de>
11946
11947 PR debug/88878
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.
11952
11953 2019-02-27 Richard Biener <rguenther@suse.de>
11954
11955 PR debug/89514
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.
11959
11960 2019-02-27 Martin Jambor <mjambor@suse.cz>
11961 Martin Sebor <msebor@redhat.com>
11962
11963 * doc/invoke.texi (Warning Options): Reword description of
11964 -Wno-absolute-value.
11965
11966 2019-02-27 Jakub Jelinek <jakub@redhat.com>
11967
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
11976 blocks.
11977
11978 2018-02-26 Steve Ellcey <sellcey@marvell.com>
11979
11980 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
11981 New function.
11982 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
11983
11984 2019-02-26 Jakub Jelinek <jakub@redhat.com>
11985
11986 PR c++/89507
11987 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
11988 with types other than sizetype/ssizetype.
11989
11990 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
11991
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.
11997 (mtune): Likewise.
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.
12015
12016 2019-02-26 Jakub Jelinek <jakub@redhat.com>
12017
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.
12026
12027 2019-02-26 Martin Liska <mliska@suse.cz>
12028
12029 * alloc-pool.h (struct pool_usage): Remove extra
12030 print_dash_line.
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.
12042
12043 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
12044
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
12051 in the list.
12052
12053 2019-02-26 Jeff Law <law@redhat.com>
12054
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.
12058
12059 2019-02-26 Richard Biener <rguenther@suse.de>
12060
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
12064 correctly.
12065
12066 2019-02-26 Richard Biener <rguenther@suse.de>
12067
12068 PR tree-optimization/89489
12069 * tree-parloops.c (create_loop_fn): Copy over last_clique.
12070
12071 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
12072
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.
12077
12078 2019-02-26 Jakub Jelinek <jakub@redhat.com>
12079
12080 PR target/89474
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.
12085
12086 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
12087
12088 PR c/80409
12089 * doc/extend.texi (Variadic Pointer Args): New section.
12090
12091 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
12092 Martin Sebor <msebor@gmail.com>
12093
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).
12101
12102 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
12103
12104 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
12105 (_mm_cvtpd_ps): Likewise.
12106 (_mm_cvttpd_epi32): Likewise.
12107
12108 PR target/89338
12109 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
12110 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
12111
12112 PR target/89339
12113 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
12114
12115 2019-02-25 Tamar Christina <tamar.christina@arm.com>
12116
12117 PR target/88530
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
12135 SYNTHETIC.
12136
12137 2019-02-25 Tamar Christina <tamar.christina@arm.com>
12138
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):
12147 Rename ...
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.
12157
12158 2019-02-25 Tamar Christina <tamar.christina@arm.com>
12159
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):
12168 Rename ...
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.
12177
12178 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
12179
12180 PR rtl-optimization/86096
12181 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
12182 comparing mw_order values.
12183
12184 2019-02-25 Jakub Jelinek <jakub@redhat.com>
12185
12186 PR target/89434
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
12196 of operands[2].
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.
12202
12203 PR target/89438
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.
12207
12208 2019-02-24 Jakub Jelinek <jakub@redhat.com>
12209
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.
12218
12219 2019-02-23 Martin Sebor <msebor@redhat.com>
12220
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.
12225
12226 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
12227
12228 PR driver/69471
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.
12235
12236 2019-02-22 Martin Sebor <msebor@redhat.com>
12237
12238 * doc/extend.texi (Other Builtins): Add
12239 __builtin_is_constant_evaluated.
12240
12241 2019-02-22 Richard Biener <rguenther@suse.de>
12242
12243 PR tree-optimization/87609
12244 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
12245
12246 2019-02-22 Jeff Law <law@redhat.com>
12247
12248 PR rtl-optimization/87761
12249 * config/mips/mips.md: Add new combiner pattern to recognize
12250 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
12251
12252 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
12253
12254 PR target/89324
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.
12268
12269 2019-02-22 Martin Sebor <msebor@redhat.com>
12270
12271 PR tree-optimization/88993
12272 PR tree-optimization/88853
12273 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
12274 New helper.
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.
12279
12280 2019-02-22 Martin Sebor <msebor@redhat.com>
12281
12282 PR c/89425
12283 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
12284 unreachable subexpressions.
12285
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>
12289
12290 PR target/87007
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):
12296 New function.
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.
12305
12306 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
12307
12308 PR middle-end/85598
12309 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
12310 analysis for pass.
12311
12312 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
12313
12314 PR target/89444
12315 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
12316 (PTA_SKYLAKE): Add PTA_AES.
12317 (PTA_GOLDMONT): Likewise.
12318
12319 2019-02-22 Sudakshina Das <sudi.das@arm.com>
12320
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.
12324
12325 2019-02-22 Richard Biener <rguenther@suse.de>
12326
12327 PR tree-optimization/89440
12328 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
12329 not necessary assert.
12330
12331 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
12332
12333 PR fortran/72741
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.
12338
12339 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12340
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.
12346
12347 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12348
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.
12352
12353 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12354
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.
12361
12362 2019-02-22 Richard Biener <rguenther@suse.de>
12363
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.
12375
12376 2019-02-22 Richard Biener <rguenther@suse.de>
12377
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).
12386
12387 2019-02-21 Martin Sebor <msebor@redhat.com>
12388
12389 * doc/extend.texi (__clear_cache): Correct signature.
12390
12391 2019-02-21 Ian Lance Taylor <iant@golang.org>
12392
12393 PR go/89170
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.
12399
12400 2019-02-21 Jakub Jelinek <jakub@redhat.com>
12401
12402 PR c++/89285
12403 * builtins.c (fold_builtin_arith_overflow): If first two args are
12404 INTEGER_CSTs, set intres and ovfres to constants rather than calls
12405 to ifn.
12406
12407 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
12408
12409 PR target/87412
12410 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
12411 error for -mindirect-branch/-mfunction-return with incompatible
12412 -fcf-protection.
12413
12414 2019-02-21 Jakub Jelinek <jakub@redhat.com>
12415
12416 PR bootstrap/88714
12417 * constraints.md (q): Remove.
12418 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
12419 instead of q.
12420
12421 2019-02-21 Martin Jambor <mjambor@suse.cz>
12422
12423 PR hsa/89302
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.
12430
12431 2019-02-20 Jakub Jelinek <jakub@redhat.com>
12432
12433 PR middle-end/89412
12434 * expr.c (expand_assignment): If result is a MEM, use change_address
12435 instead of simplify_gen_subreg.
12436
12437 2019-02-20 Jakub Jelinek <jakub@redhat.com>
12438 David Malcolm <dmalcolm@redhat.com>
12439
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.
12444
12445 2019-02-20 Jakub Jelinek <jakub@redhat.com>
12446
12447 PR middle-end/88074
12448 PR middle-end/89415
12449 * toplev.c (do_compile): Double the emin/emax exponents to workaround
12450 buggy mpc_norm.
12451
12452 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
12453
12454 PR target/89397
12455 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
12456 TARGET_SSE in addition to TARGET_SSE_MATH.
12457
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.
12462
12463 2019-02-20 David Malcolm <dmalcolm@redhat.com>
12464
12465 PR c/89410
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.
12471
12472 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
12473
12474 PR target/86487
12475 * lra-constraints.c(uses_hard_regs_p): Fix handling of
12476 paradoxical SUBREGS.
12477
12478 2019-02-20 Li Jia He <helijia@linux.ibm.com>
12479
12480 PR target/88100
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
12484 range checking it.
12485
12486 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
12487
12488 * config/gcn/gcn.c (print_operand): Fix typo.
12489
12490 2019-02-19 Richard Biener <rguenther@suse.de>
12491
12492 PR middle-end/88074
12493 * toplev.c (do_compile): Initialize mpfr's exponent range
12494 based on available float modes.
12495
12496 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
12497
12498 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
12499 as long as the epilogue isn't completed.
12500
12501 2019-02-18 Martin Sebor <msebor@redhat.com>
12502
12503 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
12504 __has_cpp_attribute, and __has_include.
12505
12506 2019-02-18 Martin Sebor <msebor@redhat.com>
12507
12508 * doc/invoke.texi (-Wreturn-type): Correct and expand.
12509
12510 2019-02-18 Martin Sebor <msebor@redhat.com>
12511
12512 PR middle-end/89294
12513 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
12514 expression.
12515 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
12516
12517 2019-02-18 Richard Biener <rguenther@suse.de>
12518
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.
12522
12523 2019-02-18 Jakub Jelinek <jakub@redhat.com>
12524
12525 PR bootstrap/88714
12526 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
12527 "q" constraint.
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].
12531
12532 PR target/89369
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].
12538
12539 PR target/89361
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.
12546
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
12556 instead of 1UL.
12557 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
12558 instead of 1ul.
12559
12560 2019-02-18 Martin Jambor <mjambor@suse.cz>
12561
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
12565 a register type.
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.
12570
12571 2019-02-18 Martin Liska <mliska@suse.cz>
12572
12573 PR ipa/89306
12574 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
12575 by default.
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
12579 by default.
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.
12600
12601 2019-02-18 Martin Liska <mliska@suse.cz>
12602
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
12609 suffixes.
12610
12611 2019-02-17 Alan Modra <amodra@gmail.com>
12612
12613 PR target/89271
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.
12617
12618 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
12619
12620 PR target/89372
12621 * config/i386/sse.md (ssedoublemode): Remove V4HI.
12622 (PMULHRSW): Likewise.
12623 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
12624 TARGET_AVX2.
12625 (ssse3_pmulhrswv4hi3): New expander.
12626
12627 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
12628
12629 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
12630 MMX. Add isa attribute.
12631
12632 2019-02-16 Jakub Jelinek <jakub@redhat.com>
12633
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.
12644
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.
12651
12652 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
12653
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.
12659
12660 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
12661
12662 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
12663 the base address on 64-bit strict-alignment platforms.
12664
12665 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
12666
12667 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
12668
12669 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
12670
12671 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
12672
12673 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
12674
12675 PR rtl-optimization/88308
12676 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
12677 on copied instruction.
12678
12679 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
12680
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
12691 for the GR6.
12692 (output_branch): Adjust threshold for long branch instruction.
12693 * config/visium/visium.md (cpu): Move around.
12694 (length): Adjust for the GR6.
12695
12696 2019-02-15 Richard Biener <rguenther@suse.de>
12697 Jakub Jelinek <jakub@redhat.com>
12698
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.
12704
12705 2019-02-15 Jakub Jelinek <jakub@redhat.com>
12706
12707 PR other/89342
12708 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
12709 optimize_debug.
12710 * opth-gen.awk: Likewise.
12711
12712 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
12713
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.
12718
12719 2019-02-14 Jakub Jelinek <jakub@redhat.com>
12720
12721 PR rtl-optimization/89354
12722 * combine.c (make_extraction): Punt if extraction_mode is narrower
12723 than len bits.
12724
12725 2019-02-14 Maya Rashish <coypu@sdf.org>
12726
12727 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
12728 * config/netbsd-d.c: New file.
12729 * config/t-netbsd: Add netbsd-d.o
12730
12731 2018-02-14 Steve Ellcey <sellcey@marvell.com>
12732
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.
12737
12738 2019-02-14 Tamar Christina <tamar.christina@arm.com>
12739
12740 PR target/88850
12741 * config/arm/iterators.md (ANY64): Add V4HF.
12742
12743 2019-02-14 Martin Liska <mliska@suse.cz>
12744
12745 PR rtl-optimization/89242
12746 * dce.c (delete_unmarked_insns): Call free_dominance_info we
12747 process a transformation.
12748
12749 2019-02-14 Jakub Jelinek <jakub@redhat.com>
12750
12751 PR tree-optimization/89314
12752 * fold-const.c (fold_binary_loc): Cast strlen argument to
12753 const char * before dereferencing it. Formatting fixes.
12754
12755 PR middle-end/89284
12756 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
12757
12758 2019-02-13 Ian Lance Taylor <iant@golang.org>
12759
12760 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
12761 and set current index for other optimizations.
12762
12763 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
12764
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.
12774
12775 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
12776
12777 PR target/89190
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.
12782
12783 2019-02-13 Tamar Christina <tamar.christina@arm.com>
12784
12785 PR target/88847
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.
12790
12791 2019-02-13 Martin Liska <mliska@suse.cz>
12792
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
12797 fields.
12798 * cgraph.h (struct cgraph_thunk_info): Remove
12799 add_pointer_bounds_args.
12800 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
12801 fields.
12802 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
12803 fields.
12804 * config/i386/i386.c (ix86_function_arg_advance): Remove
12805 unrelated comment.
12806 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
12807 (def_builtin): Remove usage of dead
12808 fields.
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
12822 assign_stmts.
12823 * tree-inline.h (struct copy_body_data): Likewise.
12824 * varpool.c (varpool_node::dump): Likewise.
12825
12826 2019-02-13 Jakub Jelinek <jakub@redhat.com>
12827
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.
12832
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.
12837
12838 PR target/89290
12839 * config/i386/predicates.md (x86_64_immediate_operand): Allow
12840 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
12841 -mcmodel=large.
12842
12843 2019-02-13 Martin Liska <mliska@suse.cz>
12844
12845 PR lto/88858
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.
12849
12850 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
12851
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):
12858 New BU_CRYPTO_2.
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.
12865
12866 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
12867
12868 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
12869 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
12870
12871 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
12872
12873 PR target/89229
12874 * config/i386/i386.md (*movoi_internal_avx): Revert revision
12875 268678 and revision 268657.
12876 (*movti_internal): Likewise.
12877
12878 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
12879
12880 PR target/89233
12881 * config/s390/s390.c (s390_decompose_address): Update comment.
12882 (s390_check_qrst_address): Reject invalid address forms after
12883 LRA.
12884
12885 2019-02-12 Martin Liska <mliska@suse.cz>
12886
12887 PR lto/88876
12888 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
12889 we need default values of funct_state for a function that
12890 is not optimized.
12891
12892 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
12893
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.
12896
12897 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
12898 (*movdi_insn_sp32): Likewise.
12899 (*movdi_insn_sp64): Likewise.
12900
12901 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
12902
12903 PR lto/88677
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.
12907
12908 2019-02-12 Richard Biener <rguenther@suse.de>
12909
12910 PR tree-optimization/89253
12911 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
12912 duplicate the loop.
12913
12914 2019-02-11 David Malcolm <dmalcolm@redhat.com>
12915
12916 PR lto/88147
12917 * input.c (selftest::test_line_offset_overflow): New selftest.
12918 (selftest::input_c_tests): Call it.
12919
12920 2019-02-11 Martin Sebor <msebor@redhat.com>
12921
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.
12932
12933 2019-02-11 Martin Sebor <msebor@redhat.com>
12934
12935 PR c++/87996
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.
12940
12941 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
12942
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.
12946
12947 2019-02-11 Alan Modra <amodra@gmail.com>
12948
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.
12970
12971 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12972
12973 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
12974 Solaris ld.
12975 * configure: Regenerate.
12976
12977 2019-02-11 Jakub Jelinek <jakub@redhat.com>
12978
12979 PR bootstrap/88714
12980 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
12981 instead of r.
12982
12983 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
12984
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.
12989
12990 2019-02-11 Martin Liska <mliska@suse.cz>
12991
12992 PR ipa/89009
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.
13004
13005 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
13006
13007 * config/nds32/nds32.md (call_internal, call_value_internal,
13008 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
13009
13010 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
13011
13012 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
13013 typo.
13014
13015 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
13016
13017 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
13018 in comments
13019
13020 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
13021
13022 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
13023
13024 2019-02-10 Jakub Jelinek <jakub@redhat.com>
13025
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.
13029
13030 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
13031
13032 PR lto/89272
13033 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
13034 polymorphic types.
13035
13036 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
13037
13038 * config/nds32/nds32.md (trap): New pattern.
13039
13040 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
13041
13042 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
13043 dwarf span.
13044
13045 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
13046
13047 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
13048 to split POST_INC.
13049
13050 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
13051
13052 * ipa-visibility.c (localize_node): Also do not localize
13053 LDPR_PREVAILING_DEF_IRONLY_EXP.
13054
13055 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
13056
13057 PR lto/87957
13058 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
13059 instead of type_with_linkage.
13060
13061 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
13062
13063 PR ipa/88755
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.
13067
13068 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
13069
13070 * config/rs6000/rs6000-string.c (expand_compare_loop,
13071 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
13072 memcmp/strncmp.
13073
13074 2019-02-09 Jakub Jelinek <jakub@redhat.com>
13075
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.
13080
13081 2019-02-09 Alan Modra <amodra@gmail.com>
13082
13083 PR target/88343
13084 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
13085 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
13086 setup.
13087
13088 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
13089
13090 PR middle-end/88560
13091 * lra-constraints.c (process_alt_operands): Don't increase reject
13092 for memory when offset memory is required.
13093
13094 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
13095
13096 * config/s390/vector.md: Implement vector copysign.
13097
13098 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
13099
13100 * expr.c (expand_constructor): Correct indentations.
13101
13102 2019-02-08 Richard Biener <rguenther@suse.de>
13103
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.
13112
13113 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
13114
13115 * config/s390/constraints.md (jdd): New constraint.
13116
13117 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
13118
13119 PR target/89229
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.
13123
13124 2019-02-08 Jakub Jelinek <jakub@redhat.com>
13125
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.
13130
13131 2019-02-08 Richard Biener <rguenther@suse.de>
13132
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.
13138
13139 2019-02-08 Jakub Jelinek <jakub@redhat.com>
13140
13141 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
13142 cfun everywhere.
13143
13144 2019-02-07 David Malcolm <dmalcolm@redhat.com>
13145
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
13150 purged on exit.
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
13156 reset.
13157 * tree-vectorizer.h (class auto_purge_vect_location): New class.
13158
13159 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13160
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
13167 MINUS (MAX MIN).
13168
13169 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
13170
13171 PR target/89229
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.
13175
13176 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
13177
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
13182 float.
13183 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
13184 a new vector type with the alignment of the scalar memory operand.
13185
13186 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
13187 Jakub Jelinek <jakub@redhat.com>
13188
13189 PR bootstrap/88714
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
13193 MINUS.
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.
13198
13199 2019-02-07 Tamar Christina <tamar.christina@arm.com>
13200
13201 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
13202 Make it a C initializer.
13203
13204 2019-02-07 Tamar Christina <tamar.christina@arm.com>
13205
13206 PR/target 88850
13207 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
13208
13209 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13210
13211 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
13212 Use neon_dot<q> for type.
13213 (neon_<sup>dot_lane<vsi2qi>): Likewise.
13214
13215 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13216
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.
13221
13222 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
13223
13224 PR rtl-optimization/89225
13225 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
13226 sizes check.
13227
13228 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
13229
13230 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
13231 after restoring registers saved to allocate the frame on Windows.
13232
13233 2019-02-06 Richard Biener <rguenther@suse.de>
13234
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):
13245 Simplify.
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.
13253
13254 2019-02-06 Jakub Jelinek <jakub@redhat.com>
13255
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.
13261
13262 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
13263
13264 PR target/88856
13265 * config/s390/s390.md: Remove load and test FP splitter.
13266
13267 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
13268
13269 PR target/89112
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.
13276
13277 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
13278
13279 PR target/89112
13280 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
13281 for the long branch case.
13282
13283 2019-02-05 Jakub Jelinek <jakub@redhat.com>
13284
13285 PR target/89188
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.
13291
13292 PR rtl-optimization/89195
13293 * combine.c (make_extraction): For MEMs, don't extract bytes outside
13294 of the original MEM.
13295
13296 2019-02-05 Martin Liska <mliska@suse.cz>
13297
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.
13303
13304 2019-02-05 Jakub Jelinek <jakub@redhat.com>
13305
13306 PR target/89186
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).
13309
13310 2019-02-05 Richard Biener <rguenther@suse.de>
13311
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.
13317
13318 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
13319
13320 PR c/88698
13321 * doc/extend.texi (Vector Extensions): Add an example of using vector
13322 types together with x86 intrinsics.
13323
13324 2019-02-04 Alan Modra <amodra@gmail.com>
13325
13326 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
13327 str[] size to 160, and comment.
13328
13329 2019-02-04 Alan Modra <amodra@gmail.com>
13330
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.
13340
13341 2019-02-04 Martin Liska <mliska@suse.cz>
13342
13343 PR ipa/88985
13344 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
13345 out when ipa_fn_summaries does not contain entry for callee.
13346
13347 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
13348
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.
13362
13363 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
13364
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".
13367
13368 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
13369
13370 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
13371 into consideration.
13372
13373 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
13374
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.
13379
13380 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
13381
13382 PR target/89071
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.
13389
13390 2019-02-03 Richard Biener <rguenther@suse.de>
13391
13392 PR debug/87295
13393 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
13394 orig.
13395
13396 2019-02-02 Jakub Jelinek <jakub@redhat.com>
13397
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.
13402
13403 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
13404
13405 * combine.c (try_combine): Do not print "Can't combine" messages unless
13406 printing failed combination attempts.
13407
13408 2019-02-01 Martin Jambor <mjambor@suse.cz>
13409
13410 PR hsa/87863
13411 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
13412 segment and global segment variables before making them static.
13413
13414 2019-02-01 Martin Jambor <mjambor@suse.cz>
13415
13416 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
13417 missed optimization dump with dump_enabled_p.
13418
13419 2019-02-01 Richard Biener <rguenther@suse.de>
13420
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.
13429
13430 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
13431
13432 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
13433
13434 2019-02-01 Jakub Jelinek <jakub@redhat.com>
13435
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.
13440
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.
13447
13448 2019-02-01 Richard Biener <rguenth@suse.de>
13449
13450 PR rtl-optimization/88593
13451 * mode-switching.c (optimize_mode_switching): Free dominators before
13452 calling cleanup_cfg.
13453
13454 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
13455
13456 PR tree-optimization/88932
13457 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
13458
13459 2019-01-31 Jakub Jelinek <jakub@redhat.com>
13460
13461 PR middle-end/89137
13462 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
13463 bogus clang warning.
13464
13465 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
13466
13467 PR target/89071
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.
13472
13473 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
13474
13475 PR tree-optimization/89008
13476 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
13477 process anything of the form X * 0.
13478
13479 2019-01-31 Richard Biener <rguenther@suse.de>
13480
13481 PR tree-optimization/89135
13482 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
13483 with abnormal preds.
13484
13485 2019-01-31 Jakub Jelinek <jakub@redhat.com>
13486
13487 PR sanitizer/89124
13488 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
13489 always_inline callees into no_sanitize_address callers.
13490
13491 2019-01-31 Richard Biener <rguenther@suse.de>
13492
13493 PR rtl-optimization/89115
13494 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
13495
13496 2019-01-30 Martin Sebor <msebor@redhat.com>
13497
13498 PR other/89106
13499 * doc/extend.texi (cast to a union): Correct and expand.
13500
13501 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
13502
13503 PR rtl-optimization/87246
13504 * lra-constraints.c (simplify_operand_subreg): Reload memory
13505 in subreg if the address became invalid.
13506
13507 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
13508
13509 PR target/87064
13510 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
13511 Disable for little-endian.
13512
13513 2019-01-30 Richard Biener <rguenther@suse.de>
13514
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
13519 to the default.
13520
13521 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
13522
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
13526 move.
13527
13528 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
13529
13530 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
13531
13532 2019-01-30 Richard Biener <rguenther@suse.de>
13533
13534 PR tree-optimization/89111
13535 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
13536 canonicalization to appropriately sized access types.
13537
13538 2019-01-30 Jakub Jelinek <jakub@redhat.com>
13539
13540 PR c++/89105
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.
13544
13545 2019-01-30 Ulrich Drepper <drepper@redhat.com>
13546
13547 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
13548 after '='.
13549
13550 2019-01-29 Martin Sebor <msebor@redhat.com>
13551
13552 PR c/88956
13553 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
13554
13555 2019-01-29 Jakub Jelinek <jakub@redhat.com>
13556
13557 PR c++/66676
13558 PR ipa/89104
13559 * omp-simd-clone.c (simd_clone_clauses_extract)
13560 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
13561 OMP_CLAUSE_ALIGNED_ALIGNMENT.
13562
13563 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
13564
13565 * config.gcc: Force .init_array for ARC.
13566
13567 2019-01-29 Richard Biener <rguenther@suse.de>
13568
13569 PR debug/87295
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.
13574
13575 2019-01-28 Jakub Jelinek <jakub@redhat.com>
13576
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
13581 sequence.
13582
13583 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
13584
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.
13588
13589 2019-01-28 Jakub Jelinek <jakub@redhat.com>
13590
13591 PR target/89073
13592 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
13593 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
13594 x86 ISA options.
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.
13606
13607 2019-01-28 Richard Biener <rguenther@suse.de>
13608
13609 PR debug/89076
13610 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
13611 support removal.
13612
13613 2019-01-28 Richard Biener <rguenther@suse.de>
13614
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.
13622
13623 2019-01-27 Jakub Jelinek <jakub@redhat.com>
13624
13625 PR target/87214
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.
13633
13634 2019-01-26 Martin Jambor <mjambor@suse.cz>
13635
13636 PR ipa/88933
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
13641 all callers.
13642 * tree-cfgcleanup.c: Include cgraph.h.
13643 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
13644 Declare.
13645 * ipa-prop.c: Include tree-cfgcleanup.h.
13646 (ipcp_transform_function): Call
13647 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
13648
13649 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
13650
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.
13656
13657 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
13658
13659 PR target/88469
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.
13666
13667 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
13668
13669 PR middle-end/89037
13670 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
13671 instead of accessing TREE_INT_CST_ELT directly.
13672
13673 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
13674
13675 * doc/sourcebuild.texi (Environment attributes): Add fenv and
13676 fenv_exceptions description.
13677
13678 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
13679
13680 PR rtl-optimization/87763
13681 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
13682 Allow SUBREG when matching CC_NZmode compare.
13683
13684 2019-01-25 Richard Biener <rguenther@suse.de>
13685
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.
13689
13690 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
13691
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.
13695
13696 2019-01-25 Richard Biener <rguenther@suse.de>
13697
13698 PR tree-optimization/86865
13699 * graphite-scop-detection.c (scop_detection::can_represent_loop):
13700 Reject non-do-while loops.
13701
13702 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
13703
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):
13725 Use CONST_INT_P.
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):
13737 Use CONST_INT_P.
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
13741 CONST_WIDE_INT_P.
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
13746 reg_or_subregno:
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
13762 SYMBOL_REF_P.
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
13772 reg_or_subregno.
13773 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
13774 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
13775 MEM_P and REG_P.
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.
13807
13808 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
13809
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.
13817
13818 2019-01-24 Jakub Jelinek <jakub@redhat.com>
13819
13820 PR debug/89006
13821 * config/i386/i386.c (ix86_pic_register_p): Return true for
13822 UNSPEC_SET_GOT too.
13823
13824 PR tree-optimization/88964
13825 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
13826 punt if HONOR_SNANS (chrec).
13827
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.
13834
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.
13838
13839 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
13840
13841 PR target/88469
13842 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
13843 force the alignment of m_val.
13844
13845 2019-01-24 Richard Biener <rguenther@suse.de>
13846
13847 PR lto/87187
13848 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
13849 When in "legacy" debug mode make sure to reset self-origins.
13850
13851 2019-01-24 Martin Liska <mliska@suse.cz>
13852
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.
13858
13859 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
13860
13861 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
13862 * vr-values.c (find_case_label_ranges): Fix a comment typo.
13863
13864 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
13865
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
13873 -menqcmd.
13874 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
13875 function type.
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
13880 -menqcmd.
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.
13894
13895 2019-01-23 Bin Cheng <bin.cheng@arm.com>
13896 Steve Ellcey <sellcey@marvell.com>
13897
13898 PR target/85711
13899 * recog.c (address_operand): Return false on wrong mode for address.
13900 (constrain_operands): Check for mode with 'p' constraint.
13901
13902 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
13903
13904 PR target/88998
13905 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
13906 Disparage MMX alternative.
13907 (sse2_cvtpd2pi): Ditto.
13908 (sse2_cvttpd2pi): Ditto.
13909
13910 2019-01-23 David Malcolm <dmalcolm@redhat.com>
13911
13912 PR driver/89014
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.
13916
13917 2019-01-23 Jakub Jelinek <jakub@redhat.com>
13918
13919 PR c/44715
13920 * doc/extend.texi: Document break and continue behavior in
13921 statement expressions.
13922
13923 2019-01-23 Richard Biener <rguenther@suse.de>
13924
13925 PR tree-optimization/89008
13926 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
13927 not leave another stray operand.
13928
13929 2019-01-23 Jakub Jelinek <jakub@redhat.com>
13930
13931 * BASE-VER: Bump to 9.0.1.
13932
13933 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
13934
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.
13938
13939 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
13940
13941 * config/arc/atomic.md: Add operand to DMB instruction.
13942
13943 2019-01-23 Jakub Jelinek <jakub@redhat.com>
13944
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.
13949
13950 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
13951
13952 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
13953
13954 2019-01-22 Jakub Jelinek <jakub@redhat.com>
13955
13956 PR target/88965
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.
13960
13961 PR middle-end/88968
13962 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
13963 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
13964
13965 PR target/87064
13966 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
13967 Disable for little endian.
13968
13969 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
13970
13971 PR target/88469
13972 * config/arm/arm.c (arm_needs_double_word_align): Check
13973 DECL_BIT_FIELD_TYPE.
13974
13975 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
13976 H.J. Lu <hongjiu.lu@intel.com>
13977
13978 PR target/88909
13979 * config/i386/i386-builtin.def: Add mask2 to all builtin
13980 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
13981 SPECIAL_ARGS.
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
13994 support.
13995 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
13996
13997 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
13998
13999 PR target/88954
14000 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
14001 noplt attribute.
14002
14003 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
14004
14005 PR target/88469
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.
14012
14013 2019-01-22 Richard Biener <rguenther@suse.de>
14014
14015 PR tree-optimization/88862
14016 * graphite-scop-detection.c
14017 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
14018
14019 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
14020
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.
14025
14026 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
14027
14028 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
14029 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
14030
14031 2019-01-22 Jakub Jelinek <jakub@redhat.com>
14032
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.
14037
14038 PR rtl-optimization/88904
14039 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
14040 any nonequal registers before processing BB_END (b).
14041
14042 PR target/88905
14043 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
14044 GET_MODE (op0).
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.
14048
14049 PR rtl-optimization/49429
14050 PR target/49454
14051 PR rtl-optimization/86334
14052 PR target/88906
14053 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
14054 addressable from here...
14055 (emit_block_op_via_libcall): ... to here.
14056
14057 2019-01-22 Richard Biener <rguenther@suse.de>
14058
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
14063 gather SLP defs.
14064
14065 2019-01-22 Alan Modra <amodra@gmail.com>
14066
14067 PR target/88614
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,
14079 delete split..
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.
14091
14092 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
14093
14094 PR target/88938
14095 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
14096 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
14097
14098 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
14099
14100 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
14101 string contents as hash_map keys.
14102
14103 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
14104
14105 PR c/88928
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.
14112
14113 2019-01-21 Richard Biener <rguenther@suse.de>
14114
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.
14119
14120 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
14121
14122 PR target/71659
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.
14142
14143 2019-01-20 Martin Jambor <mjambor@suse.cz>
14144
14145 PR ipa/87615
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
14154 unmodified_parm.
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
14175 get_dynamic_type.
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.
14182
14183 2019-01-19 Jakub Jelinek <jakub@redhat.com>
14184
14185 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
14186 outside of #if CHECKING_P code.
14187
14188 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
14189
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.
14198
14199 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
14200
14201 PR target/88892
14202 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
14203 operands.
14204
14205 2019-01-18 Richard Biener <rguenther@suse.de>
14206
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
14210 shifts by scalars.
14211
14212 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
14213
14214 PR target/88799
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.
14230
14231 2019-01-18 Martin Liska <mliska@suse.cz>
14232
14233 * params.def: Fix comment.
14234 * tree-profile.c (gimple_init_gcov_profiler): Bump function
14235 name.
14236 (gimple_gen_ic_func_profiler): Likewise.
14237
14238 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14239
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.
14252
14253 2019-01-18 Jakub Jelinek <jakub@redhat.com>
14254
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.
14263
14264 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
14265
14266 PR target/85596
14267 * doc/install.texi (with-multilib-list): Document for aarch64.
14268
14269 2019-01-18 Jakub Jelinek <jakub@redhat.com>
14270
14271 PR target/88734
14272 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
14273 (("..."))) with ("...").
14274
14275 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
14276
14277 * doc/extend.texi (Built-in Functions for Memory Model Aware
14278 Atomic Operations): Document atomic fetch and nand.
14279
14280 2019-01-18 Martin Liska <mliska@suse.cz>
14281 Richard Biener <rguenther@suse.de>
14282
14283 PR middle-end/88587
14284 * cgraph.h (create_version_clone_with_body): Add new argument
14285 with attributes.
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
14291 for declaration.
14292 (expand_target_clones): Do not call valid_attribute_p, it must
14293 be already done.
14294 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
14295 vector types.
14296
14297 2019-01-17 Jakub Jelinek <jakub@redhat.com>
14298
14299 PR target/88734
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.
14303
14304 2019-01-17 Martin Sebor <msebor@redhat.com>
14305
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.
14309
14310 2018-01-17 Steve Ellcey <sellcey@cavium.com>
14311
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
14324 call.
14325
14326 2019-01-17 Martin Sebor <msebor@redhat.com>
14327
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
14334 disabled.
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.
14342
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>
14347
14348 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
14349
14350 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
14351
14352 * doc/sourcebuild.texi: Document dg-require-effective-target
14353 llvm_binutils and offload_gcn.
14354
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>
14359
14360 * doc/sourcebuild.texi: Document dg-required-effective-target
14361 exceptions.
14362
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>
14369
14370 * config.gcc: Add amdgcn*-*-amdhsa configuration.
14371 * configure.ac: Check for dlopen.
14372 * configure: Regenerate.
14373
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>
14380
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.
14395
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>
14402
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.
14407
14408 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
14409
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.
14414
14415 2019-01-17 Tamar Christina <tamar.christina@arm.com>
14416
14417 PR target/88851
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.
14421
14422 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14423
14424 * config/aarch64/aarch64.c (ares_tunings): Define.
14425 * config/aarch64/aarch64-cores.def (ares): Use the above.
14426
14427 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
14428
14429 PR target/88794
14430 Revert:
14431 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
14432
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
14472 useless ones.
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.
14487
14488 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
14489
14490 PR target/88794
14491 Revert:
14492 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
14493
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.
14501
14502 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
14503
14504 PR target/88794
14505 Revert:
14506 2018-12-15 Jakub Jelinek <jakub@redhat.com>
14507
14508 PR target/88489
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.
14512
14513 2019-01-17 Richard Biener <rguenther@suse.de>
14514
14515 PR lto/86736
14516 * dwarf2out.c (want_pubnames): Never generate pubnames sections
14517 and friends for the LTO part of debug info.
14518
14519 2019-01-17 Jakub Jelinek <jakub@redhat.com>
14520
14521 PR tree-optimization/86214
14522 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
14523 if x == y.
14524
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.
14529
14530 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
14531
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.
14537
14538 2019-01-16 David Malcolm <dmalcolm@redhat.com>
14539
14540 PR target/88861
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
14544 returns true.
14545
14546 2019-01-16 Tamar Christina <tamar.christina@arm.com>
14547
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
14553 lane endianness.
14554
14555 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
14556
14557 * config/alpha/alpha.c (alpha_gimplify_va_arg):
14558 Handle split indirect COMPLEX_TYPE arguments.
14559
14560 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
14561
14562 PR target/86891
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
14570 CC_ADCmode.
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.
14588
14589 2019-01-16 Tamar Christina <tamar.christina@arm.com>
14590
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.
14597
14598 2019-01-16 Martin Liska <mliska@suse.cz>
14599
14600 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
14601 for GCC driver.
14602 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
14603 a new argument.
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.
14608
14609 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
14610
14611 * godump.c (go_output_typedef): When outputting a typedef, refer
14612 to the underlying type by its name and not its structure.
14613
14614 2019-01-15 David Malcolm <dmalcolm@redhat.com>
14615
14616 PR c++/88795
14617 * tree.c (build_function_type): Assert that arg_types is not
14618 error_mark_node.
14619
14620 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
14621
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.
14629
14630 2019-01-15 Richard Biener <rguenther@suse.de>
14631
14632 PR debug/88046
14633 * dwarf2out.c (gen_member_die): Do not generate inheritance
14634 DIEs late.
14635
14636 2019-01-15 Richard Biener <rguenther@suse.de>
14637
14638 PR tree-optimization/88855
14639 * tree-if-conv.c (combine_blocks): Collect
14640 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
14641
14642 2019-01-15 Tom de Vries <tdevries@suse.de>
14643
14644 PR target/80547
14645 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
14646 lhs == NULL_TREE for gang-level reduction.
14647
14648 2019-01-15 Richard Biener <rguenther@suse.de>
14649 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14650
14651 PR ipa/88788
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.
14655
14656 2019-01-15 Jakub Jelinek <jakub@redhat.com>
14657
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.
14664
14665 2019-01-14 Andi Kleen <ak@linux.intel.com>
14666
14667 * Makefile.in: Lower autofdo sampling rate by 10x.
14668 * Makefile.tpl: Dito.
14669
14670 2019-01-14 Tom Honermann <tom@honermann.net>
14671
14672 * defaults.h: Define CHAR8_TYPE.
14673
14674 2019-01-14 Martin Sebor <msebor@redhat.com>
14675
14676 PR target/88638
14677 * doc/extend.texi (Darwin Format Checks): Clarify.
14678
14679 2019-01-14 Richard Biener <rguenther@suse.de>
14680
14681 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
14682 whether we are in (simplify ...) or (match ...) context.
14683
14684 2019-01-14 Jakub Jelinek <jakub@redhat.com>
14685
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.
14697
14698 2019-01-12 Tom de Vries <tdevries@suse.de>
14699
14700 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
14701 vector length using -fopenacc-dim.
14702
14703 2019-01-12 Tom de Vries <tdevries@suse.de>
14704
14705 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
14706 lengths into account.
14707
14708 2019-01-12 Svante Signell <svante.signell@gmail.com>
14709
14710 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
14711 (TARGET_CAN_SPLIT_STACK): Define.
14712 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
14713
14714 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
14715
14716 * params.def (inline-unit-growth): Set to 40.
14717
14718 2019-01-12 Jakub Jelinek <jakub@redhat.com>
14719
14720 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
14721
14722 2019-01-12 Tom de Vries <tdevries@suse.de>
14723
14724 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
14725 region calling vector-partitionable routine, set default_vector_length
14726 to WARP_SIZE.
14727
14728 2019-01-12 Tom de Vries <tdevries@suse.de>
14729
14730 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
14731 variable default_vector_length.
14732
14733 2019-01-12 Tom de Vries <tdevries@suse.de>
14734
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
14738 dimensions limits.
14739
14740 2019-01-12 Tom de Vries <tdevries@suse.de>
14741
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
14748 parameter.
14749 * target.def (validate_dims): Add used parameter in DEFHOOK.
14750 * targhooks.h (default_goacc_validate_dims): Add used parameter.
14751
14752 2019-01-11 Jakub Jelinek <jakub@redhat.com>
14753
14754 PR middle-end/85956
14755 PR lto/88733
14756 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
14757 field.
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.
14762
14763 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
14764
14765 PR rtl-optimization/87305
14766 * lra-assigns.c
14767 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
14768 for little endian pseudos used as paradoxical subreg.
14769
14770 2019-01-11 Jakub Jelinek <jakub@redhat.com>
14771
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.
14776
14777 2019-01-11 Alan Modra <amodra@gmail.com>
14778
14779 PR 88777
14780 PR 88614
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.
14785
14786 2019-01-11 Jakub Jelinek <jakub@redhat.com>
14787
14788 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
14789
14790 2019-01-11 Steve Ellcey <sellcey@marvell.com>
14791
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
14797 argument.
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
14817 to false.
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.
14836
14837 2019-01-11 Steve Ellcey <sellcey@marvell.com>
14838
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.
14848
14849 2019-01-11 Jakub Jelinek <jakub@redhat.com>
14850
14851 PR bootstrap/88714
14852 * passes.c (finish_optimization_passes): Call print_combine_total_stats
14853 inside of pass_combine_1 dump rather than pass_profile_1.
14854
14855 2019-01-11 Tom de Vries <tdevries@suse.de>
14856
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
14861 num_workers 16.
14862
14863 2019-01-11 Tom de Vries <tdevries@suse.de>
14864
14865 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
14866
14867 2019-01-11 Jan Beulich <jbeulich@suse.com>
14868
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
14873 syntax.
14874
14875 2019-01-10 Jakub Jelinek <jakub@redhat.com>
14876
14877 PR target/88785
14878 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
14879 define_expand.
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".
14886
14887 2019-01-10 Tamar Christina <tamar.christina@arm.com>
14888
14889 * config/aarch64/aarch64-builtins.c
14890 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
14891 (aarch64_init_simd_builtins): ...Here
14892
14893 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
14894
14895 PR rtl-optimization/87305
14896 * lra-assigns.c
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.
14901
14902 2019-01-10 Richard Biener <rguenther@suse.de>
14903
14904 PR tree-optimization/88792
14905 * tree-ssa-pre.c (get_representative_for): Do not return a
14906 value-number here.
14907
14908 2019-01-10 Jakub Jelinek <jakub@redhat.com>
14909
14910 PR middle-end/84877
14911 PR bootstrap/88450
14912 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
14913 (assign_parm_setup_block): Do the argument slot realignment here
14914 instead.
14915
14916 2019-01-10 Stefan Agner <stefan@agner.ch>
14917
14918 PR target/88648
14919 * config/arm/arm.c (arm_option_override_internal): Force
14920 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
14921
14922 2019-01-10 Jakub Jelinek <jakub@redhat.com>
14923
14924 PR c/88568
14925 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
14926 DECL_EXTERNAL.
14927
14928 2019-01-10 Tamar Christina <tamar.christina@arm.com>
14929
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.
14943 (vcmla_f16): New.
14944 (vcmlaq_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.
14971 (vcmla_f32): New.
14972 (vcmlaq_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>):
15009 New.
15010 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
15011 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
15012
15013 2019-01-10 Tamar Christina <tamar.christina@arm.com>
15014
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):
15022 New.
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.
15051 (vcmla_f16): New.
15052 (vcmlaq_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.
15081 (vcmla_f32): New.
15082 (vcmlaq_f32): New.
15083 (vcmlaq_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.
15113 (rot): New.
15114 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
15115
15116 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
15117
15118 PR other/16615
15119
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.
15130
15131 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
15132
15133 PR other/16615
15134
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.
15188 * dse.c: 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.
15213 * ipa.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.
15220 * ira.c: Likewise.
15221 * ira.h: 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.
15231 * lra.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.
15239 * ree.c: Likewise.
15240 * reload.c: Likewise.
15241 * reload1.c: Likewise.
15242 * reorg.c: Likewise.
15243 * resource.c: Likewise.
15244 * rtl.def: Likewise.
15245 * rtl.h: 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.
15286
15287 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
15288
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.
15297
15298 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
15299
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.
15327
15328 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
15329 James Clarke <jrtc27@jrtc27.com>
15330
15331 PR target/84010
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.
15417
15418 2018-01-09 Sudakshina Das <sudi.das@arm.com>
15419
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.
15426
15427 2018-01-09 Sudakshina Das <sudi.das@arm.com>
15428 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15429
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
15433 if bti is enabled.
15434 * config/aarch64/aarch64-bti-insert.c: New file.
15435 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
15436 pass.
15437 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
15438 new bti pass.
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.
15443
15444 2018-01-09 Sudakshina Das <sudi.das@arm.com>
15445
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.
15456
15457 2018-01-09 Sudakshina Das <sudi.das@arm.com>
15458
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.
15466
15467 2018-01-09 Sudakshina Das <sudi.das@arm.com>
15468
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.
15477
15478 2018-01-09 Sudakshina Das <sudi.das@arm.com>
15479
15480 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
15481 ARMv8.5-A.
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.
15485
15486 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
15487
15488 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
15489 (xorsign<mode>3): Likewise.
15490
15491 2019-01-09 Jelinek <jakub@redhat.com>
15492
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.
15496
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.
15500
15501 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
15502
15503 * doc/invoke.texi (-Os): Remove trailing spaces.
15504 (-finline-functions): Remove reference to -O2.
15505
15506 2019-01-08 Jakub Jelinek <jakub@redhat.com>
15507
15508 PR rtl-optimization/79593
15509 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
15510
15511 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
15512 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
15513
15514 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
15515
15516 PR bootstrap/88721
15517 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
15518 to -1 on entry.
15519
15520 PR debug/88723
15521 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
15522 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
15523
15524 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
15525
15526 PR target/88717
15527 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
15528 ix86_avx_u128_mode_entry.
15529
15530 2019-01-08 Martin Liska <mliska@suse.cz>
15531
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.
15536
15537 2019-01-08 Richard Biener <rguenther@suse.de>
15538
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.
15545
15546 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
15547
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.
15568
15569 2019-01-08 Alan Modra <amodra@gmail.com>
15570
15571 PR target/88614
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.
15580
15581 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
15582
15583 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
15584 optimization for masked stores.
15585
15586 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
15587
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.
15593
15594 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
15595
15596 PR target/86891
15597 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
15598 unsigned_p. Handle signed and unsigned overflow correction as
15599 required.
15600 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
15601 prototype.
15602 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
15603 for operand 2.
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
15622 operands.
15623 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
15624 patterns.
15625 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
15626 patterns.
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.
15632
15633 2019-01-07 Richard Biener <rguenther@suse.de>
15634
15635 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
15636 of tree_operand_hash.
15637
15638 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
15639
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.
15645
15646 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
15647
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, ... }.
15655
15656 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
15657
15658 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
15659 with x86_64-pc-linux-gnu.
15660
15661 2019-01-07 Tom de Vries <tdevries@suse.de>
15662
15663 PR target/85486
15664 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
15665 function.
15666 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
15667 routines.
15668
15669 2019-01-07 Jakub Jelinek <jakub@redhat.com>
15670
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.
15674
15675 PR debug/88723
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.
15681
15682 PR tree-optimization/88676
15683 * tree-ssa-phiopt.c (two_value_replacement): New function.
15684 (tree_ssa_phiopt_worker): Call it.
15685
15686 PR sanitizer/88619
15687 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
15688 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
15689
15690 PR c++/85052
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.
15704
15705 2019-01-07 Tom de Vries <tdevries@suse.de>
15706
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
15721 vectors.
15722 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
15723 large vectors.
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.
15734
15735 2019-01-07 Tom de Vries <tdevries@suse.de>
15736
15737 PR target/85381
15738 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
15739 empty loops.
15740
15741 2019-01-07 Tom de Vries <tdevries@suse.de>
15742
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.
15758
15759 2019-01-07 Tom de Vries <tdevries@suse.de>
15760
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
15764 PTX_WARP_SIZE.
15765
15766 2019-01-07 Tom de Vries <tdevries@suse.de>
15767
15768 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
15769 as late as possible.
15770
15771 2019-01-07 Tom de Vries <tdevries@suse.de>
15772
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.
15778
15779 2019-01-07 Tom de Vries <tdevries@suse.de>
15780
15781 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
15782
15783 2019-01-07 Tom de Vries <tdevries@suse.de>
15784
15785 * omp-offload.c (oacc_get_min_dim): New function.
15786 * omp-offload.h (oacc_get_min_dim): Declare.
15787
15788 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
15789
15790 PR target/88521
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.
15793
15794 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
15795
15796 PR tree-opt/86020
15797 Revert:
15798 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
15799
15800 * ipa-inline.c (edge_badness): Use inlined_time instead of
15801 inline_summaries->get.
15802
15803 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
15804
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.
15809
15810 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
15811
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.
15819
15820 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
15821
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
15829 new parameters.
15830 * ipa-inline.c (can_inline_edge_by_limits_p,
15831 want_inline_small_function_p): Use new parameters.
15832
15833 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
15834
15835 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
15836
15837 2019-01-05 Jakub Jelinek <jakub@redhat.com>
15838
15839 PR middle-end/82564
15840 PR target/88620
15841 * expr.c (expand_assignment): For calls returning VLA structures
15842 if to_rtx is not a MEM, force it into a stack temporary.
15843
15844 PR debug/88635
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.
15853
15854 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
15855
15856 * params.def (hot-bb-count-ws-permille): Set to 990.
15857
15858 2019-01-04 Martin Sebor <msebor@redhat.com>
15859
15860 PR c/88546
15861 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
15862 leaf.
15863
15864 2019-01-04 Martin Sebor <msebor@redhat.com>
15865
15866 PR c/88363
15867 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
15868
15869 2019-01-04 Jakub Jelinek <jakub@redhat.com>
15870
15871 * gdbinit.in: Turn off pagination for the skip commands, restore
15872 it to previous state afterwards.
15873
15874 2019-01-04 Jakub Jelinek <jakub@redhat.com>
15875
15876 PR target/88594
15877 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
15878 of GET_MODE (opN) as modes of the libcall arguments.
15879
15880 2019-01-04 Jan Beulich <jbeulich@suse.com>
15881
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
15909 instead of =Yk.
15910
15911 2019-01-03 Martin Sebor <msebor@redhat.com>
15912
15913 PR tree-optimization/88659
15914 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
15915
15916 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
15917
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.
15921
15922 2019-01-03 Tom de Vries <tdevries@suse.de>
15923
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
15926 function.
15927 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
15928
15929 2019-01-03 Tom de Vries <tdevries@suse.de>
15930
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.
15935
15936 2019-01-03 Tom de Vries <tdevries@suse.de>
15937
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.
15941
15942 2019-01-03 Tom de Vries <tdevries@suse.de>
15943
15944 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
15945 factored out of ...
15946 (nvptx_goacc_validate_dims): ... here.
15947
15948 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
15949
15950 PR tree-optimization/85574
15951 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
15952 structure.
15953 (struct ssa_equip_hash_traits): Declare.
15954 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
15955
15956 2019-01-03 Jakub Jelinek <jakub@redhat.com>
15957
15958 PR debug/88644
15959 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
15960 change it to qualified_type.
15961
15962 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
15963
15964 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
15965 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
15966
15967 2019-01-02 Martin Sebor <msebor@redhat.com>
15968 Jeff Law <law@redhat.com>
15969
15970 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
15971 (get_range_strlen_tree): Update appropriately.
15972 (get_range_strlen)
15973 * gimple-fold.h (get_range_strlen): Drop unused last argument.
15974
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.
15983
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
15991 return value.
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.
15998
15999 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
16000
16001 PR lto/88130
16002 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
16003 false at WPA time when body was removed.
16004
16005 2019-01-02 Martin Liska <mliska@suse.cz>
16006
16007 PR tree-optimization/88650
16008 * predict.c (set_even_probabilities): Calculate probability
16009 remainer only when really used.
16010
16011 2019-01-02 Richard Biener <rguenther@suse.de>
16012
16013 PR middle-end/88651
16014 * tree-data-ref.c (analyze_subscript_affine_affine): Use
16015 widest_ints when mangling max_stmt_execution results.
16016
16017 2019-01-02 Richard Biener <rguenther@suse.de>
16018
16019 PR tree-optimization/88621
16020 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
16021 bitfields when canoncalizing.
16022
16023 2019-01-02 Richard Biener <rguenther@suse.de>
16024
16025 PR target/87545
16026 * config/i386/x86-tune-costs.h (intel_cost): Adjust
16027 cost of cheap SSE instruction.
16028
16029 2019-01-02 Richard Biener <rguenther@suse.de>
16030
16031 PR ipa/85574
16032 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
16033 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
16034 function.
16035 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
16036 set after UIDs before splitting them.
16037
16038 2019-01-01 Martin Sebor <msebor@redhat.com>
16039 Jeff Law <law@redhat.com>
16040
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.
16044
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
16057 formatting issues.
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.
16065
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.
16074
16075 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
16076
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.
16084
16085 2019-01-01 Jakub Jelinek <jakub@redhat.com>
16086
16087 Update copyright years.
16088
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.
16101 \f
16102 Copyright (C) 2019 Free Software Foundation, Inc.
16103
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.