3ee63704fd5029d61be7eebf0dc2b71374d23017
[gcc.git] / gcc / ChangeLog
1 2019-02-28 Marek Polacek <polacek@redhat.com>
2
3 PR c++/87068 - missing diagnostic with fallthrough statement.
4 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
5 at the end of a seq, save its location to walk_stmt_info.
6 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
7 a switch.
8
9 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
10
11 PR lto/88585
12 * tree.c (find_atomic_core_type): Move ahead in file.
13 (check_base_type): Correctly compare alignments of atomic types.
14
15 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
16
17 PR target/89455
18 * config/i386/i386.c (get_builtin_code_for_version): Identify
19 Westmere from PCLMUL, instead of AES.
20
21 2019-02-28 Jakub Jelinek <jakub@redhat.com>
22
23 PR target/89434
24 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
25 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
26 -UINTVAL (...).
27
28 2019-02-28 Tamar Christina <tamar.christina@arm.com>
29
30 PR target/88530
31 * config/aarch64/aarch64-option-extensions.def: Document it.
32 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
33 if empty hwcaps.
34
35 2019-02-28 Jakub Jelinek <jakub@redhat.com>
36
37 PR c/89520
38 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
39 builtins if they don't have a single scalar floating point argument.
40 Formatting fixes.
41
42 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
43
44 PR rtl-optimization/89490
45 * varasm.c (get_block_for_section): Bail out for mergeable sections.
46 (default_use_anchors_for_symbol_p, output_object_block): Assert the
47 block section is not mergeable.
48
49 2019-02-27 Jakub Jelinek <jakub@redhat.com>
50
51 PR target/70341
52 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
53 old define_insn to ...
54 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
55 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
56 Rename old define_insn to ...
57 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
58 (thumb2_casesi_internal_pic): New define_expand. Rename old
59 define_insn to ...
60 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
61 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
62 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
63
64 2019-02-27 Richard Biener <rguenther@suse.de>
65
66 PR debug/88878
67 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
68
69 2019-02-27 Richard Biener <rguenther@suse.de>
70
71 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
72 building.
73
74 2019-02-27 Richard Biener <rguenther@suse.de>
75
76 PR debug/88878
77 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
78 parameter, prefix section name with .gnu.debuglto_ if true.
79 (dwarf2out_finish): Pass false to output_comdat_type_unit.
80 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
81
82 2019-02-27 Richard Biener <rguenther@suse.de>
83
84 PR debug/89514
85 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
86 rather than on use_debug_types, doing what output_die does.
87 (value_format): Likewise.
88
89 2019-02-27 Martin Jambor <mjambor@suse.cz>
90 Martin Sebor <msebor@redhat.com>
91
92 * doc/invoke.texi (Warning Options): Reword description of
93 -Wno-absolute-value.
94
95 2019-02-27 Jakub Jelinek <jakub@redhat.com>
96
97 PR tree-optimization/89280
98 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
99 builtin_setjmp_setup_bb): New functions.
100 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
101 When visiting __builtin_setjmp_setup block, queue in special
102 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
103 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
104 from visited after the loop if they don't have any visited successor
105 blocks.
106
107 2018-02-26 Steve Ellcey <sellcey@marvell.com>
108
109 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
110 New function.
111 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
112
113 2019-02-26 Jakub Jelinek <jakub@redhat.com>
114
115 PR c++/89507
116 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
117 with types other than sizetype/ssizetype.
118
119 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
120
121 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
122 (enum sparc_processor_type): ...this.
123 (enum sparc_code_model_type): New enumeration type.
124 (enum sparc_memory_model_type): Tweak comments.
125 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
126 (mtune): Likewise.
127 (mcmodel): Use sparc_code_model enumeration and variable.
128 (sparc_code_model): New enumeration.
129 (mdebug): Add Undocumented marker.
130 * config/sparc/sparc.h (enum cmodel): Delete.
131 (sparc_cmodel): Likewise.
132 (TARGET_CM_MEDLOW): Adjust to above renaming.
133 (TARGET_CM_MEDMID): Likewise.
134 (TARGET_CM_MEDANY): Likewise.
135 (TARGET_CM_EMBMEDANY): Likewise.
136 * config/sparc/sparc.c (sparc_cmodel): Delete.
137 (sparc_option_override): Remove string/value mapping support for the
138 code model. Move code and memory model support to after the handling
139 of target flags. Do private machine setup last.
140 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
141 (sparc_legitimize_reload_address): Likewise.
142 (sparc_output_mi_thunk): Likewise.
143 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
144
145 2019-02-26 Jakub Jelinek <jakub@redhat.com>
146
147 PR tree-optimization/89500
148 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
149 (handle_builtin_strlen): Remove noncst_bound variable. Always
150 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
151 cst if the first cst bytes starting at x are known to be non-zero,
152 even if the string is not zero terminated. Don't try to modify
153 *si for strnlen. Update strlen_to_stridx only for strlen or if
154 we can prove strnlen returns the same value as strlen would.
155
156 2019-02-26 Martin Liska <mliska@suse.cz>
157
158 * alloc-pool.h (struct pool_usage): Remove extra
159 print_dash_line.
160 * bitmap.h (struct bitmap_usage): Likewise.
161 * ggc-common.c (struct ggc_usage): Likewise.
162 * mem-stats.h (struct mem_usage): Likewise.
163 (mem_alloc_description::dump): Print dash lines
164 here and repeat header at the end of a table report.
165 It's then more readable.
166 * tree-phinodes.c (phinodes_print_statistics): Make
167 horizontal alignment.
168 * tree-ssanames.c (ssanames_print_statistics): Likewise.
169 * vec.c (struct vec_usage): Remove extra print_dash_line.
170 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
171
172 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
173
174 * doc/extend.texi (__builtin_object_size):
175 Use @pxref instead of @xref inside parenthesis.
176 (__builtin_has_attribute): Add missing comma after @xref.
177 (__builtin_object_size): Ditto.
178 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
179 * fortran/invoke.texi (-ffpe-trap): Use @var for every item
180 in the list.
181
182 2019-02-26 Jeff Law <law@redhat.com>
183
184 PR rtl-optimization/87761
185 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
186 detect obviously dead insns and delete them.
187
188 2019-02-26 Richard Biener <rguenther@suse.de>
189
190 PR tree-optimization/89505
191 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
192 to handle restrict pointed-to vars with multiple subvars
193 correctly.
194
195 2019-02-26 Richard Biener <rguenther@suse.de>
196
197 PR tree-optimization/89489
198 * tree-parloops.c (create_loop_fn): Copy over last_clique.
199
200 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
201
202 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
203 and move around comment.
204 <BIT_AND_EXPR>: Likewise.
205 <BIT_NOT_EXPR>: Add specific handling for boolean types.
206
207 2019-02-26 Jakub Jelinek <jakub@redhat.com>
208
209 PR target/89474
210 * config/i386/i386.c (remove_partial_avx_dependency): Call
211 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
212 after changing possibly many instructions to use that pseudo. Fix up
213 insertion of v4sf_const0 setter at the start of bb.
214
215 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
216
217 PR c/80409
218 * doc/extend.texi (Variadic Pointer Args): New section.
219
220 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
221 Martin Sebor <msebor@gmail.com>
222
223 * common.opt (Wattribute-alias): Likewise.
224 * doc/invoke.texi (Option Summary): List general form of
225 -Wattribute-alias=. List positive form of -Wmissing-attributes.
226 (-Wmissing-attributes): Invert entry, rewrite and correct default.
227 Add cross-references.
228 (-Wattribute-alias): Rewrite and correct default. Mention
229 considered attributes (same as for -Wmissing-attributes).
230
231 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
232
233 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
234 (_mm_cvtpd_ps): Likewise.
235 (_mm_cvttpd_epi32): Likewise.
236
237 PR target/89338
238 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
239 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
240
241 PR target/89339
242 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
243
244 2019-02-25 Tamar Christina <tamar.christina@arm.com>
245
246 PR target/88530
247 * common/config/aarch64/aarch64-common.c
248 (struct aarch64_option_extension): Add is_synthetic.
249 (all_extensions): Use it.
250 (TARGET_OPTION_INIT_STRUCT): Define hook.
251 (struct gcc_targetm_common): Moved to end.
252 (all_extensions_by_on): New.
253 (opt_ext_cmp, typedef opt_ext): New.
254 (aarch64_option_init_struct): New.
255 (aarch64_contains_opt): New.
256 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
257 * config/aarch64/aarch64-option-extensions.def
258 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
259 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
260 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
261 Set is_synthetic to false.
262 (crypto): Set is_synthetic to true.
263 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
264 SYNTHETIC.
265
266 2019-02-25 Tamar Christina <tamar.christina@arm.com>
267
268 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
269 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
270 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
271 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
272 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
273 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
274 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
275 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
276 Rename ...
277 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
278 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
279 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
280 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
281 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
282 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
283 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
284 vfmlsl_laneq_high_f16): ... To this.
285 * config/arm/neon.md: Update comments.
286
287 2019-02-25 Tamar Christina <tamar.christina@arm.com>
288
289 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
290 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
291 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
292 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
293 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
294 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
295 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
296 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
297 Rename ...
298 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
299 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
300 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
301 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
302 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
303 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
304 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
305 vfmlslq_laneq_high_f16): ... To this.
306
307 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
308
309 PR rtl-optimization/86096
310 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
311 comparing mw_order values.
312
313 2019-02-25 Jakub Jelinek <jakub@redhat.com>
314
315 PR target/89434
316 * config/arm/arm.md (*subsi3_carryin_const): Use
317 arm_neg_immediate_operand predicate instead of
318 arm_not_immediate_operand, "L" constraint instead of "K" and
319 print it using %n2 instead of %B2.
320 (*subsi3_carryin_const0): New define_insn.
321 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
322 instead of arm_not_operand and "I" constraint instead of "K" and
323 print it using %n3 instead of %B2. Instead of using match_dup 2 add
324 another match_operand and in the condition check that it is negation
325 of operands[2].
326 (*subsi3_carryin_compare_const0): New define_ins.
327 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
328 *subsi3_carryin_const.
329 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
330 split into *subsi3_carryin_compare_const0 if the highpart is zero.
331
332 PR target/89438
333 * config/arm.vfp.md (*negdf2_vfp): Use
334 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
335 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
336
337 2019-02-24 Jakub Jelinek <jakub@redhat.com>
338
339 PR rtl-optimization/89445
340 * simplify-rtx.c (simplify_ternary_operation): Don't use
341 simplify_merge_mask on operands that may trap.
342 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
343 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
344 second operand is CONST_VECTOR, check if any element could be zero.
345 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
346 their operands can trap.
347
348 2019-02-23 Martin Sebor <msebor@redhat.com>
349
350 * gimple-ssa-sprintf.c (target_strtol): Rename...
351 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
352 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
353 check for range error.
354
355 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
356
357 PR driver/69471
358 * opts-common.c (prune_options): Also prune joined switches
359 with Negative and RejectNegative.
360 * config/i386/i386.opt (march=): Add Negative(march=).
361 (mtune=): Add Negative(mtune=).
362 * doc/options.texi: Document Negative used together with Joined
363 and RejectNegative.
364
365 2019-02-22 Martin Sebor <msebor@redhat.com>
366
367 * doc/extend.texi (Other Builtins): Add
368 __builtin_is_constant_evaluated.
369
370 2019-02-22 Richard Biener <rguenther@suse.de>
371
372 PR tree-optimization/87609
373 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
374
375 2019-02-22 Jeff Law <law@redhat.com>
376
377 PR rtl-optimization/87761
378 * config/mips/mips.md: Add new combiner pattern to recognize
379 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
380
381 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
382
383 PR target/89324
384 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
385 destination register in peepholes generating patterns for ADDS/SUBS.
386 (add<mode>3_compare0,
387 *addsi3_compare0_uxtw, add<mode>3_compareC,
388 add<mode>3_compareV_imm, add<mode>3_compareV,
389 *adds_<optab><ALLX:mode>_<GPI:mode>,
390 *subs_<optab><ALLX:mode>_<GPI:mode>,
391 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
392 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
393 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
394 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
395 sub<mode>3_compare1): Allow stack pointer for source register.
396 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
397
398 2019-02-22 Martin Sebor <msebor@redhat.com>
399
400 PR tree-optimization/88993
401 PR tree-optimization/88853
402 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
403 New helper.
404 (sprintf_dom_walker::call_info::is_string_func): New helper.
405 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
406 for formatted string functions.
407 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
408
409 2019-02-22 Martin Sebor <msebor@redhat.com>
410
411 PR c/89425
412 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
413 unreachable subexpressions.
414
415 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
416 Hongtao Liu <hongtao.liu@intel.com>
417 Sunil K Pandey <sunil.k.pandey@intel.com>
418
419 PR target/87007
420 * config/i386/i386-passes.def: Add
421 pass_remove_partial_avx_dependency.
422 * config/i386/i386-protos.h
423 (make_pass_remove_partial_avx_dependency): New.
424 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
425 New function.
426 (pass_data_remove_partial_avx_dependency): New.
427 (pass_remove_partial_avx_dependency): Likewise.
428 (make_pass_remove_partial_avx_dependency): Likewise.
429 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
430 (*extendsfdf2): Add avx_partial_xmm_update.
431 (truncdfsf2): Likewise.
432 (*float<SWI48:mode><MODEF:mode>2): Likewise.
433 (SF/DF conversion splitters): Disabled for TARGET_AVX.
434
435 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
436
437 PR middle-end/85598
438 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
439 analysis for pass.
440
441 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
442
443 PR target/89444
444 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
445 (PTA_SKYLAKE): Add PTA_AES.
446 (PTA_GOLDMONT): Likewise.
447
448 2019-02-22 Sudakshina Das <sudi.das@arm.com>
449
450 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
451 instruction if enabled.
452 (aarch64_override_options): Remove reference to return address key.
453
454 2019-02-22 Richard Biener <rguenther@suse.de>
455
456 PR tree-optimization/89440
457 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
458 not necessary assert.
459
460 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
461
462 PR fortran/72741
463 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
464 (oacc_replace_fn_attrib_attr): ... this new function.
465 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
466 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
467
468 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
469
470 * config/arm/arm-cpus.in (ares): Rename to...
471 (neoverse-n1): ... This. Add ares as alias.
472 * config/arm/arm-tables.opt: Regenerate.
473 * config/arm/arm-tune.md: Likewise.
474 * doc/invoke.txt (ARM Options): Document neoverse-n1.
475
476 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
477
478 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
479 * config/aarch64/aarch64-tune.md: Regenerate.
480 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
481
482 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
483
484 * config/aarch64/aarch64.c (ares_tunings): Rename to...
485 (neoversen1_tunings): ... This.
486 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
487 (neoverse-n1): New CPU.
488 * config/aarch64/aarch64-tune.md: Regenerate.
489 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
490
491 2019-02-22 Richard Biener <rguenther@suse.de>
492
493 PR middle-end/87609
494 * cfghooks.h (dependence_hash): New typedef.
495 (struct copy_bb_data): New type.
496 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
497 (duplicate_block): Likewise.
498 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
499 (copy_bbs): Create and pass down copy_bb_data.
500 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
501 (rtl_duplicate_bb): Likewise.
502 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
503 remap dependence info.
504
505 2019-02-22 Richard Biener <rguenther@suse.de>
506
507 PR tree-optimization/87609
508 * tree-core.h (tree_base): Document special clique values.
509 * tree-inline.c (remap_dependence_clique): Do not use the
510 special clique value of one.
511 (maybe_set_dependence_info): Use clique one.
512 (clear_dependence_clique): New callback.
513 (compute_dependence_clique): Clear clique one from all refs
514 before assigning it (again).
515
516 2019-02-21 Martin Sebor <msebor@redhat.com>
517
518 * doc/extend.texi (__clear_cache): Correct signature.
519
520 2019-02-21 Ian Lance Taylor <iant@golang.org>
521
522 PR go/89170
523 * varasm.c (decode_addr_const): Call lookup_constant_def rather
524 than output_constant_def.
525 (add_constant_to_table): New static function.
526 (output_constant_def): Call add_constant_to_table.
527 (tree_output_constant_def): Likewise.
528
529 2019-02-21 Jakub Jelinek <jakub@redhat.com>
530
531 PR c++/89285
532 * builtins.c (fold_builtin_arith_overflow): If first two args are
533 INTEGER_CSTs, set intres and ovfres to constants rather than calls
534 to ifn.
535
536 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
537
538 PR target/87412
539 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
540 error for -mindirect-branch/-mfunction-return with incompatible
541 -fcf-protection.
542
543 2019-02-21 Jakub Jelinek <jakub@redhat.com>
544
545 PR bootstrap/88714
546 * constraints.md (q): Remove.
547 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
548 instead of q.
549
550 2019-02-21 Martin Jambor <mjambor@suse.cz>
551
552 PR hsa/89302
553 * omp-general.c (omp_extract_for_data): Removed a duplicate call
554 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
555 (omp_adjust_for_condition): ...here. Added necessary parameters.
556 * omp-general.h (omp_adjust_for_condition): Updated declaration.
557 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
558 proper values to new parameters of omp_adjust_for_condition.
559
560 2019-02-20 Jakub Jelinek <jakub@redhat.com>
561
562 PR middle-end/89412
563 * expr.c (expand_assignment): If result is a MEM, use change_address
564 instead of simplify_gen_subreg.
565
566 2019-02-20 Jakub Jelinek <jakub@redhat.com>
567 David Malcolm <dmalcolm@redhat.com>
568
569 PR middle-end/89091
570 * fold-const.c (decode_field_reference): Return NULL_TREE if
571 lang_hooks.types.type_for_size returns NULL. Check it before
572 overwriting *exp_. Use return NULL_TREE instead of return 0.
573
574 2019-02-20 Jakub Jelinek <jakub@redhat.com>
575
576 PR middle-end/88074
577 PR middle-end/89415
578 * toplev.c (do_compile): Double the emin/emax exponents to workaround
579 buggy mpc_norm.
580
581 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
582
583 PR target/89397
584 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
585 TARGET_SSE in addition to TARGET_SSE_MATH.
586
587 (ix86_excess_precision): Ditto.
588 (ix86_float_exceptions_rounding_supported_p): Ditto.
589 (use_rsqrt_p): Ditto.
590 * config/i386/sse.md (rsqrt<mode>2): Ditto.
591
592 2019-02-20 David Malcolm <dmalcolm@redhat.com>
593
594 PR c/89410
595 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
596 linenum_arith_t when determining if two adjacent line spans are
597 close enough to merge.
598 (diagnostic_show_locus): Use linenum_arith_t when iterating over
599 lines within each line_span.
600
601 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
602
603 PR target/86487
604 * lra-constraints.c(uses_hard_regs_p): Fix handling of
605 paradoxical SUBREGS.
606
607 2019-02-20 Li Jia He <helijia@linux.ibm.com>
608
609 PR target/88100
610 * gcc/config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
611 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
612 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
613 range checking it.
614
615 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
616
617 * config/gcn/gcn.c (print_operand): Fix typo.
618
619 2019-02-19 Richard Biener <rguenther@suse.de>
620
621 PR middle-end/88074
622 * toplev.c (do_compile): Initialize mpfr's exponent range
623 based on available float modes.
624
625 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
626
627 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
628 as long as the epilogue isn't completed.
629
630 2019-02-18 Martin Sebor <msebor@redhat.com>
631
632 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
633 __has_cpp_attribute, and __has_include.
634
635 2019-02-18 Martin Sebor <msebor@redhat.com>
636
637 * doc/invoke.texi (-Wreturn-type): Correct and expand.
638
639 2019-02-18 Martin Sebor <msebor@redhat.com>
640
641 PR middle-end/89294
642 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
643 expression.
644 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
645
646 2019-02-18 Richard Biener <rguenther@suse.de>
647
648 PR tree-optimization/89296
649 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
650 of no-warning flag to cases that might emit the bogus warning.
651
652 2019-02-18 Jakub Jelinek <jakub@redhat.com>
653
654 PR bootstrap/88714
655 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
656 "q" constraint.
657 * config/arm/vfp.md (*movdi_vfp): Likewise.
658 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
659 "q" constraint for operands[0].
660
661 PR target/89369
662 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
663 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
664 pattern in a temporary buffer.
665 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
666 than 64-operands[2].
667
668 PR target/89361
669 * config/s390/s390.c (s390_indirect_branch_attrvalue,
670 s390_indirect_branch_settings): Define unconditionally.
671 (s390_set_current_function): Likewise, but guard the whole body except
672 the s390_indirect_branch_settings call with
673 #if S390_USE_TARGET_ATTRIBUTE.
674 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
675
676 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
677 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
678 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
679 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
680 HOST_WIDE_INT_1U instead of 1ULL.
681 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
682 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
683 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
684 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
685 instead of 1UL.
686 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
687 instead of 1ul.
688
689 2019-02-18 Martin Jambor <mjambor@suse.cz>
690
691 PR tree-optimization/89209
692 * tree-sra.c (create_access_replacement): New optional parameter
693 reg_tree. Use it as a type if non-NULL and access type is not of
694 a register type.
695 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
696 to create_access_replacement.
697 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
698 Check lacc is non-NULL before attempting to re-create it on the RHS.
699
700 2019-02-18 Martin Liska <mliska@suse.cz>
701
702 PR ipa/89306
703 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
704 by default.
705 (symbol_table::free_edge): Recycle m_summary_id.
706 * cgraph.h (get_summary_id): New.
707 (symbol_table::release_symbol): Set m_summary_id to -1
708 by default.
709 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
710 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
711 function_summary to fast_function_summary.
712 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
713 * ipa-pure-const.c (class funct_state_summary_t):
714 Switch from function_summary to fast_function_summary.
715 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
716 (class ipa_ref_opt_summary_t): Switch from function_summary
717 to fast_function_summary.
718 * symbol-summary.h (class function_summary_base): New class
719 that is created from base of former function_summary.
720 (function_summary_base::unregister_hooks): New.
721 (class function_summary): Inherit from function_summary_base.
722 (class call_summary_base): New class
723 that is created from base of former call_summary.
724 (class call_summary): Inherit from call_summary_base.
725 (struct is_same): New.
726 (class fast_function_summary): New summary class.
727 (class fast_call_summary): New summary class.
728 * vec.h (vec_safe_grow_cleared): New function.
729
730 2019-02-18 Martin Liska <mliska@suse.cz>
731
732 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
733 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
734 * doc/tm.texi: Document new target hook.
735 * doc/tm.texi.in: Likewise.
736 * target.def: Add new target macro.
737 * gcc.c (find_fortran_preinclude_file): Do not search multilib
738 suffixes.
739
740 2019-02-17 Alan Modra <amodra@gmail.com>
741
742 PR target/89271
743 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
744 output reg on add insn.
745 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
746
747 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
748
749 PR target/89372
750 * config/i386/sse.md (ssedoublemode): Remove V4HI.
751 (PMULHRSW): Likewise.
752 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
753 TARGET_AVX2.
754 (ssse3_pmulhrswv4hi3): New expander.
755
756 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
757
758 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
759 MMX. Add isa attribute.
760
761 2019-02-16 Jakub Jelinek <jakub@redhat.com>
762
763 PR rtl-optimization/66152
764 * builtins.h (c_readstr): Declare.
765 * builtins.c (c_readstr): Remove forward declaration. Add
766 null_terminated_p argument, if false, read all bytes from the
767 string instead of stopping after '\0'.
768 * expr.c (string_cst_read_str): New function.
769 (store_expr): Use string_cst_read_str instead of
770 builtin_strncpy_read_str. Try to store by pieces the whole
771 exp_len first, and only if that fails, split it up into
772 store by pieces followed by clear_storage. Formatting fix.
773
774 * config/i386/i386.md (*movqi_internal): Remove static from
775 buf variable. Use output_asm_insn (buf, operands); return "";
776 instead of return buf;.
777 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
778 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
779 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
780
781 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
782
783 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
784 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
785 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
786 (CC1_SPEC): Likewise.
787 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
788
789 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
790
791 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
792 the base address on 64-bit strict-alignment platforms.
793
794 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
795
796 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
797
798 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
799
800 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
801
802 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
803
804 PR rtl-optimization/88308
805 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
806 on copied instruction.
807
808 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
809
810 * final.c (insn_current_reference_address): Replace test on JUMP_P
811 with test on jump_to_label_p.
812 * config/visium/visium-passes.def: New file.
813 * config/visium/t-visium (PASSES_EXTRA): Define.
814 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
815 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
816 (TRAMPOLINE_ALIGNMENT): Define.
817 * config/visium/visium.c (visium_option_override): Do not register
818 the machine-specific reorg pass here.
819 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
820 for the GR6.
821 (output_branch): Adjust threshold for long branch instruction.
822 * config/visium/visium.md (cpu): Move around.
823 (length): Adjust for the GR6.
824
825 2019-02-15 Richard Biener <rguenther@suse.de>
826 Jakub Jelinek <jakub@redhat.com>
827
828 PR tree-optimization/89278
829 * tree-loop-distribution.c: Include tree-eh.h.
830 (generate_memset_builtin, generate_memcpy_builtin): Call
831 rewrite_to_non_trapping_overflow on builtin->size before passing it
832 to force_gimple_operand_gsi.
833
834 2019-02-15 Jakub Jelinek <jakub@redhat.com>
835
836 PR other/89342
837 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
838 optimize_debug.
839 * opth-gen.awk: Likewise.
840
841 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
842
843 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
844 Enable MMX, SSE and SSE2 by default.
845 * config/i386/i386.c (ix86_option_override_internal): Do not
846 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
847
848 2019-02-14 Jakub Jelinek <jakub@redhat.com>
849
850 PR rtl-optimization/89354
851 * combine.c (make_extraction): Punt if extraction_mode is narrower
852 than len bits.
853
854 2019-02-14 Maya Rashish <coypu@sdf.org>
855
856 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
857 * config/netbsd-d.c: New file.
858 * config/t-netbsd: Add netbsd-d.o
859
860 2018-02-14 Steve Ellcey <sellcey@marvell.com>
861
862 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
863 affects_type_identity to true for aarch64_vector_pcs.
864 (aarch64_comp_type_attributes): New function.
865 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
866
867 2019-02-14 Tamar Christina <tamar.christina@arm.com>
868
869 PR target/88850
870 * config/arm/iterators.md (ANY64): Add V4HF.
871
872 2019-02-14 Martin Liska <mliska@suse.cz>
873
874 PR rtl-optimization/89242
875 * dce.c (delete_unmarked_insns): Call free_dominance_info we
876 process a transformation.
877
878 2019-02-14 Jakub Jelinek <jakub@redhat.com>
879
880 PR tree-optimization/89314
881 * fold-const.c (fold_binary_loc): Cast strlen argument to
882 const char * before dereferencing it. Formatting fixes.
883
884 PR middle-end/89284
885 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
886
887 2019-02-13 Ian Lance Taylor <iant@golang.org>
888
889 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
890 and set current index for other optimizations.
891
892 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
893
894 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
895 nonimmediate_operand as operand 2 predicate.
896 (vec_set<VF2_512_256:mode>_0): Ditto.
897 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
898 (*vec_concatv2si): Remove alternative 2.
899 (*vec_concatv4si_0): Use vm constraint for alternative 0.
900 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
901 (vec_concatv2di): Split alternatives 4,5,6 to ...
902 (*vec_concatv2di_0) ... new pattern.
903
904 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
905
906 PR target/89190
907 * config/arm/arm.c (ldm_stm_operation_p) Set
908 addr_reg_in_reglist correctly for first register.
909 (load_multiple_sequence): Remove dead base check.
910 (gen_ldm_seq): Correctly set write_back for Thumb-1.
911
912 2019-02-13 Tamar Christina <tamar.christina@arm.com>
913
914 PR target/88847
915 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
916 Expose as @aarch64_pred_mov.
917 * config/aarch64/aarch64.c (aarch64_classify_address):
918 Use expand_insn which legitimizes operands.
919
920 2019-02-13 Martin Liska <mliska@suse.cz>
921
922 * builtins.h (expand_builtin_with_bounds): Remove declaration.
923 * calls.c (struct arg_data): Remove special_slot, pointer_arg
924 and pointer_offset fields.
925 (initialize_argument_information): Remove usage of dead
926 fields.
927 * cgraph.h (struct cgraph_thunk_info): Remove
928 add_pointer_bounds_args.
929 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
930 fields.
931 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
932 fields.
933 * config/i386/i386.c (ix86_function_arg_advance): Remove
934 unrelated comment.
935 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
936 (def_builtin): Remove usage of dead
937 fields.
938 (ix86_add_new_builtins): Likewise.
939 * ipa-fnsummary.c (compute_fn_summary): Likewise.
940 * ipa-icf.c (sem_function::equals_wpa): Likewise.
941 (sem_function::init): Likewise.
942 (sem_variable::merge): Likewise.
943 * ipa-visibility.c (function_and_variable_visibility): Likewise.
944 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
945 * lto-cgraph.c (lto_output_node): Likewise.
946 (lto_output_varpool_node): Likewise.
947 (input_node): Likewise.
948 (input_varpool_node): Likewise.
949 * lto-streamer-out.c (lto_output): Likewise.
950 * tree-inline.c (expand_call_inline): Remove usage of
951 assign_stmts.
952 * tree-inline.h (struct copy_body_data): Likewise.
953 * varpool.c (varpool_node::dump): Likewise.
954
955 2019-02-13 Jakub Jelinek <jakub@redhat.com>
956
957 PR middle-end/89303
958 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
959 into pt->vars_contains_escaped_heap instead of setting
960 pt->vars_contains_escaped_heap to it.
961
962 PR middle-end/89281
963 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
964 INTVAL (size), compare it to GET_MODE_MASK instead of
965 1 << GET_MODE_BITSIZE.
966
967 PR target/89290
968 * config/i386/predicates.md (x86_64_immediate_operand): Allow
969 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
970 -mcmodel=large.
971
972 2019-02-13 Martin Liska <mliska@suse.cz>
973
974 PR lto/88858
975 * cfgrtl.c (remove_barriers_from_footer): New function.
976 (try_redirect_by_replacing_jump): Use it.
977 (cfg_layout_redirect_edge_and_branch): Likewise.
978
979 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
980
981 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
982 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
983 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
984 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
985 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
986 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
987 New BU_CRYPTO_2.
988 * config/rs6000/rs6000.c (builtin_function_type)
989 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
990 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
991 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
992 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
993 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
994
995 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
996
997 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
998 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
999
1000 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
1001
1002 PR target/89229
1003 * config/i386/i386.md (*movoi_internal_avx): Revert revision
1004 268678 and revision 268657.
1005 (*movti_internal): Likewise.
1006
1007 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
1008
1009 PR target/89233
1010 * config/s390/s390.c (s390_decompose_address): Update comment.
1011 (s390_check_qrst_address): Reject invalid address forms after
1012 LRA.
1013
1014 2019-02-12 Martin Liska <mliska@suse.cz>
1015
1016 PR lto/88876
1017 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
1018 we need default values of funct_state for a function that
1019 is not optimized.
1020
1021 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
1022
1023 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
1024 the object to pick the size of stores on strict-alignment platforms.
1025
1026 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
1027 (*movdi_insn_sp32): Likewise.
1028 (*movdi_insn_sp64): Likewise.
1029
1030 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
1031
1032 PR lto/88677
1033 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
1034 types that needs constructiong.
1035 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
1036
1037 2019-02-12 Richard Biener <rguenther@suse.de>
1038
1039 PR tree-optimization/89253
1040 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
1041 duplicate the loop.
1042
1043 2019-02-11 David Malcolm <dmalcolm@redhat.com>
1044
1045 PR lto/88147
1046 * input.c (selftest::test_line_offset_overflow): New selftest.
1047 (selftest::input_c_tests): Call it.
1048
1049 2019-02-11 Martin Sebor <msebor@redhat.com>
1050
1051 PR tree-optimization/88771
1052 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
1053 when -Wstringop-overflow is set.
1054 (builtin_memref::builtin_memref): Adjust excessive upper bound
1055 only when lower bound is not excessive.
1056 (maybe_diag_overlap): Detect and diagnose excessive bounds via
1057 -Wstringop-ovefflow.
1058 (maybe_diag_offset_bounds): Rename...
1059 (maybe_diag_access_bounds): ...to this.
1060 (check_bounds_or_overlap): Adjust for name change above.
1061
1062 2019-02-11 Martin Sebor <msebor@redhat.com>
1063
1064 PR c++/87996
1065 * builtins.c (max_object_size): Move from here...
1066 * builtins.h (max_object_size): ...and here...
1067 * tree.c (max_object_size): ...to here...
1068 * tree.h (max_object_size): ...and here.
1069
1070 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
1071
1072 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
1073 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
1074 for correct semantics.
1075
1076 2019-02-11 Alan Modra <amodra@gmail.com>
1077
1078 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
1079 -mlongcall and -mpltseq.
1080 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
1081 (RS/6000 and PowerPC Options <-mpltseq>): Document.
1082 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
1083 * config/rs6000/sysv4.opt (mpltseq): New option.
1084 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
1085 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
1086 support is lacking. Don't allow -mpltseq with -mbss-plt.
1087 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
1088 -mpltseq given for ELFv1.
1089 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
1090 Only use UNSPEC_PLTSEQ for inline PLT calls.
1091 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
1092 use UNSPEC_PLTSEQ for inline PLT calls.
1093 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
1094 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
1095 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
1096 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
1097 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
1098 (pltseq_mtctr_<mode>): Likewise.
1099
1100 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1101
1102 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
1103 Solaris ld.
1104 * configure: Regenerate.
1105
1106 2019-02-11 Jakub Jelinek <jakub@redhat.com>
1107
1108 PR bootstrap/88714
1109 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
1110 instead of r.
1111
1112 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
1113
1114 * function.c (assign_parm_setup_block): Use the stored
1115 size, not the passed size, when allocating stack-space,
1116 also for a parameter with alignment larger than
1117 MAX_SUPPORTED_STACK_ALIGNMENT.
1118
1119 2019-02-11 Martin Liska <mliska@suse.cz>
1120
1121 PR ipa/89009
1122 * ipa-cp.c (build_toporder_info): Remove usage of a param.
1123 * ipa-inline.c (inline_small_functions): Likewise.
1124 * ipa-pure-const.c (propagate_pure_const): Likewise.
1125 (propagate_nothrow): Likewise.
1126 * ipa-reference.c (propagate): Likewise.
1127 * ipa-utils.c (struct searchc_env): Remove unused field.
1128 (searchc): Always search across AVAIL_INTERPOSABLE.
1129 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
1130 the only called IPA pure const can properly not propagate
1131 across interposable boundary.
1132 * ipa-utils.h (ipa_reduced_postorder): Remove param.
1133
1134 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
1135
1136 * config/nds32/nds32.md (call_internal, call_value_internal,
1137 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
1138
1139 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
1140
1141 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
1142 typo.
1143
1144 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
1145
1146 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
1147 in comments
1148
1149 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
1150
1151 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
1152
1153 2019-02-10 Jakub Jelinek <jakub@redhat.com>
1154
1155 PR tree-optimization/89268
1156 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
1157 if preds is non-NULL.
1158
1159 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
1160
1161 PR lto/89272
1162 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
1163 polymorphic types.
1164
1165 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
1166
1167 * config/nds32/nds32.md (trap): New pattern.
1168
1169 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
1170
1171 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
1172 dwarf span.
1173
1174 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
1175
1176 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
1177 to split POST_INC.
1178
1179 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
1180
1181 * ipa-visibility.c (localize_node): Also do not localize
1182 LDPR_PREVAILING_DEF_IRONLY_EXP.
1183
1184 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
1185
1186 PR lto/87957
1187 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
1188 instead of type_with_linkage.
1189
1190 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
1191
1192 PR ipa/88755
1193 * params.def (uninlined-function-insns, uninlined-function-time,
1194 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
1195 bound so we don't get overflows.
1196
1197 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
1198
1199 * config/rs6000/rs6000-string.c (expand_compare_loop,
1200 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
1201 memcmp/strncmp.
1202
1203 2019-02-09 Jakub Jelinek <jakub@redhat.com>
1204
1205 PR middle-end/89246
1206 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
1207 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
1208 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
1209
1210 2019-02-09 Alan Modra <amodra@gmail.com>
1211
1212 PR target/88343
1213 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
1214 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
1215 setup.
1216
1217 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
1218
1219 PR middle-end/88560
1220 * lra-constraints.c (process_alt_operands): Don't increase reject
1221 for memory when offset memory is required.
1222
1223 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
1224
1225 * config/s390/vector.md: Implement vector copysign.
1226
1227 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
1228
1229 * expr.c (expand_constructor): Correct indentations.
1230
1231 2019-02-08 Richard Biener <rguenther@suse.de>
1232
1233 PR tree-optimization/89247
1234 * tree-if-conv.c: Include tree-cfgcleanup.h.
1235 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
1236 (tree_if_conversion): Pass through predicate vector.
1237 (pass_if_conversion::execute): Do CFG cleanup and SSA update
1238 inline, see if any if-converted loops we refrece in
1239 LOOP_VECTORIZED calls vanished and fixup.
1240 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
1241
1242 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
1243
1244 * config/s390/constraints.md (jdd): New constraint.
1245
1246 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
1247
1248 PR target/89229
1249 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
1250 upper 16 vector registers without TARGET_AVX512VL.
1251 (*movti_internal): Likewise.
1252
1253 2019-02-08 Jakub Jelinek <jakub@redhat.com>
1254
1255 PR rtl-optimization/89234
1256 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
1257 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
1258 (copy_reg_eh_region_note_backward): Likewise.
1259
1260 2019-02-08 Richard Biener <rguenther@suse.de>
1261
1262 PR middle-end/89223
1263 * tree-data-ref.c (initialize_matrix_A): Fail if constant
1264 doesn't fit in HWI.
1265 (analyze_subscript_affine_affine): Handle failure from
1266 initialize_matrix_A.
1267
1268 2019-02-08 Jakub Jelinek <jakub@redhat.com>
1269
1270 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
1271 cfun everywhere.
1272
1273 2019-02-07 David Malcolm <dmalcolm@redhat.com>
1274
1275 PR tree-optimization/86637
1276 PR tree-optimization/89235
1277 * tree-vect-loop.c (optimize_mask_stores): Add an
1278 auto_purge_vect_location sentinel to ensure that vect_location is
1279 purged on exit.
1280 * tree-vectorizer.c
1281 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
1282 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
1283 to ensure that vect_location is purged on exit.
1284 (pass_slp_vectorize::execute): Likewise, replacing the manual
1285 reset.
1286 * tree-vectorizer.h (class auto_purge_vect_location): New class.
1287
1288 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1289
1290 * config/aarch64/iterators.md (max_opp): New code_attr.
1291 (USMAX): New code iterator.
1292 * config/aarch64/predicates.md (aarch64_smin): New predicate.
1293 (aarch64_smax): Likewise.
1294 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
1295 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
1296 MINUS (MAX MIN).
1297
1298 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
1299
1300 PR target/89229
1301 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
1302 for TARGET_AVX512VL.
1303 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
1304
1305 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
1306
1307 * config/s390/s390-builtin-types.def: Add new types.
1308 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
1309 (s390_vec_xlw4): Make the memory operand into a const pointer.
1310 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
1311 float.
1312 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
1313 a new vector type with the alignment of the scalar memory operand.
1314
1315 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
1316 Jakub Jelinek <jakub@redhat.com>
1317
1318 PR bootstrap/88714
1319 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
1320 arm_count_ldrdstrd_insns): New declarations.
1321 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
1322 MINUS.
1323 (valid_operands_ldrd_strd): New function.
1324 (arm_count_ldrdstrd_insns): New function.
1325 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
1326 sets instead of single DImode set and define new insns to match this.
1327
1328 2019-02-07 Tamar Christina <tamar.christina@arm.com>
1329
1330 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
1331 Make it a C initializer.
1332
1333 2019-02-07 Tamar Christina <tamar.christina@arm.com>
1334
1335 PR/target 88850
1336 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
1337
1338 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1339
1340 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
1341 Use neon_dot<q> for type.
1342 (neon_<sup>dot_lane<vsi2qi>): Likewise.
1343
1344 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1345
1346 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
1347 Use neon_dot<q> for type.
1348 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
1349 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
1350
1351 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
1352
1353 PR rtl-optimization/89225
1354 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
1355 sizes check.
1356
1357 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
1358
1359 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
1360 after restoring registers saved to allocate the frame on Windows.
1361
1362 2019-02-06 Richard Biener <rguenther@suse.de>
1363
1364 PR tree-optimization/89182
1365 * graphite.h (cached_scalar_evolution_in_region): Declare.
1366 * graphite.c (struct seir_cache_key): New.
1367 (struct sese_scev_hash): Likewise.
1368 (seir_cache): New global.
1369 (cached_scalar_evolution_in_region): New function.
1370 (graphite_transform_loops): Allocate and release seir_cache.
1371 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
1372 cached_scalar_evolution_in_region.
1373 * graphite-scop-detection.c (scop_detection::can_represent_loop):
1374 Simplify.
1375 (scop_detection::graphite_can_represent_expr: Use
1376 cached_scalar_evolution_in_region.
1377 (scop_detection::stmt_simple_for_scop_p): Likewise.
1378 (find_params_in_bb): Likewise.
1379 (gather_bbs::before_dom_children): Likewise.
1380 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
1381 (add_loop_constraints): Likewise.
1382
1383 2019-02-06 Jakub Jelinek <jakub@redhat.com>
1384
1385 PR middle-end/89210
1386 * fold-const-call.c (fold_const_vec_convert): Pass true as last
1387 operand to new_unary_operation only if both element types are integral
1388 and it isn't a widening conversion. Return NULL_TREE if
1389 new_unary_operation failed.
1390
1391 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
1392
1393 PR target/88856
1394 * config/s390/s390.md: Remove load and test FP splitter.
1395
1396 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
1397
1398 PR target/89112
1399 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
1400 expand_compare_loop, expand_block_compare_gpr,
1401 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
1402 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
1403 #include "profile-count.h" and "predict.h" for types and functions
1404 needed to work with REG_BR_PROB notes.
1405
1406 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
1407
1408 PR target/89112
1409 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
1410 for the long branch case.
1411
1412 2019-02-05 Jakub Jelinek <jakub@redhat.com>
1413
1414 PR target/89188
1415 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
1416 can throw, non-call exceptions are enabled and we can't delete
1417 dead exceptions or alter cfg. Set must_clean if
1418 delete_insn_and_edges returns true, don't set it blindly for calls.
1419 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
1420
1421 PR rtl-optimization/89195
1422 * combine.c (make_extraction): For MEMs, don't extract bytes outside
1423 of the original MEM.
1424
1425 2019-02-05 Martin Liska <mliska@suse.cz>
1426
1427 PR gcov-profile/89000
1428 * gcov.c (function_summary): Remove argument.
1429 (file_summary): New function.
1430 (print_usage): Replace tabs with spaces.
1431 (generate_results): Use new function file_summary.
1432
1433 2019-02-05 Jakub Jelinek <jakub@redhat.com>
1434
1435 PR target/89186
1436 * optabs.c (prepare_cmp_insn): Pass x and y to
1437 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
1438
1439 2019-02-05 Richard Biener <rguenther@suse.de>
1440
1441 PR middle-end/89150
1442 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
1443 (struct bitmap_element): Drop chain_prev so we properly recurse on
1444 the prev member, supporting tree views.
1445 (struct bitmap_head): GTY skip the obstack member.
1446
1447 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
1448
1449 PR c/88698
1450 * doc/extend.texi (Vector Extensions): Add an example of using vector
1451 types together with x86 intrinsics.
1452
1453 2019-02-04 Alan Modra <amodra@gmail.com>
1454
1455 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
1456 str[] size to 160, and comment.
1457
1458 2019-02-04 Alan Modra <amodra@gmail.com>
1459
1460 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
1461 (rs6000_pltseq_template): Guard output of TLS markers with
1462 TARGET_TLS_MARKERS.
1463 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
1464 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
1465 to use inline PLT sequences.
1466 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
1467 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
1468 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
1469
1470 2019-02-04 Martin Liska <mliska@suse.cz>
1471
1472 PR ipa/88985
1473 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
1474 out when ipa_fn_summaries does not contain entry for callee.
1475
1476 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
1477
1478 * config/sparc/sparc.h: Remove superfluous blank lines.
1479 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
1480 (got_register_rtx): ...this.
1481 (sparc_got): Adjust to above renaming.
1482 (sparc_tls_got): Likewise.
1483 (sparc_delegitimize_address): Likewise.
1484 (sparc_output_mi_thunk): Likewise.
1485 (sparc_init_pic_reg): Likewise.
1486 (save_local_or_in_reg_p): Fix test on the GOT register.
1487 (USE_HIDDEN_LINKONCE): Move around.
1488 (get_pc_thunk_name): Likewise.
1489 (gen_load_pcrel_sym): Likewise.
1490 (load_got_register): Likewise.
1491
1492 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
1493
1494 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
1495 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
1496
1497 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
1498
1499 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
1500 into consideration.
1501
1502 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
1503
1504 * config.gcc (with_nds32_lib, glibc):
1505 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
1506 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
1507 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
1508
1509 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
1510
1511 PR target/89071
1512 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
1513 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
1514 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
1515 (*rcpsf2_sse): Ditto.
1516 (*rsqrtsf2_sse): Ditto.
1517 (sse4_1_round<mode<2): Ditto.
1518
1519 2019-02-03 Richard Biener <rguenther@suse.de>
1520
1521 PR debug/87295
1522 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
1523 orig.
1524
1525 2019-02-02 Jakub Jelinek <jakub@redhat.com>
1526
1527 PR middle-end/87887
1528 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
1529 Punt with warning on aggregate return or argument types. Ignore
1530 type/mode checking for uniform arguments.
1531
1532 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
1533
1534 * combine.c (try_combine): Do not print "Can't combine" messages unless
1535 printing failed combination attempts.
1536
1537 2019-02-01 Martin Jambor <mjambor@suse.cz>
1538
1539 PR hsa/87863
1540 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
1541 segment and global segment variables before making them static.
1542
1543 2019-02-01 Martin Jambor <mjambor@suse.cz>
1544
1545 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
1546 missed optimization dump with dump_enabled_p.
1547
1548 2019-02-01 Richard Biener <rguenther@suse.de>
1549
1550 PR middle-end/88597
1551 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
1552 the instantiate cache.
1553 (instantiate_scev_binary): Elide second operand procesing
1554 if equal to the first.
1555 * tree-chrec.c (chrec_contains_symbols): Add visited set.
1556 (chrec_contains_undetermined): Likewise.
1557 (tree_contains_chrecs): Likewise.
1558
1559 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
1560
1561 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
1562
1563 2019-02-01 Jakub Jelinek <jakub@redhat.com>
1564
1565 PR tree-optimization/89143
1566 * wide-int-range.h (wide_int_range_absu): Declare.
1567 * wide-int-range.cc (wide_int_range_absu): New function.
1568 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
1569
1570 PR tree-optimization/88107
1571 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
1572 instead of assertion that eh_region_outermost is non-NULL, if it
1573 is NULL, set *ALL to true and return NULL.
1574 (move_sese_region_to_fn): Adjust caller, if all is set, call
1575 duplicate_eh_regions with NULL region.
1576
1577 2019-02-01 Richard Biener <rguenth@suse.de>
1578
1579 PR rtl-optimization/88593
1580 * mode-switching.c (optimize_mode_switching): Free dominators before
1581 calling cleanup_cfg.
1582
1583 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
1584
1585 PR tree-optimization/88932
1586 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
1587
1588 2019-01-31 Jakub Jelinek <jakub@redhat.com>
1589
1590 PR middle-end/89137
1591 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
1592 bogus clang warning.
1593
1594 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
1595
1596 PR target/89071
1597 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
1598 alternative to avoid partial SSE register stall for TARGET_AVX.
1599 (truncdfsf2): Ditto.
1600 (sse4_1_round<mode>2): Ditto.
1601
1602 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
1603
1604 PR tree-optimization/89008
1605 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
1606 process anything of the form X * 0.
1607
1608 2019-01-31 Richard Biener <rguenther@suse.de>
1609
1610 PR tree-optimization/89135
1611 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
1612 with abnormal preds.
1613
1614 2019-01-31 Jakub Jelinek <jakub@redhat.com>
1615
1616 PR sanitizer/89124
1617 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
1618 always_inline callees into no_sanitize_address callers.
1619
1620 2019-01-31 Richard Biener <rguenther@suse.de>
1621
1622 PR rtl-optimization/89115
1623 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
1624
1625 2019-01-30 Martin Sebor <msebor@redhat.com>
1626
1627 PR other/89106
1628 * doc/extend.texi (cast to a union): Correct and expand.
1629
1630 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
1631
1632 PR rtl-optimization/87246
1633 * lra-constraints.c (simplify_operand_subreg): Reload memory
1634 in subreg if the address became invalid.
1635
1636 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
1637
1638 PR target/87064
1639 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
1640 Disable for little-endian.
1641
1642 2019-01-30 Richard Biener <rguenther@suse.de>
1643
1644 PR rtl-optimization/89115
1645 * opts.c (default_options_optimization): Reduce
1646 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
1647 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
1648 to the default.
1649
1650 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
1651
1652 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
1653 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
1654 type of vector element when vec_extract is implemented by direct
1655 move.
1656
1657 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
1658
1659 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
1660
1661 2019-01-30 Richard Biener <rguenther@suse.de>
1662
1663 PR tree-optimization/89111
1664 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
1665 canonicalization to appropriately sized access types.
1666
1667 2019-01-30 Jakub Jelinek <jakub@redhat.com>
1668
1669 PR c++/89105
1670 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
1671 for arguments to functions that are TU-local and shouldn't be
1672 referenced by assembly.
1673
1674 2019-01-30 Ulrich Drepper <drepper@redhat.com>
1675
1676 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
1677 after '='.
1678
1679 2019-01-29 Martin Sebor <msebor@redhat.com>
1680
1681 PR c/88956
1682 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
1683
1684 2019-01-29 Jakub Jelinek <jakub@redhat.com>
1685
1686 PR c++/66676
1687 PR ipa/89104
1688 * omp-simd-clone.c (simd_clone_clauses_extract)
1689 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
1690 OMP_CLAUSE_ALIGNED_ALIGNMENT.
1691
1692 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
1693
1694 * config.gcc: Force .init_array for ARC.
1695
1696 2019-01-29 Richard Biener <rguenther@suse.de>
1697
1698 PR debug/87295
1699 * dwarf2out.c (collect_skeleton_dies): New helper.
1700 (copy_decls_for_unworthy_types): Call it.
1701 (build_abbrev_table): Assert we do not try to replace
1702 DW_AT_signature refs with local refs.
1703
1704 2019-01-28 Jakub Jelinek <jakub@redhat.com>
1705
1706 PR middle-end/89002
1707 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
1708 for lastprivate/linear IV, push gimplify context around gimplify_assign
1709 and, if it needed any temporaries, pop it into a gimple bind around the
1710 sequence.
1711
1712 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
1713
1714 * common.opt (-Wattribute-alias): Remove "no-" from name.
1715 Make -Wattribute-alias command line option and
1716 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
1717
1718 2019-01-28 Jakub Jelinek <jakub@redhat.com>
1719
1720 PR target/89073
1721 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
1722 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
1723 x86 ISA options.
1724 (bmi2): Add missing @opindex.
1725 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
1726 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
1727 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
1728 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
1729 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
1730 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
1731 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
1732 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
1733 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
1734 xsavec, xsaveopt and xsaves options.
1735
1736 2019-01-28 Richard Biener <rguenther@suse.de>
1737
1738 PR debug/89076
1739 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
1740 support removal.
1741
1742 2019-01-28 Richard Biener <rguenther@suse.de>
1743
1744 PR tree-optimization/88739
1745 * tree-cfg.c (verify_types_in_gimple_reference): Verify
1746 BIT_FIELD_REFs only are applied to mode-precision operands
1747 when they are integral.
1748 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
1749 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
1750 BIT_FIELD_REFs of non-mode-precision integral operands.
1751
1752 2019-01-27 Jakub Jelinek <jakub@redhat.com>
1753
1754 PR target/87214
1755 * config/i386/sse.md
1756 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
1757 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
1758 first constants in pairs are multiples of 2. Formatting fixes.
1759 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
1760 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
1761 first constants in each quadruple are multiples of 4. Formatting fixes.
1762
1763 2019-01-26 Martin Jambor <mjambor@suse.cz>
1764
1765 PR ipa/88933
1766 * tree-inline.c: Include tree-cfgcleanup.h.
1767 (delete_unreachable_blocks_update_callgraph): Move...
1768 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
1769 ...here, make externally visible, make second argument bool, adjust
1770 all callers.
1771 * tree-cfgcleanup.c: Include cgraph.h.
1772 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
1773 Declare.
1774 * ipa-prop.c: Include tree-cfgcleanup.h.
1775 (ipcp_transform_function): Call
1776 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
1777
1778 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
1779
1780 PR rtl-optimization/88846
1781 * ira.c (process_set_for_memref_referenced_p): New.
1782 (memref_referenced_p): Add new param. Use
1783 process_set_for_memref_referenced_p. Add new switch cases.
1784 (memref_used_between_p): Pass new arg to memref_referenced_p.
1785
1786 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
1787
1788 PR target/88469
1789 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
1790 argument ABI_BREAK. Set to true if the calculated alignment has
1791 changed in gcc-9. Check bit-fields for their base type alignment.
1792 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
1793 (aarch64_function_arg_boundary): Likewise.
1794 (aarch64_gimplify_va_arg_expr): Likewise.
1795
1796 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
1797
1798 PR middle-end/89037
1799 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
1800 instead of accessing TREE_INT_CST_ELT directly.
1801
1802 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
1803
1804 * doc/sourcebuild.texi (Environment attributes): Add fenv and
1805 fenv_exceptions description.
1806
1807 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
1808
1809 PR rtl-optimization/87763
1810 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
1811 Allow SUBREG when matching CC_NZmode compare.
1812
1813 2019-01-25 Richard Biener <rguenther@suse.de>
1814
1815 PR tree-optimization/89049
1816 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
1817 Look at the pattern stmt to determine if the stmt is vectorized.
1818
1819 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
1820
1821 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
1822 (pred_mov<mode>): Handle all-register forms using both a new
1823 alternative and a split.
1824
1825 2019-01-25 Richard Biener <rguenther@suse.de>
1826
1827 PR tree-optimization/86865
1828 * graphite-scop-detection.c (scop_detection::can_represent_loop):
1829 Reject non-do-while loops.
1830
1831 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
1832
1833 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
1834 * config/rs6000/constraints.md (Q constraint): Use REG_P.
1835 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
1836 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
1837 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
1838 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
1839 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
1840 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
1841 vlogical_operand, gpc_reg_operand, int_reg_operand,
1842 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
1843 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
1844 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
1845 (save_world_operation, restore_world_operation, lmw_operation,
1846 stmw_operation): Use MEM_P and REG_P.
1847 (tie_operand): Use MEM_P.
1848 (vrsave_operation, crsave_operation): Use REG_P.
1849 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
1850 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
1851 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
1852 (call_operand): Use HARD_REGISTER_P.
1853 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
1854 Use CONST_INT_P.
1855 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
1856 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
1857 quad_aligned_load_p, replace_swapped_aligned_store,
1858 recombine_lvx_pattern, replace_swapped_aligned_load,
1859 recombine_stvx_pattern): Use MEM_P.
1860 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
1861 Use MEM_P and SYMBOL_REF_P.
1862 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
1863 (insn_is_swappable_p): Use REG_P and MEM_P.
1864 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
1865 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
1866 Use CONST_INT_P.
1867 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
1868 Use CONST_DOUBLE_P.
1869 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
1870 CONST_WIDE_INT_P.
1871 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
1872 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
1873 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
1874 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
1875 reg_or_subregno:
1876 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
1877 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
1878 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
1879 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
1880 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
1881 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
1882 rs6000_split_logical_di): Use CONST_INT_P.
1883 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
1884 REG_P and SYMBOL_REF_P.
1885 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
1886 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
1887 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
1888 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
1889 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
1890 (small_data_operand, print_operand_address): Use CONST_INT_P and
1891 SYMBOL_REF_P.
1892 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
1893 (rs6000_init_hard_regno_mode_ok, direct_move_p):
1894 Use HARD_REGISTER_NUM_P.
1895 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
1896 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
1897 SUBREG_P and SYMBOL_REF_P.
1898 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
1899 and HARD_REGISTER_NUM_P.
1900 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
1901 reg_or_subregno.
1902 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
1903 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
1904 MEM_P and REG_P.
1905 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
1906 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
1907 find_addr_reg): Use REG_P.
1908 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
1909 (rs6000_emit_le_vsx_move): Use SUBREG_P.
1910 (offsettable_ok_by_alignment, constant_pool_expr_p,
1911 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
1912 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
1913 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
1914 rs6000_assemble_integer, create_TOC_reference,
1915 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
1916 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
1917 (rs6000_split_vec_extract_var): Use reg_or_subregno.
1918 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
1919 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
1920 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
1921 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
1922 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
1923 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
1924 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
1925 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
1926 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
1927 and cbranch<mode>4): Use CONST_INT_P.
1928 (multiple define_splits): Use REG_P and SUBREG_P.
1929 (define_expands call, call_value): Use MEM_P.
1930 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
1931 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
1932 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
1933 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
1934 and HARD_REGISTER_NUM_P.
1935 (multiple define_splits): Use HARD_REGISTER_NUM_P.
1936
1937 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
1938
1939 PR rtl-optimization/88948
1940 * rtl.h (prepare_copy_insn): New prototype.
1941 * gcse.c (prepare_copy_insn): New function, split out from
1942 process_insert_insn.
1943 (process_insert_insn): Use prepare_copy_insn.
1944 * store-motion.c (replace_store_insn): Use prepare_copy_insn
1945 instead of gen_move_insn.
1946
1947 2019-01-24 Jakub Jelinek <jakub@redhat.com>
1948
1949 PR debug/89006
1950 * config/i386/i386.c (ix86_pic_register_p): Return true for
1951 UNSPEC_SET_GOT too.
1952
1953 PR tree-optimization/88964
1954 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
1955 punt if HONOR_SNANS (chrec).
1956
1957 PR middle-end/89015
1958 * tree-nested.c (convert_nonlocal_reference_stmt,
1959 convert_local_reference_stmt, convert_tramp_reference_stmt,
1960 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
1961 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
1962 or GIMPLE_OMP_TASK.
1963
1964 PR tree-optimization/89027
1965 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
1966 for "omp simd array" variables.
1967
1968 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
1969
1970 PR target/88469
1971 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
1972 force the alignment of m_val.
1973
1974 2019-01-24 Richard Biener <rguenther@suse.de>
1975
1976 PR lto/87187
1977 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
1978 When in "legacy" debug mode make sure to reset self-origins.
1979
1980 2019-01-24 Martin Liska <mliska@suse.cz>
1981
1982 PR gcov-profile/88994
1983 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
1984 result will be always smaller or equal to the original.
1985 * gcov.c (mangle_name): Fix else branch where we should
1986 also copy to PTR and shift the pointer.
1987
1988 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
1989
1990 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
1991 * vr-values.c (find_case_label_ranges): Fix a comment typo.
1992
1993 2019-01-23 Bin Cheng <bin.cheng@arm.com>
1994 Steve Ellcey <sellcey@marvell.com>
1995
1996 PR target/85711
1997 * recog.c (address_operand): Return false on wrong mode for address.
1998 (constrain_operands): Check for mode with 'p' constraint.
1999
2000 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
2001
2002 PR target/88998
2003 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
2004 Disparage MMX alternative.
2005 (sse2_cvtpd2pi): Ditto.
2006 (sse2_cvttpd2pi): Ditto.
2007
2008 2019-01-23 David Malcolm <dmalcolm@redhat.com>
2009
2010 PR driver/89014
2011 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
2012 use-after-free of the result of
2013 aarch64_get_extension_string_for_isa_flags.
2014
2015 2019-01-23 Jakub Jelinek <jakub@redhat.com>
2016
2017 PR c/44715
2018 * doc/extend.texi: Document break and continue behavior in
2019 statement expressions.
2020
2021 2019-01-23 Richard Biener <rguenther@suse.de>
2022
2023 PR tree-optimization/89008
2024 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
2025 not leave another stray operand.
2026
2027 2019-01-23 Jakub Jelinek <jakub@redhat.com>
2028
2029 * BASE-VER: Bump to 9.0.1.
2030
2031 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
2032
2033 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
2034 thunk that returns by reference, use the type of the return object
2035 of the thunk instead of that of the alias to build the dereference.
2036
2037 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
2038
2039 * config/arc/atomic.md: Add operand to DMB instruction.
2040
2041 2019-01-23 Jakub Jelinek <jakub@redhat.com>
2042
2043 PR tree-optimization/88964
2044 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
2045 build_zero_cst instead of build_int_cst. Return false for loop
2046 invariants which honor signed zeros.
2047
2048 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
2049
2050 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
2051
2052 2019-01-22 Jakub Jelinek <jakub@redhat.com>
2053
2054 PR target/88965
2055 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
2056 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
2057 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
2058
2059 PR middle-end/88968
2060 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
2061 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
2062
2063 PR target/87064
2064 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
2065 Disable for little endian.
2066
2067 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
2068
2069 PR target/88469
2070 * config/arm/arm.c (arm_needs_double_word_align): Check
2071 DECL_BIT_FIELD_TYPE.
2072
2073 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
2074 H.J. Lu <hongjiu.lu@intel.com>
2075
2076 PR target/88909
2077 * config/i386/i386-builtin.def: Add mask2 to all builtin
2078 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
2079 SPECIAL_ARGS.
2080 * config/i386/i386.c (BDESC): Add mask2 to the definition.
2081 (BDESC_FIRST): Likewise.
2082 (define_builtin): Add an argument for mask2. Updated to handle
2083 both ix86_isa_flags and ix86_isa_flags2.
2084 (define_builtin_const): Likewise.
2085 (define_builtin_pure): Likewise.
2086 (define_builtin2): Deleted.
2087 (define_builtin_const2): Likewise.
2088 (builtin_description): Add a member, mask2.
2089 (bdesc_*): Add mask2 to builtin initializations.
2090 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
2091 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
2092 support.
2093 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
2094
2095 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
2096
2097 PR target/88954
2098 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
2099 noplt attribute.
2100
2101 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
2102
2103 PR target/88469
2104 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
2105 alignment is dominated by a bitfield with 64-bit aligned base type.
2106 (arm_function_arg): Emit a warning if the alignment has changed since
2107 earlier GCC releases.
2108 (arm_function_arg_boundary): Likewise.
2109 (arm_setup_incoming_varargs): Likewise.
2110
2111 2019-01-22 Richard Biener <rguenther@suse.de>
2112
2113 PR tree-optimization/88862
2114 * graphite-scop-detection.c
2115 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
2116
2117 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
2118
2119 * doc/extend.tex (AMD GCN Function Attributes): New section.
2120 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
2121 * doc/invoke.texi (AMD GCN Options): New section.
2122 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
2123
2124 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
2125
2126 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
2127 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
2128
2129 2019-01-22 Jakub Jelinek <jakub@redhat.com>
2130
2131 PR tree-optimization/88044
2132 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
2133 is false in the first iteration, but !every_iteration, return false
2134 instead of true with niter->niter zero.
2135
2136 PR rtl-optimization/88904
2137 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
2138 any nonequal registers before processing BB_END (b).
2139
2140 PR target/88905
2141 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
2142 GET_MODE (op0).
2143 (expand_binop_directly, expand_doubleword_clz,
2144 expand_doubleword_popcount, expand_ctz, expand_ffs,
2145 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
2146
2147 PR rtl-optimization/49429
2148 PR target/49454
2149 PR rtl-optimization/86334
2150 PR target/88906
2151 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
2152 addressable from here...
2153 (emit_block_op_via_libcall): ... to here.
2154
2155 2019-01-22 Richard Biener <rguenther@suse.de>
2156
2157 * tree-vect-loop.c (vect_analyze_loop_operations): Use
2158 auto_vec for cost vector to fix memleak.
2159 (vectorize_fold_left_reduction): Properly gather SLP defs.
2160 (vectorizable_comparison): Do not swap operands to properly
2161 gather SLP defs.
2162
2163 2019-01-22 Alan Modra <amodra@gmail.com>
2164
2165 PR target/88614
2166 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
2167 stays a reg. Allow a const_int.
2168 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
2169 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
2170 (IS_NOMARK_TLSGETADDR): Define.
2171 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
2172 (rs6000_output_tlsargs): New function.
2173 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
2174 __tls_get_addr call takes an arg.
2175 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
2176 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
2177 delete split..
2178 (call_value_nonlocal_sysv): ..or here, delete split.
2179 (tls_gdld_nomark): Delete.
2180 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
2181 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
2182 (call_value_nonlocal_sysv): Likewise.
2183 (call_value_nonlocal_sysv_secure): Likewise.
2184 (call_value_nonlocal_aix): Likewise.
2185 (call_value_indirect_aix): Likewise.
2186 (call_value_indirect_elfv2): Likewise.
2187 (call_value_local32, call_value_local64): Disable for no-mark tls.
2188 (call_value_local_aix): Likewise.
2189
2190 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
2191
2192 PR target/88938
2193 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
2194 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
2195
2196 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
2197
2198 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
2199 string contents as hash_map keys.
2200
2201 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
2202
2203 PR c/88928
2204 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
2205 for rvalue context. Handle rvalues correctly. Use min_align_of_type
2206 instead of TYPE_ALIGN.
2207 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
2208 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
2209 pointer from TYPE_STUB_DECL.
2210
2211 2019-01-21 Richard Biener <rguenther@suse.de>
2212
2213 PR tree-optimization/88934
2214 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
2215 at the possibly non-constant operand.
2216 (vect_get_constant_vectors): Adjust.
2217
2218 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
2219
2220 PR target/71659
2221 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
2222 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
2223 instead of _X86INTRIN_H_INCLUDED.
2224 * onfig/i386/clwbintrin.h: Likewise.
2225 * config/i386/pkuintrin.h: Likewise.
2226 * config/i386/prfchwintrin.h: Likewise.
2227 * config/i386/rdseedintrin.h: Likewise.
2228 * config/i386/wbnoinvdintrin.h: Likewise.
2229 * config/i386/xsavecintrin.h: Likewise.
2230 * config/i386/xsavesintrin.h: Likewise.
2231 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
2232 * config/i386/xsaveintrin.h: Likewise.
2233 * config/i386/xsaveoptintrin.h: Likewise.
2234 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
2235 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
2236 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
2237 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
2238 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
2239 * config/i386/immintrin.h: Here.
2240
2241 2019-01-20 Martin Jambor <mjambor@suse.cz>
2242
2243 PR ipa/87615
2244 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
2245 with aa_walk_budget.
2246 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
2247 aa_walk_budget_p parameter.
2248 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
2249 walk. Updated all callers.
2250 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
2251 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
2252 unmodified_parm.
2253 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
2254 parameter info. Extract info from fbi. Pass fbi to recursive calls
2255 and to unmodified_parm.
2256 (phi_result_unknown_predicate): New parameter fbi, removed parameter
2257 info, updated call to will_be_nonconstant_expr_predicate.
2258 (param_change_prob): New parameter fbi, limit AA walking.
2259 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
2260 calls to various above functions.
2261 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
2262 parameter. Use it to limit AA walking.
2263 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
2264 fbi, limit AA walk.
2265 (detect_type_change): New parameter fbi, pass it on to
2266 detect_type_change_from_memory_writes.
2267 (detect_type_change_ssa): Likewise.
2268 (aa_overwalked): Removed.
2269 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
2270 accordingly, adjust to the neew AA limiting scheme.
2271 (parm_ref_data_preserved_p): Likewise.
2272 (ipa_compute_jump_functions_for_edge): Adjust call to
2273 get_dynamic_type.
2274 (ipa_analyze_call_uses): Likewise.
2275 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
2276 (ipa_analyze_node): Initialize aa_walk_budget.
2277 (ipcp_transform_function): Likewise.
2278 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
2279 to get_dynamic_type.
2280
2281 2019-01-19 Jakub Jelinek <jakub@redhat.com>
2282
2283 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
2284 outside of #if CHECKING_P code.
2285
2286 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
2287
2288 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
2289 New function, split out from...
2290 (loop_versioning::analyze_stride): ...here.
2291 (loop_versioning::find_per_loop_multiplication): Use gassign.
2292 (loop_versioning::analyze_term_using_scevs): Return a success code.
2293 (loop_versioning::analyze_arbitrary_term): New function.
2294 (loop_versioning::analyze_address_fragment): Use
2295 analyze_arbitrary_term if all else fails.
2296
2297 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
2298
2299 PR target/88892
2300 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
2301 operands.
2302
2303 2019-01-18 Richard Biener <rguenther@suse.de>
2304
2305 PR tree-optimization/88903
2306 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
2307 scalar stmts a SLP shift amount is composed of when detecting
2308 shifts by scalars.
2309
2310 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
2311
2312 PR target/88799
2313 * config/arm/arm-cpus.in (mp): New feature.
2314 (sec): New feature.
2315 (fgroup ARMv7ve): Add mp and sec features.
2316 (arch armv7-a): Add options to allow mp and sec extensions.
2317 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
2318 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
2319 extenstions to the base architecture.
2320 (cpu cortex-a8): Add sec extension to the base architecture.
2321 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
2322 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
2323 variants down to the base v7-a varaint.
2324 * config/arm/t-multilib (v7_a_arch_variants): New variable.
2325 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
2326 of permitted extensions for -march=armv7-a and for
2327 -mcpu=generic-armv7-a.
2328
2329 2019-01-18 Martin Liska <mliska@suse.cz>
2330
2331 * params.def: Fix comment.
2332 * tree-profile.c (gimple_init_gcov_profiler): Bump function
2333 name.
2334 (gimple_gen_ic_func_profiler): Likewise.
2335
2336 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2337
2338 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
2339 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
2340 and put in error checks for stack protector guard options.
2341 (aarch64_stack_protect_guard): New.
2342 (TARGET_STACK_PROTECT_GUARD): Define.
2343 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
2344 (reg_stack_protect_address<mode>): New.
2345 (stack_protect_set): Adjust for SSP_GLOBAL.
2346 (stack_protect_test): Likewise.
2347 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
2348 (-mstack-protector-guard): Likewise.
2349 (-mstack-protector-guard-offset): Likewise.
2350
2351 2019-01-18 Jakub Jelinek <jakub@redhat.com>
2352
2353 PR tree-optimization/86214
2354 * tree-inline.h (struct copy_body_data): Add
2355 add_clobbers_to_eh_landing_pads member.
2356 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
2357 (copy_edges_for_bb): Call it if EH edge destination is <
2358 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
2359 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
2360 if flag_stack_reuse != SR_NONE and clear it afterwards.
2361
2362 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
2363
2364 PR target/85596
2365 * doc/install.texi (with-multilib-list): Document for aarch64.
2366
2367 2019-01-18 Jakub Jelinek <jakub@redhat.com>
2368
2369 PR target/88734
2370 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
2371 (("..."))) with ("...").
2372
2373 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
2374
2375 * doc/extend.texi (Built-in Functions for Memory Model Aware
2376 Atomic Operations): Document atomic fetch and nand.
2377
2378 2019-01-18 Martin Liska <mliska@suse.cz>
2379 Richard Biener <rguenther@suse.de>
2380
2381 PR middle-end/88587
2382 * cgraph.h (create_version_clone_with_body): Add new argument
2383 with attributes.
2384 * cgraphclones.c (cgraph_node::create_version_clone): Add
2385 DECL_ATTRIBUTES to a newly created decl. And call
2386 valid_attribute_p so that proper cl_target_optimization_node
2387 is set for the newly created declaration.
2388 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
2389 for declaration.
2390 (expand_target_clones): Do not call valid_attribute_p, it must
2391 be already done.
2392 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
2393 vector types.
2394
2395 2019-01-17 Jakub Jelinek <jakub@redhat.com>
2396
2397 PR target/88734
2398 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
2399 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
2400 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
2401
2402 2019-01-17 Martin Sebor <msebor@redhat.com>
2403
2404 PR middle-end/88273
2405 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
2406 Handle anti-ranges the same as no range at all.
2407
2408 2018-01-17 Steve Ellcey <sellcey@cavium.com>
2409
2410 * config/aarch64/aarch64.c (cgraph.h): New include.
2411 (intl.h): New include.
2412 (supported_simd_type): New function.
2413 (currently_supported_simd_type): Ditto.
2414 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
2415 (aarch64_simd_clone_adjust): Ditto.
2416 (aarch64_simd_clone_usable): Ditto.
2417 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
2418 (TARGET_SIMD_CLONE_ADJUST): Ditto.
2419 (TARGET_SIMD_CLONE_USABLE): Ditto.
2420 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
2421 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
2422 call.
2423
2424 2019-01-17 Martin Sebor <msebor@redhat.com>
2425
2426 PR tree-optimization/88800
2427 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
2428 NO_WARNING bit here. Avoid folding out-of-bounds calls.
2429 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
2430 redundant argument. Add new argument and issue diagnostics under
2431 its control. Detect out-of-bounds access even with warnings
2432 disabled.
2433 (check_bounds_or_overlap): Change return type. Add argument.
2434 (wrestrict_dom_walker::check_call): Adjust.
2435 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
2436 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
2437 check_bounds_or_overlap's return value.
2438 (handle_builtin_stxncpy): Same.
2439 (handle_builtin_strcat): Same.
2440
2441 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
2442 Kwok Cheung Yeung <kcy@codesourcery.com>
2443 Julian Brown <julian@codesourcery.com>
2444 Tom de Vries <tom@codesourcery.com>
2445
2446 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
2447
2448 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
2449
2450 * doc/sourcebuild.texi: Document dg-require-effective-target
2451 llvm_binutils and offload_gcn.
2452
2453 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
2454 Kwok Cheung Yeung <kcy@codesourcery.com>
2455 Julian Brown <julian@codesourcery.com>
2456 Tom de Vries <tom@codesourcery.com>
2457
2458 * doc/sourcebuild.texi: Document dg-required-effective-target
2459 exceptions.
2460
2461 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
2462 Kwok Cheung Yeung <kcy@codesourcery.com>
2463 Julian Brown <julian@codesourcery.com>
2464 Tom de Vries <tom@codesourcery.com>
2465 Jan Hubicka <hubicka@ucw.cz>
2466 Martin Jambor <mjambor@suse.cz>
2467
2468 * config.gcc: Add amdgcn*-*-amdhsa configuration.
2469 * configure.ac: Check for dlopen.
2470 * configure: Regenerate.
2471
2472 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
2473 Kwok Cheung Yeung <kcy@codesourcery.com>
2474 Julian Brown <julian@codesourcery.com>
2475 Tom de Vries <tom@codesourcery.com>
2476 Jan Hubicka <hubicka@ucw.cz>
2477 Martin Jambor <mjambor@suse.cz>
2478
2479 * common/config/gcn/gcn-common.c: New file.
2480 * config/gcn/driver-gcn.c: New file.
2481 * config/gcn/gcn-builtins.def: New file.
2482 * config/gcn/gcn-hsa.h: New file.
2483 * config/gcn/gcn-modes.def: New file.
2484 * config/gcn/gcn-opts.h: New file.
2485 * config/gcn/gcn-passes.def: New file.
2486 * config/gcn/gcn-protos.h: New file.
2487 * config/gcn/gcn-run.c: New file.
2488 * config/gcn/gcn-tree.c: New file.
2489 * config/gcn/gcn.c: New file.
2490 * config/gcn/gcn.h: New file.
2491 * config/gcn/gcn.opt: New file.
2492 * config/gcn/t-gcn-hsa: New file.
2493
2494 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
2495 Kwok Cheung Yeung <kcy@codesourcery.com>
2496 Julian Brown <julian@codesourcery.com>
2497 Tom de Vries <tom@codesourcery.com>
2498 Jan Hubicka <hubicka@ucw.cz>
2499 Martin Jambor <mjambor@suse.cz>
2500
2501 * config/gcn/constraints.md: New file.
2502 * config/gcn/gcn-valu.md: New file.
2503 * config/gcn/gcn.md: New file.
2504 * config/gcn/predicates.md: New file.
2505
2506 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
2507
2508 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
2509 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
2510 (stmt_uses_0_or_null_in_undefined_way): Likewise.
2511 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
2512
2513 2019-01-17 Tamar Christina <tamar.christina@arm.com>
2514
2515 PR target/88851
2516 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
2517 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
2518 it and document registers.
2519
2520 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2521
2522 * config/aarch64/aarch64.c (ares_tunings): Define.
2523 * config/aarch64/aarch64-cores.def (ares): Use the above.
2524
2525 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
2526
2527 PR target/88794
2528 Revert:
2529 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
2530
2531 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
2532 (_mm512_fixupimm_round_pd): Update parameters and builtin.
2533 (_mm512_maskz_fixupimm_round_pd): Ditto.
2534 (_mm512_fixupimm_round_ps): Ditto.
2535 (_mm512_maskz_fixupimm_round_ps): Ditto.
2536 (_mm_fixupimm_round_sd): Ditto.
2537 (_mm_maskz_fixupimm_round_sd): Ditto.
2538 (_mm_fixupimm_round_ss): Ditto.
2539 (_mm_maskz_fixupimm_round_ss): Ditto.
2540 (_mm512_fixupimm_pd): Ditto.
2541 (_mm512_maskz_fixupimm_pd): Ditto.
2542 (_mm512_fixupimm_ps): Ditto.
2543 (_mm512_maskz_fixupimm_ps): Ditto.
2544 (_mm_fixupimm_sd): Ditto.
2545 (_mm_maskz_fixupimm_sd): Ditto.
2546 (_mm_fixupimm_ss): Ditto.
2547 (_mm_maskz_fixupimm_ss): Ditto.
2548 (_mm512_mask_fixupimm_round_pd): Update builtin.
2549 (_mm512_mask_fixupimm_round_ps): Ditto.
2550 (_mm_mask_fixupimm_round_sd): Ditto.
2551 (_mm_mask_fixupimm_round_ss): Ditto.
2552 (_mm512_mask_fixupimm_pd): Ditto.
2553 (_mm512_mask_fixupimm_ps): Ditto.
2554 (_mm_mask_fixupimm_sd): Ditto.
2555 (_mm_mask_fixupimm_ss): Ditto.
2556 * config/i386/avx512vlintrin.h:
2557 (_mm256_fixupimm_pd): Update parameters and builtin.
2558 (_mm256_maskz_fixupimm_pd): Ditto.
2559 (_mm256_fixupimm_ps): Ditto.
2560 (_mm256_maskz_fixupimm_ps): Ditto.
2561 (_mm_fixupimm_pd): Ditto.
2562 (_mm_maskz_fixupimm_pd): Ditto.
2563 (_mm_fixupimm_ps): Ditto.
2564 (_mm_maskz_fixupimm_ps): Ditto.
2565 (_mm256_mask_fixupimm_pd): Update builtin.
2566 (_mm256_mask_fixupimm_ps): Ditto.
2567 (_mm_mask_fixupimm_pd): Ditto.
2568 (_mm_mask_fixupimm_ps): Ditto.
2569 * config/i386/i386-builtin-types.def: Add new types and remove useless ones.
2570 * config/i386/i386-builtin.def: Update builtin definitions.
2571 * config/i386/i386.c: Handle new builtin types and remove useless ones.
2572 * config/i386/sse.md: Update VFIXUPIMM* patterns.
2573 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
2574 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
2575 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
2576 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
2577 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
2578 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
2579 * config/i386/subst.md:
2580 (round_saeonly_sd_mask_operand4): Add new subst_attr.
2581 (round_saeonly_sd_mask_op4): Ditto.
2582 (round_saeonly_expand_operand5): Ditto.
2583 (round_saeonly_expand): Update.
2584
2585 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
2586
2587 PR target/88794
2588 Revert:
2589 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
2590
2591 * config/i386/sse.md: Combine VFIXUPIMM* patterns
2592 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
2593 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
2594 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
2595 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
2596 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
2597 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
2598
2599 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
2600
2601 PR target/88794
2602 Revert:
2603 2018-12-15 Jakub Jelinek <jakub@redhat.com>
2604
2605 PR target/88489
2606 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
2607 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
2608 instead of UNSPEC_FIXUPIMM.
2609
2610 2019-01-17 Richard Biener <rguenther@suse.de>
2611
2612 PR lto/86736
2613 * dwarf2out.c (want_pubnames): Never generate pubnames sections
2614 and friends for the LTO part of debug info.
2615
2616 2019-01-17 Jakub Jelinek <jakub@redhat.com>
2617
2618 PR tree-optimization/86214
2619 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
2620 if x == y.
2621
2622 PR rtl-optimization/88870
2623 * dce.c (deletable_insn_p): Never delete const/pure calls that can
2624 throw if we can't alter the cfg or delete dead exceptions.
2625 (mark_insn): Don't call find_call_stack_args for such calls.
2626
2627 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
2628
2629 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
2630 prototypes for vec_st.
2631 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
2632 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
2633 mainly on signed/unsigned long long and double.
2634
2635 2019-01-16 David Malcolm <dmalcolm@redhat.com>
2636
2637 PR target/88861
2638 * combine.c (delete_noop_moves): Convert to "bool" return,
2639 returning true if any edges are eliminated.
2640 (combine_instructions): Also return true if delete_noop_moves
2641 returns true.
2642
2643 2019-01-16 Tamar Christina <tamar.christina@arm.com>
2644
2645 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
2646 correct max nunits for endian swap.
2647 (aarch64_expand_fcmla_builtin): Correct subreg code.
2648 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
2649 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
2650 lane endianness.
2651
2652 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
2653
2654 * config/alpha/alpha.c (alpha_gimplify_va_arg):
2655 Handle split indirect COMPLEX_TYPE arguments.
2656
2657 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
2658
2659 PR target/86891
2660 * config/aarch64/aarch64-modes.def: Add comment about how the carry
2661 bit is set by add and compare.
2662 (CC_ADC): New CC_MODE.
2663 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
2664 to cache the code and mode of X. Adjust the shape of a CC_Cmode
2665 comparison. Add detection for CC_ADCmode.
2666 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
2667 CC_ADCmode.
2668 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
2669 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
2670 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
2671 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
2672 to eliminate the need for zero-extending the operands.
2673 (add<mode>3_compareC_imm): Delete. Merge into ...
2674 (add<mode>3_compareC): ... this. Restructure the comparison to
2675 eliminate the need for zero-extending the operands.
2676 (add<mode>3_carryin): Use LTU for the overflow detection.
2677 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
2678 Reexpress comparison for overflow.
2679 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
2680 (add<mode>3_carryinC): Likewise.
2681 (add<mode>3_carryinV): Use LTU for carry between partials.
2682 * config/aarch64/predicates.md (aarch64_carry_operation): Update
2683 handling of CC_Cmode and add CC_ADCmode.
2684 (aarch64_borrow_operation): Likewise.
2685
2686 2019-01-16 Tamar Christina <tamar.christina@arm.com>
2687
2688 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): Remove patternmode.
2689 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
2690 * config/arm/neon.md (neon_vcmla_lane<rot><mode>, neon_vcmla_laneq<rot><mode>,
2691 neon_vcmlaq_lane<rot><mode>): Remove endianness conversion.
2692
2693 2019-01-16 Martin Liska <mliska@suse.cz>
2694
2695 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
2696 for GCC driver.
2697 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
2698 a new argument.
2699 * gcc.c (add_sysrooted_hdrs_prefix): New function.
2700 (path_prefix_reset): Move up in the source file.
2701 (find_fortran_preinclude_file): Make complex search for the
2702 fortran header files.
2703
2704 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
2705
2706 * godump.c (go_output_typedef): When outputting a typedef, refer
2707 to the underlying type by its name and not its structure.
2708
2709 2019-01-15 David Malcolm <dmalcolm@redhat.com>
2710
2711 PR c++/88795
2712 * tree.c (build_function_type): Assert that arg_types is not
2713 error_mark_node.
2714
2715 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
2716
2717 PR inline-asm/52813
2718 * doc/extend.texi: Document that listing the stack pointer in the
2719 clobber list of an asm is a deprecated feature.
2720 * common.opt (Wdeprecated): Moved from c-family/c.opt.
2721 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
2722 warning instead of an error for clobbers of the stack pointer.
2723 Add a note explaining why.
2724
2725 2019-01-15 Richard Biener <rguenther@suse.de>
2726
2727 PR debug/88046
2728 * dwarf2out.c (gen_member_die): Do not generate inheritance
2729 DIEs late.
2730
2731 2019-01-15 Richard Biener <rguenther@suse.de>
2732
2733 PR tree-optimization/88855
2734 * tree-if-conv.c (combine_blocks): Collect
2735 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
2736
2737 2019-01-15 Tom de Vries <tdevries@suse.de>
2738
2739 PR target/80547
2740 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
2741 lhs == NULL_TREE for gang-level reduction.
2742
2743 2019-01-15 Richard Biener <rguenther@suse.de>
2744 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2745
2746 PR ipa/88788
2747 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
2748 return true if SSA_NAME is already marked in visited bitmap.
2749 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
2750
2751 2019-01-15 Jakub Jelinek <jakub@redhat.com>
2752
2753 PR tree-optimization/88775
2754 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
2755 equal == 0 equality pointer comparisons some more if compared in
2756 integral types and either one points to an automatic var and the
2757 other to a global, or we can prove at least one points to the middle
2758 or both point to start or both point to end.
2759
2760 2019-01-14 Andi Kleen <ak@linux.intel.com>
2761
2762 * Makefile.in: Lower autofdo sampling rate by 10x.
2763 * Makefile.tpl: Dito.
2764
2765 2019-01-14 Tom Honermann <tom@honermann.net>
2766
2767 * defaults.h: Define CHAR8_TYPE.
2768
2769 2019-01-14 Martin Sebor <msebor@redhat.com>
2770
2771 PR target/88638
2772 * doc/extend.texi (Darwin Format Checks): Clarify.
2773
2774 2019-01-14 Richard Biener <rguenther@suse.de>
2775
2776 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
2777 whether we are in (simplify ...) or (match ...) context.
2778
2779 2019-01-14 Jakub Jelinek <jakub@redhat.com>
2780
2781 PR rtl-optimization/88796
2782 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
2783 * cfgexpand.c (stack_protect_prologue): Initialize
2784 crtl->stack_protect_guard_decl.
2785 * function.c (stack_protect_epilogue): Use it instead of calling
2786 targetm.stack_protect_guard again.
2787 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
2788 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
2789 crtl->stack_protect_guard_decl.
2790 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
2791 on the returned MEM_EXPR.
2792
2793 2019-01-12 Tom de Vries <tdevries@suse.de>
2794
2795 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
2796 vector length using -fopenacc-dim.
2797
2798 2019-01-12 Tom de Vries <tdevries@suse.de>
2799
2800 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
2801 lengths into account.
2802
2803 2019-01-12 Svante Signell <svante.signell@gmail.com>
2804
2805 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
2806 (TARGET_CAN_SPLIT_STACK): Define.
2807 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
2808
2809 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
2810
2811 * params.def (inline-unit-growth): Set to 40.
2812
2813 2019-01-12 Jakub Jelinek <jakub@redhat.com>
2814
2815 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
2816
2817 2019-01-12 Tom de Vries <tdevries@suse.de>
2818
2819 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
2820 region calling vector-partitionable routine, set default_vector_length
2821 to WARP_SIZE.
2822
2823 2019-01-12 Tom de Vries <tdevries@suse.de>
2824
2825 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
2826 variable default_vector_length.
2827
2828 2019-01-12 Tom de Vries <tdevries@suse.de>
2829
2830 PR middle-end/88703
2831 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
2832 from oacc_default_dims, as oacc_validate_dims would do it, and apply
2833 dimensions limits.
2834
2835 2019-01-12 Tom de Vries <tdevries@suse.de>
2836
2837 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
2838 (nvptx_goacc_validate_dims): Add used parameter.
2839 * doc/tm.texi: Regenerate.
2840 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
2841 argument to call to targetm.goacc.validate_dims.
2842 (default_goacc_validate_dims): Add used
2843 parameter.
2844 * target.def (validate_dims): Add used parameter in DEFHOOK.
2845 * targhooks.h (default_goacc_validate_dims): Add used parameter.
2846
2847 2019-01-11 Jakub Jelinek <jakub@redhat.com>
2848
2849 PR middle-end/85956
2850 PR lto/88733
2851 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
2852 field.
2853 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
2854 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
2855 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
2856 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
2857
2858 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
2859
2860 PR rtl-optimization/87305
2861 * lra-assigns.c
2862 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
2863 for little endian pseudos used as paradoxical subreg.
2864
2865 2019-01-11 Jakub Jelinek <jakub@redhat.com>
2866
2867 PR tree-optimization/88693
2868 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
2869 for STRING_CSTs that don't contain any NUL characters in the first
2870 TREE_STRING_LENGTH bytes.
2871
2872 2019-01-11 Alan Modra <amodra@gmail.com>
2873
2874 PR 88777
2875 PR 88614
2876 * genattrtab.c (min_fn): Don't translate values.
2877 (min_attr_value): Return INT_MAX when the value can't be calculated.
2878 Return minimum among any values that can be calculated.
2879 (max_attr_value): Adjust.
2880
2881 2019-01-11 Jakub Jelinek <jakub@redhat.com>
2882
2883 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
2884
2885 2019-01-11 Steve Ellcey <sellcey@marvell.com>
2886
2887 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
2888 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
2889 (aarch64_return_call_with_max_clobbers): New function.
2890 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
2891 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
2892 argument.
2893 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
2894 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
2895 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
2896 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
2897 * cselib.c (cselib_process_insn): Add argument to
2898 targetm.hard_regno_call_part_clobbered call.
2899 * ira-conflicts.c (ira_build_conflicts): Ditto.
2900 * ira-costs.c (ira_tune_allocno_costs): Ditto.
2901 * lra-constraints.c (inherit_reload_reg): Ditto.
2902 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
2903 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
2904 argument. Call targetm.return_call_with_max_clobbers.
2905 Add argument to targetm.hard_regno_call_part_clobbered call.
2906 (calls_have_same_clobbers_p): New function.
2907 (process_bb_lives): Add call_insn and last_call_insn variables.
2908 Pass call_insn to check_pseudos_live_through_calls.
2909 Modify if stmt to check targetm.return_call_with_max_clobbers.
2910 Update setting of flush variable.
2911 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
2912 to false.
2913 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
2914 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
2915 targetm.hard_regno_call_part_clobbered call.
2916 * reginfo.c (choose_hard_reg_mode): Ditto.
2917 * regrename.c (check_new_reg_p): Ditto.
2918 * reload.c (find_equiv_reg): Ditto.
2919 * reload1.c (emit_reload_insns): Ditto.
2920 * sched-deps.c (deps_analyze_insn): Ditto.
2921 * sel-sched.c (init_regs_for_mode): Ditto.
2922 (mark_unavailable_hard_regs): Ditto.
2923 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
2924 * target.def (hard_regno_call_part_clobbered): Add insn argument.
2925 (return_call_with_max_clobbers): New target function.
2926 * doc/tm.texi: Regenerate.
2927 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
2928 * hooks.c (hook_bool_uint_mode_false): Change to
2929 hook_bool_insn_uint_mode_false.
2930 * hooks.h (hook_bool_uint_mode_false): Ditto.
2931
2932 2019-01-11 Steve Ellcey <sellcey@marvell.com>
2933
2934 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
2935 (aarch64_remove_extra_call_preserved_regs): New function.
2936 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
2937 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
2938 * doc/tm.texi: Regenerate.
2939 * final.c (get_call_reg_set_usage): Call new hook.
2940 * target.def (remove_extra_call_preserved_regs): New hook.
2941 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
2942 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
2943
2944 2019-01-11 Jakub Jelinek <jakub@redhat.com>
2945
2946 PR bootstrap/88714
2947 * passes.c (finish_optimization_passes): Call print_combine_total_stats
2948 inside of pass_combine_1 dump rather than pass_profile_1.
2949
2950 2019-01-11 Tom de Vries <tdevries@suse.de>
2951
2952 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
2953 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
2954 (PTX_NUM_PER_WORKER_BARRIERS): Define.
2955 (nvptx_apply_dim_limits): Prevent vector_length 64 and
2956 num_workers 16.
2957
2958 2019-01-11 Tom de Vries <tdevries@suse.de>
2959
2960 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
2961
2962 2019-01-11 Jan Beulich <jbeulich@suse.com>
2963
2964 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
2965 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
2966 sse2_cvtsi2sd): Add {l}.
2967 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
2968 syntax.
2969
2970 2019-01-10 Jakub Jelinek <jakub@redhat.com>
2971
2972 PR target/88785
2973 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
2974 define_expand.
2975 (*float<floatunssuffix>v2div2sf2): New define_insn.
2976 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
2977 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
2978 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
2979 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
2980 match_operands with "const0_operand" "C".
2981
2982 2019-01-10 Tamar Christina <tamar.christina@arm.com>
2983
2984 * config/aarch64/aarch64-builtins.c
2985 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
2986 (aarch64_init_simd_builtins): ...Here
2987
2988 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
2989
2990 PR rtl-optimization/87305
2991 * lra-assigns.c
2992 (setup_live_pseudos_and_spill_after_risky_transforms): Check
2993 allocation for big endian pseudos used as paradoxical subregs and
2994 spill them if it is wrong.
2995 * lra-constraints.c (lra_constraints): Add a comment.
2996
2997 2019-01-10 Richard Biener <rguenther@suse.de>
2998
2999 PR tree-optimization/88792
3000 * tree-ssa-pre.c (get_representative_for): Do not return a
3001 value-number here.
3002
3003 2019-01-10 Jakub Jelinek <jakub@redhat.com>
3004
3005 PR middle-end/84877
3006 PR bootstrap/88450
3007 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
3008 (assign_parm_setup_block): Do the argument slot realignment here
3009 instead.
3010
3011 2019-01-10 Stefan Agner <stefan@agner.ch>
3012
3013 PR target/88648
3014 * config/arm/arm.c (arm_option_override_internal): Force
3015 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
3016
3017 2019-01-10 Jakub Jelinek <jakub@redhat.com>
3018
3019 PR c/88568
3020 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
3021 DECL_EXTERNAL.
3022
3023 2019-01-10 Tamar Christina <tamar.christina@arm.com>
3024
3025 * config/arm/arm-builtins.c
3026 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
3027 (MAC_LANE_PAIR_QUALIFIERS): New.
3028 (arm_expand_builtin_args): Use it.
3029 (arm_expand_builtin_1): Likewise.
3030 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
3031 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
3032 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
3033 * config/arm/arm_neon.h:
3034 (vcadd_rot90_f16): New.
3035 (vcaddq_rot90_f16): New.
3036 (vcadd_rot270_f16): New.
3037 (vcaddq_rot270_f16): New.
3038 (vcmla_f16): New.
3039 (vcmlaq_f16): New.
3040 (vcmla_lane_f16): New.
3041 (vcmla_laneq_f16): New.
3042 (vcmlaq_lane_f16): New.
3043 (vcmlaq_laneq_f16): New.
3044 (vcmla_rot90_f16): New.
3045 (vcmlaq_rot90_f16): New.
3046 (vcmla_rot90_lane_f16): New.
3047 (vcmla_rot90_laneq_f16): New.
3048 (vcmlaq_rot90_lane_f16): New.
3049 (vcmlaq_rot90_laneq_f16): New.
3050 (vcmla_rot180_f16): New.
3051 (vcmlaq_rot180_f16): New.
3052 (vcmla_rot180_lane_f16): New.
3053 (vcmla_rot180_laneq_f16): New.
3054 (vcmlaq_rot180_lane_f16): New.
3055 (vcmlaq_rot180_laneq_f16): New.
3056 (vcmla_rot270_f16): New.
3057 (vcmlaq_rot270_f16): New.
3058 (vcmla_rot270_lane_f16): New.
3059 (vcmla_rot270_laneq_f16): New.
3060 (vcmlaq_rot270_lane_f16): New.
3061 (vcmlaq_rot270_laneq_f16): New.
3062 (vcadd_rot90_f32): New.
3063 (vcaddq_rot90_f32): New.
3064 (vcadd_rot270_f32): New.
3065 (vcaddq_rot270_f32): New.
3066 (vcmla_f32): New.
3067 (vcmlaq_f32): New.
3068 (vcmla_lane_f32): New.
3069 (vcmla_laneq_f32): New.
3070 (vcmlaq_lane_f32): New.
3071 (vcmlaq_laneq_f32): New.
3072 (vcmla_rot90_f32): New.
3073 (vcmlaq_rot90_f32): New.
3074 (vcmla_rot90_lane_f32): New.
3075 (vcmla_rot90_laneq_f32): New.
3076 (vcmlaq_rot90_lane_f32): New.
3077 (vcmlaq_rot90_laneq_f32): New.
3078 (vcmla_rot180_f32): New.
3079 (vcmlaq_rot180_f32): New.
3080 (vcmla_rot180_lane_f32): New.
3081 (vcmla_rot180_laneq_f32): New.
3082 (vcmlaq_rot180_lane_f32): New.
3083 (vcmlaq_rot180_laneq_f32): New.
3084 (vcmla_rot270_f32): New.
3085 (vcmlaq_rot270_f32): New.
3086 (vcmla_rot270_lane_f32): New.
3087 (vcmla_rot270_laneq_f32): New.
3088 (vcmlaq_rot270_lane_f32): New.
3089 (vcmlaq_rot270_laneq_f32): New.
3090 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
3091 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180, vcmla_lane270,
3092 vcmla_laneq0, vcmla_laneq90, vcmla_laneq180, vcmla_laneq270,
3093 vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180, vcmlaq_lane270): New.
3094 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
3095 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
3096 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
3097 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
3098 (arm_option_reconfigure_globals): Use them.
3099 * config/arm/iterators.md (VDF, VQ_HSF): New.
3100 (VCADD, VCMLA): New.
3101 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
3102 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>): New.
3103 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
3104 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
3105
3106 2019-01-10 Tamar Christina <tamar.christina@arm.com>
3107
3108 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers): Add qualifier_lane_pair_index.
3109 (emit-rtl.h): Include.
3110 (TYPES_QUADOP_LANE_PAIR): New.
3111 (aarch64_simd_expand_args): Use it.
3112 (aarch64_simd_expand_builtin): Likewise.
3113 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum): New.
3114 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
3115 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
3116 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
3117 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
3118 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
3119 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF, AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
3120 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF, AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
3121 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF, AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
3122 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
3123 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
3124 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add __ARM_FEATURE_COMPLEX.
3125 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0, fcmla90,
3126 fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180, fcmla_lane270,
3127 fcmla_laneq0, fcmla_laneq90, fcmla_laneq180, fcmla_laneq270,
3128 fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180, fcmlaq_lane270): New.
3129 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
3130 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,aarch64_fcadd<rot><mode>,
3131 aarch64_fcmla<rot><mode>): New.
3132 * config/aarch64/arm_neon.h:
3133 (vcadd_rot90_f16): New.
3134 (vcaddq_rot90_f16): New.
3135 (vcadd_rot270_f16): New.
3136 (vcaddq_rot270_f16): New.
3137 (vcmla_f16): New.
3138 (vcmlaq_f16): New.
3139 (vcmla_lane_f16): New.
3140 (vcmla_laneq_f16): New.
3141 (vcmlaq_lane_f16): New.
3142 (vcmlaq_rot90_lane_f16): New.
3143 (vcmla_rot90_laneq_f16): New.
3144 (vcmla_rot90_lane_f16): New.
3145 (vcmlaq_rot90_f16): New.
3146 (vcmla_rot90_f16): New.
3147 (vcmlaq_laneq_f16): New.
3148 (vcmla_rot180_laneq_f16): New.
3149 (vcmla_rot180_lane_f16): New.
3150 (vcmlaq_rot180_f16): New.
3151 (vcmla_rot180_f16): New.
3152 (vcmlaq_rot90_laneq_f16): New.
3153 (vcmlaq_rot270_laneq_f16): New.
3154 (vcmlaq_rot270_lane_f16): New.
3155 (vcmla_rot270_laneq_f16): New.
3156 (vcmlaq_rot270_f16): New.
3157 (vcmla_rot270_f16): New.
3158 (vcmlaq_rot180_laneq_f16): New.
3159 (vcmlaq_rot180_lane_f16): New.
3160 (vcmla_rot270_lane_f16): New.
3161 (vcadd_rot90_f32): New.
3162 (vcaddq_rot90_f32): New.
3163 (vcaddq_rot90_f64): New.
3164 (vcadd_rot270_f32): New.
3165 (vcaddq_rot270_f32): New.
3166 (vcaddq_rot270_f64): New.
3167 (vcmla_f32): New.
3168 (vcmlaq_f32): New.
3169 (vcmlaq_f64): New.
3170 (vcmla_lane_f32): New.
3171 (vcmla_laneq_f32): New.
3172 (vcmlaq_lane_f32): New.
3173 (vcmlaq_laneq_f32): New.
3174 (vcmla_rot90_f32): New.
3175 (vcmlaq_rot90_f32): New.
3176 (vcmlaq_rot90_f64): New.
3177 (vcmla_rot90_lane_f32): New.
3178 (vcmla_rot90_laneq_f32): New.
3179 (vcmlaq_rot90_lane_f32): New.
3180 (vcmlaq_rot90_laneq_f32): New.
3181 (vcmla_rot180_f32): New.
3182 (vcmlaq_rot180_f32): New.
3183 (vcmlaq_rot180_f64): New.
3184 (vcmla_rot180_lane_f32): New.
3185 (vcmla_rot180_laneq_f32): New.
3186 (vcmlaq_rot180_lane_f32): New.
3187 (vcmlaq_rot180_laneq_f32): New.
3188 (vcmla_rot270_f32): New.
3189 (vcmlaq_rot270_f32): New.
3190 (vcmlaq_rot270_f64): New.
3191 (vcmla_rot270_lane_f32): New.
3192 (vcmla_rot270_laneq_f32): New.
3193 (vcmlaq_rot270_lane_f32): New.
3194 (vcmlaq_rot270_laneq_f32): New.
3195 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
3196 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
3197 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
3198 (FCADD, FCMLA): New.
3199 (rot): New.
3200 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
3201
3202 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
3203
3204 PR other/16615
3205
3206 * config/pa/pa.c: Change "can not" to "cannot".
3207 * gimple-ssa-evrp-analyze.c: Likewise.
3208 * ipa-icf.c: Likewise.
3209 * ipa-polymorphic-call.c: Likewise.
3210 * ipa-pure-const.c: Likewise.
3211 * lra-constraints.c: Likewise.
3212 * lra-remat.c: Likewise.
3213 * reload1.c: Likewise.
3214 * reorg.c: Likewise.
3215 * tree-ssa-uninit.c: Likewise.
3216
3217 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
3218
3219 PR other/16615
3220
3221 * Makefile.in: Mechanically replace "can not" with "cannot".
3222 * alias.c: Likewise.
3223 * builtins.c: Likewise.
3224 * calls.c: Likewise.
3225 * cgraph.c: Likewise.
3226 * cgraph.h: Likewise.
3227 * cgraphclones.c: Likewise.
3228 * cgraphunit.c: Likewise.
3229 * combine-stack-adj.c: Likewise.
3230 * combine.c: Likewise.
3231 * common/config/i386/i386-common.c: Likewise.
3232 * config/aarch64/aarch64.c: Likewise.
3233 * config/alpha/sync.md: Likewise.
3234 * config/arc/arc.c: Likewise.
3235 * config/arc/predicates.md: Likewise.
3236 * config/arm/arm-c.c: Likewise.
3237 * config/arm/arm.c: Likewise.
3238 * config/arm/arm.h: Likewise.
3239 * config/arm/arm.md: Likewise.
3240 * config/arm/cortex-r4f.md: Likewise.
3241 * config/csky/csky.c: Likewise.
3242 * config/csky/csky.h: Likewise.
3243 * config/darwin-f.c: Likewise.
3244 * config/epiphany/epiphany.md: Likewise.
3245 * config/i386/i386.c: Likewise.
3246 * config/i386/sol2.h: Likewise.
3247 * config/m68k/m68k.c: Likewise.
3248 * config/mcore/mcore.h: Likewise.
3249 * config/microblaze/microblaze.md: Likewise.
3250 * config/mips/20kc.md: Likewise.
3251 * config/mips/sb1.md: Likewise.
3252 * config/nds32/nds32.c: Likewise.
3253 * config/nds32/predicates.md: Likewise.
3254 * config/pa/pa.c: Likewise.
3255 * config/rs6000/e300c2c3.md: Likewise.
3256 * config/rs6000/rs6000.c: Likewise.
3257 * config/s390/s390.h: Likewise.
3258 * config/sh/sh.c: Likewise.
3259 * config/sh/sh.md: Likewise.
3260 * config/spu/vmx2spu.h: Likewise.
3261 * cprop.c: Likewise.
3262 * dbxout.c: Likewise.
3263 * df-scan.c: Likewise.
3264 * doc/cfg.texi: Likewise.
3265 * doc/extend.texi: Likewise.
3266 * doc/fragments.texi: Likewise.
3267 * doc/gty.texi: Likewise.
3268 * doc/invoke.texi: Likewise.
3269 * doc/lto.texi: Likewise.
3270 * doc/md.texi: Likewise.
3271 * doc/objc.texi: Likewise.
3272 * doc/rtl.texi: Likewise.
3273 * doc/tm.texi: Likewise.
3274 * dse.c: Likewise.
3275 * emit-rtl.c: Likewise.
3276 * emit-rtl.h: Likewise.
3277 * except.c: Likewise.
3278 * expmed.c: Likewise.
3279 * expr.c: Likewise.
3280 * fold-const.c: Likewise.
3281 * genautomata.c: Likewise.
3282 * gimple-fold.c: Likewise.
3283 * hard-reg-set.h: Likewise.
3284 * ifcvt.c: Likewise.
3285 * ipa-comdats.c: Likewise.
3286 * ipa-cp.c: Likewise.
3287 * ipa-devirt.c: Likewise.
3288 * ipa-fnsummary.c: Likewise.
3289 * ipa-icf.c: Likewise.
3290 * ipa-inline-transform.c: Likewise.
3291 * ipa-inline.c: Likewise.
3292 * ipa-polymorphic-call.c: Likewise.
3293 * ipa-profile.c: Likewise.
3294 * ipa-prop.c: Likewise.
3295 * ipa-pure-const.c: Likewise.
3296 * ipa-reference.c: Likewise.
3297 * ipa-split.c: Likewise.
3298 * ipa-visibility.c: Likewise.
3299 * ipa.c: Likewise.
3300 * ira-build.c: Likewise.
3301 * ira-color.c: Likewise.
3302 * ira-conflicts.c: Likewise.
3303 * ira-costs.c: Likewise.
3304 * ira-int.h: Likewise.
3305 * ira-lives.c: Likewise.
3306 * ira.c: Likewise.
3307 * ira.h: Likewise.
3308 * loop-invariant.c: Likewise.
3309 * loop-unroll.c: Likewise.
3310 * lower-subreg.c: Likewise.
3311 * lra-assigns.c: Likewise.
3312 * lra-constraints.c: Likewise.
3313 * lra-eliminations.c: Likewise.
3314 * lra-lives.c: Likewise.
3315 * lra-remat.c: Likewise.
3316 * lra-spills.c: Likewise.
3317 * lra.c: Likewise.
3318 * lto-cgraph.c: Likewise.
3319 * lto-streamer-out.c: Likewise.
3320 * postreload-gcse.c: Likewise.
3321 * predict.c: Likewise.
3322 * profile-count.h: Likewise.
3323 * profile.c: Likewise.
3324 * recog.c: Likewise.
3325 * ree.c: Likewise.
3326 * reload.c: Likewise.
3327 * reload1.c: Likewise.
3328 * reorg.c: Likewise.
3329 * resource.c: Likewise.
3330 * rtl.def: Likewise.
3331 * rtl.h: Likewise.
3332 * rtlanal.c: Likewise.
3333 * sched-deps.c: Likewise.
3334 * sched-ebb.c: Likewise.
3335 * sched-rgn.c: Likewise.
3336 * sel-sched-ir.c: Likewise.
3337 * sel-sched.c: Likewise.
3338 * shrink-wrap.c: Likewise.
3339 * simplify-rtx.c: Likewise.
3340 * symtab.c: Likewise.
3341 * target.def: Likewise.
3342 * toplev.c: Likewise.
3343 * tree-call-cdce.c: Likewise.
3344 * tree-cfg.c: Likewise.
3345 * tree-complex.c: Likewise.
3346 * tree-core.h: Likewise.
3347 * tree-eh.c: Likewise.
3348 * tree-inline.c: Likewise.
3349 * tree-loop-distribution.c: Likewise.
3350 * tree-nrv.c: Likewise.
3351 * tree-profile.c: Likewise.
3352 * tree-sra.c: Likewise.
3353 * tree-ssa-alias.c: Likewise.
3354 * tree-ssa-dce.c: Likewise.
3355 * tree-ssa-dom.c: Likewise.
3356 * tree-ssa-forwprop.c: Likewise.
3357 * tree-ssa-loop-im.c: Likewise.
3358 * tree-ssa-loop-ivcanon.c: Likewise.
3359 * tree-ssa-loop-ivopts.c: Likewise.
3360 * tree-ssa-loop-niter.c: Likewise.
3361 * tree-ssa-phionlycprop.c: Likewise.
3362 * tree-ssa-phiopt.c: Likewise.
3363 * tree-ssa-propagate.c: Likewise.
3364 * tree-ssa-threadedge.c: Likewise.
3365 * tree-ssa-threadupdate.c: Likewise.
3366 * tree-ssa-uninit.c: Likewise.
3367 * tree-ssanames.c: Likewise.
3368 * tree-streamer-out.c: Likewise.
3369 * tree.c: Likewise.
3370 * tree.h: Likewise.
3371 * vr-values.c: Likewise.
3372
3373 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
3374
3375 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
3376 (ix86_split_xorsign): Ditto.
3377 * config/i386/i386.c (ix86_expand_xorsign): New function.
3378 (ix86_split_xorsign): Ditto.
3379 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
3380 (xorsign<mode>3): New expander.
3381 (xorsign<mode>3_1): New insn_and_split pattern.
3382 * config/i386/sse.md (xorsign<mode>3): New expander.
3383
3384 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
3385
3386 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
3387 (*tablejump_sp64): Likewise.
3388 (*tablejump<P:mode>): ...this.
3389 (*call_address_sp32): Merge into...
3390 (*call_address_sp64): Likewise.
3391 (*call_address<P:mode>): ...this.
3392 (*call_symbolic_sp32): Merge into...
3393 (*call_symbolic_sp64): Likewise.
3394 (*call_symbolic<P:mode>): ...this.
3395 (call_value): Remove constraint and add predicate.
3396 (*call_value_address_sp32): Merge into...
3397 (*call_value_address_sp64): Likewise.
3398 (*call_value_address<P:mode>): ...this.
3399 (*call_value_symbolic_sp32): Merge into...
3400 (*call_value_symbolic_sp64): Likewise.
3401 (*call_value_symbolic<P:mode>): ...this.
3402 (*sibcall_symbolic_sp32): Merge into...
3403 (*sibcall_symbolic_sp64): Likewise.
3404 (*sibcall_symbolic<P:mode>): ...this.
3405 (sibcall_value): Remove constraint and add predicate.
3406 (*sibcall_value_symbolic_sp32): Merge into...
3407 (*sibcall_value_symbolic_sp64): Likewise.
3408 (*sibcall_value_symbolic<P:mode>): ...this.
3409 (window_save): Minor tweak.
3410 (*branch_sp32): Merge into...
3411 (*branch_sp64): Likewise.
3412 (*branch<P:mode>): ...this.
3413
3414 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
3415 James Clarke <jrtc27@jrtc27.com>
3416
3417 PR target/84010
3418 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
3419 consistently in TLS address generation and adjust code to the renaming
3420 of patterns. Mark calls to __tls_get_addr as const.
3421 * config/sparc/sparc.md (tgd_hi22): Turn into...
3422 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
3423 (tgd_lo10): Turn into...
3424 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
3425 (tgd_add32): Merge into...
3426 (tgd_add64): Likewise.
3427 (tgd_add<P:mode>): ...this and use Pmode throughout.
3428 (tldm_hi22): Turn into...
3429 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
3430 (tldm_lo10): Turn into...
3431 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
3432 (tldm_add32): Merge into...
3433 (tldm_add64): Likewise.
3434 (tldm_add<P:mode>): ...this and use Pmode throughout.
3435 (tldm_call32): Merge into...
3436 (tldm_call64): Likewise.
3437 (tldm_call<P:mode>): ...this and use Pmode throughout.
3438 (tldo_hix22): Turn into...
3439 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
3440 (tldo_lox10): Turn into...
3441 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
3442 (tldo_add32): Merge into...
3443 (tldo_add64): Likewise.
3444 (tldo_add<P:mode>): ...this and use Pmode throughout.
3445 (tie_hi22): Turn into...
3446 (tie_hi22<P:mode>): ...this and use Pmode throughout.
3447 (tie_lo10): Turn into...
3448 (tie_lo10<P:mode>): ...this and use Pmode throughout.
3449 (tie_ld64): Use DImode throughout.
3450 (tie_add32): Merge into...
3451 (tie_add64): Likewise.
3452 (tie_add<P:mode>): ...this and use Pmode throughout.
3453 (tle_hix22_sp32): Merge into...
3454 (tle_hix22_sp64): Likewise.
3455 (tle_hix22<P:mode>): ...this and use Pmode throughout.
3456 (tle_lox22_sp32): Merge into...
3457 (tle_lox22_sp64): Likewise.
3458 (tle_lox22<P:mode>): ...this and use Pmode throughout.
3459 (*tldo_ldub_sp32): Merge into...
3460 (*tldo_ldub_sp64): Likewise.
3461 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
3462 (*tldo_ldub1_sp32): Merge into...
3463 (*tldo_ldub1_sp64): Likewise.
3464 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
3465 (*tldo_ldub2_sp32): Merge into...
3466 (*tldo_ldub2_sp64): Likewise.
3467 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
3468 (*tldo_ldsb1_sp32): Merge into...
3469 (*tldo_ldsb1_sp64): Likewise.
3470 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
3471 (*tldo_ldsb2_sp32): Merge into...
3472 (*tldo_ldsb2_sp64): Likewise.
3473 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
3474 (*tldo_ldub3_sp64): Use DImode throughout.
3475 (*tldo_ldsb3_sp64): Likewise.
3476 (*tldo_lduh_sp32): Merge into...
3477 (*tldo_lduh_sp64): Likewise.
3478 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
3479 (*tldo_lduh1_sp32): Merge into...
3480 (*tldo_lduh1_sp64): Likewise.
3481 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
3482 (*tldo_ldsh1_sp32): Merge into...
3483 (*tldo_ldsh1_sp64): Likewise.
3484 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
3485 (*tldo_lduh2_sp64): Use DImode throughout.
3486 (*tldo_ldsh2_sp64): Likewise.
3487 (*tldo_lduw_sp32): Merge into...
3488 (*tldo_lduw_sp64): Likewise.
3489 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
3490 (*tldo_lduw1_sp64): Use DImode throughout.
3491 (*tldo_ldsw1_sp64): Likewise.
3492 (*tldo_ldx_sp64): Likewise.
3493 (*tldo_stb_sp32): Merge into...
3494 (*tldo_stb_sp64): Likewise.
3495 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
3496 (*tldo_sth_sp32): Merge into...
3497 (*tldo_sth_sp64): Likewise.
3498 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
3499 (*tldo_stw_sp32): Merge into...
3500 (*tldo_stw_sp64): Likewise.
3501 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
3502 (*tldo_stx_sp64): Use DImode throughout.
3503
3504 2018-01-09 Sudakshina Das <sudi.das@arm.com>
3505
3506 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
3507 check configure option to set BTI and Return Address Signing.
3508 * configure.ac: Add --enable-standard-branch-protection and
3509 --disable-standard-branch-protection.
3510 * configure: Regenerated.
3511 * doc/install.texi: Document the same.
3512
3513 2018-01-09 Sudakshina Das <sudi.das@arm.com>
3514 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3515
3516 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
3517 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
3518 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
3519 if bti is enabled.
3520 * config/aarch64/aarch64-bti-insert.c: New file.
3521 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
3522 pass.
3523 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
3524 new bti pass.
3525 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
3526 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
3527 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
3528 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
3529
3530 2018-01-09 Sudakshina Das <sudi.das@arm.com>
3531
3532 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
3533 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
3534 Disable bti for -mbranch-protection=none.
3535 (aarch64_handle_standard_branch_protection): Enable bti for
3536 -mbranch-protection=standard.
3537 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
3538 -mbranch-protection.
3539 (aarch64_bti_enabled): Check if bti is enabled.
3540 * config/aarch64/aarch64.opt: Declare target variable.
3541 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
3542
3543 2018-01-09 Sudakshina Das <sudi.das@arm.com>
3544
3545 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
3546 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
3547 (aarch64_expand_epilogue): Likewise.
3548 (aarch64_output_mi_thunk): Likewise
3549 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
3550 TAILCALL_ADDR_REGS to x16 and x17.
3551 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
3552
3553 2018-01-09 Sudakshina Das <sudi.das@arm.com>
3554
3555 * config/aarch64/aarch64-option-extensions.def: Define
3556 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
3557 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
3558 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
3559 (AARCH64_FL_PREDRES): New.
3560 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
3561 AARCH64_FL_PREDRES by default.
3562 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
3563
3564 2018-01-09 Sudakshina Das <sudi.das@arm.com>
3565
3566 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
3567 ARMv8.5-A.
3568 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
3569 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
3570 * doc/invoke.texi: Document ARMv8.5-A.
3571
3572 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
3573
3574 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
3575 (xorsign<mode>3): Likewise.
3576
3577 2019-01-09 Jelinek <jakub@redhat.com>
3578
3579 PR middle-end/88758
3580 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
3581 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
3582
3583 PR rtl-optimization/88331
3584 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
3585 not currently_expanding_to_rtl.
3586
3587 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
3588
3589 * doc/invoke.texi (-Os): Remove trailing spaces.
3590 (-finline-functions): Remove reference to -O2.
3591
3592 2019-01-08 Jakub Jelinek <jakub@redhat.com>
3593
3594 PR rtl-optimization/79593
3595 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
3596
3597 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
3598 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
3599
3600 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
3601
3602 PR bootstrap/88721
3603 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
3604 to -1 on entry.
3605
3606 PR debug/88723
3607 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
3608 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
3609
3610 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
3611
3612 PR target/88717
3613 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
3614 ix86_avx_u128_mode_entry.
3615
3616 2019-01-08 Martin Liska <mliska@suse.cz>
3617
3618 PR tree-optimization/88753
3619 * tree-switch-conversion.c (switch_conversion::build_one_array):
3620 Come up with local variable constructor. Convert first to
3621 type of constructor values.
3622
3623 2019-01-08 Richard Biener <rguenther@suse.de>
3624
3625 PR tree-optimization/86554
3626 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
3627 rpo_avail): Move earlier.
3628 (visit_nary_op): When value-numbering to expressions
3629 with different overflow behavior make sure there's an
3630 available expression on the path.
3631
3632 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
3633
3634 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
3635 aarch64_parse_branch_protection,
3636 struct aarch64_branch_protect_type,
3637 aarch64_handle_no_branch_protection,
3638 aarch64_handle_standard_branch_protection,
3639 aarch64_validate_mbranch_protection,
3640 aarch64_handle_pac_ret_protection,
3641 aarch64_handle_attr_branch_protection,
3642 accepted_branch_protection_string,
3643 aarch64_pac_ret_subtypes,
3644 aarch64_branch_protect_types,
3645 aarch64_handle_pac_ret_leaf): Define.
3646 (aarch64_override_options_after_change_1, aarch64_override_options):
3647 Add check for accepted_branch_protection_string.
3648 (aarch64_option_save): Save accepted_branch_protection_string.
3649 (aarch64_option_restore): Save accepted_branch_protection_string.
3650 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
3651 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
3652 msign-return-address.
3653 * doc/invoke.texi: Add mbranch-protection.
3654
3655 2019-01-08 Alan Modra <amodra@gmail.com>
3656
3657 PR target/88614
3658 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
3659 Delete "unknownp" parameter. Adjust callers. Handle
3660 CONST_INT, PLUS, MINUS, and MULT.
3661 (attr_value_aligned): Renamed from or_attr_value.
3662 (min_attr_value): Return INT_MIN for unhandled rtl case..
3663 (min_fn): ..and translate to INT_MAX here.
3664 (write_length_unit_log): Modify to cope without "unknown".
3665 (write_attr_value): Handle IF_THEN_ELSE.
3666
3667 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
3668
3669 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
3670 optimization for masked stores.
3671
3672 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
3673
3674 PR middle-end/88567
3675 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
3676 output vector directly to duplicate_and_interleave instead of
3677 going through a temporary. Postpone insertion of ctor_seq to
3678 the end of the loop.
3679
3680 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
3681
3682 PR target/86891
3683 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
3684 unsigned_p. Handle signed and unsigned overflow correction as
3685 required.
3686 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
3687 prototype.
3688 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
3689 for operand 2.
3690 (add<mode>3_compareV_imm): Make this callable for expanding.
3691 (subv<GPI:mode>4): Use register_operand for operand 1. Use
3692 aarch64_plus_operand for operand 2.
3693 (subv<GPI:mode>_insn): New insn pattern.
3694 (subv<GPI:mode>_imm): Likewise.
3695 (negv<GPI:mode>3): New expand pattern.
3696 (negv<GPI:mode>_insn): New insn pattern.
3697 (negv<GPI:mode>_cmp_only): Likewise.
3698 (cmpv<GPI:mode>_insn): Likewise.
3699 (subvti4): Use register_operand for operand 1. Update call to
3700 aarch64_expand_subvti.
3701 (usubvti4): Likewise.
3702 (negvti3): New expand pattern.
3703 (negdi_carryout): New insn pattern.
3704 (negvdi_carryinV): New insn pattern.
3705 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
3706 version the named version.
3707 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
3708 operands.
3709 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
3710 patterns.
3711 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
3712 patterns.
3713 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
3714 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
3715 (sub<mode>3_carryinCV): Delete.
3716 (sub<GPI:mode>3_carryinV): New expand pattern.
3717 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
3718
3719 2019-01-07 Richard Biener <rguenther@suse.de>
3720
3721 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
3722 of tree_operand_hash.
3723
3724 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
3725
3726 PR tree-optimization/88598
3727 * tree.h (single_nonzero_element): Declare.
3728 * tree.c (single_nonzero_element): New function.
3729 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
3730 if I is the only nonzero element of CST.
3731
3732 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
3733
3734 PR tree-optimization/88598
3735 * tree.h (initializer_each_zero_or_onep): Declare.
3736 * tree.c (initializer_each_zero_or_onep): New function.
3737 (signed_or_unsigned_type_for): Handle float types too.
3738 (unsigned_type_for, signed_type_for): Update comments accordingly.
3739 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
3740 x & { 0 or -1, 0 or -1, ... }.
3741
3742 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
3743
3744 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
3745 with x86_64-pc-linux-gnu.
3746
3747 2019-01-07 Tom de Vries <tdevries@suse.de>
3748
3749 PR target/85486
3750 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
3751 function.
3752 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
3753 routines.
3754
3755 2019-01-07 Jakub Jelinek <jakub@redhat.com>
3756
3757 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
3758 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
3759 TARGET_AVX512F as condition.
3760
3761 PR debug/88723
3762 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
3763 const_not_ok_for_debug_p target hook.
3764 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
3765 on UNSPEC and subexpressions thereof if all subexpressions of the
3766 UNSPEC are CONSTANT_P.
3767
3768 PR tree-optimization/88676
3769 * tree-ssa-phiopt.c (two_value_replacement): New function.
3770 (tree_ssa_phiopt_worker): Call it.
3771
3772 PR sanitizer/88619
3773 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
3774 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
3775
3776 PR c++/85052
3777 * tree-vect-generic.c: Include insn-config.h and recog.h.
3778 (expand_vector_piecewise): Add defaulted ret_type argument,
3779 if non-NULL, use that in preference to type for the result type.
3780 (expand_vector_parallel): Formatting fix.
3781 (do_vec_conversion, do_vec_narrowing_conversion,
3782 expand_vector_conversion): New functions.
3783 (expand_vector_operations_1): Call expand_vector_conversion
3784 for VEC_CONVERT ifn calls.
3785 * internal-fn.def (VEC_CONVERT): New internal function.
3786 * internal-fn.c (expand_VEC_CONVERT): New function.
3787 * fold-const-call.c (fold_const_vec_convert): New function.
3788 (fold_const_call): Use it for CFN_VEC_CONVERT.
3789 * doc/extend.texi (__builtin_convertvector): Document.
3790
3791 2019-01-07 Tom de Vries <tdevries@suse.de>
3792
3793 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
3794 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
3795 vector_red_partition, vector_red_sym): New global variables.
3796 (nvptx_option_override): Initialize vector_red_sym.
3797 (nvptx_declare_function_name): Restore red_partition register.
3798 (nvptx_file_end): Emit code to declare the vector reduction variables.
3799 (nvptx_output_red_partition): New function.
3800 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
3801 large vector reductions.
3802 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
3803 (nvptx_init_builtins): Add VECTOR_ADDR.
3804 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
3805 Handle nvptx_expand_shared_addr.
3806 (nvptx_get_shared_red_addr): Add vector argument and handle large
3807 vectors.
3808 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
3809 large vectors.
3810 (nvptx_goacc_reduction_init): Likewise.
3811 (nvptx_goacc_reduction_fini): Likewise.
3812 (nvptx_goacc_reduction_teardown): Likewise.
3813 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
3814 init,fini,teardown}.
3815 (nvptx_init_axis_predicate): Initialize vector_red_partition.
3816 (nvptx_set_current_function): Init vector_red_partition.
3817 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
3818 (nvptx_red_partition): New insn.
3819 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
3820
3821 2019-01-07 Tom de Vries <tdevries@suse.de>
3822
3823 PR target/85381
3824 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
3825 empty loops.
3826
3827 2019-01-07 Tom de Vries <tdevries@suse.de>
3828
3829 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
3830 (nvptx_option_override): Init oacc_bcast_partition.
3831 (nvptx_init_oacc_workers): New function.
3832 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
3833 (nvptx_needs_shared_bcast): New function.
3834 (nvptx_find_par): Generalize to enable vectors to use shared-memory
3835 to propagate state.
3836 (nvptx_shared_propagate): Initialize vector bcast partition and
3837 synchronization state.
3838 (nvptx_single): Generalize to enable vectors to use shared-memory
3839 to propagate state.
3840 (nvptx_process_pars): Likewise.
3841 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
3842 * config/nvptx/nvptx.h (struct machine_function): Add
3843 bcast_partition and sync_bar members.
3844
3845 2019-01-07 Tom de Vries <tdevries@suse.de>
3846
3847 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
3848 (nvptx_apply_dim_limits): New function.
3849 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
3850 PTX_WARP_SIZE.
3851
3852 2019-01-07 Tom de Vries <tdevries@suse.de>
3853
3854 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
3855 as late as possible.
3856
3857 2019-01-07 Tom de Vries <tdevries@suse.de>
3858
3859 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
3860 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
3861 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
3862 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
3863 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
3864
3865 2019-01-07 Tom de Vries <tdevries@suse.de>
3866
3867 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
3868
3869 2019-01-07 Tom de Vries <tdevries@suse.de>
3870
3871 * omp-offload.c (oacc_get_min_dim): New function.
3872 * omp-offload.h (oacc_get_min_dim): Declare.
3873
3874 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
3875
3876 PR target/88521
3877 * config/i386/i386.c (function_value_ms_64): Return small sturct in
3878 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
3879
3880 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
3881
3882 PR tree-opt/86020
3883 Revert:
3884 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
3885
3886 * ipa-inline.c (edge_badness): Use inlined_time instead of
3887 inline_summaries->get.
3888
3889 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
3890
3891 * opts.c (enable_fdo_optimizations): Enable
3892 version-loops-for-strides, loop-interchange, unrol-and-jam
3893 and tree-loop-distribution.
3894 * invoke.texi: Document newly enabled options.
3895
3896 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
3897
3898 * doc/invoke.texi (max-inline-insns-small): New parameters.
3899 * ipa-inline.c (want_early_inline_function_p): simplify.
3900 (want_inline_small_function_p): Fix pasto from previous patch;
3901 use max-inline-insns-small bound.
3902 * params.def (max-inline-insns-small): New param.
3903 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
3904 variables correctly.
3905
3906 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
3907
3908 * doc/invoke.texi: Document max-inline-insns-size,
3909 uninlined-function-insns, uninlined-function-time,
3910 uninlined-thunk-insns and uninlined-thunk-time.
3911 * params.def: Add max-inline-insns-size,
3912 uninlined-function-insns, uninlined-function-time,
3913 uninlined-thunk-insns and uninlined-thunk-time.
3914 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
3915 new parameters.
3916 * ipa-inline.c (can_inline_edge_by_limits_p,
3917 want_inline_small_function_p): Use new parameters.
3918
3919 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
3920
3921 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
3922
3923 2019-01-05 Jakub Jelinek <jakub@redhat.com>
3924
3925 PR middle-end/82564
3926 PR target/88620
3927 * expr.c (expand_assignment): For calls returning VLA structures
3928 if to_rtx is not a MEM, force it into a stack temporary.
3929
3930 PR debug/88635
3931 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
3932 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
3933 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
3934 subexpressions of both operands.
3935 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
3936 subrtxes are CONSTANT_P.
3937 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
3938 2018-11-09 changes.
3939
3940 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
3941
3942 * params.def (hot-bb-count-ws-permille): Set to 990.
3943
3944 2019-01-04 Martin Sebor <msebor@redhat.com>
3945
3946 PR c/88546
3947 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
3948 leaf.
3949
3950 2019-01-04 Martin Sebor <msebor@redhat.com>
3951
3952 PR c/88363
3953 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
3954
3955 2019-01-04 Jakub Jelinek <jakub@redhat.com>
3956
3957 * gdbinit.in: Turn off pagination for the skip commands, restore
3958 it to previous state afterwards.
3959
3960 2019-01-04 Jakub Jelinek <jakub@redhat.com>
3961
3962 PR target/88594
3963 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
3964 of GET_MODE (opN) as modes of the libcall arguments.
3965
3966 2019-01-04 Jan Beulich <jbeulich@suse.com>
3967
3968 * config/i386/sse.md
3969 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
3970 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
3971 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
3972 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
3973 avx512f_vmcmp<mode>3<round_saeonly_name>,
3974 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
3975 avx512f_maskcmp<mode>3,
3976 <avx512>_cvt<ssemodesuffix>2mask<mode>,
3977 <avx512>_cvt<ssemodesuffix>2mask<mode>,
3978 *<avx512>_cvtmask2<ssemodesuffix><mode>,
3979 *<avx512>_cvtmask2<ssemodesuffix><mode>,
3980 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
3981 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
3982 <avx512>_gt<mode>3<mask_scalar_merge_name>,
3983 <avx512>_gt<mode>3<mask_scalar_merge_name>,
3984 <avx512>_testm<mode>3<mask_scalar_merge_name>,
3985 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
3986 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
3987 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
3988 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
3989 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
3990 avx512cd_maskb_vec_dup<mode>,
3991 avx512cd_maskw_vec_dup<mode>,
3992 avx512dq_fpclass<mode><mask_scalar_merge_name>,
3993 avx512dq_vmfpclass<mode>,
3994 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
3995 instead of =Yk.
3996
3997 2019-01-03 Martin Sebor <msebor@redhat.com>
3998
3999 PR tree-optimization/88659
4000 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
4001
4002 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
4003
4004 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
4005 unaligned vsx and avoid lxvd2x/stxvd2x.
4006 (gen_lvx_v4si_move): New function.
4007
4008 2019-01-03 Tom de Vries <tdevries@suse.de>
4009
4010 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
4011 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
4012 function.
4013 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
4014
4015 2019-01-03 Tom de Vries <tdevries@suse.de>
4016
4017 * config/nvptx/nvptx.c (struct offload_attrs): New.
4018 (populate_offload_attrs): New function. Factor mask extraction out of
4019 nvptx_reorg. Add extraction of dimensions.
4020 (nvptx_reorg): Use populate_offload_attrs.
4021
4022 2019-01-03 Tom de Vries <tdevries@suse.de>
4023
4024 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
4025 cases for oacc_min_dims_p and routine_p. Add asserts for
4026 oacc_default_dims_p and offload_region_p.
4027
4028 2019-01-03 Tom de Vries <tdevries@suse.de>
4029
4030 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
4031 factored out of ...
4032 (nvptx_goacc_validate_dims): ... here.
4033
4034 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
4035
4036 PR tree-optimization/85574
4037 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
4038 structure.
4039 (struct ssa_equip_hash_traits): Declare.
4040 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
4041
4042 2019-01-03 Jakub Jelinek <jakub@redhat.com>
4043
4044 PR debug/88644
4045 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
4046 change it to qualified_type.
4047
4048 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
4049
4050 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
4051 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
4052
4053 2019-01-02 Martin Sebor <msebor@redhat.com>
4054 Jeff Law <law@redhat.com>
4055
4056 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
4057 (get_range_strlen_tree): Update appropriately.
4058 (get_range_strlen)
4059 * gimple-fold.h (get_range_strlen): Drop unused last argument.
4060
4061 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
4062 rather than set_range_info.
4063 * tree-ssa-strlen.c (set_strlen_range): Extracted from
4064 maybe_set_strlen_range. Handle potentially boundary crossing
4065 cases more conservatively.
4066 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
4067 Call set_strlen_range.
4068 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
4069
4070 PR middle-end/88663
4071 * gimple-fold.c (get_range_strlen): Update prototype to no longer
4072 need the flexp argument.
4073 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
4074 from calls to get_range_strlen. Update comments. Just update
4075 VAL for an unterminated const char array and let the reset of the
4076 code handle it normally. No longer try to set *flexp. Adjust
4077 return value.
4078 (get_range_strlen): Update for the new get_range_strlen API.
4079 (get_maxval_strlen): Similarly.
4080 (gimple_fold_builtin_strlen): Handle update meaning of return value
4081 from get_range_strlen.
4082 * gimple-ssa-sprintf.c (get_string_length): Update for the new
4083 get_range_strlen API.
4084
4085 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
4086
4087 PR lto/88130
4088 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
4089 false at WPA time when body was removed.
4090
4091 2019-01-02 Martin Liska <mliska@suse.cz>
4092
4093 PR tree-optimization/88650
4094 * predict.c (set_even_probabilities): Calculate probability
4095 remainer only when really used.
4096
4097 2019-01-02 Richard Biener <rguenther@suse.de>
4098
4099 PR middle-end/88651
4100 * tree-data-ref.c (analyze_subscript_affine_affine): Use
4101 widest_ints when mangling max_stmt_execution results.
4102
4103 2019-01-02 Richard Biener <rguenther@suse.de>
4104
4105 PR tree-optimization/88621
4106 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
4107 bitfields when canoncalizing.
4108
4109 2019-01-02 Richard Biener <rguenther@suse.de>
4110
4111 PR target/87545
4112 * config/i386/x86-tune-costs.h (intel_cost): Adjust
4113 cost of cheap SSE instruction.
4114
4115 2019-01-02 Richard Biener <rguenther@suse.de>
4116
4117 PR ipa/85574
4118 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
4119 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
4120 function.
4121 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
4122 set after UIDs before splitting them.
4123
4124 2019-01-01 Martin Sebor <msebor@redhat.com>
4125 Jeff Law <law@redhat.com>
4126
4127 * gimple-fold.c (get_range_strlen_tree): Record if the computed
4128 length is optimistic. If it is, then arrange to compute the
4129 conservative length as well.
4130
4131 * gimple-fold.h (get_range_strlen): Update prototype.
4132 * builtins.c (check_access): Update call to get_range_strlen to use
4133 c_strlen_data pointer. Change various variable accesses to instead
4134 pull data from the c_strlen_data structure.
4135 (check_strncat_sizes, expand_builtin_strncat): Likewise.
4136 * calls.c (maybe_warn_nonstring_arg): Likewise.
4137 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
4138 minimum length if maximum lengh is unknown.
4139 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
4140 that used c_strlen, it's no longer needed. Restructure slightly.
4141 (format_string): Set unlikely range appropriately.
4142 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
4143 formatting issues.
4144 (get_range_strlen): Accept c_strlen_data pointer for external
4145 call sites as well. Pass through to call to internal get_range_strlen.
4146 Adjust minlen, maxlen and maxbound as needed.
4147 (get_maxval_strlen): Update comments.
4148 (gimple_fold_builtin_strlen): Update call to get_range_strlen
4149 to use c_strlen_data pointer. Change variable accesses to instead
4150 use c_strlen_data data members.
4151
4152 * gimple-fold.c (get_range_strlen): Update prototype.
4153 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
4154 local variables. Use pdata to return information to caller.
4155 Update calls to get_range_strlen. Update pdata->maxbound.
4156 (get_range_strlen -- static version): Similarly.
4157 (get_range_strlen -- extern version): Update for internal
4158 get_range_strlen API change. Convert to external data format.
4159 (get_maxval_strlen): Similarly.
4160
4161 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
4162
4163 * coverage.c (get_coverage_counts): Use current_function_decl.
4164 * profile.c (read_thunk_profile): New function.
4165 (branch_prob): Add THUNK parameter.
4166 * tree-profile.c (tree_profiling): Handle thunks.
4167 * value-prof.c (init_node_map): Handle thunks.
4168 * value-prof.h (branch_prob): Upate prototype.
4169 (read_thunk_profile): Declare.
4170
4171 2019-01-01 Jakub Jelinek <jakub@redhat.com>
4172
4173 Update copyright years.
4174
4175 * gcc.c (process_command): Update copyright notice dates.
4176 * gcov-dump.c (print_version): Ditto.
4177 * gcov.c (print_version): Ditto.
4178 * gcov-tool.c (print_version): Ditto.
4179 * gengtype.c (create_file): Ditto.
4180 * doc/cpp.texi: Bump @copying's copyright year.
4181 * doc/cppinternals.texi: Ditto.
4182 * doc/gcc.texi: Ditto.
4183 * doc/gccint.texi: Ditto.
4184 * doc/gcov.texi: Ditto.
4185 * doc/install.texi: Ditto.
4186 * doc/invoke.texi: Ditto.
4187 \f
4188 Copyright (C) 2019 Free Software Foundation, Inc.
4189
4190 Copying and distribution of this file, with or without modification,
4191 are permitted in any medium without royalty provided the copyright
4192 notice and this notice are preserved.