i386: Emulate MMX movntq with SSE2 movntidi
[gcc.git] / gcc / ChangeLog
1 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2
3 PR target/89021
4 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
5
6 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
7
8 PR target/89021
9 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
10
11 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12
13 PR target/89021
14 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
15 TARGET_MMX_WITH_SSE.
16 (*mmx_uavgv4hi3): Add SSE emulation.
17
18 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
19
20 PR target/89021
21 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
22 and TARGET_MMX_WITH_SSE.
23 (*mmx_uavgv8qi3): Add SSE emulation.
24
25 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26
27 PR target/89021
28 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
29 maskmovdqu for __MMX_WITH_SSE__.
30
31 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
32
33 PR target/89021
34 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
35 TARGET_MMX and TARGET_MMX_WITH_SSE.
36 (*mmx_umulv4hi3_highpart): Add SSE emulation.
37
38 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
39
40 PR target/89021
41 * config/i386/mmx.md (mmx_pmovmskb): Changed to
42 define_insn_and_split to support SSE emulation.
43
44 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
45
46 PR target/89021
47 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
48 and TARGET_MMX_WITH_SSE.
49 (mmx_<code>v8qi3): Likewise.
50 (smaxmin:<code>v4hi3): New.
51 (umaxmin:<code>v8qi3): Likewise.
52 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
53 (umaxmin:*mmx_<code>v8qi3): Likewise.
54
55 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
56
57 PR target/89021
58 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
59 TARGET_MMX_WITH_SSE.
60 (*mmx_pinsrw): Add SSE emulation.
61
62 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
63
64 PR target/89021
65 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
66
67 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
68
69 PR target/89021
70 * config/i386/sse.md (sse_cvtpi2ps): Changed to
71 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
72 SSE emulation.
73
74 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
75
76 PR target/89021
77 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
78 (sse_cvttps2pi): Likewise.
79
80 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
81
82 PR target/89021
83 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
84 TARGET_MMX_WITH_SSE.
85 (mmx_pshufw_1): Add SSE emulation.
86 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
87 TARGET_MMX_WITH_SSE to support SSE emulation.
88
89 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
90
91 PR target/89021
92 * config/i386/constraints.md (Yw): New constraint.
93 * config/i386/mmx.md (*vec_dupv2si): Changed to
94 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
95 support SSE emulation.
96
97 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
98
99 PR target/89021
100 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
101 TARGET_MMX_WITH_SSE.
102 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
103 support.
104 (mmx_gt<mode>3): Likewise.
105
106 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
107
108 PR target/89021
109 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
110 TARGET_MMX_WITH_SSE. Add SSE support.
111
112 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
113
114 PR target/89021
115 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
116 TARGET_MMX_WITH_SSE.
117 (any_logic:<code><mode>3): New.
118 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
119 Add SSE support.
120
121 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
122
123 PR target/89021
124 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
125 TARGET_MMX_WITH_SSE. Add SSE emulation.
126 (mmx_<shift_insn><mode>3): Likewise.
127 (ashr<mode>3): New.
128 (<shift_insn><mode>3): Likewise.
129
130 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
131
132 PR target/89021
133 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
134 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
135
136 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
137
138 PR target/89021
139 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
140 TARGET_MMX_WITH_SSE.
141 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
142 SSE support.
143
144 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
145
146 PR target/89021
147 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
148 TARGET_MMX_WITH_SSE.
149 (mulv4hi3): New.
150 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
151 support.
152
153 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
154
155 PR target/89021
156 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
157 (plusminus:mmx_<plusminus_insn><mode>3): Check
158 TARGET_MMX_WITH_SSE.
159 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
160 (<plusminus_insn><mode>3): New.
161 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
162 (*mmx_<plusminus_insn><mode>3): Likewise.
163
164 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
165
166 PR target/89021
167 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
168 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
169 prototype.
170 * config/i386/mmx.m (mmx_punpckhbw): Changed to
171 define_insn_and_split to support SSE emulation.
172 (mmx_punpcklbw): Likewise.
173 (mmx_punpckhwd): Likewise.
174 (mmx_punpcklwd): Likewise.
175 (mmx_punpckhdq): Likewise.
176 (mmx_punpckldq): Likewise.
177
178 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
179 Uros Bizjak <ubizjak@gmail.com>
180
181 PR target/89021
182 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
183 New function.
184 (ix86_split_mmx_pack): Likewise.
185 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
186 New prototype.
187 (ix86_split_mmx_pack): Likewise.
188 * config/i386/i386.md (mmx_isa): New.
189 (enabled): Also check mmx_isa.
190 * config/i386/mmx.md (any_s_truncate): New code iterator.
191 (s_trunsuffix): New code attr.
192 (mmx_packsswb): Removed.
193 (mmx_packssdw): Likewise.
194 (mmx_packuswb): Likewise.
195 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
196 MMX packsswb/packuswb with SSE2.
197 (mmx_packssdw): Likewise.
198 * config/i386/predicates.md (register_mmxmem_operand): New.
199
200 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
201
202 PR target/89021
203 * config/i386/i386-c.c (ix86_target_macros_internal): Define
204 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
205 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
206 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
207 (ix86_vector_mode_supported_p): Likewise.
208 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
209
210 2019-05-15 Martin Liska <mliska@suse.cz>
211
212 PR middle-end/90478
213 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
214 Check for overflow.
215
216 2019-05-15 Richard Biener <rguenther@suse.de>
217
218 * tree-into-ssa.c (pass_build_ssa::execute): Run
219 update_address_taken before going into SSA.
220
221 2019-05-15 Richard Biener <rguenther@suse.de>
222
223 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
224 as __BIT_FIELD_REF with type with -gimple.
225
226 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
227
228 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
229 semantically equivalent branches (left over after prior refactorings).
230
231 2019-05-15 Richard Biener <rguenther@suse.de>
232
233 PR tree-optimization/88828
234 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
235 bogus check.
236
237 2019-05-14 Richard Biener <rguenther@suse.de>
238
239 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
240 as __VIEW_CONVERT with -gimple.
241
242 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
243
244 PR target/82920
245 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
246 Darwin.
247
248 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
249
250 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
251 define_split to become a define_insn_and_split.
252
253 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
254
255 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
256 arguments.
257 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
258 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
259 (sibcall_epilogue): Adjust.
260 (epilogue): Adjust.
261
262 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
263
264 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
265 to unsupported ones.
266 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
267 * config.host: Likewise.
268 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
269 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
270 __svr4__]: Remove "brand" fallback.
271 [!KSTAT_DATA_STRING]: Remove.
272 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
273 to *-*-solaris2*.
274 (comdat_group): Likewise.
275 (set_have_as_tls): Likewise.
276 (gcc_cv_target_dl_iterate_phdr): Likewise.
277 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
278 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
279 * configure: Regenerate.
280 * doc/install.texi: Simplify Solaris target triplets.
281 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
282 (Specific, *-*-solaris2*): Document Solaris 10 removal.
283 Remove Solaris 10 references.
284 Remove obsolete Solaris bug reference.
285 (Specific, sparc-sun-solaris2.10): Remove.
286
287 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
288
289 * config/i386/i386.md (any_div): New code iterator.
290 (paired_mod): New code attribute.
291 (sgnprefix): Handle DIV and UDIV RTXes.
292 (u): Ditto.
293 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
294 and udivmod<mode>4 patterns using any_div code iterator.
295 (divmod splitters): Macroize splitters using any_div code iterator.
296 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
297 (*udivmodsi4_pow2_zext_2): Ditto.
298 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
299 and *udivmod<mode>4_noext patterns using any_div code iterator.
300 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
301 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
302 patterns using any_div code iterator.
303 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
304 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
305 patterns using any_div code iterator.
306 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
307 udivmodhiqi3 patterns using any_extend code iterator.
308
309 2019-05-14 Richard Biener <rguenther@suse.de>
310 H.J. Lu <hongjiu.lu@intel.com>
311
312 PR tree-optimization/88828
313 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
314 permuting in a single non-constant element not extracted
315 from a vector.
316
317 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
318
319 * internal-fn.def (SIGNBIT): New.
320 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
321 defined.
322 (signbitv4sf2): Likewise.
323
324 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
325
326 PR target/90357
327 * config/mips/mips.c (mips_split_move): Skip forward SRC into
328 next insn when the SRC reg is dead.
329
330 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
331
332 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
333 (alloc_cand_and_find_basis): Ditto.
334 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
335 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
336 (create_add_imm_cand, slsr_process_cast): Ditto.
337 (slsr_process_copy, replace_mult_candidate): Ditto.
338 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
339 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
340 (pass_strength_reduction::execute): Init the first NULL element.
341
342 2019-05-13 Nathan Sidwell <nathan@acm.org>
343
344 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
345 (run_attempt): Reformat line break.
346
347 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
348
349 PR target/90418
350 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
351 data registers in sibcall epilogues.
352 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
353
354 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
355
356 PR target/89221
357 * configure.ac (--enable-frame-pointer):
358 Disable by default for cygwin and mingw.
359 * configure: Regenerate.
360
361 2019-05-13 Nathan Sidwell <nathan@acm.org>
362
363 * dwarf2out.c (breakout_comdat_types): Move comment to correct
364 piece of code.
365 (const_ok_for_output_1): Balance parens around #if/#else/#endif
366 (gen_member_die): Move abstract origin check earlier. Only VARs
367 can be static_inline_p. Simplify splicing control flow.
368
369 2019-05-13 Richard Biener <rguenther@suse.de>
370
371 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
372 VIEW_CONVERT_EXPR.
373 (vect_build_slp_tree_1): Likewise.
374
375 2019-05-13 Richard Biener <rguenther@suse.de>
376
377 PR tree-optimization/90402
378 * tree-if-conv.c (tree_if_conversion): Value number only
379 the loop body by making the latch an exit of the region
380 as well.
381 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
382 processing PHIs.
383 (do_rpo_vn): Deal with multiple edges into the entry block
384 that are not backedges inside the region by skipping PHIs
385 of the entry block.
386
387 2019-05-13 Richard Biener <rguenther@suse.de>
388
389 PR tree-optimization/90316
390 * tree-ssa-pre.c (insert_aux): Fold into ...
391 (insert): ... this function. Use a RPO walk to reduce the
392 number of required iterations.
393
394 2019-05-13 Martin Liska <mliska@suse.cz>
395
396 PR tree-optimization/90416
397 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
398 string instead of passing the second part as va_arg argument.
399
400 2019-05-13 Martin Liska <mliska@suse.cz>
401
402 PR gcov-profile/90380
403 * gcov.c (handle_cycle): Do not support zero cycle count,
404 it should not be possible.
405 (path_contains_zero_cycle_arc): New function.
406 (circuit): Ignore zero cycle arc counts.
407
408 2019-05-13 Martin Liska <mliska@suse.cz>
409
410 PR gcov-profile/90380
411 * gcov.c (enum loop_type): Remove the enum and
412 the operator.
413 (handle_cycle): Assert that we should not reach
414 a negative count.
415 (circuit): Use loop_found instead of a tri-state loop_type.
416 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
417 happen.
418
419 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
420
421 PR target/82920
422 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
423 (ix86_output_indirect_branch_via_reg): Use output mechanism
424 accounting for __USER_LABEL_PREFIX__.
425 (ix86_output_indirect_branch_via_push): Likewise.
426 (ix86_output_function_return): Likewise.
427 (ix86_output_indirect_function_return): Likewise.
428
429 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
430
431 * doc/md.texi: Document use of code attributes in rtx patterns.
432 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
433 * read-rtl.c (find_code): Split out search loops into...
434 (maybe_find_code): ...this new function.
435 (check_code_iterator): Make the error message more informative.
436 (check_code_attribute): New function.
437 (rtx_reader::rtx_alloc_for_name): Likewise.
438 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
439 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
440 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
441 <max_opp> directly as an rtx code instead of via a match_operator.
442 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
443 (<su>abd<mode>_3): Update accordingly.
444
445 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
446
447 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
448 is given, print the state of the EH "save world" computation for
449 Darwin.
450
451 2019-05-11 Jakub Jelinek <jakub@redhat.com>
452
453 PR c++/59813
454 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
455 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
456
457 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
458
459 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
460 Use pinsrd for TARGET_SSE4_1.
461 * config/i386/sse.md (movdi_to_sse): Ditto.
462
463 2019-05-10 Richard Biener <rguenther@suse.de>
464
465 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
466 (do_rpo_vn): Initialize next_value_id.
467
468 2019-05-10 Martin Liska <mliska@suse.cz>
469
470 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
471 Fix plural form.
472
473 2019-05-10 Jakub Jelinek <jakub@redhat.com>
474
475 PR tree-optimization/90385
476 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
477 arguments of the exit phis.
478
479 PR c++/90383
480 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
481 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
482 id->do_not_fold.
483 (copy_tree_body_r): Likewise.
484 (copy_fn): Set id.do_not_fold to true.
485
486 2019-05-10 Martin Liska <mliska@suse.cz>
487
488 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
489 Reapply changes from r269790.
490
491 2019-05-10 Martin Liska <mliska@suse.cz>
492
493 PR middle-end/90340
494 * doc/invoke.texi: New params.
495 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
496 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
497 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
498 Use it.
499 * tree-switch-conversion.h (struct jump_table_cluster):
500 Likewise.
501
502 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
503
504 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
505
506 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
507
508 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
509
510 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
511
512 PR rtl-optimization/88879
513 * sel-sched.c (sel_target_adjust_priority): Remove assert.
514
515 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
516
517 PR target/90405
518 * config/arm/arm.c (callee_saved_reg_p): Move before
519 thumb_find_work_register.
520 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
521 thumb_find_work_register. Only call df_get_live_out once.
522 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
523 (thumb_find_work_register): Use
524 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
525 algorithms to locate a spare call clobbered reg.
526
527 2019-05-09 Martin Liska <mliska@suse.cz>
528
529 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
530 and MAX_EXPR in GIMPLE FE format.
531
532 2019-05-09 Martin Liska <mliska@suse.cz>
533
534 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
535 * gimple-pretty-print.c (dump_gimple_bb_header):
536 Dump BB count.
537 (pp_cfg_jump): Dump edge probability.
538 * profile-count.c (profile_quality_as_string): Simplify
539 with a static array.
540 (parse_profile_quality): New function.
541 (profile_count::dump): Simplify with a static array.
542 (profile_count::from_gcov_type): Add new argument.
543 * profile-count.h (parse_profile_quality): Likewise.
544 * predict.h (set_hot_bb_threshold): New.
545 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
546 New param.
547 * predict.c (get_hot_bb_threshold): Set from the new param.
548 (set_hot_bb_threshold): New.
549
550 2019-05-09 Richard Biener <rguenther@suse.de>
551
552 PR tree-optimization/90395
553 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
554 rewrite vector stores that throw internally.
555
556 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
557
558 * cif-code.def (CHKP): Remove.
559
560 PR target/89221
561 * configure.ac (--enable-frame-pointer): Disable by default for
562 GNU systems.
563 * configure: Regenerate.
564
565 2019-05-09 Alan Modra <amodra@gmail.com>
566
567 PR target/89271
568 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
569 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
570 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
571 cost for general <-> vsx when direct moves are available.
572 Cost union classes at minimal cost for any reg in the class.
573 Correct calculation for moves between vsx, float, and altivec.
574 Don't return a low cost for moves between special regs. Don't
575 use hard coded register numbers.
576 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
577 (rs6000_ira_change_pseudo_allocno_class): New function.
578 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
579 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
580 alternatives.
581 (movsi_internal1): Don't disparage vector alternatives.
582 (mov<mode>_internal): Likewise, excepting alternative that
583 will be split.
584 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
585 we <- b alternative.
586
587 2019-05-08 Jakub Jelinek <jakub@redhat.com>
588
589 PR c++/59813
590 PR tree-optimization/89060
591 * tree-ssa-live.h (live_vars_map): New typedef.
592 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
593 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
594 (struct compute_live_vars_data): New type.
595 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
596 live_vars_at_stmt, destroy_live_vars): New functions.
597 * tree-tailcall.c: Include tree-ssa-live.h.
598 (live_vars, live_vars_vec): New global variables.
599 (find_tail_calls): Perform variable life analysis before punting.
600 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
601 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
602 member.
603 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
604 Perform variable life analysis to select variables that really need
605 clobbers added.
606 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
607 instead set id->eh_landing_pad_dest and assert it is the same.
608 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
609
610 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
611 Richard Earnshaw <rearnsha@arm.com>
612
613 PR target/88167
614 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
615 function.
616 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
617 (thumb1_compute_save_core_reg_mask): Don't force a spare work
618 register if both the epilogue and prologue can use call-clobbered
619 regs.
620 (thumb1_unexpanded_epilogue): Use
621 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
622 picking temporaries for restoring high regs to match that of the
623 prologue where possible.
624 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
625 the list of work registers. Detect if the return address is still live
626 at the end of the prologue and avoid using it for a work register if so.
627 If the return address is not live, add LR to the list of pushable regs
628 after the first pass.
629
630 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
631
632 PR tree-optimization/90078
633 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
634 (INFTY): Increase the value for infinite cost.
635 (struct comp_cost): Promote type of members to int64_t.
636 (infinite_cost): Don't set complexity in initialization.
637 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
638 overflows to infinite_cost.
639 (adjust_setup_cost): Promote type of parameter and cost computation
640 to int64_t.
641 (struct ainc_cost_data, struct iv_ca): Promote type of member to
642 int64_t.
643 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
644 cost computation to int64_t.
645 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
646 int64_t's format specifier in dump.
647
648 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
649
650 PR tree-optimization/90240
651 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
652 with respect to scaling factor pre-computed for each basic block.
653 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
654 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
655 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
656 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
657 live range for array of loop's basic blocks. Cleanup aux field of
658 loop's basic blocks.
659
660 2019-05-08 Jakub Jelinek <jakub@redhat.com>
661
662 PR tree-optimization/90356
663 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
664
665 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
666
667 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
668 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
669 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
670 (ix86_handle_option): Handle -mavx512bf16.
671 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
672 to extra_headers.
673 * config/i386/avx512bf16vlintrin.h: New.
674 * config/i386/avx512bf16intrin.h: New.
675 * config/i386/cpuid.h (bit_AVX512BF16): New.
676 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
677 * config/i386/i386-builtin-types.def: Add new types.
678 * config/i386/i386-builtin.def: Add new builtins.
679 * config/i386/i386-c.c (ix86_target_macros_internal): Define
680 __AVX512BF16__.
681 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
682 (ix86_option_override_internal): Handle BF16.
683 (ix86_valid_target_attribute_inner_p): Ditto.
684 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
685 * config/i386/i386-builtin.c (enum processor_features): Add
686 F_AVX512BF16.
687 (static const _isa_names_table isa_names_table): Ditto.
688 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
689 (PTA_AVX512BF16): Ditto.
690 * config/i386/i386.opt: Add -mavx512bf16.
691 * config/i386/immintrin.h: Include avx512bf16intrin.h
692 and avx512bf16vlintrin.h.
693 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
694 avx512f_cvtneps2bf16_<mode><mask_name>,
695 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
696 * config/i386/subst.md (mask_half): Add new subst.
697 * doc/invoke.texi: Document -mavx512bf16.
698
699 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
700
701 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
702 Delete declaration.
703 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
704 (rs6000_debug_legitimize_reload_address): Delete.
705 (rs6000_legitimize_reload_address_ptr): Delete.
706 (rs6000_option_override_internal): Adjust.
707 (mem_operand_gpr): Adjust comment.
708 (legitimate_lo_sum_address_p): Ditto.
709 (rs6000_legitimize_reload_address): Delete.
710 (rs6000_debug_legitimize_reload_address): Delete.
711 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
712
713 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
714
715 PR target/89765
716 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
717 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
718 to compute vector element selector for both constant and variable
719 operands.
720
721 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
722
723 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
724 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
725 ashrdi3_cvt using SWI48 mode iterator.
726
727 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
728
729 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
730 (aarch64_<su>abd<mode>_3): Likewise.
731 (*aarch64_<su>abd<mode>_3): New define_insn.
732 (<sur>sad<vsi2qi>): New define_expand.
733 * config/aarch64/iterators.md: Added MAX_OPP attribute.
734 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
735 (build_vect_cond_expr): Likewise.
736
737 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
738
739 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
740 clobbers outside of accessible_reg_set.
741 * config/i386/i386.c (ix86_conditional_register_usage):
742 Disable register sets by clearing corresponding bits in
743 accessible_reg_set. Do not set corresponding bits in fixed_regs,
744 call_used_regs and don't clear corresponding reg_names array members.
745
746 2019-05-07 Richard Biener <rguenther@suse.de>
747
748 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
749 not specified still compute a comp_vectype for invariant
750 compares.
751
752 2019-05-07 Richard Biener <rguenther@suse.de>
753
754 PR tree-optimization/90316
755 * tree-ssa-pre.c (translate_vuse_through_block): When
756 same_valid is NULL do not bother to search for a virtual
757 PHI continuation.
758 (phi_translate_1): When operands changed we cannot keep
759 the same value-number so do not bother to ask whether
760 that's possible from translate_vuse_through_block.
761
762 2019-05-07 Martin Liska <mliska@suse.cz>
763
764 * bitmap.c (bitmap_register): Come up with
765 alloc_descriptor_max_uid and assign it for
766 a new bitmap.
767 (register_overhead): Use get_descriptor as
768 a descriptor.
769 (release_overhead): New.
770 (bitmap_elem_to_freelist): Call it.
771 (bitmap_elt_clear_from): Likewise.
772 (bitmap_obstack_free): Likewise.
773 (bitmap_move): Sensitively release memory.
774 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
775 (bitmap_initialize): Initialize alloc_descriptor to zero.
776 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
777
778 2019-05-07 Richard Biener <rguenther@suse.de>
779
780 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
781 we build a SLP node. Remove max_size and limiting.
782 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
783
784 2019-05-07 Richard Biener <rguenther@suse.de>
785
786 PR tree-optimization/90316
787 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
788 limit by reference.
789 (walk_non_aliased_vuses): Take walking limit argument.
790 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
791 walking if it is reached instead of just counting.
792 (get_continuation_for_phi): Likewise.
793 (walk_non_aliased_vuses): Likewise, instead of leaving counter
794 limiting to the callback.
795 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
796 (vn_reference_lookup_3): Likewise.
797 (vn_reference_lookup_pieces): Likewise.
798 (vn_reference_lookup): Likewise.
799 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
800 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
801 (avail_exprs_stack::lookup_avail_expr): Likewise.
802
803 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
804
805 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
806 for comparaible types in the second direction even if first one
807 hits incomparable type.
808
809 2019-05-07 Richard Biener <rguenther@suse.de>
810
811 PR lto/90369
812 * lto-wrapper.c (debug_objcopy): Use the original filename
813 including archive offset for the filename used for -save-temps.
814
815 2019-05-07 Li Jia He <helijia@linux.ibm.com>
816
817 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
818 detection.
819
820 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
821
822 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
823 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
824 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
825 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
826 (FRAME_POINTER_REGNUM): Change numbering.
827 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
828 (alt_reg_names): Adjust.
829 (rs6000_conditional_register_usage): Don't mark hard register 64 as
830 fixed.
831 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
832 (DWARF_FRAME_REGISTERS): Delete.
833 (DWARF2_FRAME_REG_OUT): Fix whitespace.
834 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
835 Adjust.
836 (REG_ALLOC_ORDER): Adjust.
837 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
838 (REG_CLASS_CONTENTS): Adjust.
839 (RETURN_ADDR_RTX): Change comment.
840 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
841 instead of 67.
842 (REGISTER_NAMES): Adjust.
843 (ADDITIONAL_REGISTER_NAMES): Adjust.
844 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
845
846 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
847
848 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
849 Delete.
850 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
851 (DWARF_FRAME_REGISTERS): Adjust.
852 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
853 Adjust.
854 (REG_ALLOC_ORDER): Adjust.
855 (enum reg_class): Delete SPR_REGS.
856 (REG_CLASS_NAMES): Delete SPR_REGS.
857 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
858 (REGISTER_NAMES): Adjust.
859 (ADDITIONAL_REGISTER_NAMES): Adjust.
860 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
861 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
862 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
863 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
864 (htm_spr_regno): Delete.
865 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
866 argument.
867 (rs6000_dbx_register_number): Adjust.
868
869 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
870
871 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
872
873 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
874
875 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
876 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
877
878 2019-05-06 Jakub Jelinek <jakub@redhat.com>
879
880 PR tree-optimization/88709
881 PR tree-optimization/90271
882 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
883 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
884 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
885 variable.
886 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
887 of the store merging group is larger than
888 PARAM_STORE_MERGING_MAX_SIZE parameter.
889 (split_group): Add bzero_first argument. If set, always emit first
890 the first store which must be = {} of the whole area and then for the
891 rest of the stores consider all zero bytes as paddings.
892 (imm_store_chain_info::output_merged_store): Check if first store
893 is = {} of the whole area and if yes, determine which setting of
894 bzero_first for split_group gives smaller number of stores. Adjust
895 split_group callers.
896 (lhs_valid_for_store_merging_p): Allow decls.
897 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
898 no elts.
899 (pass_store_merging::process_store): Likewise.
900
901 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
902
903 PR target/89424
904 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
905 handling of V1TImode.
906
907 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
908
909 PR target/89221
910 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
911 and enable_frame_pointer ...
912 * configure.ac: ... here. Update help strings for
913 --enable-frame-pointer.
914 * configure: Regenerate.
915 * config/i386/i386-options.c (ix86_option_override_internal): Remove
916 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
917 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
918 (USE_X86_64_FRAME_POINTER): Ditto.
919
920 2019-05-06 Martin Liska <mliska@suse.cz>
921
922 * config.gcc: Append to target_gtfiles and fix indentation.
923
924 2019-05-06 Richard Biener <rguenther@suse.de>
925
926 PR tree-optimization/90358
927 * tree-vect-stmts.c (get_group_load_store_type): Properly
928 detect unused upper half of load.
929 (vectorizable_load): Likewise.
930
931 2019-05-06 Richard Biener <rguenther@suse.de>
932
933 PR tree-optimization/88828
934 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
935 (simplify_vector_constructor): ...here. Handle constants in
936 the constructor.
937
938 2019-05-06 Richard Biener <rguenther@suse.de>
939
940 PR tree-optimization/90328
941 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
942 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
943 is valid in the loop nest before using it.
944 (initialize_data_dependence_relation): Adjust.
945 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
946 loop as loop-nest to dr_may_alias_p.
947
948 2019-05-06 Richard Biener <rguenther@suse.de>
949
950 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
951
952 2019-05-06 Richard Biener <rguenther@suse.de>
953
954 PR tree-optimization/90316
955 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
956 compute target on demand.
957 (get_continuation_for_phi): Remove code walking stmts to
958 get to a target virtual operand which could end up being
959 quadratic.
960
961 2019-05-06 Martin Liska <mliska@suse.cz>
962
963 PR sanitizer/90312
964 * config/i386/i386-options.c (ix86_option_override_internal): Error only
965 when -mabi is selected to a non-default version.
966
967 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
968 Martin Liska <mliska@suse.cz>
969
970 * Makefile.in: Add lto-dump.texi.
971 * cgraph.h: Add new functions get_visibility_string and
972 get_symtab_type_string.
973 * doc/gcc.texi: Include lto-dump section.
974 * doc/lto-dump.texi: New file.
975 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
976 (parse_dump_option): Factor out this function.
977 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
978 (parse_dump_option): Export the function.
979 * symtab.c (symtab_node::get_visibility_string): New function.
980 (symtab_node::get_symtab_type_string): Likewise.
981
982 2019-05-06 Martin Liska <mliska@suse.cz>
983
984 * config/i386/i386-builtins.c: New file.
985 * config/i386/i386-builtins.h: New file.
986 * config/i386/i386-expand.c: New file.
987 * config/i386/i386-expand.h: New file.
988 * config/i386/i386-features.c: New file.
989 * config/i386/i386-features.h: New file.
990 * config/i386/i386-options.c: New file.
991 * config/i386/i386-options.h: New file.
992 * config.gcc: Add new files into extra_objs and
993 target_gtfiles.
994 * config/i386/i386.c: Split content of the file
995 into newly introduced files.
996 * config/i386/i386.h: Declare common variables
997 and macros.
998 * config/i386/t-i386: Define dependencies for new files.
999
1000 >>>>>>> .r270937
1001 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
1002
1003 PR target/89400
1004 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
1005 Restrict 'all' variant to 32-bit configurations.
1006 (unaligned_loadhiu): Likewise.
1007 (unaligned_storehi): Likewise.
1008 (unaligned_storesi): Likewise.
1009 (unaligned_loadhis): Disable when compiling for thumb1.
1010
1011 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
1012
1013 PR tree-optimization/90269
1014 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
1015 Ignore clobbers.
1016
1017 2019-05-03 Martin Liska <mliska@suse.cz>
1018
1019 * hash-map.h: Add is_empty function.
1020 * hash-set.h: Likewise.
1021 * hash-table.h: Likewise.
1022 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
1023 elements () == 0 (and similar usages).
1024 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
1025 * gimplify.c (gimplify_bind_expr): Likewise.
1026 (gimplify_switch_expr): Likewise.
1027 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
1028 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
1029 * postreload-gcse.c (dump_hash_table): Likewise.
1030 (gcse_after_reload_main): Likewise.
1031 * predict.c (combine_predictions_for_bb): Likewise.
1032 * tree-parloops.c (reduction_phi): Likewise.
1033 (separate_decls_in_region): Likewise.
1034 (transform_to_exit_first_loop): Likewise.
1035 (gen_parallel_loop): Likewise.
1036 (gather_scalar_reductions): Likewise.
1037 (try_create_reduction_list): Likewise.
1038 * var-tracking.c (dump_vars): Likewise.
1039 (emit_notes_for_changes): Likewise.
1040 (vt_emit_notes): Likewise.
1041
1042 2019-05-03 Richard Biener <rguenther@suse.de>
1043
1044 PR tree-optimization/90316
1045 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
1046 before running VN.
1047
1048 2019-05-03 Richard Biener <rguenther@suse.de>
1049
1050 * tree-vect-stmts.c (get_group_load_store_type): Avoid
1051 peeling for gaps by loading only lower halves of vectors
1052 if possible.
1053 (vectorizable_load): Likewise.
1054
1055 2019-05-03 Richard Biener <rguenther@suse.de>
1056
1057 PR middle-end/89518
1058 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
1059
1060 2019-05-03 Richard Biener <rguenther@suse.de>
1061
1062 PR middle-end/87314
1063 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
1064 Handle STRING_CST vs DECL or STRING_CST.
1065
1066 2019-05-03 Richard Biener <rguenther@suse.de>
1067
1068 PR tree-optimization/88963
1069 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
1070 vector loads feeding only BIT_FIELD_REFs to component
1071 loads. Rewrite stores fed by CONSTRUCTORs to component
1072 stores.
1073
1074 2019-05-03 Jakub Jelinek <jakub@redhat.com>
1075
1076 * opts.h (finish_options): Remove lang_mask argument.
1077 (print_help, help_option_argument): Declare.
1078 * opts.c (print_help): Remove forward declaration, no longer static.
1079 (finish_options): Remove lang_mask argument, don't call print_help
1080 here.
1081 * opts-global.c (decode_options): Adjust finish_option caller, call
1082 print_help here.
1083
1084 PR tree-optimization/90303
1085 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
1086 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
1087
1088 2019-05-03 Richard Biener <rguenther@suse.de>
1089
1090 PR tree-optimization/89698
1091 * gimple-fold.c (canonicalize_constructor_val): Early out
1092 for constants, handle unfolded INTEGER_CSTs as they appear in
1093 C++ virtual table ctors.
1094
1095 2019-05-03 Richard Biener <rguenther@suse.de>
1096
1097 * passes.c (execute_function_todo): Remove dead code.
1098
1099 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
1100
1101 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
1102 the internal register number, for any "real" register.
1103
1104 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
1105
1106 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
1107 correct numbers for TFHAR, TFIAR, TEXASR.
1108
1109 2019-05-02 Richard Biener <rguenther@suse.de>
1110
1111 PR tree-optimization/89653
1112 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
1113 update-address-taken before the pass.
1114 * passes.def (pass_tree_loop_init): Put comment before it.
1115
1116 2019-05-02 Richard Biener <rguenther@suse.de>
1117
1118 PR tree-optimization/89509
1119 * tree-ssa-structalias.c (compute_dependence_clique): Look
1120 at the first subvar when determining whether it is restrict.
1121
1122 2019-05-02 Richard Biener <rguenther@suse.de>
1123
1124 PR tree-optimization/90273
1125 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
1126 useless debug stmts.
1127
1128 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
1129
1130 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
1131 ACLE branch.
1132 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
1133 SVE ACLE branch.
1134 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
1135 VEC_COND_EXPR be inserted to emulate a conditional internal function.
1136 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
1137 (vectorizable_reduction): Use the functions above to vectorize in a
1138 fully masked loop codes that don't have a conditional internal
1139 function.
1140
1141 2019-05-02 Martin Liska <mliska@suse.cz>
1142
1143 * cgraphclones.c: Call valid_attribute_p with 1 for
1144 target_clone.
1145 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
1146 it's for target attribute.
1147 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
1148 Add new boolean argument.
1149 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
1150 Likewise.
1151 (ix86_valid_target_attribute_tree): Pass target_clone_attr
1152 to ix86_valid_target_attribute_inner_p.
1153 (ix86_valid_target_attribute_p): Pass flags argument to
1154 ix86_valid_target_attribute_inner_p.
1155 (get_builtin_code_for_version): Use 0 as it's target attribute.
1156
1157 2019-05-02 Martin Liska <mliska@suse.cz>
1158
1159 * gcc.c (process_command): Add dummy file only
1160 if n_infiles == 0.
1161 * opts-global.c (decode_options): Pass lang_mask.
1162 * opts.c (print_help): New function.
1163 (finish_options): Print --help if help_option_argument
1164 is set.
1165 (common_handle_option): Factor out content of OPT__help_
1166 into print_help.
1167 * opts.h (finish_options): Add new argument.
1168
1169 2019-05-02 Martin Liska <mliska@suse.cz>
1170
1171 PR target/88809
1172 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
1173 With -minline-all-stringops use inline expansion using 4B loop.
1174 * doc/invoke.texi: Document the change of
1175 -minline-all-stringops.
1176
1177 2019-05-01 Jeff Law <law@redhat.com>
1178
1179 PR tree-optimization/88797
1180 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
1181 PHI feeds a conditional on the RHS of an assignment.
1182
1183 2019-04-30 Andrew Waterman <andrew@sifive.com>
1184 Jim Wilson <jimw@sifive.com>
1185
1186 * config/riscv/constraints.md (L): New.
1187 * config/riscv/predicates.md (lui_operand): New.
1188 (sfb_alu_operand): New.
1189 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
1190 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
1191 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
1192 * config/riscv/risc.md (type): Add sfb_alu.
1193 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
1194 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
1195 (branch_zero<mode>): Delete.
1196 (mov<mode>cc): New.
1197 (mov<GPR:mode><X:mode>cc): Likewise.
1198 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
1199
1200 2019-04-30 Nathan Sidwell <nathan@acm.org>
1201
1202 * tree.h (MARK_TS_EXP): New.
1203
1204 2019-04-30 Martin Liska <mliska@suse.cz>
1205
1206 * opts.c (enable_warning_as_error): Provide hints
1207 for unknown options.
1208
1209 2019-04-30 Martin Liska <mliska@suse.cz>
1210
1211 PR debug/90288
1212 * doc/invoke.texi: Add missing dash for gas-locview-support
1213 and gno-as-locview-support.
1214
1215 2019-04-30 Jakub Jelinek <jakub@redhat.com>
1216
1217 PR target/89093
1218 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
1219 whitespace at the start of target attribute string.
1220
1221 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1222
1223 PR target/86538
1224 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
1225 Define __ARM_FEATURE_ATOMICS.
1226
1227 2019-04-30 Martin Liska <mliska@suse.cz>
1228
1229 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
1230 into built_in_function enum. Remove code for endp == 2 and
1231 use BUILT_IN_* constants.
1232 (gimple_fold_builtin): Call the function with fcode.
1233
1234 2019-04-30 Martin Liska <mliska@suse.cz>
1235
1236 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
1237 DECL_FUNCTION_CODE into ix86_builtins enum before
1238 the switch statement.
1239
1240 2019-04-30 Jakub Jelinek <jakub@redhat.com>
1241
1242 PR tree-optimization/89475
1243 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
1244 calls.
1245
1246 2019-04-30 Martin Liska <mliska@suse.cz>
1247
1248 PR translation/90274
1249 * opts.c (print_filtered_help): Wrap string in _(...).
1250
1251 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
1252
1253 PR tree-optimization/90240
1254 Revert:
1255 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
1256
1257 PR tree-optimization/90078
1258 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
1259 checks for infinite_cost overflow.
1260
1261 2019-04-29 Jeff Law <law@redhat.com>
1262
1263 * passes.def: Move -Wrestrict pass after copy propagation.
1264
1265 2019-04-29 Maya Rashish <coypu@sdf.org>
1266
1267 * config.gcc (default_gnu_indirect_function): Default to yes
1268 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
1269 sparc*-*-netbsd*, x86_64-*-netbsd*.
1270
1271 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
1272
1273 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
1274 where cond2 is NE_EXPR.
1275 (is_value_included_in): Update comment.
1276
1277 2019-04-29 Richard Biener <rguenther@suse.de>
1278
1279 PR tree-optimization/90278
1280 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
1281 EH on comparison simplification.
1282
1283 2019-04-29 Jason Merrill <jason@redhat.com>
1284
1285 PR c++/82081 - tail call optimization breaks noexcept
1286 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
1287 nothrow function to a might-throw function into a tail call.
1288
1289 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
1290
1291 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
1292 (DDR_INNER_LOOP): Likewise.
1293 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
1294 (initialize_data_dependence_relation): Likewise.
1295 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
1296
1297 2019-04-29 Jakub Jelinek <jakub@redhat.com>
1298
1299 PR rtl-optimization/90257
1300 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
1301 return value.
1302
1303 Revert the revert:
1304 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
1305
1306 PR target/90178
1307 Revert:
1308 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
1309
1310 Revert the revert:
1311 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
1312
1313 Revert:
1314 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
1315
1316 * lra-spills.c (lra_final_code_change): Remove useless move insns.
1317
1318 2019-04-29 Richard Biener <rguenther@suse.de>
1319
1320 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
1321 rhs issue a reset.
1322
1323 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
1324
1325 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
1326 varasm.h, and netbsd-protos.h.
1327
1328 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
1329
1330 PR target/89261
1331 * config/i386/i386-protos.h (ix86_data_alignment): Change
1332 the second argument type to unsigned int.
1333 * config/i386/i386.c (ix86_data_alignment): Change "align"
1334 argument type to unsigned int.
1335
1336 2019-04-27 Martin Liska <mliska@suse.cz>
1337
1338 PR middle-end/90258
1339 * opt-suggestions.c (option_proposer::build_option_suggestions):
1340 When get_valid_option_values returns empty values, add the
1341 misspelling candidate.
1342
1343 2019-04-26 Jim Wilson <jimw@sifive.com>
1344
1345 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
1346 parameter.
1347 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
1348 Pass orig_mode to riscv_build_integer.
1349 (riscv_split_integer): Pass mode to riscv_move_integer.
1350 (riscv_legitimize_const_move): Likewise.
1351 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
1352 promoted_mode. Replace force_reg call with code to load constant into
1353 promoted reg and then subreg it for the store.
1354 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
1355 riscv_move_integer.
1356
1357 2018-04-26 Eugene Sharygin <eush@ispras.ru>
1358
1359 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
1360 corrupt codes.
1361
1362 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
1363
1364 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
1365 commentary about the encoding of precision.
1366
1367 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
1368
1369 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
1370 * config/i386/t-freebsd64: New file.
1371 * config.gcc: Add the t-freebsd64 for multilib support.
1372
1373 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
1374
1375 * doc/extend.texi (vector_size): Add missing comma after @xref.
1376
1377 2019-04-25 Jakub Jelinek <jakub@redhat.com>
1378
1379 * BASE-VER: Set to 10.0.0.
1380
1381 2019-04-25 Richard Biener <rguenther@suse.de>
1382
1383 PR middle-end/89765
1384 * gimplify.c (gimplify_expr): Avoid turning a lvalue
1385 VIEW_CONVERT_EXPR into one operating on an rvalue.
1386
1387 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
1388
1389 PR target/89929
1390 * config/i386/i386.c (feature_priority): Moved to file scope.
1391 (processor_features): Likewise.
1392 (processor_model): Likewise.
1393 (_arch_names_table): Likewise.
1394 (arch_names_table): Likewise.
1395 (_feature_list): Removed.
1396 (feature_list): Likewise.
1397 (_isa_names_table): Moved to file scope. Add priority.
1398 (isa_names_table): Likewise.
1399 (get_builtin_code_for_version): Replace feature_list with
1400 isa_names_table. Update error message for P_ZERO priority.
1401
1402 2019-04-25 Richard Biener <rguenther@suse.de>
1403
1404 * tree-pass.h (make_pass_phi_only_cprop): Remove.
1405 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
1406
1407 2019-04-24 Jeff Law <law@redhat.com>
1408
1409 PR tree-optimization/90037
1410 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
1411 * passes.def: Replace all instance of phi-only cprop with the
1412 lattice propagator. Move propagation pass from after erroneous
1413 path isolation to before erroneous path isolation.
1414 * tree-ssa-phionlycprop.c: Remove.
1415
1416 2019-04-24 Richard Biener <rguenther@suse.de>
1417
1418 PR middle-end/90213
1419 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
1420 by size and BITS_PER_UNIT on poly-wide-ints.
1421
1422 2019-04-25 Richard Biener <rguenther@suse.de>
1423
1424 PR middle-end/90194
1425 * match.pd: Add pattern to simplify view-conversion of an
1426 empty constructor.
1427
1428 2019-04-24 Clement Chigot <clement.chigot@atos.net>
1429
1430 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
1431 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
1432 for Go on 32 bit AIX.
1433 * config/rs6000/aix72.h: Likewise.
1434
1435 2019-04-24 Jakub Jelinek <jakub@redhat.com>
1436
1437 PR target/90193
1438 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
1439 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
1440
1441 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
1442
1443 PR target/89952
1444 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
1445 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
1446 for restored hard frame pointer.
1447 (s390_sched_dependencies_evaluation): Implement new target hook.
1448 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
1449
1450 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
1451
1452 * config/arc/arc-options.def: Fix typos and spelling mistakes.
1453 * config/arc/arc.c (arc_init): Cleanup warning message.
1454 (arc_override_options): Likewise.
1455
1456 2019-04-24 Jakub Jelinek <jakub@redhat.com>
1457
1458 PR target/90187
1459 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
1460 a register if both if_true and if_false are MEMs.
1461
1462 PR tree-optimization/90208
1463 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
1464 after labels of new_bb, not before them.
1465
1466 PR tree-optimization/90211
1467 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
1468 which are not SSA_NAMEs.
1469
1470 2018-04-23 Sudakshina Das <sudi.das@arm.com>
1471
1472 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
1473 AArch64.
1474 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
1475
1476 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
1477
1478 PR rtl-optimization/87979
1479 * modulo-sched.c (sms_schedule): Start ii value "mii" should
1480 not equal zero.
1481
1482 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
1483
1484 PR rtl-optimization/84032
1485 * modulo-sched.c (ps_insn_find_column): Change condition so that
1486 branch will always be the last insn in a row inside partial
1487 schedule.
1488
1489 2019-04-23 Richard Biener <rguenther@suse.de>
1490
1491 PR debug/90131
1492 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
1493 dest_single_pred_p argument.
1494 (remove_forwarder_block): Adjust.
1495 (remove_forwarder_block_with_phi): Likewise.
1496
1497 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1498 Bernd Edlinger <bernd.edlinger@hotmail.de>
1499 Jakub Jelinek <jakub@redhat.com>
1500
1501 PR target/89093
1502 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
1503 if used with general-regs-only.
1504 (arm_conditional_register_usage): Don't add non-general regs if
1505 general-regs-only.
1506 (arm_valid_target_attribute_rec): Handle general-regs-only.
1507 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
1508 general-regs-only.
1509 (TARGET_HARD_FLOAT_SUB): Define.
1510 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
1511 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
1512 (TARGET_REALLY_IWMMXT2): Likewise.
1513 * config/arm/arm.opt: Add -mgeneral-regs-only.
1514 * doc/extend.texi: Document ARM general-regs-only target.
1515 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
1516
1517 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
1518
1519 PR tree-optimization/90078
1520 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
1521 checks for infinite_cost overflow.
1522
1523 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
1524
1525 PR tree-optimization/90021
1526 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
1527 and check univariate against it.
1528 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
1529 * tree-data-ref.c (add_other_self_distances): Pass new argument.
1530
1531 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
1532
1533 PR target/90178
1534 Revert:
1535 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
1536
1537 Revert the revert:
1538 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
1539
1540 Revert:
1541 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
1542
1543 * lra-spills.c (lra_final_code_change): Remove useless move insns.
1544
1545 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
1546
1547 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
1548 names using operand format, rather than hard-wired.
1549 (speculation_barrier): Likewise.
1550
1551 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
1552
1553 PR tree-optimization/88055
1554 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
1555 (gen_one_condition): Use it if !HONOR_NANS.
1556
1557 2019-04-19 Jakub Jelinek <jakub@redhat.com>
1558
1559 PR middle-end/90139
1560 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
1561 assign_temp instead of gen_reg_rtx.
1562
1563 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
1564
1565 PR translation/90118
1566 * config/aarch64/aarch64.c (aarch64_override_options_internal):
1567 Add missing space before %<.
1568
1569 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
1570
1571 PR rtl-optimization/87871
1572 * ira-lives.c (make_object_dead): Don't add conflicts to
1573 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
1574
1575 2019-04-18 Martin Sebor <msebor@redhat.com>
1576
1577 PR middle-end/89797
1578 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
1579 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
1580 assuming type size fits in SHWI.
1581
1582 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
1583
1584 PR ipa/85051
1585 * ipa-inline.c (flatten_function): New parameter UPDATE.
1586 (ipa_inline, early_inliner): Use it.
1587
1588 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
1589
1590 * fold-const.c (int_const_binop): Return early on failure.
1591
1592 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
1593
1594 PR middle-end/85164
1595 * combine.c (force_int_to_mode): Cast the argument rather than
1596 the result of known_alignment.
1597 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
1598
1599 2019-04-18 Richard Biener <rguenther@suse.de>
1600
1601 PR debug/90131
1602 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
1603 out from ...
1604 (remove_forwarder_block): ... here.
1605 (remove_forwarder_block_with_phi): Also move debug stmts here.
1606
1607 2019-04-18 Jakub Jelinek <jakub@redhat.com>
1608
1609 PR translation/79183
1610 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
1611 inform where appropriate.
1612
1613 2019-04-18 Richard Biener <rguenther@suse.de>
1614
1615 * tree.c (get_qualified_type): Put found type variants at the
1616 head of the variant list.
1617
1618 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
1619
1620 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
1621
1622 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
1623
1624 PR target/90125
1625 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
1626 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
1627 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
1628 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
1629 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
1630
1631 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
1632
1633 * ira-conflicts.c (print_allocno_conflicts): Always print something,
1634 even for allocno's with no conflicts.
1635 (print_conflicts): Print an extra newline.
1636
1637 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
1638
1639 * auto-inc-dec.c (attempt_change): Set the alignment of the
1640 temporary memory to that of the original.
1641
1642 2019-04-17 Joao Moreira <jmoreira@suse.de>
1643
1644 * targhooks.c (default_print_patchable_function_entry): Emit
1645 __patchable_function_entries section with writable flags to allow
1646 relocation resolution.
1647
1648 2019-04-17 Jonny Grant <jg@jguk.org>
1649
1650 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
1651
1652 2019-04-17 Jakub Jelinek <jakub@redhat.com>
1653
1654 PR middle-end/90095
1655 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
1656 on lowpart SUBREGs.
1657
1658 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
1659
1660 * config/arc/arc.c (arc_init): Format diagnostic string.
1661 (arc_override_options): Likewise.
1662 (check_if_valid_regno_const): Likewise.
1663 (arc_reorg): Likewise.
1664
1665 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
1666
1667 PR target/17108
1668 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
1669 name.
1670 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
1671 name.
1672 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
1673 (*movdi_update1): Use Pmode.
1674 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
1675 (movdi_<mode>_update_stack): Rename to ...
1676 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
1677 use Pmode.
1678 (*movsi_update1): Use Pmode.
1679 (*movsi_update2): Use Pmode.
1680 (movsi_update): Rename to ...
1681 (movsi_<mode>_update): ... this. Use Pmode.
1682 (movsi_update_stack): Fix condition.
1683 (*movhi_update1): Use Pmode. Fix argument to
1684 avoiding_indexed_address_p.
1685 (*movhi_update2): Ditto.
1686 (*movhi_update3): Ditto.
1687 (*movhi_update4): Ditto.
1688 (*movqi_update1): Ditto.
1689 (*movqi_update2): Ditto.
1690 (*movqi_update3): Ditto.
1691 (*movsf_update1, *movdf_update1): Merge, rename to...
1692 (*mov<mode>_update1): This. Use Pmode. Fix argument to
1693 avoiding_indexed_address_p. Add "size" attribute.
1694 (*movsf_update2, *movdf_update2): Merge, rename to...
1695 (*mov<mode>_update2): This. Ditto.
1696 (*movsf_update3): Use Pmode. Fix argument to
1697 avoiding_indexed_address_p.
1698 (*movsf_update4): Ditto.
1699 (allocate_stack): Simplify condition. Adjust pattern names.
1700
1701 2019-04-17 Jakub Jelinek <jakub@redhat.com>
1702
1703 PR target/89093
1704 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
1705 whitespace at the start of target attribute string.
1706
1707 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
1708
1709 PR target/84369
1710 * config/rs6000/power9.md: Add store forwarding bypass.
1711
1712 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
1713
1714 PR debug/89528
1715 * valtrack.c (dead_debug_insert_temp): Reset debug references
1716 to the return value of a call being removed.
1717
1718 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
1719
1720 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
1721 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
1722 implement target hook.
1723 (arc_memory_move_cost): New function.
1724 (TARGET_REGISTER_MOVE_COST): Define.
1725 (TARGET_MEMORY_MOVE_COST): Likewise.
1726 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
1727 (MEMORY_MOVE_COST): Likewise.
1728
1729 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
1730
1731 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
1732 (sibcall_value_insn): Likewise.
1733 * config/arc/constraints.md (Rs5): Remove.
1734
1735 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
1736
1737 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
1738 for last two fake registers.
1739 (arc_conditional_register_usage): Make sure fake frame and arg
1740 pointer regs are in general regs class.
1741 (FRAME_POINTER_MASK): Remove.
1742 (RETURN_ADDR_MASK): Remove.
1743 (arc_must_save_register): Use hard frame regnum.
1744 (frame_restore_reg): Use hard_frame_pointer_rtx.
1745 (arc_save_callee_saves): Likewise.
1746 (arc_restore_callee_saves): Likewise.
1747 (arc_save_callee_enter): Likewise.
1748 (arc_restore_callee_leave): Likewise.
1749 (arc_save_callee_milli): Likewise.
1750 (arc_eh_return_address_location): Likewise.
1751 (arc_check_multi): Use hard frame regnum.
1752 (arc_can_eliminate): Likewise.
1753 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
1754 for register allocator.
1755 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
1756 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
1757 (FRAME_POINTER_REGNUM): Change it to a fake register.
1758 (HARD_FRAME_POINTER_REGNUM): Defined.
1759 (ARG_POINTER_REGNUM): Change it to a new fake register.
1760 (ELIMINABLE_REGS): Update.
1761 (REGISTER_NAMES): Update names.
1762 * config/arc/arc.md (LP_START): Remove.
1763 (LP_END): Likewise.
1764 (shift_si3_loop): Update pattern.
1765
1766 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
1767
1768 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
1769 to avoid delay slot scheduling.
1770 (arc_must_save_register): Don't save SP.
1771 * config/arc/arc.md (stack_tie): Remove.
1772 (UNSPEC_ARC_STKTIE): Likewise.
1773
1774 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
1775 Shiva Chen <shiva0217@gmail.com>
1776
1777 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
1778 code gen with large shift amount.
1779
1780 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
1781
1782 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
1783 subreg.
1784
1785 2019-04-16 Jakub Jelinek <jakub@redhat.com>
1786
1787 PR target/90096
1788 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
1789 print -m64/-mx32/-m32 if it is true.
1790 (ix86_debug_options, ix86_function_specific_print): Pass true as
1791 ADD_ABI_P to ix86_target_string.
1792 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
1793 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
1794 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
1795
1796 PR rtl-optimization/90082
1797 * dce.c (can_delete_call): New function.
1798 (deletable_insn_p, mark_insn): Use it.
1799
1800 PR tree-optimization/90090
1801 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
1802 throw internally.
1803 (is_division_by_square): Likewise. Formatting fix.
1804
1805 2019-04-16 Richard Biener <rguenther@suse.de>
1806
1807 PR tree-optimization/56049
1808 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
1809 equality check if alias-set zero will prevail.
1810
1811 2019-04-15 Jeff Law <law@redhat.com>
1812
1813 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
1814 size and alignment as unsigned.
1815
1816 2019-04-15 Richard Biener <rguenther@suse.de>
1817
1818 PR debug/90074
1819 * tree-loop-distribution.c (destroy_loop): Preserve correct
1820 debug info.
1821
1822 2019-04-15 Richard Biener <rguenther@suse.de>
1823
1824 PR tree-optimization/90071
1825 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
1826 abnormal operands from def stmts.
1827
1828 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
1829
1830 PR rtl-optimization/89794
1831 * combine.c (count_auto_inc): New function.
1832 (try_combine): Count how many auto_inc expressions there were in the
1833 original instructions. Ensure we have the same number in the new
1834 instructions. Remove the code that tried to ensure auto_inc side
1835 effects on i1 and i0 are not lost.
1836
1837 2019-04-15 Richard Biener <rguenther@suse.de>
1838
1839 PR ipa/88936
1840 * tree.h (auto_var_p): Declare.
1841 * tree.c (auto_var_p): New function, split out from ...
1842 (auto_var_in_fn_p): ... here.
1843 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
1844 member.
1845 (new_var_info): Initialize it.
1846 (set_uids_in_ptset): Also set the shadow variable uid if required.
1847 (ipa_pta_execute): Postprocess points-to solutions assigning
1848 shadow variable uids for locals that may reach their containing
1849 function recursively.
1850 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
1851 assert but instead check whether the points-to solution is
1852 a singleton.
1853
1854 2019-04-15 Martin Jambor <mjambor@suse.cz>
1855
1856 PR ipa/pr89693
1857 * cgraph.c (clone_of_p): Loop over clone chain for each step in
1858 the thunk chain.
1859
1860 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
1861
1862 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
1863
1864 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
1865 Kito Cheng <kito.cheng@gmail.com>
1866 Shiva Chen <shiva0217@gmail.com>
1867
1868 * config/nds32/nds32-md-auxiliary.c
1869 (nds32_legitimize_pic_address): Use new PIC pattern.
1870 (nds32_legitimize_tls_address): Use new TLS pattern.
1871 (nds32_output_symrel): New.
1872 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
1873 (nds32_alloc_relax_group_id): Ditto.
1874 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
1875 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
1876 relax_group_id.
1877 (nds32_group_tls_insn): Ditto.
1878 (nds32_group_float_insns): Ditto.
1879 * config/nds32/nds32.md (tls_le): New.
1880 (sym_got): Ditto.
1881
1882 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
1883
1884 * configure: Add nds32 target for dwarf2 debug_line checking.
1885 * configure.ac: Regenerated.
1886
1887 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
1888
1889 PR lto/89358
1890 * ipa-devirt.c (skip_in_fields_list_p): New.
1891 (odr_types_equivalent_p): Use it.
1892
1893 2019-04-13 Jakub Jelinek <jakub@redhat.com>
1894
1895 PR target/89093
1896 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
1897 instead of strncmp when checking for thumb and arm. Formatting fixes.
1898
1899 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
1900
1901 * doc/install.texi: Document --with-target-system-zlib.
1902
1903 2019-04-12 Martin Sebor <msebor@redhat.com>
1904
1905 PR c/88383
1906 PR c/89288
1907 PR c/89798
1908 PR c/89797
1909 * targhooks.c (default_vector_alignment): Avoid assuming
1910 argument fits in SHWI.
1911 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
1912 a shift expression.
1913 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
1914
1915 2019-04-12 Jakub Jelinek <jakub@redhat.com>
1916
1917 PR rtl-optimization/89965
1918 * dce.c: Include rtl-iter.h.
1919 (struct check_argument_load_data): New type.
1920 (check_argument_load): New function.
1921 (find_call_stack_args): Check for loads from stack slots still tracked
1922 in sp_bytes and punt if any is found.
1923
1924 * config/mips/loongson-mmiintrin.h: Fix up #error message.
1925
1926 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
1927
1928 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
1929 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
1930
1931 2019-04-12 Martin Liska <mliska@suse.cz>
1932
1933 PR middle-end/89970
1934 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
1935 in error message.
1936 (separate_attrs): Handle multiple 'default's.
1937 (expand_target_clones): Rework error handling code.
1938
1939 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
1940
1941 PR target/87532
1942 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
1943 mode of vector rather than mode of destination for move instruction.
1944 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
1945 Use QI inner mode with V16QI vector mode.
1946
1947 2019-04-12 Jakub Jelinek <jakub@redhat.com>
1948
1949 PR target/52726
1950 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
1951 "invalid %%t operand" in output_operand_lossage message.
1952
1953 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
1954
1955 * config/s390/predicates.md (permute_pattern_operand): New
1956 predicate.
1957 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
1958 operand for the permute pattern.
1959 ("*vec_perm<mode>"): New insn definition.
1960 ("bswap<mode>"): Generate the permute pattern operand in the
1961 expander and perform the operand reloads for pre arch13 level
1962 already.
1963 ("*bswap<mode>_emu"): Rename to ...
1964 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
1965 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
1966 Add the USE operand for the permute pattern.
1967 ("*vec_set_bswap_vec<mode>"): Likewise.
1968
1969 2019-04-12 Jakub Jelinek <jakub@redhat.com>
1970
1971 PR c/89946
1972 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
1973 and gcc_unreachable if it fails, just call tree_to_uhwi which
1974 verifies that too. Test TREE_CHAIN instead of list_length > 1.
1975 Start warning message with a lower-case letter. Formatting fixes.
1976
1977 PR rtl-optimization/90026
1978 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
1979 successors, look for BARRIERs inside of the whole BB_FOOTER chain
1980 rather than just at the start of it. If e->src BB_FOOTER is not NULL
1981 in cfglayout mode, use emit_barrier_after_bb.
1982
1983 2018-04-11 Steve Ellcey <sellcey@marvell.com>
1984
1985 PR rtl-optimization/87763
1986 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
1987 New Instruction.
1988
1989 2019-04-11 Tom de Vries <tdevries@suse.de>
1990
1991 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
1992 max macro using statement expression.
1993
1994 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
1995
1996 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
1997 * xcoffout.c (xcoff_private_rodata_section_name): Define.
1998 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
1999 read_only_private_data_section using xcoff_private_rodata_section_name.
2000 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
2001
2002 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
2003
2004 PR target/90016
2005 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
2006
2007 2019-04-11 Jakub Jelinek <jakub@redhat.com>
2008
2009 PR rtl-optimization/89965
2010 * dce.c (sp_based_mem_offset): New function.
2011 (find_call_stack_args): Use sp_based_mem_offset.
2012
2013 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
2014
2015 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
2016
2017 2019-04-11 Richard Biener <rguenther@suse.de>
2018
2019 PR tree-optimization/90020
2020 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
2021 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
2022 * tree-ssa-pre.c (compute_avail): Use it to not put
2023 possibly trapping references after a call that might not
2024 return into EXP_GEN.
2025 * gcse.c (compute_hash_table_work): Do not elide
2026 marking a block containing a call if the call might not
2027 return.
2028
2029 2019-04-11 Richard Biener <rguenther@suse.de>
2030
2031 PR tree-optimization/90018
2032 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
2033 Test both SLP and interleaving variants.
2034
2035 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
2036
2037 * config/s390/8561.md: New file.
2038 * config/s390/driver-native.c (s390_host_detect_local_cpu):
2039 Add arch13 cpu model.
2040 * config/s390/s390-opts.h (enum processor_type): Likewise.
2041 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
2042 (s390_get_unit_mask): Likewise.
2043 (s390_is_fpd): Likewise.
2044 (s390_is_fxd): Likewise.
2045 * config/s390/s390.h (s390_tune_attr): Likewise.
2046 * config/s390/s390.md: Include arch13 pipeline description.
2047 * config/s390/s390.opt: Add arch13.
2048
2049 2018-04-10 Steve Ellcey <sellcey@marvell.com>
2050
2051 PR rtl-optimization/87763
2052 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
2053 New prototype.
2054 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
2055 New function.
2056 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
2057 New instruction.
2058 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
2059 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
2060 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
2061 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
2062
2063 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
2064
2065 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
2066 "Although" in -fipa-icf documentation.
2067
2068 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
2069 of using multiple -g options.
2070
2071 2019-04-10 Martin Liska <mliska@suse.cz>
2072
2073 PR gcov-profile/89959
2074 * doc/gcov.texi: Make documentation of -x option
2075 more precise.
2076
2077 2019-04-10 Richard Biener <rguenther@suse.de>
2078
2079 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
2080 member.
2081 (DR_GROUP_SAME_DR_STMT): Remove.
2082 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
2083 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
2084 replace with assert.
2085 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
2086 (vect_record_grouped_load_vectors): Remove unreachable code.
2087
2088 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
2089
2090 PR target/90016
2091 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
2092 obsolete reference to N.
2093
2094 2019-04-10 Jakub Jelinek <jakub@redhat.com>
2095
2096 PR middle-end/90025
2097 * expr.c (store_expr): Set properly size on the MEM passed to
2098 clear_storage.
2099
2100 PR c++/90010
2101 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
2102 with strlen in between hostsz-3 and hostsz-1 inclusive when no
2103 translation is needed, and when translation is needed, only append
2104 ... if the string length is hostsz or more bytes long. Avoid using
2105 strncpy or strcat.
2106
2107 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
2108
2109 PR target/90024
2110 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
2111 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
2112 into three.
2113 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
2114 differences directly.
2115 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
2116
2117 2019-04-09 Jakub Jelinek <jakub@redhat.com>
2118
2119 PR translation/90011
2120 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
2121 from diagnostics.
2122 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
2123 diagnostics.
2124 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
2125 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
2126 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
2127 trailing space from -gsplit-dwarf diagnostics.
2128
2129 PR tree-optimization/89998
2130 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
2131 instead of integer_type_node if possible, don't add ranges if return
2132 type is not compatible with int.
2133 * gimple-fold.c (gimple_fold_builtin_sprintf,
2134 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
2135 integer_type_node.
2136
2137 2019-04-09 Martin Liska <mliska@suse.cz>
2138
2139 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
2140 * doc/install.texi: Document the new config.
2141
2142 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
2143
2144 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
2145 use gimple_expr_type for load and store calls. Skip over the
2146 condition argument in a conditional internal function.
2147 Protect use of TREE_INT_CST_LOW.
2148
2149 2019-04-09 Jakub Jelinek <jakub@redhat.com>
2150
2151 PR target/90015
2152 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
2153 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
2154 trailing period from it too.
2155
2156 2019-04-08 wu yuan <wuyuan5@huawei.com>
2157
2158 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
2159 * config/aarch64/aarch64.md : Add "tsv110.md"
2160 * config/aarch64/tsv110.md: New file.
2161
2162 2019-04-08 Richard Biener <rguenther@suse.de>
2163
2164 PR tree-optimization/90006
2165 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
2166 calls like lrint.
2167
2168 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
2169
2170 PR target/83033
2171 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
2172 construction.
2173 (fma_root_node): Likewise.
2174 (func_fma_steering): Likewise.
2175
2176 2019-04-08 Jakub Jelinek <jakub@redhat.com>
2177
2178 PR rtl-optimization/89865
2179 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
2180
2181 PR rtl-optimization/89865
2182 * config/i386/i386.md
2183 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
2184 numbers not to clash with the additional operands[4].
2185 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
2186 with extra register copy in the middle.
2187
2188 2019-04-08 Martin Liska <mliska@suse.cz>
2189
2190 PR gcov-profile/89961
2191 * doc/gcov.texi: Document data_file.
2192 * gcov.c (generate_results): Add data_info into JSON output.
2193
2194 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
2195
2196 PR tree-optimization/89725
2197 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
2198 loop's chrec as invariant symbol.
2199 * tree-chrec.h (chrec_contains_symbols): New parameter.
2200 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
2201 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
2202 function of loops not in DDR's loop_nest.
2203 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
2204
2205 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
2206
2207 PR target/89623
2208 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
2209 Mask.
2210
2211 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
2212
2213 PR target/89945
2214 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
2215 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
2216
2217 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
2218
2219 * sched-deps.c (sched_macro_fuse_insns): Check return value of
2220 targetm.fixed_condition_code_regs.
2221
2222 2019-04-05 Richard Biener <rguenther@suse.de>
2223
2224 PR debug/89892
2225 PR debug/89905
2226 * tree-cfgcleanup.c (remove_forwarder_block): Always move
2227 debug bind stmts but reset them if they are not valid at the
2228 destination.
2229
2230 2019-04-05 Martin Liska <mliska@suse.cz>
2231
2232 PR translation/89936
2233 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
2234 order to wrap keywords or arguments.
2235 * collect2.c (main): Likewise.
2236 (scan_prog_file): Likewise.
2237 (scan_libraries): Likewise.
2238 * common/config/riscv/riscv-common.c
2239 (riscv_subset_list::parsing_subset_version): Likewise.
2240 (riscv_subset_list::parse_std_ext): Likewise.
2241 * config/aarch64/aarch64.c (aarch64_override_options_internal):
2242 Likewise.
2243 * config/arm/arm.c (arm_option_override): Likewise.
2244 * config/cris/cris.c (cris_print_operand): Likewise.
2245 * config/darwin-c.c (darwin_pragma_options): Likewise.
2246 (darwin_pragma_unused): Likewise.
2247 (darwin_pragma_ms_struct): Likewise.
2248 * config/ft32/ft32.c (ft32_print_operand): Likewise.
2249 * config/i386/i386.c (print_reg): Likewise.
2250 (ix86_print_operand): Likewise.
2251 * config/i386/xm-djgpp.h: Likewise.
2252 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
2253 * config/m32c/m32c.c (m32c_option_override): Likewise.
2254 * config/msp430/msp430.c (msp430_option_override): Likewise.
2255 * config/nds32/nds32.c (nds32_option_override): Likewise.
2256 * config/nvptx/mkoffload.c (main): Likewise.
2257 * config/rx/rx.c (rx_print_operand): Likewise.
2258 (valid_psw_flag): Likewise.
2259 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
2260 (vms_pragma_nomember_alignment): Likewise.
2261 (vms_pragma_extern_model): Likewise.
2262 * lto-wrapper.c (compile_offload_image): Likewise.
2263 * omp-offload.c (oacc_parse_default_dims): Likewise.
2264 * symtab.c (symtab_node::verify_base): Likewise.
2265 * tlink.c (recompile_files): Likewise.
2266 (start_tweaking): Likewise.
2267 * tree-profile.c (parse_profile_filter): Likewise.
2268
2269 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
2270
2271 PR tree-optimization/89956
2272 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
2273 multiple negates of the same value.
2274
2275 2019-04-04 Martin Sebor <msebor@redhat.com>
2276
2277 PR middle-end/89957
2278 PR middle-end/89911
2279 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
2280 have the same precision since the function crashes otherwise.
2281 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
2282 has non-zero arguments.
2283
2284 2019-04-04 Martin Sebor <msebor@redhat.com>
2285
2286 PR middle-end/89934
2287 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
2288 out if the number of arguments is less than expected.
2289
2290 2019-04-04 Jeff Law <law@redhat.com>
2291
2292 PR rtl-optimization/89399
2293 * ree.c (combine_set_extension): Use single_set rather than
2294 digging into PATTERN for items on the candidate list.
2295 (combine_reaching_defs): Likewise.
2296
2297 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
2298
2299 PR rtl-optimization/46590
2300 * loop-invariant.c (find_defs): Move df_remove_problem and
2301 df_process_deferred_rescans to move_invariants.
2302 Move df_live_add_problem and df_live_set_all_dirty calls
2303 to move_invariants.
2304 (move_invariants): Likewise.
2305 (move_loop_invariants): Likewise, making the df_live calls
2306 conditional on -O. Remove the problem again if we added it
2307 locally.
2308
2309 2019-04-03 qing zhao <qing.zhao@oracle.com>
2310
2311 PR tree-optimization/89730
2312 * ipa-inline.c (can_inline_edge_p): Delete the checking for
2313 -flive-patching=inline-only-static.
2314 (can_inline_edge_by_limits_p): Add the checking for
2315 -flive-patching=inline-only-static and grant always_inline
2316 even when -flive-patching=inline-only-static is specified.
2317
2318 2019-04-03 Jeff Law <law@redhat.com>
2319
2320 PR rtl-optimization/81025
2321 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
2322
2323 2019-04-03 Richard Biener <rguenther@suse.de>
2324
2325 PR tree-optimization/84101
2326 * tree-vect-stmts.c: Include explow.h for hard_function_value,
2327 regs.h for hard_regno_nregs.
2328 (cfun_returns): New helper.
2329 (vect_model_store_cost): When vectorizing a store to a decl
2330 we return and the function ABI returns in a multi-reg location
2331 account for the possible spilling that will happen.
2332
2333 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
2334
2335 * config/s390/s390.c (s390_legitimate_address_p): Reject long
2336 displacement addresses for vector mode operands.
2337
2338 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
2339
2340 * config/arc/arc.c (GMASK_LEN): Define.
2341 (arc_restore_callee_saves): Restore first blink when
2342 !optimize_size.
2343
2344 2019-04-03 Sudakshina Das <sudi.das@arm.com>
2345
2346 * doc/extend.texi: Add deprecated comment on sign-return-address
2347 function attribute and add mbranch-protection.
2348 * doc/invoke.texi: Add bti to the options for mbranch-protection.
2349
2350 2019-04-03 Richard Biener <rguenther@suse.de>
2351
2352 PR lto/89896
2353 * lto-wrapper.c (run_gcc): Avoid implicit rules making
2354 the all target phony.
2355
2356 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
2357
2358 PR target/89902
2359 PR target/89903
2360 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
2361 Return false for variable DImode shifts.
2362 (dimode_scalar_chain::compute_convert_gain): Do not handle
2363 register count operand in variable DImode shifts.
2364 (dimode_scalar_chain::make_vector_copies): Remove support to copy
2365 count argument of a variable shift instruction to a vector register.
2366 (dimode_scalar_chain::convert_reg): Remove support to convert
2367 count argument of a variable shift instruction.
2368
2369 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
2370
2371 PR rtl-optimization/84206
2372 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
2373 iterating over loop headers.
2374
2375 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
2376
2377 PR rtl-optimization/85876
2378 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
2379 beyond the original fence.
2380
2381 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
2382
2383 * config.gcc: Mark spu* targets as deprecated/obsolete.
2384
2385 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2386
2387 * config/s390/s390-builtin-types.def: New builtin function type
2388 definitions. Remove unused types.
2389 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
2390 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
2391 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
2392 overloaded builtins.
2393 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
2394 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
2395 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
2396 (vec_double, vec_signed, vec_unsigned): Define to use the new
2397 overloaded builtins.
2398 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
2399 Remove expanders.
2400
2401 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2402
2403 * config/s390/s390-builtin-types.def: New builtin function type
2404 definitions.
2405 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
2406 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
2407 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
2408 (s390_vstrszh, s390_vstrszf): New low-level builtins.
2409 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
2410 constant definitions.
2411 * config/s390/vecintrin.h (vec_search_string_cc)
2412 (vec_search_string_until_zero_cc): New builtin name definitions.
2413 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
2414 expanders.
2415 ("vec_vstrs<mode>"): New insn definition.
2416
2417 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2418
2419 * config/s390/s390-builtin-types.def: Add new builtin function
2420 types.
2421 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
2422 New overloaded builtins.
2423 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
2424 s390_vsrd.
2425 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
2426 (UNSPEC_VEC_SLDBYTE): ... this.
2427 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
2428 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
2429 definitions.
2430 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
2431 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
2432 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
2433
2434 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2435
2436 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
2437 New insn definition.
2438 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
2439 * config/s390/vector.md (V_HW_HSD): ... here.
2440
2441 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2442
2443 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
2444 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
2445 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
2446 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
2447 New insn definitions.
2448
2449 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2450
2451 * config/s390/s390-builtin-types.def: Add new builtin function type.
2452 * config/s390/s390-builtins.def: Add overloaded builtin
2453 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
2454 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
2455 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
2456 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
2457 ("eltswap<mode>"): New expander.
2458 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
2459 insn definitions.
2460
2461 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2462
2463 * config/s390/s390-builtin-types.def: Add new builtin function types.
2464 * config/s390/s390-builtins.def: Add overloaded builtin
2465 s390_vec_revb. Add low-level builtins for vlbr and vstbr
2466 instructions.
2467 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
2468 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
2469 ("bswap<mode>"): New expander.
2470 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
2471
2472 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2473
2474 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
2475 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
2476 vector builtin version number in __VEC__.
2477
2478 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2479
2480 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
2481 iterators.
2482 (SFSI): New mode attribute.
2483 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
2484 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
2485 rename to ...
2486 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
2487 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
2488 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
2489 ("floatsi<mode>2"): Add wcefb instruction.
2490
2491 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2492
2493 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
2494 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
2495 mode iterators.
2496 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
2497 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
2498 support 32 bit fp-int conversions. Rename to ...
2499 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
2500 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
2501 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
2502 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
2503 ... to these.
2504
2505 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2506
2507 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
2508 if-then-else constructs if we can use the select instruction.
2509 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
2510
2511 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2512
2513 * config/s390/s390.md ("*popcountdi_arch13_cc")
2514 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
2515 definition.
2516 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
2517 Append _z196 to make it ...
2518 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
2519 ("popcounthi2_z196"): ... this.
2520 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
2521 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
2522
2523 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2524
2525 * config/s390/s390.c (s390_canonicalize_comparison): Convert
2526 certain compares for arch13 in order to make use of the condition
2527 code result produced by the new instructions.
2528 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
2529 nxrk, and nxgrk instruction patterns.
2530 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
2531 (inv_no): Add new code iterator together with some attributes.
2532 ("*andc_split_<mode>"): Disable splitter for arch13.
2533 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
2534 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
2535 ("*<ANDOR:bitops_name>c<GPR:mode>")
2536 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
2537 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
2538 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
2539 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
2540
2541 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2542
2543 * common/config/s390/s390-common.c (processor_flags_table): New
2544 entry for arch13.
2545 * config.gcc: Support arch13 with the --with-arch= configure flag.
2546 * config/s390/driver-native.c (s390_host_detect_local_cpu):
2547 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
2548 * config/s390/s390.c (s390_get_sched_attrmask)
2549 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
2550 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
2551 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
2552 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
2553 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
2554 definitions.
2555 * config/s390/s390.opt: Support arch13 as processor type in
2556 command line options.
2557
2558 2019-04-02 Martin Liska <mliska@suse.cz>
2559
2560 PR translation/89912
2561 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
2562 Fix param description of graphite-max-arrays-per-scop.
2563
2564 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
2565
2566 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
2567 (ASAN_CC1_SPEC): Use it in 64-bit mode.
2568 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
2569
2570 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
2571
2572 PR rtl-optimization/85412
2573 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
2574 sel_sched_region_1, not after.
2575
2576 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
2577
2578 PR rtl-optimization/86928
2579 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
2580 compute_live if necessary.
2581 (sel_redirect_edge_and_branch): Likewise.
2582
2583 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
2584
2585 PR rtl-optimization/89865
2586 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
2587 register if it is a part of small class.
2588
2589 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
2590
2591 PR rtl-optimization/87273
2592 * sel-sched-ir.c (merge_fences): Remove assert.
2593
2594 2019-04-01 Richard Biener <rguenther@suse.de>
2595
2596 PR tree-optimization/46590
2597 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
2598 (dom_walker::m_reachability): Add in place of...
2599 (dom_walker::m_skip_unreachable_blocks): ...this.
2600 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
2601 Move complex initialization ...
2602 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
2603 lazily and initialize edge flags on each invocation.
2604 (dom_walker::bb_reachable): Use m_reachability.
2605
2606 2019-04-01 Martin Liska <mliska@suse.cz>
2607
2608 PR driver/89861
2609 * opt-suggestions.c (option_proposer::build_option_suggestions):
2610 Add variant without any argument in order to provide better
2611 hints.
2612
2613 2019-04-01 Richard Biener <rguenther@suse.de>
2614
2615 PR c/71598
2616 * gimple.c: Include langhooks.h.
2617 (gimple_get_alias_set): Treat enumeral types as the underlying
2618 integer type.
2619
2620 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
2621 Eric Botcazou <ebotcazou@adacore.com>
2622
2623 PR rtl-optimization/89862
2624 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
2625 that operates on the full registers for WORD_REGISTER_OPERATIONS
2626 architectures.
2627
2628 2019-03-29 Jim Wilson <jimw@sifive.com>
2629
2630 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
2631 Clear MASK_RVC and then set if C subset supported.
2632
2633 2019-03-29 Jakub Jelinek <jakub@redhat.com>
2634
2635 PR c/89872
2636 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
2637 non-addressable complit into its initializer if it is volatile.
2638
2639 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
2640
2641 * opts-common.c (integral_argument): Set errno properly in one case.
2642
2643 2019-03-29 Martin Liska <mliska@suse.cz>
2644
2645 * doc/invoke.texi: Remove -Wchkp from documentation.
2646
2647 2019-03-29 Martin Liska <mliska@suse.cz>
2648
2649 * dbgcnt.c (print_limit_reach): New function.
2650 (dbg_cnt): Use it.
2651
2652 2019-03-29 Martin Liska <mliska@suse.cz>
2653
2654 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
2655 (dbg_cnt_process_opt): Parse first tokens aas
2656 dbg_cnt_process_single_pair is also using strtok.
2657
2658 2019-03-29 Jakub Jelinek <jakub@redhat.com>
2659
2660 PR rtl-optimization/87485
2661 * function.c (expand_function_end): Move stack_protect_epilogue
2662 before loading of return value into hard register(s).
2663
2664 2019-03-28 Jakub Jelinek <jakub@redhat.com>
2665
2666 PR middle-end/89621
2667 * tree-inline.h (struct copy_body_data): Add
2668 dont_remap_vla_if_no_change flag.
2669 * tree-inline.c (remap_type_3, remap_type_2): New functions.
2670 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
2671 and remap_type_2 returns false.
2672 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
2673 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
2674 only from where it is copied to nested contexts.
2675
2676 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
2677
2678 PR target/89865
2679 * config/i386/i386.md (RMW operation with LEA peephole):
2680 Use LEAMODE mode attribute instead of SWI mode iterator for
2681 LEA pattern.
2682
2683 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
2684
2685 PR target/89848
2686 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
2687 Also process XEXP (src, 0) of a shift insn.
2688
2689 2019-03-28 David Malcolm <dmalcolm@redhat.com>
2690
2691 PR middle-end/89725
2692 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
2693 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
2694
2695 2019-03-28 Jakub Jelinek <jakub@redhat.com>
2696
2697 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
2698 test.
2699 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
2700 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
2701 immediately after first one with df_analyze in between, but rather
2702 process all bbs, queueing ones that need second pass in a worklist,
2703 df_analyze, process queued debug insn changes and if second pass is
2704 needed, process bbs from worklist, df_analyze, process queued debug
2705 insns again.
2706
2707 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
2708 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
2709 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
2710
2711 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
2712
2713 PR c/79022
2714 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
2715 definition.
2716
2717 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
2718
2719 PR target/85667
2720 * config/i386/i386.c (ix86_function_value_1): Call the newly added
2721 function for 32-bit MS_ABI.
2722 (function_value_ms_32): New function.
2723
2724 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
2725
2726 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
2727 (movdi): Call gen_movdi_symbol_save_scc.
2728 (gen_movdi_symbol_save_scc): New insn and split.
2729
2730 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
2731
2732 PR rtl-optimization/89313
2733 * function.c (matching_constraint_num): New static function.
2734 (match_asm_constraints_1): Use it. Fixup white space and comment.
2735 Don't replace inputs with non-matching constraints which conflict
2736 with early clobber outputs.
2737
2738 2019-03-27 Jeff Law <law@redhat.com>
2739
2740
2741 PR rtl-optimization/87761
2742 PR rtl-optimization/89826
2743 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
2744 slightly later.
2745 (pass_cprop_hardreg::execute): Call df_analyze after adding the
2746 note problem to get REG_DEAD/REG_UNUSED notes updated.
2747
2748 2019-03-27 Richard Biener <rguenther@suse.de>
2749
2750 PR tree-optimization/89463
2751 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
2752 queue edges to remove.
2753 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
2754 dead stmts. Delay edge removal until PHIs are removed to
2755 make debug-stmt creation not confused by seemingly degenerate
2756 PHIs.
2757
2758 2019-03-27 Alan Modra <amodra@gmail.com>
2759
2760 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
2761 throughout file.
2762 * config/rs6000/darwin.h: Likewise.
2763 * config/rs6000/rs6000.c: Likewise.
2764
2765 2019-03-27 Alan Modra <amodra@gmail.com>
2766
2767 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
2768 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
2769
2770 2019-03-26 Andrew Waterman <andrew@sifive.com>
2771 Jim Wilson <jimw@sifive.com>
2772
2773 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
2774 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
2775 (generic_idivdi, generic_fmul_single, generic_fmul_double)
2776 (generic_fdiv, generic_fsqrt): Add check for generic tune.
2777 (generic_alu): Add auipc to type list.
2778 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
2779 (riscv_microarchitecture): Declare.
2780 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
2781 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
2782 field.
2783 (riscv_microarchitecture): New.
2784 (sifive_7_tune_info): New.
2785 (riscv_cpu_info_table): Add microarchitecture value for rocket and
2786 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
2787 entries.
2788 (riscv_store_data_bypass_p): New.
2789 (riscv_option_override): Set riscv_microarchitecture from
2790 cpu->microarchitecture.
2791 * config/riscv/riscv.md: Include sifive-7.md.
2792 (type): Add auipc.
2793 (tune): New.
2794 (auipc<mode>): Change type to auipc.
2795 (restore_stack_nonlocal): New.
2796 * config/riscv/sifive-7.md: New.
2797 * doc/invoke.texi (RISC-V Options): Update mtune docs.
2798
2799 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
2800
2801 PR target/89827
2802 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
2803 Also process XEXP (src, 0) of a shift insn.
2804
2805 2019-03-26 Richard Biener <rguenther@suse.de>
2806
2807 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
2808 (copy_debug_stmt): Likewise.
2809 (expand_call_inline): Likewise.
2810 (copy_bb): Avoid redundant lookup & set of gimple_block.
2811 * gimple-low.c (lower_gimple_return): Likewise.
2812 (lower_builtin_setjmp): Likewise.
2813
2814 2019-03-26 Jakub Jelinek <jakub@redhat.com>
2815
2816 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
2817 is constant 0, turn into static const data member initialized to false.
2818 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
2819 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
2820
2821 2019-03-26 Jason Merrill <jason@redhat.com>
2822 Jakub Jelinek <jakub@redhat.com>
2823
2824 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
2825 method.
2826 (mem_alloc_description::release_object_overhead): Fix comment typos.
2827 * hash-table.h (hash_table::~hash_table): Call
2828 release_instance_overhead only if m_entries is non-NULL, otherwise
2829 call unregister_descriptor.
2830
2831 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
2832
2833 PR tree-optimization/81740
2834 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
2835 In case of outer loop vectorization, check for backward dependence
2836 at the inner loop if outer loop dependence is reversed.
2837
2838 2019-03-26 Alan Modra <amodra@gmail.com>
2839
2840 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
2841 rs6000_vector_mem init. Correct wI and wJ comment.
2842
2843 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
2844
2845 PR rtl-optimization/88347
2846 PR rtl-optimization/88423
2847 * sched-deps.c (sched_analyze_insn): Take into account that for
2848 tablejumps the barrier appears after a label and a jump_table_data.
2849
2850 2019-03-25 Martin Sebor <msebor@redhat.com>
2851
2852 PR c/89812
2853 * c-common.c (check_user_alignment): Rename local. Correct maximum
2854 alignment in diagnostic. Avoid assuming argument fits in SHWI,
2855 convert it to UHWI when it fits.
2856
2857 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
2858
2859 PR debug/86964
2860 * dwarf2out.c (premark_used_variables): New function.
2861 (prune_unused_types_walk): Do not mark not premarked external
2862 variables.
2863 (prune_unused_types): Call premark_used_variables.
2864
2865 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
2866
2867 PR rtl-optimization/89676
2868 * lra-constraints.c (curr_insn_transform): Do match reload for
2869 early clobbers when the match was successful only for different
2870 registers.
2871
2872 2019-03-25 Martin Sebor <msebor@redhat.com>
2873
2874 * doc/extend.texi (Common Type Attributes): Document vector_size.
2875 (Common Variable Attributes): Mention size constraint. Correct
2876 quoting and typos.
2877 (Vector Extensions): Use @dfn when defining bas type. Clarify
2878 base type and size constraints.
2879
2880 2019-03-25 Richard Biener <rguenther@suse.de>
2881
2882 PR tree-optimization/89789
2883 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
2884 changes from non-undefined back to undefined.
2885
2886 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
2887
2888 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
2889 heap string and a gc string, but since this variable is unknown to
2890 ggc the gc string might get reused and corrupted. Fixed by always
2891 using a heap string.
2892
2893 2019-03-25 Richard Biener <rguenther@suse.de>
2894
2895 PR tree-optimization/89779
2896 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
2897 to remove IV defs, delay actual removal.
2898 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
2899 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
2900 very end, properly also reset loop control IV information.
2901
2902 2019-03-25 Richard Biener <rguenther@suse.de>
2903
2904 PR tree-optimization/89802
2905 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
2906 move EH data to folded stmt.
2907
2908 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
2909
2910 * config/s390/s390-builtin-types.def: Remove few unused types and
2911 fix sort order for others.
2912
2913 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
2914
2915 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
2916 expected and found types with -mdebug during builtin matching.
2917
2918 2019-03-25 Richard Biener <rguenther@suse.de>
2919
2920 PR middle-end/89790
2921 * fold-const.c (operand_equal_p): Revert last change with
2922 updated comment.
2923
2924 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
2925
2926 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
2927 notes for the result of the __tls_get_addr calls.
2928 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
2929
2930 2019-03-24 Jeff Law <law@redhat.com>
2931
2932 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
2933
2934 PR rtl-optimization/87761
2935 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
2936 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
2937 as needed.
2938 (pass_cprop_hardreg::execute): Add df note problem and defer insn
2939 rescans. Reprocess blocks as needed, calling df_analyze before
2940 reprocessing. Always call df_analyze before fixing up debug bind
2941 insns.
2942
2943 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
2944
2945 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
2946 big endian.
2947
2948 2019-03-22 Andrew Pinski <apinski@marvell.com>
2949
2950 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
2951 attrribute for uxtw.
2952
2953 2019-03-26 Jeff Law <law@redhat.com>
2954
2955 PR rtl-optimization/87761
2956 * config/mips/mips-protos.h (mips_split_move): Add new argument.
2957 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
2958 (mips_split_move): Accept new INSN argument. Try to forward SRC
2959 into the next instruction.
2960 (mips_split_move_insn): Pass INSN through to mips_split_move.
2961
2962 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
2963
2964 PR rtl-optimization/89676
2965 * lra-constraints.c (curr_insn_transform): Do match reload for
2966 early clobbers even if the match was successful.
2967
2968 2019-03-22 Jakub Jelinek <jakub@redhat.com>
2969
2970 PR c++/87481
2971 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
2972
2973 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
2974
2975 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
2976
2977 2019-03-22 Jakub Jelinek <jakub@redhat.com>
2978
2979 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
2980 <avx512>_fmsub_<mode>_mask3<round_name>,
2981 <avx512>_fnmadd_<mode>_mask3<round_name>,
2982 <avx512>_fnmsub_<mode>_mask3<round_name>,
2983 avx512f_vmfmadd_<mode>_mask3<round_name>,
2984 avx512f_vmfmsub_<mode>_mask3<round_name>,
2985 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
2986 instead of register_operand and %v instead of v for match_operand 1.
2987 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
2988 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
2989 <round_nimm_predicate> instead of register_operand and %v instead of v
2990 for match_operand 1.
2991
2992 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
2993 <avx512>_fmadd_<mode>_mask3<round_name>,
2994 <avx512>_fmsub_<mode>_mask<round_name>,
2995 <avx512>_fmsub_<mode>_mask3<round_name>,
2996 <avx512>_fnmadd_<mode>_mask<round_name>,
2997 <avx512>_fnmadd_<mode>_mask3<round_name>,
2998 <avx512>_fnmsub_<mode>_mask<round_name>,
2999 <avx512>_fnmsub_<mode>_mask3<round_name>,
3000 <avx512>_fmaddsub_<mode>_mask<round_name>,
3001 <avx512>_fmaddsub_<mode>_mask3<round_name>,
3002 <avx512>_fmsubadd_<mode>_mask<round_name>,
3003 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
3004 <round_nimm_predicate> instead of nonimmediate_operand.
3005 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
3006 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
3007 Use register_operand instead of <round_nimm_predicate> for the
3008 operand that needs to match output.
3009 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
3010 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
3011 Likewise. Formatting fixes.
3012
3013 PR target/89784
3014 * config/i386/i386.c (enum ix86_builtins): Remove
3015 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
3016 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
3017 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
3018 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
3019 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
3020 __builtin_ia32_vfmsubss3_mask3): New builtins.
3021 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
3022 avx512f_vmfmadd_<mode>_mask3<round_name>,
3023 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
3024 *avx512f_vmfmsub_<mode>_mask<round_name>,
3025 avx512f_vmfmsub_<mode>_mask3<round_name>,
3026 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
3027 *avx512f_vmfnmadd_<mode>_mask<round_name>,
3028 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
3029 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
3030 *avx512f_vmfnmsub_<mode>_mask<round_name>,
3031 avx512f_vmfnmsub_<mode>_mask3<round_name>,
3032 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
3033 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
3034 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
3035 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
3036 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
3037 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
3038 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
3039 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
3040 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
3041 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
3042 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
3043 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
3044 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
3045 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
3046 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
3047 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
3048 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
3049 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
3050 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
3051 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
3052 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
3053 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
3054
3055 2019-03-21 Martin Sebor <msebor@redhat.com>
3056
3057 PR tree-optimization/89350
3058 * builtins.c (compute_objsize): Also ignore offsets whose upper
3059 bound is negative.
3060 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
3061 (builtin_memref::builtin_memref): Initialize new member.
3062 Allow EXPR to be null.
3063 (builtin_memref::extend_offset_range): Replace local with a member.
3064 Avoid assuming pointer offsets are unsigned.
3065 (builtin_memref::set_base_and_offset): Determine base object
3066 before computing offset range.
3067 (builtin_access::builtin_access): Handle memset.
3068 (builtin_access::generic_overlap): Replace local with a member.
3069 (builtin_access::strcat_overlap): Same.
3070 (builtin_access::overlap): Same.
3071 (maybe_diag_overlap): Same.
3072 (maybe_diag_access_bounds): Same.
3073 (wrestrict_dom_walker::check_call): Handle memset.
3074 (check_bounds_or_overlap): Same.
3075
3076 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
3077 Jakub Jelinek <jakub@redhat.com>
3078
3079 PR lto/89692
3080 * tree.c (fld_type_variant, fld_incomplete_type_of,
3081 fld_process_array_type): Call fld->pset.add and don't call
3082 add_tree_to_fld_list if it returns true.
3083 (free_lang_data_in_type): Similarly with self-recursive call. Purge
3084 non-marked types from TYPE_NEXT_VARIANT list.
3085 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
3086
3087 2019-03-21 Jakub Jelinek <jakub@redhat.com>
3088
3089 * hash-table.h (hash_table): Add Lazy template parameter defaulted
3090 to false, if true, don't alloc_entries during construction, but defer
3091 it to the first method that needs m_entries allocated.
3092 (hash_table::hash_table, hash_table::~hash_table,
3093 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
3094 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
3095 hash_table::clear_slot, hash_table::traverse_noresize,
3096 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
3097 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
3098 false.
3099 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
3100 NO_INSERT instead of find_with_hash.
3101 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
3102 hash_set::m_table): Add Lazy to template params of hash_table.
3103 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
3104 * attribs.c (test_attribute_exclusions): Likewise.
3105 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
3106 hash_set. Add tests for hash_set with Lazy = true.
3107
3108 2019-03-21 Richard Biener <rguenther@suse.de>
3109
3110 PR tree-optimization/89779
3111 * tree.c (tree_nop_conversion): Consolidate and fix defensive
3112 checks with respect to released SSA names now having error_mark_node
3113 type.
3114 * fold-const.c (operand_equal_p): Likewise.
3115
3116 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
3117
3118 PR target/89775
3119 * config/s390/s390.c (global_not_special_regno_p): Move to make it
3120 available to ...
3121 (s390_optimize_register_info): Use global_not_special_regno_p to
3122 check for global regs.
3123
3124 2019-03-20 Jakub Jelinek <jakub@redhat.com>
3125
3126 PR target/89752
3127 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
3128 update this_alternative nor this_alternative_set.
3129
3130 2019-03-19 Jim Wilson <jimw@sifive.com>
3131
3132 PR target/89411
3133 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
3134 align, size, offset. Use them to handle a BLKmode reference. Update
3135 comment.
3136 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
3137
3138 2019-03-19 Jakub Jelinek <jakub@redhat.com>
3139
3140 PR rtl-optimization/89768
3141 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
3142 instead of GEN_INT.
3143 (unroll_loop_runtime_iterations): Likewise.
3144
3145 2019-03-19 Martin Sebor <msebor@redhat.com>
3146
3147 PR tree-optimization/89644
3148 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
3149 rather than endptr as an indicator of nul-termination.
3150
3151 PR tree-optimization/89644
3152 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
3153 arrays in determining sequence sizes in strncpy and stpncpy.
3154
3155 2019-03-19 Martin Liska <mliska@suse.cz>
3156
3157 PR middle-end/89737
3158 * predict.c (combine_predictions_for_bb): Empty likely_edges and
3159 unlikely_edges if there's an edge that belongs to both these sets.
3160
3161 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
3162
3163 PR target/89746
3164 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
3165 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
3166 go via a stack temporary.
3167
3168 2019-03-19 Jakub Jelinek <jakub@redhat.com>
3169
3170 PR target/89378
3171 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
3172 instead of gen_rtx_SUBREG.
3173 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
3174
3175 2019-03-19 Richard Biener <rguenther@suse.de>
3176
3177 PR debug/88389
3178 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
3179
3180 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
3181
3182 PR lto/87809
3183 PR lto/89335
3184 * tree.c (free_lang_data_in_decl): Do not free context of C++
3185 destrutors.
3186
3187 2019-03-19 Jakub Jelinek <jakub@redhat.com>
3188
3189 PR target/89506
3190 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
3191 subs for the first alternative except when operands[3] is 1.
3192
3193 PR target/89752
3194 * gimplify.c (gimplify_asm_expr): For output argument with
3195 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
3196 diagnose error.
3197
3198 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
3199
3200 PR rtl-optimization/89753
3201 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
3202 explicit unrolling factor even more robust.
3203
3204 2019-03-19 Jakub Jelinek <jakub@redhat.com>
3205
3206 PR target/89726
3207 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
3208 compensation use x2 += 1 instead of x2 -= -1 and when honoring
3209 signed zeros, do another copysign after the compensation.
3210
3211 2019-03-18 Martin Sebor <msebor@redhat.com>
3212
3213 PR tree-optimization/89720
3214 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
3215 more conservatively, the same as anti-range.
3216
3217 2019-03-18 Richard Biener <rguenther@suse.de>
3218
3219 PR middle-end/88945
3220 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
3221 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
3222 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
3223 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
3224
3225 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
3226
3227 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
3228 Extend queue to 1024 entries.
3229 Add "consumed" field.
3230 (gomp_print_output): Remove print_index parameter.
3231 Add final parameter.
3232 Change limit to unsigned.
3233 Use consumed field to implement circular buffer.
3234 Detect interrupted print in final pass.
3235 Flush output at the end.
3236 (run): Update gomp_print_output usage.
3237 (main): Initialize kernargs->output_data.consumed.
3238
3239 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
3240
3241 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
3242 calculation of the minimum number of scalar iterations for
3243 fully-predicated loops.
3244
3245 2019-03-18 Martin Jambor <mjambor@suse.cz>
3246
3247 PR tree-optimization/89546
3248 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
3249 any propagation to its children took place.
3250
3251 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
3252
3253 PR target/89627
3254 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
3255 parameter, and make use of it.
3256 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
3257
3258 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
3259
3260 * config/arc/arc.opt (mcode-density-frame): Get the inital value
3261 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
3262 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
3263 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
3264 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
3265 match what the ops is doing.
3266 (push_multi_fp_blink): Likewise.
3267 * config/arc/arc.c (arc_override_options): Enable enter/leave when
3268 compiling for size and elf target.
3269 (arc_save_callee_enter): Adjust note to match what enter/leave
3270 operation does.
3271
3272 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
3273
3274 * config/arc/arc.md (tst_movb): Fix constraint.
3275
3276 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
3277
3278 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
3279
3280 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
3281
3282 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
3283 * config/arc/arc.c (arc_conditional_register_usage): Remove all
3284 reg_alloc_order references.
3285 (size_alloc_order): Define.
3286 (arc_adjust_reg_alloc_order): New function.
3287 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
3288 order.
3289 (ADJUST_REG_ALLOC_ORDER): Define.
3290 (HONOR_REG_ALLOC_ORDER): Likewise.
3291
3292 2019-03-18 Richard Biener <rguenther@suse.de>
3293
3294 PR target/87561
3295 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
3296 loads and stores a bit more.
3297
3298 2019-03-18 Richard Biener <rguenther@suse.de>
3299
3300 PR target/87561
3301 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
3302 load pessimization to stores as well.
3303
3304 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
3305
3306 PR middle-end/86979
3307 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
3308 successor, use NULL as its av set.
3309
3310 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
3311
3312 PR rtl-optimization/89721
3313 * lra-constraints (invariant_p): Return false if side_effects_p holds.
3314
3315 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
3316
3317 PR target/87532
3318 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3319 When handling vec_extract, use modular arithmetic to allow
3320 constant selectors greater than vector length.
3321 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
3322 V1TImode vectors to have constant selector values greater than 0.
3323 Use modular arithmetic to compute vector index.
3324 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
3325 index for in-memory vectors. Correct code generation for
3326 in-register vectors.
3327 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
3328 compute index.
3329
3330 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
3331
3332 PR c++/88534
3333 PR c++/88537
3334 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
3335 VAR_DECL args.
3336
3337 2019-03-15 Jakub Jelinek <jakub@redhat.com>
3338
3339 PR c++/89709
3340 * tree.c (inchash::add_expr): Strip any location wrappers.
3341 * fold-const.c (operand_equal_p): Move stripping of location wrapper
3342 after hash verification.
3343
3344 PR debug/89704
3345 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
3346 SIGN_EXTEND and ZERO_EXTEND.
3347
3348 2019-03-14 Jason Merrill <jason@redhat.com>
3349 Jakub Jelinek <jakub@redhat.com>
3350
3351 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
3352 than if is_empty (*slot).
3353 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
3354 existing elt and for elt removal.
3355 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
3356 of already removed elt.
3357
3358 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
3359
3360 PR target/89650
3361 * config/i386/i386.c (remove_partial_avx_dependency): Handle
3362 REG_EH_REGION note.
3363
3364 2019-03-14 Martin Liska <mliska@suse.cz>
3365
3366 PR other/89712
3367 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
3368
3369 2019-03-14 Richard Biener <rguenther@suse.de>
3370
3371 PR target/89711
3372 * config/i386/i386.c (make_resolver_func): Properly set
3373 DECL_CONTEXT on the RESULT_DECL.
3374 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
3375
3376 2019-03-14 Richard Biener <rguenther@suse.de>
3377
3378 * gimple-pretty-print.c: Include cfgloop.h.
3379 (dump_gimple_phi): Adjust.
3380 (dump_gimple_bb_header): Dump loop header for GIMPLE.
3381 (pp_cfg_jump): Adjust.
3382 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
3383 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
3384 (lower_phi_internal_fn): Remove.
3385 (verify_gimple_call): Remove IFN_PHI special-casing.
3386 (dump_function_to_file): Dump IL state.
3387 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
3388 done to deal with PHI nodes being present in non-SSA state.
3389
3390 2019-03-14 Jakub Jelinek <jakub@redhat.com>
3391
3392 PR ipa/89684
3393 * multiple_target.c (create_dispatcher_calls): Change
3394 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
3395 In the node->iterate_referring loop, push *ref rather than ref, call
3396 ref->remove_reference () and always pass 0 to iterate_referring.
3397
3398 PR rtl-optimization/89679
3399 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
3400 would contain a paradoxical SUBREG.
3401
3402 2019-03-14 Richard Biener <rguenther@suse.de>
3403
3404 PR tree-optimization/89710
3405 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
3406 safe_dyn_cast.
3407
3408 2019-03-14 Martin Liska <mliska@suse.cz>
3409
3410 * coverage.c (coverage_begin_function): Stream also
3411 end_column.
3412 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
3413 documentation about function declaration location.
3414 * gcov-dump.c (tag_function): Print whole range
3415 of function declaration.
3416 * gcov.c (struct function_info): Add end_column field.
3417 (function_info::function_info): Initialize it.
3418 (output_json_intermediate_file): Output {start,end}_column
3419 fields.
3420 (read_graph_file): Read end_column.
3421
3422 2019-03-14 Richard Biener <rguenther@suse.de>
3423
3424 PR middle-end/89698
3425 * fold-const.c (operand_equal_p): For INDIRECT_REF check
3426 that the access types are similar.
3427
3428 2019-03-14 Jakub Jelinek <jakub@redhat.com>
3429
3430 PR tree-optimization/89703
3431 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
3432 aren't compatible also with builtin_decl_explicit. Check pure
3433 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
3434 and BUILT_IN_STPNCPY{,_CHK}.
3435
3436 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
3437
3438 PR target/89523
3439 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
3440 addr32 prefix to VSIB address for X32.
3441 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
3442 "%M2" to opcode.
3443 (*avx512pf_gatherpf<mode>df_mask): Likewise.
3444 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
3445 (*avx512pf_scatterpf<mode>df_mask): Likewise.
3446 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
3447 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
3448 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
3449 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
3450 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
3451 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
3452 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
3453 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
3454 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
3455 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
3456 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
3457 (*avx512f_scatterdi<mode>): Likewise.
3458
3459 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
3460
3461 PR target/85860
3462 * lra-constraints.c (inherit_in_ebb): Update
3463 potential_reload_hard_regs along with live_hard_regs.
3464
3465 2019-03-13 Jakub Jelinek <jakub@redhat.com>
3466
3467 PR debug/89498
3468 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
3469 DWARF_OFFSET_SIZE.
3470 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
3471
3472 2019-03-13 Martin Sebor <msebor@redhat.com>
3473
3474 PR tree-optimization/89662
3475 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
3476 has a size.
3477
3478 2019-03-13 Richard Biener <rguenther@suse.de>
3479
3480 PR middle-end/89677
3481 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
3482 throw FP expressions at tree-affine.
3483
3484 2019-03-14 Richard Biener <rguenther@suse.de>
3485
3486 * tree-pretty-print.c (dump_generic_node): For -gimple properly
3487 dump negative integer constants using _Literal (type) -num.
3488
3489 2019-03-13 Jakub Jelinek <jakub@redhat.com>
3490
3491 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
3492 nonlocal_value member.
3493
3494 PR middle-end/88588
3495 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
3496 (ipa_simd_modify_function_body): Handle PHIs.
3497
3498 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
3499
3500 * config/s390/s390.c (s390_option_override_internal): Use more
3501 aggressive inlining parameters.
3502
3503 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
3504
3505 * config/s390/3906.md: New file.
3506 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
3507 (LONGRUNNING_THRESHOLD): Remove.
3508 (MAX_SCHED_MIX_SCORE): Decrease.
3509 (MAX_SCHED_MIX_DISTANCE): Decrease.
3510 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
3511 (struct s390_sched_state): New struct to hold scheduling state.
3512 (S390_SCHED_STATE_NORMAL): Remove.
3513 (S390_SCHED_STATE_CRACKED): Remove.
3514 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
3515 (s390_get_sched_attrmask): Use new attribute.
3516 (s390_get_unit_mask): Use new units.
3517 (s390_is_fpd): New function.
3518 (s390_is_fxd): New function.
3519 (s390_is_longrunning): New function.
3520 (s390_sched_score): Use new functions.
3521 (s390_sched_reorder): Likewise.
3522 (s390_sched_variable_issue): Rework and use new functions.
3523 (s390_sched_init): Use new functions.
3524 * config/s390/s390.h (s390_tune_attr): Add z14.
3525 * config/s390/s390.md: Add z14.
3526
3527 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
3528
3529 * config/s390/2964.md: Update pipeline description.
3530 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
3531 (LONGRUNNING_THRESHOLD): Remove.
3532 (LATENCY_FACTOR): Remove.
3533 (s390_get_unit_mask): Add unit.
3534 (s390_sched_score): Use fxd/fpd.
3535 (s390_sched_variable_issue): Use fxd/fpd.
3536
3537 2019-03-12 Martin Liska <mliska@suse.cz>
3538
3539 * config/i386/i386.c: Reword an error message.
3540
3541 2019-03-12 Martin Jambor <mjambor@suse.cz>
3542
3543 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
3544 terminate with newline.
3545
3546 2019-03-12 Jakub Jelinek <jakub@redhat.com>
3547
3548 PR target/52726
3549 * config/s390/s390.md (tabort): Use %wd instead of
3550 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
3551 letters and periods.
3552 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
3553 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
3554 's with %< and %>.
3555
3556 PR middle-end/89663
3557 * builtins.c (expand_builtin_int_roundingfn,
3558 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
3559 gcc_unreachable if validate_arglist fails.
3560
3561 2019-03-12 Richard Biener <rguenther@suse.de>
3562
3563 PR tree-optimization/89664
3564 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
3565 free the occurance tree after the early out.
3566
3567 2019-03-11 Jakub Jelinek <jakub@redhat.com>
3568
3569 PR middle-end/89655
3570 PR bootstrap/89656
3571 * vr-values.c (vr_values::update_value_range): If
3572 old_vr->varying_p (), don't update it, make new_vr also VARYING
3573 and return false.
3574
3575 2019-03-11 Martin Liska <mliska@suse.cz>
3576
3577 * config/aarch64/aarch64.c (aarch64_override_options_internal):
3578 Fix double string quoting.
3579
3580 2019-03-11 Martin Liska <mliska@suse.cz>
3581
3582 * collect-utils.c (collect_wait): Wrap apostrophes
3583 in gcc internal format with %'.
3584 * collect2.c (main): Likewise.
3585 (scan_prog_file): Likewise.
3586 (scan_libraries): Likewise.
3587 * config/i386/i386.c (ix86_expand_call): Likewise.
3588 (ix86_handle_interrupt_attribute): Likewise.
3589 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
3590 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
3591 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
3592 * lto-wrapper.c (find_crtoffloadtable): Likewise.
3593 * symtab.c (symtab_node::verify_base): Likewise.
3594 * tree-cfg.c (verify_gimple_label): Likewise.
3595 * tree.c (verify_type_variant): Likewise.
3596
3597 2019-03-11 Martin Liska <mliska@suse.cz>
3598
3599 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
3600 in a string format message and fix GNU coding style.
3601 (expand_builtin_set_thread_pointer): Likewise.
3602 * common/config/aarch64/aarch64-common.c
3603 (aarch64_rewrite_selected_cpu): Likewise.
3604 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
3605 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
3606 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
3607 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
3608 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
3609 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
3610 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
3611 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
3612 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
3613 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
3614 Likewise.
3615 * common/config/riscv/riscv-common.c
3616 (riscv_subset_list::parsing_subset_version): Likewise.
3617 (riscv_subset_list::parse_std_ext): Likewise.
3618 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
3619 (riscv_subset_list::parse): Likewise.
3620 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
3621 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
3622 (aarch64_override_options_internal): Likewise.
3623 (aarch64_validate_mcpu): Likewise.
3624 (aarch64_validate_march): Likewise.
3625 (aarch64_validate_mtune): Likewise.
3626 (aarch64_override_options): Likewise.
3627 * config/alpha/alpha.c (alpha_option_override): Likewise.
3628 * config/arc/arc.c (arc_init): Likewise.
3629 (parse_mrgf_banked_regs_option): Likewise.
3630 (arc_override_options): Likewise.
3631 (arc_expand_builtin_aligned): Likewise.
3632 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
3633 (arm_expand_builtin): Likewise.
3634 * config/arm/arm.c (arm_option_check_internal): Likewise.
3635 (arm_configure_build_target): Likewise.
3636 (arm_option_override): Likewise.
3637 (arm_options_perform_arch_sanity_checks): Likewise.
3638 (arm_handle_cmse_nonsecure_entry): Likewise.
3639 (arm_handle_cmse_nonsecure_call): Likewise.
3640 (arm_tls_referenced_p): Likewise.
3641 (thumb1_expand_prologue): Likewise.
3642 * config/avr/avr.c (avr_option_override): Likewise.
3643 * config/bfin/bfin.c (bfin_option_override): Likewise.
3644 * config/c6x/c6x.c (c6x_option_override): Likewise.
3645 * config/cr16/cr16.c (cr16_override_options): Likewise.
3646 * config/cris/cris.c (cris_option_override): Likewise.
3647 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
3648 * config/darwin-c.c (macosx_version_as_macro): Likewise.
3649 * config/darwin.c (darwin_override_options): Likewise.
3650 * config/frv/frv.c (frv_expand_builtin): Likewise.
3651 * config/h8300/h8300.c (h8300_option_override): Likewise.
3652 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
3653 (ix86_option_override_internal): Likewise.
3654 (warn_once_call_ms2sysv_xlogues): Likewise.
3655 (ix86_expand_prologue): Likewise.
3656 (split_stack_prologue_scratch_regno): Likewise.
3657 (ix86_warn_parameter_passing_abi): Likewise.
3658 * config/ia64/ia64.c (fix_range): Likewise.
3659 * config/m68k/m68k.c (m68k_option_override): Likewise.
3660 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
3661 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
3662 (mips_set_compression_mode): Likewise.
3663 * config/mmix/mmix.c (mmix_option_override): Likewise.
3664 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
3665 * config/msp430/msp430.c (msp430_option_override): Likewise.
3666 * config/nds32/nds32.c (nds32_option_override): Likewise.
3667 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
3668 (nios2_option_override): Likewise.
3669 (nios2_expand_custom_builtin): Likewise.
3670 * config/nvptx/mkoffload.c (main): Likewise.
3671 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
3672 * config/pa/pa.c (fix_range): Likewise.
3673 (pa_option_override): Likewise.
3674 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
3675 (riscv_option_override): Likewise.
3676 * config/rl78/rl78.c (rl78_option_override): Likewise.
3677 * config/rs6000/aix61.h: Likewise.
3678 * config/rs6000/aix71.h: Likewise.
3679 * config/rs6000/aix72.h: Likewise.
3680 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
3681 * config/rs6000/freebsd64.h: Likewise.
3682 * config/rs6000/linux64.h: Likewise.
3683 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
3684 (rs6000_expand_zeroop_builtin): Likewise.
3685 (rs6000_expand_mtfsb_builtin): Likewise.
3686 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
3687 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
3688 (rs6000_invalid_builtin): Likewise.
3689 (rs6000_expand_split_stack_prologue): Likewise.
3690 * config/rs6000/rtems.h: Likewise.
3691 * config/rx/rx.c (valid_psw_flag): Likewise.
3692 (rx_expand_builtin): Likewise.
3693 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
3694 * config/s390/s390.c (s390_expand_builtin): Likewise.
3695 (s390_function_profiler): Likewise.
3696 (s390_option_override_internal): Likewise.
3697 (s390_option_override): Likewise.
3698 * config/sh/sh.c (sh_option_override): Likewise.
3699 (sh_builtin_saveregs): Likewise.
3700 (sh_fix_range): Likewise.
3701 * config/sh/vxworks.h: Likewise.
3702 * config/sparc/sparc.c (sparc_option_override): Likewise.
3703 * config/spu/spu.c (spu_option_override): Likewise.
3704 (fix_range): Likewise.
3705 * config/visium/visium.c (visium_option_override): Likewise.
3706 (visium_handle_interrupt_attr): Likewise.
3707 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
3708 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
3709 (dbg_cnt_process_opt): Likewise.
3710 * dwarf2out.c (output_dwarf_version): Likewise.
3711 * except.c (expand_eh_return): Likewise.
3712 * gcc.c (defined): Likewise.
3713 (driver_handle_option): Likewise.
3714 (process_command): Likewise.
3715 (compare_files): Likewise.
3716 (driver::prepare_infiles): Likewise.
3717 (driver::do_spec_on_infiles): Likewise.
3718 (driver::maybe_run_linker): Likewise.
3719 * omp-offload.c (oacc_parse_default_dims): Likewise.
3720 * opts-global.c (handle_common_deferred_options): Likewise.
3721 * opts.c (parse_sanitizer_options): Likewise.
3722 (common_handle_option): Likewise.
3723 (enable_warning_as_error): Likewise.
3724 * passes.c (enable_disable_pass): Likewise.
3725 * plugin.c (parse_plugin_arg_opt): Likewise.
3726 (default_plugin_dir_name): Likewise.
3727 * targhooks.c (default_expand_builtin_saveregs): Likewise.
3728 (default_pch_valid_p): Likewise.
3729 * toplev.c (init_asm_output): Likewise.
3730 (process_options): Likewise.
3731 (toplev::run_self_tests): Likewise.
3732 * tree-cfg.c (verify_gimple_call): Likewise.
3733 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
3734 (tree_inlinable_function_p): Likewise.
3735 * var-tracking.c (vt_find_locations): Likewise.
3736
3737 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
3738
3739 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
3740 only on the else branch.
3741
3742 2019-03-11 Martin Liska <mliska@suse.cz>
3743
3744 * gcov.c (output_intermediate_json_line): Print function
3745 name of each line.
3746 (output_json_intermediate_file): Add new argument.
3747 * doc/gcov.texi: Document the change.
3748
3749 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
3750
3751 PR rtl-optimization/89588
3752 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
3753 explicit unrolling factor more robust.
3754
3755 2019-03-11 Richard Biener <rguenther@suse.de>
3756
3757 PR tree-optimization/89649
3758 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
3759 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
3760 on the prolog and epilog loops.
3761 (vect_loop_versioning): Return copy of loop.
3762 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
3763 on the non-vectorized version of the loop.
3764
3765 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
3766
3767 PR target/68924
3768 * config/i386/sse.md (*vec_extractv2di_0_sse):
3769 Add (=r,x) alternative and corresponding splitter.
3770
3771 2019-03-10 Martin Jambor <mjambor@suse.cz>
3772
3773 PR tree-optimization/85762
3774 PR tree-optimization/87008
3775 PR tree-optimization/85459
3776 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
3777 it points to if there is a type changing MEM_REF. Adjust all callers.
3778 (build_accesses_from_assign): Disable total scalarization if
3779 contains_vce_or_bfcref_p returns true through the new parameter, for
3780 both rhs and lhs.
3781
3782 2019-03-09 Jakub Jelinek <jakub@redhat.com>
3783
3784 PR c/88568
3785 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
3786 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
3787
3788 PR target/79645
3789 * common.opt (fdiagnostics-show-labels,
3790 fdiagnostics-show-line-numbers, fdiagnostics-format=,
3791 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
3792 gas-locview-support, ginline-points, ginternal-reset-location-views):
3793 Terminate description text with a dot.
3794 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
3795 * config/mcore/mcore.opt (m210, m340): Likewise.
3796 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
3797 mnops=): Start description text with a capital letter.
3798 * config/arc/arc.opt (msize-level=): Likewise.
3799 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
3800 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
3801 mnewlib): Likewise.
3802 * config/ft32/ft32.opt (msim): Likewise.
3803 (mft32b, mcompress): Likewise. Terminate description text with a dot.
3804 (mnodiv, mnopm): Terminate description text with a dot.
3805 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
3806 a colon.
3807 * config/i386/i386.opt (prefer_vector_width, instrument_return):
3808 Likewise.
3809 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
3810 text.
3811
3812 PR rtl-optimization/89634
3813 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
3814 are modified in BB_END (e->src) instruction.
3815
3816 2019-03-08 David Malcolm <dmalcolm@redhat.com>
3817
3818 PR target/79926
3819 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
3820 messages more amenable to translation, and improve wording.
3821
3822 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
3823
3824 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
3825 ud- and du-chains between phases.
3826
3827 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
3828
3829 PR debug/89631
3830 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
3831 instead of POLY_INT_CST.
3832
3833 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
3834
3835 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
3836 requirement.
3837
3838 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
3839
3840 PR target/68924
3841 PR target/78782
3842 PR target/87558
3843 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
3844 (_mm_storeu_si64): Ditto.
3845
3846 2019-03-08 Martin Liska <mliska@suse.cz>
3847
3848 PR target/86952
3849 * config/i386/i386.c (ix86_option_override_internal): Disable
3850 jump tables when retpolines are used.
3851
3852 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
3853
3854 PR go/63560
3855 * ipa-split.c (execute_split_functions): Do not split
3856 'noinline' or 'section' function.
3857
3858 2019-03-08 Jakub Jelinek <jakub@redhat.com>
3859
3860 PR target/79846
3861 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
3862 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
3863 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
3864
3865 PR ipa/80000
3866 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
3867 from diagnostics. Formatting fixes.
3868
3869 PR target/85665
3870 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
3871 warn_odr diagnostics.
3872
3873 PR other/80058
3874 * lra-constraints.c (process_alt_operands): Avoid one space before
3875 " at the end of line and another after " on another line in a string
3876 literal.
3877 * attribs.c (handle_dll_attribute): Likewise.
3878 * config/avr/avr-devices.c (avr_texinfo): Likewise.
3879
3880 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
3881 warning_at or inform messages in G_() if there is no ?:.
3882
3883 PR tree-optimization/89550
3884 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
3885 returned true. Formatting fixes.
3886 (expand_builtin_strnlen): Formatting fixes.
3887 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
3888 if warning_at returned true.
3889 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
3890
3891 2019-03-08 Richard Biener <rguenther@suse.de>
3892
3893 PR middle-end/89578
3894 * cfgloop.h (struct loop): Add owned_clique field.
3895 * cfgloopmanip.c (copy_loop_info): Copy it.
3896 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
3897 cliques.
3898 * tree-inline.c (copy_loops): Remap owned_clique.
3899 * lto-streamer-in.c (input_cfg): Stream owned_clique.
3900 * lto-streamer-out.c (output_cfg): Likewise.
3901
3902 2019-03-08 Jakub Jelinek <jakub@redhat.com>
3903
3904 PR target/80190
3905 * config/darwin.c: Include intl.h.
3906 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
3907 composing the message out of two separate parts.
3908
3909 2019-03-07 Jakub Jelinek <jakub@redhat.com>
3910
3911 PR target/80003
3912 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
3913 doesn't start with a capital letter and doesn't end with a dot.
3914 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
3915 with a capital letter.
3916 (ix86_mangle_function_version_assembler_name): Likewise.
3917 (ix86_generate_version_dispatcher_body): Likewise.
3918 (fold_builtin_cpu): Likewise.
3919 (get_builtin_code_for_version): Likewise. Remove extraneous space.
3920 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
3921 translators, wrap full type name in %qs.
3922
3923 PR translation/79999
3924 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
3925 depend clause with source (or sink) modifier.
3926 * omp-expand.c (expand_omp_ordered_sink): Likewise.
3927
3928 PR target/89602
3929 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
3930 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
3931 (avx512f_load<mode>_mask): New define_expand.
3932 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
3933 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
3934 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
3935 __builtin_ia32_movess_mask): New builtins.
3936 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
3937 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
3938 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
3939 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
3940
3941 2019-03-07 Martin Jambor <mjambor@suse.cz>
3942
3943 PR lto/87525
3944 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
3945 for extern inline functions.
3946
3947 2019-03-07 Martin Jambor <mjambor@suse.cz>
3948
3949 PR ipa/88235
3950 * cgraph.h (cgraph_node): New inline method former_thunk_p.
3951 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
3952 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
3953 have multiple callees. At the end check if declarations match as
3954 opposed to cgraph_nodes.
3955
3956 2019-03-07 Martin Liska <mliska@suse.cz>
3957
3958 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
3959 which is equivalent to searching for this in clones chain.
3960 * symtab.c (symtab_node::verify_base): Similarly compare ASM
3961 names with a neighbour and special case first node in a chain.
3962
3963 2019-01-25 Jason Merrill <jason@redhat.com>
3964
3965 PR c++/80916 - spurious "static but not defined" warning.
3966 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
3967 for an internal symbol with DECL_EXTERNAL.
3968
3969 2019-04-07 Richard Biener <rguenther@suse.de>
3970
3971 PR middle-end/89618
3972 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
3973 * tree-inline.c (copy_loops): Simplify.
3974
3975 2019-03-07 Martin Liska <mliska@suse.cz>
3976
3977 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
3978
3979 2019-03-07 Richard Biener <rguenther@suse.de>
3980
3981 PR tree-optimization/89595
3982 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
3983 stmt iterator as reference, take boolean output parameter to
3984 indicate whether the stmt was removed and thus the iterator
3985 already advanced.
3986 (dom_opt_dom_walker::before_dom_children): Re-iterate over
3987 stmts created by folding.
3988
3989 2019-03-07 Jakub Jelinek <jakub@redhat.com>
3990
3991 PR c++/89585
3992 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
3993 at toplevel.
3994
3995 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
3996
3997 PR rtl-optimization/88845
3998 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
3999 LRA.
4000 * lra.c (remove_scratches_1): New function.
4001 (remove_scratches): Use it.
4002 (lra_emit_move): Likewise.
4003
4004 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
4005
4006 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
4007 unaligned_access variable.
4008 * config/arc/arc.c (arc_override_options): Set unaligned access
4009 default on for HS CPUs.
4010 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
4011
4012 2019-03-06 Martin Liska <mliska@suse.cz>
4013
4014 PR gcov-profile/89577
4015 * doc/gcov.texi: Prefer to use --coverage.
4016 * doc/sourcebuild.texi: Likewise.
4017
4018 2019-03-02 Jason Merrill <jason@redhat.com>
4019
4020 PR c++/86485 - -Wmaybe-unused with empty class ?:
4021 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
4022
4023 2019-03-05 Jakub Jelinek <jakub@redhat.com>
4024
4025 PR target/89587
4026 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
4027 if_multiarch.
4028
4029 PR middle-end/89590
4030 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
4031 exactly one argument.
4032
4033 2019-03-05 Jakub Jelinek <jakub@redhat.com>
4034 Richard Sandiford <richard.sandiford@arm.com>
4035
4036 PR tree-optimization/89570
4037 * match.pd (vec_cond into cond_op simplification): Don't use
4038 get_conditional_internal_fn, use as_internal_fn (cond_op).
4039
4040 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
4041
4042 PR target/89222
4043 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
4044 to decide when to split off a non-zero offset from a symbol.
4045 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
4046 in function symbols.
4047
4048 2019-03-05 Richard Biener <rguenther@suse.de>
4049
4050 PR tree-optimization/89594
4051 * tree-if-conv.c (pass_if_conversion::execute): Handle
4052 case where .LOOP_VECTORIZED_FUNCTION was removed.
4053
4054 2019-03-05 Jakub Jelinek <jakub@redhat.com>
4055
4056 PR bootstrap/89560
4057 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
4058 instead alloca it only when needed with the needed size.
4059
4060 PR tree-optimization/89570
4061 * match.pd (vec_cond into cond_op simplification): Guard with
4062 vectorized_internal_fn_supported_p test and #if GIMPLE.
4063
4064 PR tree-optimization/89566
4065 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
4066 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
4067 Punt if get_user_idx_format succeeds, but idx_format argument is
4068 not provided or doesn't have pointer type, or if idx_args is above
4069 number of provided arguments.
4070
4071 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
4072
4073 PR tree-optimization/89437
4074 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
4075
4076 2019-03-04 Richard Biener <rguenther@suse.de>
4077
4078 PR middle-end/89572
4079 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
4080 safe_dyn_cast.
4081
4082 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
4083
4084 PR tree-optimization/89487
4085 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
4086 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
4087 (distribute_loop): Don't do runtime alias check if there is non-
4088 addressable data reference.
4089 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
4090 is a register variable.
4091
4092 2019-03-02 Jakub Jelinek <jakub@redhat.com>
4093
4094 PR target/89506
4095 * config/arm/arm.md (cmpsi2_addneg): Use
4096 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
4097 If operands[2] is 0 or INT_MIN, force use of subs.
4098 (*compare_scc splitter): Use gen_int_mode.
4099 (*negscc): Likewise.
4100 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
4101
4102 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
4103 Monk Chiang <sh.chiang04@gmail.com>
4104
4105 * common/config/riscv/riscv-common.c: Include sstream.
4106 (riscv_subset_list::to_string): New.
4107 (riscv_arch_str): Likewise.
4108 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
4109 * config.in: Regen.
4110 * config/riscv/riscv-protos.h (riscv_arch_str): New.
4111 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
4112 (riscv_emit_attribute): New.
4113 (riscv_file_start): Emit attribute if needed.
4114 (riscv_option_override): Init riscv_emit_attribute_p.
4115 * config/riscv/riscv.opt (mriscv-attribute): New option.
4116 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
4117 * configure: Regen.
4118 * doc/install.texi: Document --with-riscv-attribute.
4119 * doc/invoke.texi: Document -mriscv-attribute.
4120
4121 * common/config/riscv/riscv-common.c:
4122 Include config/riscv/riscv-protos.h.
4123 (INCLUDE_STRING): Defined.
4124 (RISCV_DONT_CARE_VERSION): Defined.
4125 (riscv_subset_t): Declare.
4126 (riscv_subset_t::riscv_subset_t): New.
4127 (riscv_subset_list): Declare.
4128 (riscv_subset_list::riscv_subset_list): New.
4129 (riscv_subset_list::~riscv_subset_list): Likewise.
4130 (riscv_subset_list::parsing_subset_version): Likewise.
4131 (riscv_subset_list::parse_std_ext): Likewise.
4132 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
4133 (riscv_subset_list::add): Likewise.
4134 (riscv_subset_list::lookup): Likewise.
4135 (riscv_subset_list::xlen): Likewise.
4136 (riscv_subset_list::parse): Likewise.
4137 (riscv_supported_std_ext): Likewise.
4138 (current_subset_list): Likewise.
4139 (riscv_parse_arch_string): Using riscv_subset_list::parse to
4140 parse.
4141
4142 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
4143
4144 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
4145 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
4146 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
4147
4148 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
4149
4150 PR rtl-optimization/85899
4151 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
4152 fallthru edges leading to the exit block.
4153
4154 2019-03-01 Tamar Christina <tamar.christina@arm.com>
4155
4156 PR target/89517
4157 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
4158 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
4159
4160 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
4161
4162 PR tree-optimization/89535
4163 * tree-vect-stmts.c (vectorizable_call): Record the vector types
4164 for each operand. Calculate the fallback choice for mask operands
4165 and pass it to vect_get_vec_def_for_operand.
4166
4167 2019-03-01 Richard Biener <rguenther@suse.de>
4168
4169 PR middle-end/89541
4170 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
4171 get virtual operands.
4172 (get_expr_operands): Handle CONST_DECL like other decls.
4173
4174 2019-03-01 Jakub Jelinek <jakub@redhat.com>
4175
4176 PR middle-end/89503
4177 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
4178 on DECL_P and EXPR_P.
4179
4180 2019-03-01 Richard Biener <rguenther@suse.de>
4181
4182 PR middle-end/89497
4183 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
4184 argument, defaulted to zero.
4185 * passes.c (execute_function_todo): Pass down SSA update flags
4186 to cleanup_tree_cfg.
4187 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
4188 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
4189 form if requested.
4190 (cleanup_tree_cfg): Get and pass down SSA update flags.
4191
4192 2019-03-01 Jakub Jelinek <jakub@redhat.com>
4193
4194 PR bootstrap/89539
4195 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
4196 early_lto_debug argument.
4197
4198 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
4199
4200 PR tree-optimization/89536
4201 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
4202 only whether bit #0 of the value is 0 instead of the entire value.
4203
4204 2019-02-28 Marek Polacek <polacek@redhat.com>
4205
4206 PR c++/87068 - missing diagnostic with fallthrough statement.
4207 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
4208 at the end of a seq, save its location to walk_stmt_info.
4209 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
4210 a switch.
4211
4212 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
4213
4214 PR lto/88585
4215 * tree.c (find_atomic_core_type): Move ahead in file.
4216 (check_base_type): Correctly compare alignments of atomic types.
4217
4218 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
4219
4220 PR target/89455
4221 * config/i386/i386.c (get_builtin_code_for_version): Identify
4222 Westmere from PCLMUL, instead of AES.
4223
4224 2019-02-28 Jakub Jelinek <jakub@redhat.com>
4225
4226 PR target/89434
4227 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
4228 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
4229 -UINTVAL (...).
4230
4231 2019-02-28 Tamar Christina <tamar.christina@arm.com>
4232
4233 PR target/88530
4234 * config/aarch64/aarch64-option-extensions.def: Document it.
4235 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
4236 if empty hwcaps.
4237
4238 2019-02-28 Jakub Jelinek <jakub@redhat.com>
4239
4240 PR c/89520
4241 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
4242 builtins if they don't have a single scalar floating point argument.
4243 Formatting fixes.
4244
4245 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
4246
4247 PR rtl-optimization/89490
4248 * varasm.c (get_block_for_section): Bail out for mergeable sections.
4249 (default_use_anchors_for_symbol_p, output_object_block): Assert the
4250 block section is not mergeable.
4251
4252 2019-02-27 Jakub Jelinek <jakub@redhat.com>
4253
4254 PR target/70341
4255 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
4256 old define_insn to ...
4257 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
4258 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
4259 Rename old define_insn to ...
4260 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
4261 (thumb2_casesi_internal_pic): New define_expand. Rename old
4262 define_insn to ...
4263 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
4264 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
4265 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
4266
4267 2019-02-27 Richard Biener <rguenther@suse.de>
4268
4269 PR debug/88878
4270 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
4271
4272 2019-02-27 Richard Biener <rguenther@suse.de>
4273
4274 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
4275 building.
4276
4277 2019-02-27 Richard Biener <rguenther@suse.de>
4278
4279 PR debug/88878
4280 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
4281 parameter, prefix section name with .gnu.debuglto_ if true.
4282 (dwarf2out_finish): Pass false to output_comdat_type_unit.
4283 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
4284
4285 2019-02-27 Richard Biener <rguenther@suse.de>
4286
4287 PR debug/89514
4288 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
4289 rather than on use_debug_types, doing what output_die does.
4290 (value_format): Likewise.
4291
4292 2019-02-27 Martin Jambor <mjambor@suse.cz>
4293 Martin Sebor <msebor@redhat.com>
4294
4295 * doc/invoke.texi (Warning Options): Reword description of
4296 -Wno-absolute-value.
4297
4298 2019-02-27 Jakub Jelinek <jakub@redhat.com>
4299
4300 PR tree-optimization/89280
4301 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
4302 builtin_setjmp_setup_bb): New functions.
4303 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
4304 When visiting __builtin_setjmp_setup block, queue in special
4305 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
4306 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
4307 from visited after the loop if they don't have any visited successor
4308 blocks.
4309
4310 2018-02-26 Steve Ellcey <sellcey@marvell.com>
4311
4312 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
4313 New function.
4314 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
4315
4316 2019-02-26 Jakub Jelinek <jakub@redhat.com>
4317
4318 PR c++/89507
4319 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
4320 with types other than sizetype/ssizetype.
4321
4322 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
4323
4324 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
4325 (enum sparc_processor_type): ...this.
4326 (enum sparc_code_model_type): New enumeration type.
4327 (enum sparc_memory_model_type): Tweak comments.
4328 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
4329 (mtune): Likewise.
4330 (mcmodel): Use sparc_code_model enumeration and variable.
4331 (sparc_code_model): New enumeration.
4332 (mdebug): Add Undocumented marker.
4333 * config/sparc/sparc.h (enum cmodel): Delete.
4334 (sparc_cmodel): Likewise.
4335 (TARGET_CM_MEDLOW): Adjust to above renaming.
4336 (TARGET_CM_MEDMID): Likewise.
4337 (TARGET_CM_MEDANY): Likewise.
4338 (TARGET_CM_EMBMEDANY): Likewise.
4339 * config/sparc/sparc.c (sparc_cmodel): Delete.
4340 (sparc_option_override): Remove string/value mapping support for the
4341 code model. Move code and memory model support to after the handling
4342 of target flags. Do private machine setup last.
4343 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
4344 (sparc_legitimize_reload_address): Likewise.
4345 (sparc_output_mi_thunk): Likewise.
4346 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
4347
4348 2019-02-26 Jakub Jelinek <jakub@redhat.com>
4349
4350 PR tree-optimization/89500
4351 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
4352 (handle_builtin_strlen): Remove noncst_bound variable. Always
4353 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
4354 cst if the first cst bytes starting at x are known to be non-zero,
4355 even if the string is not zero terminated. Don't try to modify
4356 *si for strnlen. Update strlen_to_stridx only for strlen or if
4357 we can prove strnlen returns the same value as strlen would.
4358
4359 2019-02-26 Martin Liska <mliska@suse.cz>
4360
4361 * alloc-pool.h (struct pool_usage): Remove extra
4362 print_dash_line.
4363 * bitmap.h (struct bitmap_usage): Likewise.
4364 * ggc-common.c (struct ggc_usage): Likewise.
4365 * mem-stats.h (struct mem_usage): Likewise.
4366 (mem_alloc_description::dump): Print dash lines
4367 here and repeat header at the end of a table report.
4368 It's then more readable.
4369 * tree-phinodes.c (phinodes_print_statistics): Make
4370 horizontal alignment.
4371 * tree-ssanames.c (ssanames_print_statistics): Likewise.
4372 * vec.c (struct vec_usage): Remove extra print_dash_line.
4373 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
4374
4375 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
4376
4377 * doc/extend.texi (__builtin_object_size):
4378 Use @pxref instead of @xref inside parenthesis.
4379 (__builtin_has_attribute): Add missing comma after @xref.
4380 (__builtin_object_size): Ditto.
4381 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
4382 * fortran/invoke.texi (-ffpe-trap): Use @var for every item
4383 in the list.
4384
4385 2019-02-26 Jeff Law <law@redhat.com>
4386
4387 PR rtl-optimization/87761
4388 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
4389 detect obviously dead insns and delete them.
4390
4391 2019-02-26 Richard Biener <rguenther@suse.de>
4392
4393 PR tree-optimization/89505
4394 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
4395 to handle restrict pointed-to vars with multiple subvars
4396 correctly.
4397
4398 2019-02-26 Richard Biener <rguenther@suse.de>
4399
4400 PR tree-optimization/89489
4401 * tree-parloops.c (create_loop_fn): Copy over last_clique.
4402
4403 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
4404
4405 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
4406 and move around comment.
4407 <BIT_AND_EXPR>: Likewise.
4408 <BIT_NOT_EXPR>: Add specific handling for boolean types.
4409
4410 2019-02-26 Jakub Jelinek <jakub@redhat.com>
4411
4412 PR target/89474
4413 * config/i386/i386.c (remove_partial_avx_dependency): Call
4414 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
4415 after changing possibly many instructions to use that pseudo. Fix up
4416 insertion of v4sf_const0 setter at the start of bb.
4417
4418 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
4419
4420 PR c/80409
4421 * doc/extend.texi (Variadic Pointer Args): New section.
4422
4423 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
4424 Martin Sebor <msebor@gmail.com>
4425
4426 * common.opt (Wattribute-alias): Likewise.
4427 * doc/invoke.texi (Option Summary): List general form of
4428 -Wattribute-alias=. List positive form of -Wmissing-attributes.
4429 (-Wmissing-attributes): Invert entry, rewrite and correct default.
4430 Add cross-references.
4431 (-Wattribute-alias): Rewrite and correct default. Mention
4432 considered attributes (same as for -Wmissing-attributes).
4433
4434 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
4435
4436 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
4437 (_mm_cvtpd_ps): Likewise.
4438 (_mm_cvttpd_epi32): Likewise.
4439
4440 PR target/89338
4441 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
4442 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
4443
4444 PR target/89339
4445 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
4446
4447 2019-02-25 Tamar Christina <tamar.christina@arm.com>
4448
4449 PR target/88530
4450 * common/config/aarch64/aarch64-common.c
4451 (struct aarch64_option_extension): Add is_synthetic.
4452 (all_extensions): Use it.
4453 (TARGET_OPTION_INIT_STRUCT): Define hook.
4454 (struct gcc_targetm_common): Moved to end.
4455 (all_extensions_by_on): New.
4456 (opt_ext_cmp, typedef opt_ext): New.
4457 (aarch64_option_init_struct): New.
4458 (aarch64_contains_opt): New.
4459 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
4460 * config/aarch64/aarch64-option-extensions.def
4461 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
4462 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
4463 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
4464 Set is_synthetic to false.
4465 (crypto): Set is_synthetic to true.
4466 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
4467 SYNTHETIC.
4468
4469 2019-02-25 Tamar Christina <tamar.christina@arm.com>
4470
4471 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
4472 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
4473 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
4474 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
4475 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
4476 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
4477 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
4478 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
4479 Rename ...
4480 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
4481 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
4482 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
4483 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
4484 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
4485 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
4486 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
4487 vfmlsl_laneq_high_f16): ... To this.
4488 * config/arm/neon.md: Update comments.
4489
4490 2019-02-25 Tamar Christina <tamar.christina@arm.com>
4491
4492 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
4493 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
4494 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
4495 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
4496 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
4497 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
4498 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
4499 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
4500 Rename ...
4501 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
4502 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
4503 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
4504 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
4505 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
4506 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
4507 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
4508 vfmlslq_laneq_high_f16): ... To this.
4509
4510 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
4511
4512 PR rtl-optimization/86096
4513 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
4514 comparing mw_order values.
4515
4516 2019-02-25 Jakub Jelinek <jakub@redhat.com>
4517
4518 PR target/89434
4519 * config/arm/arm.md (*subsi3_carryin_const): Use
4520 arm_neg_immediate_operand predicate instead of
4521 arm_not_immediate_operand, "L" constraint instead of "K" and
4522 print it using %n2 instead of %B2.
4523 (*subsi3_carryin_const0): New define_insn.
4524 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
4525 instead of arm_not_operand and "I" constraint instead of "K" and
4526 print it using %n3 instead of %B2. Instead of using match_dup 2 add
4527 another match_operand and in the condition check that it is negation
4528 of operands[2].
4529 (*subsi3_carryin_compare_const0): New define_ins.
4530 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
4531 *subsi3_carryin_const.
4532 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
4533 split into *subsi3_carryin_compare_const0 if the highpart is zero.
4534
4535 PR target/89438
4536 * config/arm.vfp.md (*negdf2_vfp): Use
4537 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
4538 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
4539
4540 2019-02-24 Jakub Jelinek <jakub@redhat.com>
4541
4542 PR rtl-optimization/89445
4543 * simplify-rtx.c (simplify_ternary_operation): Don't use
4544 simplify_merge_mask on operands that may trap.
4545 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
4546 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
4547 second operand is CONST_VECTOR, check if any element could be zero.
4548 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
4549 their operands can trap.
4550
4551 2019-02-23 Martin Sebor <msebor@redhat.com>
4552
4553 * gimple-ssa-sprintf.c (target_strtol): Rename...
4554 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
4555 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
4556 check for range error.
4557
4558 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
4559
4560 PR driver/69471
4561 * opts-common.c (prune_options): Also prune joined switches
4562 with Negative and RejectNegative.
4563 * config/i386/i386.opt (march=): Add Negative(march=).
4564 (mtune=): Add Negative(mtune=).
4565 * doc/options.texi: Document Negative used together with Joined
4566 and RejectNegative.
4567
4568 2019-02-22 Martin Sebor <msebor@redhat.com>
4569
4570 * doc/extend.texi (Other Builtins): Add
4571 __builtin_is_constant_evaluated.
4572
4573 2019-02-22 Richard Biener <rguenther@suse.de>
4574
4575 PR tree-optimization/87609
4576 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
4577
4578 2019-02-22 Jeff Law <law@redhat.com>
4579
4580 PR rtl-optimization/87761
4581 * config/mips/mips.md: Add new combiner pattern to recognize
4582 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
4583
4584 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
4585
4586 PR target/89324
4587 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
4588 destination register in peepholes generating patterns for ADDS/SUBS.
4589 (add<mode>3_compare0,
4590 *addsi3_compare0_uxtw, add<mode>3_compareC,
4591 add<mode>3_compareV_imm, add<mode>3_compareV,
4592 *adds_<optab><ALLX:mode>_<GPI:mode>,
4593 *subs_<optab><ALLX:mode>_<GPI:mode>,
4594 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
4595 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
4596 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
4597 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
4598 sub<mode>3_compare1): Allow stack pointer for source register.
4599 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
4600
4601 2019-02-22 Martin Sebor <msebor@redhat.com>
4602
4603 PR tree-optimization/88993
4604 PR tree-optimization/88853
4605 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
4606 New helper.
4607 (sprintf_dom_walker::call_info::is_string_func): New helper.
4608 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
4609 for formatted string functions.
4610 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
4611
4612 2019-02-22 Martin Sebor <msebor@redhat.com>
4613
4614 PR c/89425
4615 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
4616 unreachable subexpressions.
4617
4618 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
4619 Hongtao Liu <hongtao.liu@intel.com>
4620 Sunil K Pandey <sunil.k.pandey@intel.com>
4621
4622 PR target/87007
4623 * config/i386/i386-passes.def: Add
4624 pass_remove_partial_avx_dependency.
4625 * config/i386/i386-protos.h
4626 (make_pass_remove_partial_avx_dependency): New.
4627 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
4628 New function.
4629 (pass_data_remove_partial_avx_dependency): New.
4630 (pass_remove_partial_avx_dependency): Likewise.
4631 (make_pass_remove_partial_avx_dependency): Likewise.
4632 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
4633 (*extendsfdf2): Add avx_partial_xmm_update.
4634 (truncdfsf2): Likewise.
4635 (*float<SWI48:mode><MODEF:mode>2): Likewise.
4636 (SF/DF conversion splitters): Disabled for TARGET_AVX.
4637
4638 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
4639
4640 PR middle-end/85598
4641 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
4642 analysis for pass.
4643
4644 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
4645
4646 PR target/89444
4647 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
4648 (PTA_SKYLAKE): Add PTA_AES.
4649 (PTA_GOLDMONT): Likewise.
4650
4651 2019-02-22 Sudakshina Das <sudi.das@arm.com>
4652
4653 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
4654 instruction if enabled.
4655 (aarch64_override_options): Remove reference to return address key.
4656
4657 2019-02-22 Richard Biener <rguenther@suse.de>
4658
4659 PR tree-optimization/89440
4660 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
4661 not necessary assert.
4662
4663 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
4664
4665 PR fortran/72741
4666 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
4667 (oacc_replace_fn_attrib_attr): ... this new function.
4668 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
4669 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
4670
4671 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4672
4673 * config/arm/arm-cpus.in (ares): Rename to...
4674 (neoverse-n1): ... This. Add ares as alias.
4675 * config/arm/arm-tables.opt: Regenerate.
4676 * config/arm/arm-tune.md: Likewise.
4677 * doc/invoke.txt (ARM Options): Document neoverse-n1.
4678
4679 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4680
4681 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
4682 * config/aarch64/aarch64-tune.md: Regenerate.
4683 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
4684
4685 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4686
4687 * config/aarch64/aarch64.c (ares_tunings): Rename to...
4688 (neoversen1_tunings): ... This.
4689 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
4690 (neoverse-n1): New CPU.
4691 * config/aarch64/aarch64-tune.md: Regenerate.
4692 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
4693
4694 2019-02-22 Richard Biener <rguenther@suse.de>
4695
4696 PR middle-end/87609
4697 * cfghooks.h (dependence_hash): New typedef.
4698 (struct copy_bb_data): New type.
4699 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
4700 (duplicate_block): Likewise.
4701 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
4702 (copy_bbs): Create and pass down copy_bb_data.
4703 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
4704 (rtl_duplicate_bb): Likewise.
4705 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
4706 remap dependence info.
4707
4708 2019-02-22 Richard Biener <rguenther@suse.de>
4709
4710 PR tree-optimization/87609
4711 * tree-core.h (tree_base): Document special clique values.
4712 * tree-inline.c (remap_dependence_clique): Do not use the
4713 special clique value of one.
4714 (maybe_set_dependence_info): Use clique one.
4715 (clear_dependence_clique): New callback.
4716 (compute_dependence_clique): Clear clique one from all refs
4717 before assigning it (again).
4718
4719 2019-02-21 Martin Sebor <msebor@redhat.com>
4720
4721 * doc/extend.texi (__clear_cache): Correct signature.
4722
4723 2019-02-21 Ian Lance Taylor <iant@golang.org>
4724
4725 PR go/89170
4726 * varasm.c (decode_addr_const): Call lookup_constant_def rather
4727 than output_constant_def.
4728 (add_constant_to_table): New static function.
4729 (output_constant_def): Call add_constant_to_table.
4730 (tree_output_constant_def): Likewise.
4731
4732 2019-02-21 Jakub Jelinek <jakub@redhat.com>
4733
4734 PR c++/89285
4735 * builtins.c (fold_builtin_arith_overflow): If first two args are
4736 INTEGER_CSTs, set intres and ovfres to constants rather than calls
4737 to ifn.
4738
4739 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
4740
4741 PR target/87412
4742 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
4743 error for -mindirect-branch/-mfunction-return with incompatible
4744 -fcf-protection.
4745
4746 2019-02-21 Jakub Jelinek <jakub@redhat.com>
4747
4748 PR bootstrap/88714
4749 * constraints.md (q): Remove.
4750 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
4751 instead of q.
4752
4753 2019-02-21 Martin Jambor <mjambor@suse.cz>
4754
4755 PR hsa/89302
4756 * omp-general.c (omp_extract_for_data): Removed a duplicate call
4757 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
4758 (omp_adjust_for_condition): ...here. Added necessary parameters.
4759 * omp-general.h (omp_adjust_for_condition): Updated declaration.
4760 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
4761 proper values to new parameters of omp_adjust_for_condition.
4762
4763 2019-02-20 Jakub Jelinek <jakub@redhat.com>
4764
4765 PR middle-end/89412
4766 * expr.c (expand_assignment): If result is a MEM, use change_address
4767 instead of simplify_gen_subreg.
4768
4769 2019-02-20 Jakub Jelinek <jakub@redhat.com>
4770 David Malcolm <dmalcolm@redhat.com>
4771
4772 PR middle-end/89091
4773 * fold-const.c (decode_field_reference): Return NULL_TREE if
4774 lang_hooks.types.type_for_size returns NULL. Check it before
4775 overwriting *exp_. Use return NULL_TREE instead of return 0.
4776
4777 2019-02-20 Jakub Jelinek <jakub@redhat.com>
4778
4779 PR middle-end/88074
4780 PR middle-end/89415
4781 * toplev.c (do_compile): Double the emin/emax exponents to workaround
4782 buggy mpc_norm.
4783
4784 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
4785
4786 PR target/89397
4787 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
4788 TARGET_SSE in addition to TARGET_SSE_MATH.
4789
4790 (ix86_excess_precision): Ditto.
4791 (ix86_float_exceptions_rounding_supported_p): Ditto.
4792 (use_rsqrt_p): Ditto.
4793 * config/i386/sse.md (rsqrt<mode>2): Ditto.
4794
4795 2019-02-20 David Malcolm <dmalcolm@redhat.com>
4796
4797 PR c/89410
4798 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
4799 linenum_arith_t when determining if two adjacent line spans are
4800 close enough to merge.
4801 (diagnostic_show_locus): Use linenum_arith_t when iterating over
4802 lines within each line_span.
4803
4804 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
4805
4806 PR target/86487
4807 * lra-constraints.c(uses_hard_regs_p): Fix handling of
4808 paradoxical SUBREGS.
4809
4810 2019-02-20 Li Jia He <helijia@linux.ibm.com>
4811
4812 PR target/88100
4813 * gcc/config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
4814 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
4815 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
4816 range checking it.
4817
4818 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
4819
4820 * config/gcn/gcn.c (print_operand): Fix typo.
4821
4822 2019-02-19 Richard Biener <rguenther@suse.de>
4823
4824 PR middle-end/88074
4825 * toplev.c (do_compile): Initialize mpfr's exponent range
4826 based on available float modes.
4827
4828 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
4829
4830 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
4831 as long as the epilogue isn't completed.
4832
4833 2019-02-18 Martin Sebor <msebor@redhat.com>
4834
4835 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
4836 __has_cpp_attribute, and __has_include.
4837
4838 2019-02-18 Martin Sebor <msebor@redhat.com>
4839
4840 * doc/invoke.texi (-Wreturn-type): Correct and expand.
4841
4842 2019-02-18 Martin Sebor <msebor@redhat.com>
4843
4844 PR middle-end/89294
4845 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
4846 expression.
4847 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
4848
4849 2019-02-18 Richard Biener <rguenther@suse.de>
4850
4851 PR tree-optimization/89296
4852 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
4853 of no-warning flag to cases that might emit the bogus warning.
4854
4855 2019-02-18 Jakub Jelinek <jakub@redhat.com>
4856
4857 PR bootstrap/88714
4858 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
4859 "q" constraint.
4860 * config/arm/vfp.md (*movdi_vfp): Likewise.
4861 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
4862 "q" constraint for operands[0].
4863
4864 PR target/89369
4865 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
4866 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
4867 pattern in a temporary buffer.
4868 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
4869 than 64-operands[2].
4870
4871 PR target/89361
4872 * config/s390/s390.c (s390_indirect_branch_attrvalue,
4873 s390_indirect_branch_settings): Define unconditionally.
4874 (s390_set_current_function): Likewise, but guard the whole body except
4875 the s390_indirect_branch_settings call with
4876 #if S390_USE_TARGET_ATTRIBUTE.
4877 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
4878
4879 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
4880 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
4881 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
4882 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
4883 HOST_WIDE_INT_1U instead of 1ULL.
4884 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
4885 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
4886 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
4887 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
4888 instead of 1UL.
4889 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
4890 instead of 1ul.
4891
4892 2019-02-18 Martin Jambor <mjambor@suse.cz>
4893
4894 PR tree-optimization/89209
4895 * tree-sra.c (create_access_replacement): New optional parameter
4896 reg_tree. Use it as a type if non-NULL and access type is not of
4897 a register type.
4898 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
4899 to create_access_replacement.
4900 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
4901 Check lacc is non-NULL before attempting to re-create it on the RHS.
4902
4903 2019-02-18 Martin Liska <mliska@suse.cz>
4904
4905 PR ipa/89306
4906 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
4907 by default.
4908 (symbol_table::free_edge): Recycle m_summary_id.
4909 * cgraph.h (get_summary_id): New.
4910 (symbol_table::release_symbol): Set m_summary_id to -1
4911 by default.
4912 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
4913 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
4914 function_summary to fast_function_summary.
4915 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
4916 * ipa-pure-const.c (class funct_state_summary_t):
4917 Switch from function_summary to fast_function_summary.
4918 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
4919 (class ipa_ref_opt_summary_t): Switch from function_summary
4920 to fast_function_summary.
4921 * symbol-summary.h (class function_summary_base): New class
4922 that is created from base of former function_summary.
4923 (function_summary_base::unregister_hooks): New.
4924 (class function_summary): Inherit from function_summary_base.
4925 (class call_summary_base): New class
4926 that is created from base of former call_summary.
4927 (class call_summary): Inherit from call_summary_base.
4928 (struct is_same): New.
4929 (class fast_function_summary): New summary class.
4930 (class fast_call_summary): New summary class.
4931 * vec.h (vec_safe_grow_cleared): New function.
4932
4933 2019-02-18 Martin Liska <mliska@suse.cz>
4934
4935 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
4936 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
4937 * doc/tm.texi: Document new target hook.
4938 * doc/tm.texi.in: Likewise.
4939 * target.def: Add new target macro.
4940 * gcc.c (find_fortran_preinclude_file): Do not search multilib
4941 suffixes.
4942
4943 2019-02-17 Alan Modra <amodra@gmail.com>
4944
4945 PR target/89271
4946 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
4947 output reg on add insn.
4948 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
4949
4950 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
4951
4952 PR target/89372
4953 * config/i386/sse.md (ssedoublemode): Remove V4HI.
4954 (PMULHRSW): Likewise.
4955 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
4956 TARGET_AVX2.
4957 (ssse3_pmulhrswv4hi3): New expander.
4958
4959 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
4960
4961 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
4962 MMX. Add isa attribute.
4963
4964 2019-02-16 Jakub Jelinek <jakub@redhat.com>
4965
4966 PR rtl-optimization/66152
4967 * builtins.h (c_readstr): Declare.
4968 * builtins.c (c_readstr): Remove forward declaration. Add
4969 null_terminated_p argument, if false, read all bytes from the
4970 string instead of stopping after '\0'.
4971 * expr.c (string_cst_read_str): New function.
4972 (store_expr): Use string_cst_read_str instead of
4973 builtin_strncpy_read_str. Try to store by pieces the whole
4974 exp_len first, and only if that fails, split it up into
4975 store by pieces followed by clear_storage. Formatting fix.
4976
4977 * config/i386/i386.md (*movqi_internal): Remove static from
4978 buf variable. Use output_asm_insn (buf, operands); return "";
4979 instead of return buf;.
4980 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
4981 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
4982 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
4983
4984 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
4985
4986 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
4987 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
4988 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
4989 (CC1_SPEC): Likewise.
4990 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
4991
4992 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
4993
4994 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
4995 the base address on 64-bit strict-alignment platforms.
4996
4997 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
4998
4999 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
5000
5001 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
5002
5003 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
5004
5005 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
5006
5007 PR rtl-optimization/88308
5008 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
5009 on copied instruction.
5010
5011 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
5012
5013 * final.c (insn_current_reference_address): Replace test on JUMP_P
5014 with test on jump_to_label_p.
5015 * config/visium/visium-passes.def: New file.
5016 * config/visium/t-visium (PASSES_EXTRA): Define.
5017 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
5018 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
5019 (TRAMPOLINE_ALIGNMENT): Define.
5020 * config/visium/visium.c (visium_option_override): Do not register
5021 the machine-specific reorg pass here.
5022 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
5023 for the GR6.
5024 (output_branch): Adjust threshold for long branch instruction.
5025 * config/visium/visium.md (cpu): Move around.
5026 (length): Adjust for the GR6.
5027
5028 2019-02-15 Richard Biener <rguenther@suse.de>
5029 Jakub Jelinek <jakub@redhat.com>
5030
5031 PR tree-optimization/89278
5032 * tree-loop-distribution.c: Include tree-eh.h.
5033 (generate_memset_builtin, generate_memcpy_builtin): Call
5034 rewrite_to_non_trapping_overflow on builtin->size before passing it
5035 to force_gimple_operand_gsi.
5036
5037 2019-02-15 Jakub Jelinek <jakub@redhat.com>
5038
5039 PR other/89342
5040 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
5041 optimize_debug.
5042 * opth-gen.awk: Likewise.
5043
5044 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
5045
5046 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
5047 Enable MMX, SSE and SSE2 by default.
5048 * config/i386/i386.c (ix86_option_override_internal): Do not
5049 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
5050
5051 2019-02-14 Jakub Jelinek <jakub@redhat.com>
5052
5053 PR rtl-optimization/89354
5054 * combine.c (make_extraction): Punt if extraction_mode is narrower
5055 than len bits.
5056
5057 2019-02-14 Maya Rashish <coypu@sdf.org>
5058
5059 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
5060 * config/netbsd-d.c: New file.
5061 * config/t-netbsd: Add netbsd-d.o
5062
5063 2018-02-14 Steve Ellcey <sellcey@marvell.com>
5064
5065 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
5066 affects_type_identity to true for aarch64_vector_pcs.
5067 (aarch64_comp_type_attributes): New function.
5068 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
5069
5070 2019-02-14 Tamar Christina <tamar.christina@arm.com>
5071
5072 PR target/88850
5073 * config/arm/iterators.md (ANY64): Add V4HF.
5074
5075 2019-02-14 Martin Liska <mliska@suse.cz>
5076
5077 PR rtl-optimization/89242
5078 * dce.c (delete_unmarked_insns): Call free_dominance_info we
5079 process a transformation.
5080
5081 2019-02-14 Jakub Jelinek <jakub@redhat.com>
5082
5083 PR tree-optimization/89314
5084 * fold-const.c (fold_binary_loc): Cast strlen argument to
5085 const char * before dereferencing it. Formatting fixes.
5086
5087 PR middle-end/89284
5088 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
5089
5090 2019-02-13 Ian Lance Taylor <iant@golang.org>
5091
5092 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
5093 and set current index for other optimizations.
5094
5095 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
5096
5097 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
5098 nonimmediate_operand as operand 2 predicate.
5099 (vec_set<VF2_512_256:mode>_0): Ditto.
5100 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
5101 (*vec_concatv2si): Remove alternative 2.
5102 (*vec_concatv4si_0): Use vm constraint for alternative 0.
5103 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
5104 (vec_concatv2di): Split alternatives 4,5,6 to ...
5105 (*vec_concatv2di_0) ... new pattern.
5106
5107 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
5108
5109 PR target/89190
5110 * config/arm/arm.c (ldm_stm_operation_p) Set
5111 addr_reg_in_reglist correctly for first register.
5112 (load_multiple_sequence): Remove dead base check.
5113 (gen_ldm_seq): Correctly set write_back for Thumb-1.
5114
5115 2019-02-13 Tamar Christina <tamar.christina@arm.com>
5116
5117 PR target/88847
5118 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
5119 Expose as @aarch64_pred_mov.
5120 * config/aarch64/aarch64.c (aarch64_classify_address):
5121 Use expand_insn which legitimizes operands.
5122
5123 2019-02-13 Martin Liska <mliska@suse.cz>
5124
5125 * builtins.h (expand_builtin_with_bounds): Remove declaration.
5126 * calls.c (struct arg_data): Remove special_slot, pointer_arg
5127 and pointer_offset fields.
5128 (initialize_argument_information): Remove usage of dead
5129 fields.
5130 * cgraph.h (struct cgraph_thunk_info): Remove
5131 add_pointer_bounds_args.
5132 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
5133 fields.
5134 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
5135 fields.
5136 * config/i386/i386.c (ix86_function_arg_advance): Remove
5137 unrelated comment.
5138 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
5139 (def_builtin): Remove usage of dead
5140 fields.
5141 (ix86_add_new_builtins): Likewise.
5142 * ipa-fnsummary.c (compute_fn_summary): Likewise.
5143 * ipa-icf.c (sem_function::equals_wpa): Likewise.
5144 (sem_function::init): Likewise.
5145 (sem_variable::merge): Likewise.
5146 * ipa-visibility.c (function_and_variable_visibility): Likewise.
5147 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
5148 * lto-cgraph.c (lto_output_node): Likewise.
5149 (lto_output_varpool_node): Likewise.
5150 (input_node): Likewise.
5151 (input_varpool_node): Likewise.
5152 * lto-streamer-out.c (lto_output): Likewise.
5153 * tree-inline.c (expand_call_inline): Remove usage of
5154 assign_stmts.
5155 * tree-inline.h (struct copy_body_data): Likewise.
5156 * varpool.c (varpool_node::dump): Likewise.
5157
5158 2019-02-13 Jakub Jelinek <jakub@redhat.com>
5159
5160 PR middle-end/89303
5161 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
5162 into pt->vars_contains_escaped_heap instead of setting
5163 pt->vars_contains_escaped_heap to it.
5164
5165 PR middle-end/89281
5166 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
5167 INTVAL (size), compare it to GET_MODE_MASK instead of
5168 1 << GET_MODE_BITSIZE.
5169
5170 PR target/89290
5171 * config/i386/predicates.md (x86_64_immediate_operand): Allow
5172 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
5173 -mcmodel=large.
5174
5175 2019-02-13 Martin Liska <mliska@suse.cz>
5176
5177 PR lto/88858
5178 * cfgrtl.c (remove_barriers_from_footer): New function.
5179 (try_redirect_by_replacing_jump): Use it.
5180 (cfg_layout_redirect_edge_and_branch): Likewise.
5181
5182 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
5183
5184 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
5185 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
5186 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
5187 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
5188 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
5189 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
5190 New BU_CRYPTO_2.
5191 * config/rs6000/rs6000.c (builtin_function_type)
5192 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
5193 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
5194 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
5195 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
5196 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
5197
5198 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
5199
5200 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
5201 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
5202
5203 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
5204
5205 PR target/89229
5206 * config/i386/i386.md (*movoi_internal_avx): Revert revision
5207 268678 and revision 268657.
5208 (*movti_internal): Likewise.
5209
5210 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
5211
5212 PR target/89233
5213 * config/s390/s390.c (s390_decompose_address): Update comment.
5214 (s390_check_qrst_address): Reject invalid address forms after
5215 LRA.
5216
5217 2019-02-12 Martin Liska <mliska@suse.cz>
5218
5219 PR lto/88876
5220 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
5221 we need default values of funct_state for a function that
5222 is not optimized.
5223
5224 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
5225
5226 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
5227 the object to pick the size of stores on strict-alignment platforms.
5228
5229 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
5230 (*movdi_insn_sp32): Likewise.
5231 (*movdi_insn_sp64): Likewise.
5232
5233 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
5234
5235 PR lto/88677
5236 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
5237 types that needs constructiong.
5238 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
5239
5240 2019-02-12 Richard Biener <rguenther@suse.de>
5241
5242 PR tree-optimization/89253
5243 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
5244 duplicate the loop.
5245
5246 2019-02-11 David Malcolm <dmalcolm@redhat.com>
5247
5248 PR lto/88147
5249 * input.c (selftest::test_line_offset_overflow): New selftest.
5250 (selftest::input_c_tests): Call it.
5251
5252 2019-02-11 Martin Sebor <msebor@redhat.com>
5253
5254 PR tree-optimization/88771
5255 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
5256 when -Wstringop-overflow is set.
5257 (builtin_memref::builtin_memref): Adjust excessive upper bound
5258 only when lower bound is not excessive.
5259 (maybe_diag_overlap): Detect and diagnose excessive bounds via
5260 -Wstringop-ovefflow.
5261 (maybe_diag_offset_bounds): Rename...
5262 (maybe_diag_access_bounds): ...to this.
5263 (check_bounds_or_overlap): Adjust for name change above.
5264
5265 2019-02-11 Martin Sebor <msebor@redhat.com>
5266
5267 PR c++/87996
5268 * builtins.c (max_object_size): Move from here...
5269 * builtins.h (max_object_size): ...and here...
5270 * tree.c (max_object_size): ...to here...
5271 * tree.h (max_object_size): ...and here.
5272
5273 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
5274
5275 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
5276 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
5277 for correct semantics.
5278
5279 2019-02-11 Alan Modra <amodra@gmail.com>
5280
5281 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
5282 -mlongcall and -mpltseq.
5283 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
5284 (RS/6000 and PowerPC Options <-mpltseq>): Document.
5285 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
5286 * config/rs6000/sysv4.opt (mpltseq): New option.
5287 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
5288 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
5289 support is lacking. Don't allow -mpltseq with -mbss-plt.
5290 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
5291 -mpltseq given for ELFv1.
5292 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
5293 Only use UNSPEC_PLTSEQ for inline PLT calls.
5294 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
5295 use UNSPEC_PLTSEQ for inline PLT calls.
5296 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
5297 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
5298 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
5299 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
5300 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
5301 (pltseq_mtctr_<mode>): Likewise.
5302
5303 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5304
5305 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
5306 Solaris ld.
5307 * configure: Regenerate.
5308
5309 2019-02-11 Jakub Jelinek <jakub@redhat.com>
5310
5311 PR bootstrap/88714
5312 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
5313 instead of r.
5314
5315 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
5316
5317 * function.c (assign_parm_setup_block): Use the stored
5318 size, not the passed size, when allocating stack-space,
5319 also for a parameter with alignment larger than
5320 MAX_SUPPORTED_STACK_ALIGNMENT.
5321
5322 2019-02-11 Martin Liska <mliska@suse.cz>
5323
5324 PR ipa/89009
5325 * ipa-cp.c (build_toporder_info): Remove usage of a param.
5326 * ipa-inline.c (inline_small_functions): Likewise.
5327 * ipa-pure-const.c (propagate_pure_const): Likewise.
5328 (propagate_nothrow): Likewise.
5329 * ipa-reference.c (propagate): Likewise.
5330 * ipa-utils.c (struct searchc_env): Remove unused field.
5331 (searchc): Always search across AVAIL_INTERPOSABLE.
5332 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
5333 the only called IPA pure const can properly not propagate
5334 across interposable boundary.
5335 * ipa-utils.h (ipa_reduced_postorder): Remove param.
5336
5337 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
5338
5339 * config/nds32/nds32.md (call_internal, call_value_internal,
5340 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
5341
5342 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
5343
5344 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
5345 typo.
5346
5347 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
5348
5349 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
5350 in comments
5351
5352 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
5353
5354 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
5355
5356 2019-02-10 Jakub Jelinek <jakub@redhat.com>
5357
5358 PR tree-optimization/89268
5359 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
5360 if preds is non-NULL.
5361
5362 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
5363
5364 PR lto/89272
5365 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
5366 polymorphic types.
5367
5368 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
5369
5370 * config/nds32/nds32.md (trap): New pattern.
5371
5372 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
5373
5374 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
5375 dwarf span.
5376
5377 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
5378
5379 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
5380 to split POST_INC.
5381
5382 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
5383
5384 * ipa-visibility.c (localize_node): Also do not localize
5385 LDPR_PREVAILING_DEF_IRONLY_EXP.
5386
5387 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
5388
5389 PR lto/87957
5390 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
5391 instead of type_with_linkage.
5392
5393 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
5394
5395 PR ipa/88755
5396 * params.def (uninlined-function-insns, uninlined-function-time,
5397 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
5398 bound so we don't get overflows.
5399
5400 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
5401
5402 * config/rs6000/rs6000-string.c (expand_compare_loop,
5403 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
5404 memcmp/strncmp.
5405
5406 2019-02-09 Jakub Jelinek <jakub@redhat.com>
5407
5408 PR middle-end/89246
5409 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
5410 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
5411 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
5412
5413 2019-02-09 Alan Modra <amodra@gmail.com>
5414
5415 PR target/88343
5416 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
5417 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
5418 setup.
5419
5420 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
5421
5422 PR middle-end/88560
5423 * lra-constraints.c (process_alt_operands): Don't increase reject
5424 for memory when offset memory is required.
5425
5426 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
5427
5428 * config/s390/vector.md: Implement vector copysign.
5429
5430 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
5431
5432 * expr.c (expand_constructor): Correct indentations.
5433
5434 2019-02-08 Richard Biener <rguenther@suse.de>
5435
5436 PR tree-optimization/89247
5437 * tree-if-conv.c: Include tree-cfgcleanup.h.
5438 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
5439 (tree_if_conversion): Pass through predicate vector.
5440 (pass_if_conversion::execute): Do CFG cleanup and SSA update
5441 inline, see if any if-converted loops we refrece in
5442 LOOP_VECTORIZED calls vanished and fixup.
5443 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
5444
5445 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
5446
5447 * config/s390/constraints.md (jdd): New constraint.
5448
5449 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
5450
5451 PR target/89229
5452 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
5453 upper 16 vector registers without TARGET_AVX512VL.
5454 (*movti_internal): Likewise.
5455
5456 2019-02-08 Jakub Jelinek <jakub@redhat.com>
5457
5458 PR rtl-optimization/89234
5459 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
5460 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
5461 (copy_reg_eh_region_note_backward): Likewise.
5462
5463 2019-02-08 Richard Biener <rguenther@suse.de>
5464
5465 PR middle-end/89223
5466 * tree-data-ref.c (initialize_matrix_A): Fail if constant
5467 doesn't fit in HWI.
5468 (analyze_subscript_affine_affine): Handle failure from
5469 initialize_matrix_A.
5470
5471 2019-02-08 Jakub Jelinek <jakub@redhat.com>
5472
5473 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
5474 cfun everywhere.
5475
5476 2019-02-07 David Malcolm <dmalcolm@redhat.com>
5477
5478 PR tree-optimization/86637
5479 PR tree-optimization/89235
5480 * tree-vect-loop.c (optimize_mask_stores): Add an
5481 auto_purge_vect_location sentinel to ensure that vect_location is
5482 purged on exit.
5483 * tree-vectorizer.c
5484 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
5485 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
5486 to ensure that vect_location is purged on exit.
5487 (pass_slp_vectorize::execute): Likewise, replacing the manual
5488 reset.
5489 * tree-vectorizer.h (class auto_purge_vect_location): New class.
5490
5491 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5492
5493 * config/aarch64/iterators.md (max_opp): New code_attr.
5494 (USMAX): New code iterator.
5495 * config/aarch64/predicates.md (aarch64_smin): New predicate.
5496 (aarch64_smax): Likewise.
5497 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
5498 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
5499 MINUS (MAX MIN).
5500
5501 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
5502
5503 PR target/89229
5504 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
5505 for TARGET_AVX512VL.
5506 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
5507
5508 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
5509
5510 * config/s390/s390-builtin-types.def: Add new types.
5511 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
5512 (s390_vec_xlw4): Make the memory operand into a const pointer.
5513 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
5514 float.
5515 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
5516 a new vector type with the alignment of the scalar memory operand.
5517
5518 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
5519 Jakub Jelinek <jakub@redhat.com>
5520
5521 PR bootstrap/88714
5522 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
5523 arm_count_ldrdstrd_insns): New declarations.
5524 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
5525 MINUS.
5526 (valid_operands_ldrd_strd): New function.
5527 (arm_count_ldrdstrd_insns): New function.
5528 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
5529 sets instead of single DImode set and define new insns to match this.
5530
5531 2019-02-07 Tamar Christina <tamar.christina@arm.com>
5532
5533 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
5534 Make it a C initializer.
5535
5536 2019-02-07 Tamar Christina <tamar.christina@arm.com>
5537
5538 PR/target 88850
5539 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
5540
5541 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5542
5543 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
5544 Use neon_dot<q> for type.
5545 (neon_<sup>dot_lane<vsi2qi>): Likewise.
5546
5547 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5548
5549 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
5550 Use neon_dot<q> for type.
5551 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
5552 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
5553
5554 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
5555
5556 PR rtl-optimization/89225
5557 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
5558 sizes check.
5559
5560 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
5561
5562 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
5563 after restoring registers saved to allocate the frame on Windows.
5564
5565 2019-02-06 Richard Biener <rguenther@suse.de>
5566
5567 PR tree-optimization/89182
5568 * graphite.h (cached_scalar_evolution_in_region): Declare.
5569 * graphite.c (struct seir_cache_key): New.
5570 (struct sese_scev_hash): Likewise.
5571 (seir_cache): New global.
5572 (cached_scalar_evolution_in_region): New function.
5573 (graphite_transform_loops): Allocate and release seir_cache.
5574 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
5575 cached_scalar_evolution_in_region.
5576 * graphite-scop-detection.c (scop_detection::can_represent_loop):
5577 Simplify.
5578 (scop_detection::graphite_can_represent_expr: Use
5579 cached_scalar_evolution_in_region.
5580 (scop_detection::stmt_simple_for_scop_p): Likewise.
5581 (find_params_in_bb): Likewise.
5582 (gather_bbs::before_dom_children): Likewise.
5583 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
5584 (add_loop_constraints): Likewise.
5585
5586 2019-02-06 Jakub Jelinek <jakub@redhat.com>
5587
5588 PR middle-end/89210
5589 * fold-const-call.c (fold_const_vec_convert): Pass true as last
5590 operand to new_unary_operation only if both element types are integral
5591 and it isn't a widening conversion. Return NULL_TREE if
5592 new_unary_operation failed.
5593
5594 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
5595
5596 PR target/88856
5597 * config/s390/s390.md: Remove load and test FP splitter.
5598
5599 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
5600
5601 PR target/89112
5602 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
5603 expand_compare_loop, expand_block_compare_gpr,
5604 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
5605 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
5606 #include "profile-count.h" and "predict.h" for types and functions
5607 needed to work with REG_BR_PROB notes.
5608
5609 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
5610
5611 PR target/89112
5612 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
5613 for the long branch case.
5614
5615 2019-02-05 Jakub Jelinek <jakub@redhat.com>
5616
5617 PR target/89188
5618 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
5619 can throw, non-call exceptions are enabled and we can't delete
5620 dead exceptions or alter cfg. Set must_clean if
5621 delete_insn_and_edges returns true, don't set it blindly for calls.
5622 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
5623
5624 PR rtl-optimization/89195
5625 * combine.c (make_extraction): For MEMs, don't extract bytes outside
5626 of the original MEM.
5627
5628 2019-02-05 Martin Liska <mliska@suse.cz>
5629
5630 PR gcov-profile/89000
5631 * gcov.c (function_summary): Remove argument.
5632 (file_summary): New function.
5633 (print_usage): Replace tabs with spaces.
5634 (generate_results): Use new function file_summary.
5635
5636 2019-02-05 Jakub Jelinek <jakub@redhat.com>
5637
5638 PR target/89186
5639 * optabs.c (prepare_cmp_insn): Pass x and y to
5640 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
5641
5642 2019-02-05 Richard Biener <rguenther@suse.de>
5643
5644 PR middle-end/89150
5645 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
5646 (struct bitmap_element): Drop chain_prev so we properly recurse on
5647 the prev member, supporting tree views.
5648 (struct bitmap_head): GTY skip the obstack member.
5649
5650 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
5651
5652 PR c/88698
5653 * doc/extend.texi (Vector Extensions): Add an example of using vector
5654 types together with x86 intrinsics.
5655
5656 2019-02-04 Alan Modra <amodra@gmail.com>
5657
5658 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
5659 str[] size to 160, and comment.
5660
5661 2019-02-04 Alan Modra <amodra@gmail.com>
5662
5663 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
5664 (rs6000_pltseq_template): Guard output of TLS markers with
5665 TARGET_TLS_MARKERS.
5666 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
5667 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
5668 to use inline PLT sequences.
5669 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
5670 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
5671 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
5672
5673 2019-02-04 Martin Liska <mliska@suse.cz>
5674
5675 PR ipa/88985
5676 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
5677 out when ipa_fn_summaries does not contain entry for callee.
5678
5679 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
5680
5681 * config/sparc/sparc.h: Remove superfluous blank lines.
5682 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
5683 (got_register_rtx): ...this.
5684 (sparc_got): Adjust to above renaming.
5685 (sparc_tls_got): Likewise.
5686 (sparc_delegitimize_address): Likewise.
5687 (sparc_output_mi_thunk): Likewise.
5688 (sparc_init_pic_reg): Likewise.
5689 (save_local_or_in_reg_p): Fix test on the GOT register.
5690 (USE_HIDDEN_LINKONCE): Move around.
5691 (get_pc_thunk_name): Likewise.
5692 (gen_load_pcrel_sym): Likewise.
5693 (load_got_register): Likewise.
5694
5695 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
5696
5697 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
5698 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
5699
5700 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
5701
5702 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
5703 into consideration.
5704
5705 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
5706
5707 * config.gcc (with_nds32_lib, glibc):
5708 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
5709 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
5710 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
5711
5712 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
5713
5714 PR target/89071
5715 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
5716 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
5717 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
5718 (*rcpsf2_sse): Ditto.
5719 (*rsqrtsf2_sse): Ditto.
5720 (sse4_1_round<mode<2): Ditto.
5721
5722 2019-02-03 Richard Biener <rguenther@suse.de>
5723
5724 PR debug/87295
5725 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
5726 orig.
5727
5728 2019-02-02 Jakub Jelinek <jakub@redhat.com>
5729
5730 PR middle-end/87887
5731 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
5732 Punt with warning on aggregate return or argument types. Ignore
5733 type/mode checking for uniform arguments.
5734
5735 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
5736
5737 * combine.c (try_combine): Do not print "Can't combine" messages unless
5738 printing failed combination attempts.
5739
5740 2019-02-01 Martin Jambor <mjambor@suse.cz>
5741
5742 PR hsa/87863
5743 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
5744 segment and global segment variables before making them static.
5745
5746 2019-02-01 Martin Jambor <mjambor@suse.cz>
5747
5748 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
5749 missed optimization dump with dump_enabled_p.
5750
5751 2019-02-01 Richard Biener <rguenther@suse.de>
5752
5753 PR middle-end/88597
5754 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
5755 the instantiate cache.
5756 (instantiate_scev_binary): Elide second operand procesing
5757 if equal to the first.
5758 * tree-chrec.c (chrec_contains_symbols): Add visited set.
5759 (chrec_contains_undetermined): Likewise.
5760 (tree_contains_chrecs): Likewise.
5761
5762 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
5763
5764 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
5765
5766 2019-02-01 Jakub Jelinek <jakub@redhat.com>
5767
5768 PR tree-optimization/89143
5769 * wide-int-range.h (wide_int_range_absu): Declare.
5770 * wide-int-range.cc (wide_int_range_absu): New function.
5771 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
5772
5773 PR tree-optimization/88107
5774 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
5775 instead of assertion that eh_region_outermost is non-NULL, if it
5776 is NULL, set *ALL to true and return NULL.
5777 (move_sese_region_to_fn): Adjust caller, if all is set, call
5778 duplicate_eh_regions with NULL region.
5779
5780 2019-02-01 Richard Biener <rguenth@suse.de>
5781
5782 PR rtl-optimization/88593
5783 * mode-switching.c (optimize_mode_switching): Free dominators before
5784 calling cleanup_cfg.
5785
5786 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
5787
5788 PR tree-optimization/88932
5789 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
5790
5791 2019-01-31 Jakub Jelinek <jakub@redhat.com>
5792
5793 PR middle-end/89137
5794 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
5795 bogus clang warning.
5796
5797 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
5798
5799 PR target/89071
5800 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
5801 alternative to avoid partial SSE register stall for TARGET_AVX.
5802 (truncdfsf2): Ditto.
5803 (sse4_1_round<mode>2): Ditto.
5804
5805 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
5806
5807 PR tree-optimization/89008
5808 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
5809 process anything of the form X * 0.
5810
5811 2019-01-31 Richard Biener <rguenther@suse.de>
5812
5813 PR tree-optimization/89135
5814 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
5815 with abnormal preds.
5816
5817 2019-01-31 Jakub Jelinek <jakub@redhat.com>
5818
5819 PR sanitizer/89124
5820 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
5821 always_inline callees into no_sanitize_address callers.
5822
5823 2019-01-31 Richard Biener <rguenther@suse.de>
5824
5825 PR rtl-optimization/89115
5826 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
5827
5828 2019-01-30 Martin Sebor <msebor@redhat.com>
5829
5830 PR other/89106
5831 * doc/extend.texi (cast to a union): Correct and expand.
5832
5833 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
5834
5835 PR rtl-optimization/87246
5836 * lra-constraints.c (simplify_operand_subreg): Reload memory
5837 in subreg if the address became invalid.
5838
5839 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
5840
5841 PR target/87064
5842 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
5843 Disable for little-endian.
5844
5845 2019-01-30 Richard Biener <rguenther@suse.de>
5846
5847 PR rtl-optimization/89115
5848 * opts.c (default_options_optimization): Reduce
5849 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
5850 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
5851 to the default.
5852
5853 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
5854
5855 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
5856 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
5857 type of vector element when vec_extract is implemented by direct
5858 move.
5859
5860 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
5861
5862 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
5863
5864 2019-01-30 Richard Biener <rguenther@suse.de>
5865
5866 PR tree-optimization/89111
5867 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
5868 canonicalization to appropriately sized access types.
5869
5870 2019-01-30 Jakub Jelinek <jakub@redhat.com>
5871
5872 PR c++/89105
5873 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
5874 for arguments to functions that are TU-local and shouldn't be
5875 referenced by assembly.
5876
5877 2019-01-30 Ulrich Drepper <drepper@redhat.com>
5878
5879 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
5880 after '='.
5881
5882 2019-01-29 Martin Sebor <msebor@redhat.com>
5883
5884 PR c/88956
5885 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
5886
5887 2019-01-29 Jakub Jelinek <jakub@redhat.com>
5888
5889 PR c++/66676
5890 PR ipa/89104
5891 * omp-simd-clone.c (simd_clone_clauses_extract)
5892 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
5893 OMP_CLAUSE_ALIGNED_ALIGNMENT.
5894
5895 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
5896
5897 * config.gcc: Force .init_array for ARC.
5898
5899 2019-01-29 Richard Biener <rguenther@suse.de>
5900
5901 PR debug/87295
5902 * dwarf2out.c (collect_skeleton_dies): New helper.
5903 (copy_decls_for_unworthy_types): Call it.
5904 (build_abbrev_table): Assert we do not try to replace
5905 DW_AT_signature refs with local refs.
5906
5907 2019-01-28 Jakub Jelinek <jakub@redhat.com>
5908
5909 PR middle-end/89002
5910 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
5911 for lastprivate/linear IV, push gimplify context around gimplify_assign
5912 and, if it needed any temporaries, pop it into a gimple bind around the
5913 sequence.
5914
5915 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
5916
5917 * common.opt (-Wattribute-alias): Remove "no-" from name.
5918 Make -Wattribute-alias command line option and
5919 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
5920
5921 2019-01-28 Jakub Jelinek <jakub@redhat.com>
5922
5923 PR target/89073
5924 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
5925 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
5926 x86 ISA options.
5927 (bmi2): Add missing @opindex.
5928 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
5929 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
5930 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
5931 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
5932 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
5933 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
5934 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
5935 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
5936 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
5937 xsavec, xsaveopt and xsaves options.
5938
5939 2019-01-28 Richard Biener <rguenther@suse.de>
5940
5941 PR debug/89076
5942 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
5943 support removal.
5944
5945 2019-01-28 Richard Biener <rguenther@suse.de>
5946
5947 PR tree-optimization/88739
5948 * tree-cfg.c (verify_types_in_gimple_reference): Verify
5949 BIT_FIELD_REFs only are applied to mode-precision operands
5950 when they are integral.
5951 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
5952 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
5953 BIT_FIELD_REFs of non-mode-precision integral operands.
5954
5955 2019-01-27 Jakub Jelinek <jakub@redhat.com>
5956
5957 PR target/87214
5958 * config/i386/sse.md
5959 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
5960 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
5961 first constants in pairs are multiples of 2. Formatting fixes.
5962 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
5963 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
5964 first constants in each quadruple are multiples of 4. Formatting fixes.
5965
5966 2019-01-26 Martin Jambor <mjambor@suse.cz>
5967
5968 PR ipa/88933
5969 * tree-inline.c: Include tree-cfgcleanup.h.
5970 (delete_unreachable_blocks_update_callgraph): Move...
5971 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
5972 ...here, make externally visible, make second argument bool, adjust
5973 all callers.
5974 * tree-cfgcleanup.c: Include cgraph.h.
5975 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
5976 Declare.
5977 * ipa-prop.c: Include tree-cfgcleanup.h.
5978 (ipcp_transform_function): Call
5979 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
5980
5981 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
5982
5983 PR rtl-optimization/88846
5984 * ira.c (process_set_for_memref_referenced_p): New.
5985 (memref_referenced_p): Add new param. Use
5986 process_set_for_memref_referenced_p. Add new switch cases.
5987 (memref_used_between_p): Pass new arg to memref_referenced_p.
5988
5989 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
5990
5991 PR target/88469
5992 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
5993 argument ABI_BREAK. Set to true if the calculated alignment has
5994 changed in gcc-9. Check bit-fields for their base type alignment.
5995 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
5996 (aarch64_function_arg_boundary): Likewise.
5997 (aarch64_gimplify_va_arg_expr): Likewise.
5998
5999 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
6000
6001 PR middle-end/89037
6002 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
6003 instead of accessing TREE_INT_CST_ELT directly.
6004
6005 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
6006
6007 * doc/sourcebuild.texi (Environment attributes): Add fenv and
6008 fenv_exceptions description.
6009
6010 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
6011
6012 PR rtl-optimization/87763
6013 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
6014 Allow SUBREG when matching CC_NZmode compare.
6015
6016 2019-01-25 Richard Biener <rguenther@suse.de>
6017
6018 PR tree-optimization/89049
6019 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
6020 Look at the pattern stmt to determine if the stmt is vectorized.
6021
6022 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
6023
6024 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
6025 (pred_mov<mode>): Handle all-register forms using both a new
6026 alternative and a split.
6027
6028 2019-01-25 Richard Biener <rguenther@suse.de>
6029
6030 PR tree-optimization/86865
6031 * graphite-scop-detection.c (scop_detection::can_represent_loop):
6032 Reject non-do-while loops.
6033
6034 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
6035
6036 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
6037 * config/rs6000/constraints.md (Q constraint): Use REG_P.
6038 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
6039 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
6040 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
6041 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
6042 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
6043 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
6044 vlogical_operand, gpc_reg_operand, int_reg_operand,
6045 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
6046 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
6047 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
6048 (save_world_operation, restore_world_operation, lmw_operation,
6049 stmw_operation): Use MEM_P and REG_P.
6050 (tie_operand): Use MEM_P.
6051 (vrsave_operation, crsave_operation): Use REG_P.
6052 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
6053 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
6054 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
6055 (call_operand): Use HARD_REGISTER_P.
6056 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
6057 Use CONST_INT_P.
6058 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
6059 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
6060 quad_aligned_load_p, replace_swapped_aligned_store,
6061 recombine_lvx_pattern, replace_swapped_aligned_load,
6062 recombine_stvx_pattern): Use MEM_P.
6063 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
6064 Use MEM_P and SYMBOL_REF_P.
6065 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
6066 (insn_is_swappable_p): Use REG_P and MEM_P.
6067 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
6068 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
6069 Use CONST_INT_P.
6070 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
6071 Use CONST_DOUBLE_P.
6072 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
6073 CONST_WIDE_INT_P.
6074 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
6075 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
6076 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
6077 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
6078 reg_or_subregno:
6079 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
6080 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
6081 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
6082 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
6083 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
6084 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
6085 rs6000_split_logical_di): Use CONST_INT_P.
6086 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
6087 REG_P and SYMBOL_REF_P.
6088 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
6089 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
6090 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
6091 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
6092 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
6093 (small_data_operand, print_operand_address): Use CONST_INT_P and
6094 SYMBOL_REF_P.
6095 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
6096 (rs6000_init_hard_regno_mode_ok, direct_move_p):
6097 Use HARD_REGISTER_NUM_P.
6098 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
6099 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
6100 SUBREG_P and SYMBOL_REF_P.
6101 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
6102 and HARD_REGISTER_NUM_P.
6103 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
6104 reg_or_subregno.
6105 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
6106 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
6107 MEM_P and REG_P.
6108 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
6109 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
6110 find_addr_reg): Use REG_P.
6111 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
6112 (rs6000_emit_le_vsx_move): Use SUBREG_P.
6113 (offsettable_ok_by_alignment, constant_pool_expr_p,
6114 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
6115 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
6116 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
6117 rs6000_assemble_integer, create_TOC_reference,
6118 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
6119 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
6120 (rs6000_split_vec_extract_var): Use reg_or_subregno.
6121 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
6122 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
6123 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
6124 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
6125 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
6126 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
6127 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
6128 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
6129 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
6130 and cbranch<mode>4): Use CONST_INT_P.
6131 (multiple define_splits): Use REG_P and SUBREG_P.
6132 (define_expands call, call_value): Use MEM_P.
6133 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
6134 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
6135 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
6136 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
6137 and HARD_REGISTER_NUM_P.
6138 (multiple define_splits): Use HARD_REGISTER_NUM_P.
6139
6140 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
6141
6142 PR rtl-optimization/88948
6143 * rtl.h (prepare_copy_insn): New prototype.
6144 * gcse.c (prepare_copy_insn): New function, split out from
6145 process_insert_insn.
6146 (process_insert_insn): Use prepare_copy_insn.
6147 * store-motion.c (replace_store_insn): Use prepare_copy_insn
6148 instead of gen_move_insn.
6149
6150 2019-01-24 Jakub Jelinek <jakub@redhat.com>
6151
6152 PR debug/89006
6153 * config/i386/i386.c (ix86_pic_register_p): Return true for
6154 UNSPEC_SET_GOT too.
6155
6156 PR tree-optimization/88964
6157 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
6158 punt if HONOR_SNANS (chrec).
6159
6160 PR middle-end/89015
6161 * tree-nested.c (convert_nonlocal_reference_stmt,
6162 convert_local_reference_stmt, convert_tramp_reference_stmt,
6163 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
6164 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
6165 or GIMPLE_OMP_TASK.
6166
6167 PR tree-optimization/89027
6168 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
6169 for "omp simd array" variables.
6170
6171 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
6172
6173 PR target/88469
6174 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
6175 force the alignment of m_val.
6176
6177 2019-01-24 Richard Biener <rguenther@suse.de>
6178
6179 PR lto/87187
6180 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
6181 When in "legacy" debug mode make sure to reset self-origins.
6182
6183 2019-01-24 Martin Liska <mliska@suse.cz>
6184
6185 PR gcov-profile/88994
6186 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
6187 result will be always smaller or equal to the original.
6188 * gcov.c (mangle_name): Fix else branch where we should
6189 also copy to PTR and shift the pointer.
6190
6191 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
6192
6193 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
6194 * vr-values.c (find_case_label_ranges): Fix a comment typo.
6195
6196 2019-01-23 Bin Cheng <bin.cheng@arm.com>
6197 Steve Ellcey <sellcey@marvell.com>
6198
6199 PR target/85711
6200 * recog.c (address_operand): Return false on wrong mode for address.
6201 (constrain_operands): Check for mode with 'p' constraint.
6202
6203 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
6204
6205 PR target/88998
6206 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
6207 Disparage MMX alternative.
6208 (sse2_cvtpd2pi): Ditto.
6209 (sse2_cvttpd2pi): Ditto.
6210
6211 2019-01-23 David Malcolm <dmalcolm@redhat.com>
6212
6213 PR driver/89014
6214 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
6215 use-after-free of the result of
6216 aarch64_get_extension_string_for_isa_flags.
6217
6218 2019-01-23 Jakub Jelinek <jakub@redhat.com>
6219
6220 PR c/44715
6221 * doc/extend.texi: Document break and continue behavior in
6222 statement expressions.
6223
6224 2019-01-23 Richard Biener <rguenther@suse.de>
6225
6226 PR tree-optimization/89008
6227 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
6228 not leave another stray operand.
6229
6230 2019-01-23 Jakub Jelinek <jakub@redhat.com>
6231
6232 * BASE-VER: Bump to 9.0.1.
6233
6234 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
6235
6236 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
6237 thunk that returns by reference, use the type of the return object
6238 of the thunk instead of that of the alias to build the dereference.
6239
6240 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
6241
6242 * config/arc/atomic.md: Add operand to DMB instruction.
6243
6244 2019-01-23 Jakub Jelinek <jakub@redhat.com>
6245
6246 PR tree-optimization/88964
6247 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
6248 build_zero_cst instead of build_int_cst. Return false for loop
6249 invariants which honor signed zeros.
6250
6251 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
6252
6253 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
6254
6255 2019-01-22 Jakub Jelinek <jakub@redhat.com>
6256
6257 PR target/88965
6258 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
6259 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
6260 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
6261
6262 PR middle-end/88968
6263 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
6264 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
6265
6266 PR target/87064
6267 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
6268 Disable for little endian.
6269
6270 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
6271
6272 PR target/88469
6273 * config/arm/arm.c (arm_needs_double_word_align): Check
6274 DECL_BIT_FIELD_TYPE.
6275
6276 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
6277 H.J. Lu <hongjiu.lu@intel.com>
6278
6279 PR target/88909
6280 * config/i386/i386-builtin.def: Add mask2 to all builtin
6281 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
6282 SPECIAL_ARGS.
6283 * config/i386/i386.c (BDESC): Add mask2 to the definition.
6284 (BDESC_FIRST): Likewise.
6285 (define_builtin): Add an argument for mask2. Updated to handle
6286 both ix86_isa_flags and ix86_isa_flags2.
6287 (define_builtin_const): Likewise.
6288 (define_builtin_pure): Likewise.
6289 (define_builtin2): Deleted.
6290 (define_builtin_const2): Likewise.
6291 (builtin_description): Add a member, mask2.
6292 (bdesc_*): Add mask2 to builtin initializations.
6293 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
6294 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
6295 support.
6296 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
6297
6298 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
6299
6300 PR target/88954
6301 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
6302 noplt attribute.
6303
6304 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
6305
6306 PR target/88469
6307 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
6308 alignment is dominated by a bitfield with 64-bit aligned base type.
6309 (arm_function_arg): Emit a warning if the alignment has changed since
6310 earlier GCC releases.
6311 (arm_function_arg_boundary): Likewise.
6312 (arm_setup_incoming_varargs): Likewise.
6313
6314 2019-01-22 Richard Biener <rguenther@suse.de>
6315
6316 PR tree-optimization/88862
6317 * graphite-scop-detection.c
6318 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
6319
6320 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
6321
6322 * doc/extend.tex (AMD GCN Function Attributes): New section.
6323 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
6324 * doc/invoke.texi (AMD GCN Options): New section.
6325 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
6326
6327 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
6328
6329 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
6330 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
6331
6332 2019-01-22 Jakub Jelinek <jakub@redhat.com>
6333
6334 PR tree-optimization/88044
6335 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
6336 is false in the first iteration, but !every_iteration, return false
6337 instead of true with niter->niter zero.
6338
6339 PR rtl-optimization/88904
6340 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
6341 any nonequal registers before processing BB_END (b).
6342
6343 PR target/88905
6344 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
6345 GET_MODE (op0).
6346 (expand_binop_directly, expand_doubleword_clz,
6347 expand_doubleword_popcount, expand_ctz, expand_ffs,
6348 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
6349
6350 PR rtl-optimization/49429
6351 PR target/49454
6352 PR rtl-optimization/86334
6353 PR target/88906
6354 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
6355 addressable from here...
6356 (emit_block_op_via_libcall): ... to here.
6357
6358 2019-01-22 Richard Biener <rguenther@suse.de>
6359
6360 * tree-vect-loop.c (vect_analyze_loop_operations): Use
6361 auto_vec for cost vector to fix memleak.
6362 (vectorize_fold_left_reduction): Properly gather SLP defs.
6363 (vectorizable_comparison): Do not swap operands to properly
6364 gather SLP defs.
6365
6366 2019-01-22 Alan Modra <amodra@gmail.com>
6367
6368 PR target/88614
6369 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
6370 stays a reg. Allow a const_int.
6371 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
6372 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
6373 (IS_NOMARK_TLSGETADDR): Define.
6374 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
6375 (rs6000_output_tlsargs): New function.
6376 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
6377 __tls_get_addr call takes an arg.
6378 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
6379 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
6380 delete split..
6381 (call_value_nonlocal_sysv): ..or here, delete split.
6382 (tls_gdld_nomark): Delete.
6383 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
6384 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
6385 (call_value_nonlocal_sysv): Likewise.
6386 (call_value_nonlocal_sysv_secure): Likewise.
6387 (call_value_nonlocal_aix): Likewise.
6388 (call_value_indirect_aix): Likewise.
6389 (call_value_indirect_elfv2): Likewise.
6390 (call_value_local32, call_value_local64): Disable for no-mark tls.
6391 (call_value_local_aix): Likewise.
6392
6393 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
6394
6395 PR target/88938
6396 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
6397 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
6398
6399 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
6400
6401 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
6402 string contents as hash_map keys.
6403
6404 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
6405
6406 PR c/88928
6407 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
6408 for rvalue context. Handle rvalues correctly. Use min_align_of_type
6409 instead of TYPE_ALIGN.
6410 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
6411 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
6412 pointer from TYPE_STUB_DECL.
6413
6414 2019-01-21 Richard Biener <rguenther@suse.de>
6415
6416 PR tree-optimization/88934
6417 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
6418 at the possibly non-constant operand.
6419 (vect_get_constant_vectors): Adjust.
6420
6421 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
6422
6423 PR target/71659
6424 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
6425 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
6426 instead of _X86INTRIN_H_INCLUDED.
6427 * onfig/i386/clwbintrin.h: Likewise.
6428 * config/i386/pkuintrin.h: Likewise.
6429 * config/i386/prfchwintrin.h: Likewise.
6430 * config/i386/rdseedintrin.h: Likewise.
6431 * config/i386/wbnoinvdintrin.h: Likewise.
6432 * config/i386/xsavecintrin.h: Likewise.
6433 * config/i386/xsavesintrin.h: Likewise.
6434 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
6435 * config/i386/xsaveintrin.h: Likewise.
6436 * config/i386/xsaveoptintrin.h: Likewise.
6437 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
6438 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
6439 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
6440 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
6441 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
6442 * config/i386/immintrin.h: Here.
6443
6444 2019-01-20 Martin Jambor <mjambor@suse.cz>
6445
6446 PR ipa/87615
6447 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
6448 with aa_walk_budget.
6449 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
6450 aa_walk_budget_p parameter.
6451 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
6452 walk. Updated all callers.
6453 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
6454 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
6455 unmodified_parm.
6456 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
6457 parameter info. Extract info from fbi. Pass fbi to recursive calls
6458 and to unmodified_parm.
6459 (phi_result_unknown_predicate): New parameter fbi, removed parameter
6460 info, updated call to will_be_nonconstant_expr_predicate.
6461 (param_change_prob): New parameter fbi, limit AA walking.
6462 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
6463 calls to various above functions.
6464 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
6465 parameter. Use it to limit AA walking.
6466 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
6467 fbi, limit AA walk.
6468 (detect_type_change): New parameter fbi, pass it on to
6469 detect_type_change_from_memory_writes.
6470 (detect_type_change_ssa): Likewise.
6471 (aa_overwalked): Removed.
6472 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
6473 accordingly, adjust to the neew AA limiting scheme.
6474 (parm_ref_data_preserved_p): Likewise.
6475 (ipa_compute_jump_functions_for_edge): Adjust call to
6476 get_dynamic_type.
6477 (ipa_analyze_call_uses): Likewise.
6478 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
6479 (ipa_analyze_node): Initialize aa_walk_budget.
6480 (ipcp_transform_function): Likewise.
6481 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
6482 to get_dynamic_type.
6483
6484 2019-01-19 Jakub Jelinek <jakub@redhat.com>
6485
6486 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
6487 outside of #if CHECKING_P code.
6488
6489 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
6490
6491 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
6492 New function, split out from...
6493 (loop_versioning::analyze_stride): ...here.
6494 (loop_versioning::find_per_loop_multiplication): Use gassign.
6495 (loop_versioning::analyze_term_using_scevs): Return a success code.
6496 (loop_versioning::analyze_arbitrary_term): New function.
6497 (loop_versioning::analyze_address_fragment): Use
6498 analyze_arbitrary_term if all else fails.
6499
6500 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
6501
6502 PR target/88892
6503 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
6504 operands.
6505
6506 2019-01-18 Richard Biener <rguenther@suse.de>
6507
6508 PR tree-optimization/88903
6509 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
6510 scalar stmts a SLP shift amount is composed of when detecting
6511 shifts by scalars.
6512
6513 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
6514
6515 PR target/88799
6516 * config/arm/arm-cpus.in (mp): New feature.
6517 (sec): New feature.
6518 (fgroup ARMv7ve): Add mp and sec features.
6519 (arch armv7-a): Add options to allow mp and sec extensions.
6520 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
6521 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
6522 extenstions to the base architecture.
6523 (cpu cortex-a8): Add sec extension to the base architecture.
6524 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
6525 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
6526 variants down to the base v7-a varaint.
6527 * config/arm/t-multilib (v7_a_arch_variants): New variable.
6528 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
6529 of permitted extensions for -march=armv7-a and for
6530 -mcpu=generic-armv7-a.
6531
6532 2019-01-18 Martin Liska <mliska@suse.cz>
6533
6534 * params.def: Fix comment.
6535 * tree-profile.c (gimple_init_gcov_profiler): Bump function
6536 name.
6537 (gimple_gen_ic_func_profiler): Likewise.
6538
6539 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6540
6541 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
6542 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
6543 and put in error checks for stack protector guard options.
6544 (aarch64_stack_protect_guard): New.
6545 (TARGET_STACK_PROTECT_GUARD): Define.
6546 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
6547 (reg_stack_protect_address<mode>): New.
6548 (stack_protect_set): Adjust for SSP_GLOBAL.
6549 (stack_protect_test): Likewise.
6550 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
6551 (-mstack-protector-guard): Likewise.
6552 (-mstack-protector-guard-offset): Likewise.
6553
6554 2019-01-18 Jakub Jelinek <jakub@redhat.com>
6555
6556 PR tree-optimization/86214
6557 * tree-inline.h (struct copy_body_data): Add
6558 add_clobbers_to_eh_landing_pads member.
6559 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
6560 (copy_edges_for_bb): Call it if EH edge destination is <
6561 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
6562 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
6563 if flag_stack_reuse != SR_NONE and clear it afterwards.
6564
6565 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
6566
6567 PR target/85596
6568 * doc/install.texi (with-multilib-list): Document for aarch64.
6569
6570 2019-01-18 Jakub Jelinek <jakub@redhat.com>
6571
6572 PR target/88734
6573 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
6574 (("..."))) with ("...").
6575
6576 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
6577
6578 * doc/extend.texi (Built-in Functions for Memory Model Aware
6579 Atomic Operations): Document atomic fetch and nand.
6580
6581 2019-01-18 Martin Liska <mliska@suse.cz>
6582 Richard Biener <rguenther@suse.de>
6583
6584 PR middle-end/88587
6585 * cgraph.h (create_version_clone_with_body): Add new argument
6586 with attributes.
6587 * cgraphclones.c (cgraph_node::create_version_clone): Add
6588 DECL_ATTRIBUTES to a newly created decl. And call
6589 valid_attribute_p so that proper cl_target_optimization_node
6590 is set for the newly created declaration.
6591 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
6592 for declaration.
6593 (expand_target_clones): Do not call valid_attribute_p, it must
6594 be already done.
6595 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
6596 vector types.
6597
6598 2019-01-17 Jakub Jelinek <jakub@redhat.com>
6599
6600 PR target/88734
6601 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
6602 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
6603 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
6604
6605 2019-01-17 Martin Sebor <msebor@redhat.com>
6606
6607 PR middle-end/88273
6608 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
6609 Handle anti-ranges the same as no range at all.
6610
6611 2018-01-17 Steve Ellcey <sellcey@cavium.com>
6612
6613 * config/aarch64/aarch64.c (cgraph.h): New include.
6614 (intl.h): New include.
6615 (supported_simd_type): New function.
6616 (currently_supported_simd_type): Ditto.
6617 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
6618 (aarch64_simd_clone_adjust): Ditto.
6619 (aarch64_simd_clone_usable): Ditto.
6620 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
6621 (TARGET_SIMD_CLONE_ADJUST): Ditto.
6622 (TARGET_SIMD_CLONE_USABLE): Ditto.
6623 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
6624 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
6625 call.
6626
6627 2019-01-17 Martin Sebor <msebor@redhat.com>
6628
6629 PR tree-optimization/88800
6630 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
6631 NO_WARNING bit here. Avoid folding out-of-bounds calls.
6632 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
6633 redundant argument. Add new argument and issue diagnostics under
6634 its control. Detect out-of-bounds access even with warnings
6635 disabled.
6636 (check_bounds_or_overlap): Change return type. Add argument.
6637 (wrestrict_dom_walker::check_call): Adjust.
6638 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
6639 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
6640 check_bounds_or_overlap's return value.
6641 (handle_builtin_stxncpy): Same.
6642 (handle_builtin_strcat): Same.
6643
6644 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
6645 Kwok Cheung Yeung <kcy@codesourcery.com>
6646 Julian Brown <julian@codesourcery.com>
6647 Tom de Vries <tom@codesourcery.com>
6648
6649 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
6650
6651 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
6652
6653 * doc/sourcebuild.texi: Document dg-require-effective-target
6654 llvm_binutils and offload_gcn.
6655
6656 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
6657 Kwok Cheung Yeung <kcy@codesourcery.com>
6658 Julian Brown <julian@codesourcery.com>
6659 Tom de Vries <tom@codesourcery.com>
6660
6661 * doc/sourcebuild.texi: Document dg-required-effective-target
6662 exceptions.
6663
6664 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
6665 Kwok Cheung Yeung <kcy@codesourcery.com>
6666 Julian Brown <julian@codesourcery.com>
6667 Tom de Vries <tom@codesourcery.com>
6668 Jan Hubicka <hubicka@ucw.cz>
6669 Martin Jambor <mjambor@suse.cz>
6670
6671 * config.gcc: Add amdgcn*-*-amdhsa configuration.
6672 * configure.ac: Check for dlopen.
6673 * configure: Regenerate.
6674
6675 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
6676 Kwok Cheung Yeung <kcy@codesourcery.com>
6677 Julian Brown <julian@codesourcery.com>
6678 Tom de Vries <tom@codesourcery.com>
6679 Jan Hubicka <hubicka@ucw.cz>
6680 Martin Jambor <mjambor@suse.cz>
6681
6682 * common/config/gcn/gcn-common.c: New file.
6683 * config/gcn/driver-gcn.c: New file.
6684 * config/gcn/gcn-builtins.def: New file.
6685 * config/gcn/gcn-hsa.h: New file.
6686 * config/gcn/gcn-modes.def: New file.
6687 * config/gcn/gcn-opts.h: New file.
6688 * config/gcn/gcn-passes.def: New file.
6689 * config/gcn/gcn-protos.h: New file.
6690 * config/gcn/gcn-run.c: New file.
6691 * config/gcn/gcn-tree.c: New file.
6692 * config/gcn/gcn.c: New file.
6693 * config/gcn/gcn.h: New file.
6694 * config/gcn/gcn.opt: New file.
6695 * config/gcn/t-gcn-hsa: New file.
6696
6697 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
6698 Kwok Cheung Yeung <kcy@codesourcery.com>
6699 Julian Brown <julian@codesourcery.com>
6700 Tom de Vries <tom@codesourcery.com>
6701 Jan Hubicka <hubicka@ucw.cz>
6702 Martin Jambor <mjambor@suse.cz>
6703
6704 * config/gcn/constraints.md: New file.
6705 * config/gcn/gcn-valu.md: New file.
6706 * config/gcn/gcn.md: New file.
6707 * config/gcn/predicates.md: New file.
6708
6709 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
6710
6711 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
6712 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
6713 (stmt_uses_0_or_null_in_undefined_way): Likewise.
6714 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
6715
6716 2019-01-17 Tamar Christina <tamar.christina@arm.com>
6717
6718 PR target/88851
6719 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
6720 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
6721 it and document registers.
6722
6723 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6724
6725 * config/aarch64/aarch64.c (ares_tunings): Define.
6726 * config/aarch64/aarch64-cores.def (ares): Use the above.
6727
6728 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
6729
6730 PR target/88794
6731 Revert:
6732 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
6733
6734 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
6735 (_mm512_fixupimm_round_pd): Update parameters and builtin.
6736 (_mm512_maskz_fixupimm_round_pd): Ditto.
6737 (_mm512_fixupimm_round_ps): Ditto.
6738 (_mm512_maskz_fixupimm_round_ps): Ditto.
6739 (_mm_fixupimm_round_sd): Ditto.
6740 (_mm_maskz_fixupimm_round_sd): Ditto.
6741 (_mm_fixupimm_round_ss): Ditto.
6742 (_mm_maskz_fixupimm_round_ss): Ditto.
6743 (_mm512_fixupimm_pd): Ditto.
6744 (_mm512_maskz_fixupimm_pd): Ditto.
6745 (_mm512_fixupimm_ps): Ditto.
6746 (_mm512_maskz_fixupimm_ps): Ditto.
6747 (_mm_fixupimm_sd): Ditto.
6748 (_mm_maskz_fixupimm_sd): Ditto.
6749 (_mm_fixupimm_ss): Ditto.
6750 (_mm_maskz_fixupimm_ss): Ditto.
6751 (_mm512_mask_fixupimm_round_pd): Update builtin.
6752 (_mm512_mask_fixupimm_round_ps): Ditto.
6753 (_mm_mask_fixupimm_round_sd): Ditto.
6754 (_mm_mask_fixupimm_round_ss): Ditto.
6755 (_mm512_mask_fixupimm_pd): Ditto.
6756 (_mm512_mask_fixupimm_ps): Ditto.
6757 (_mm_mask_fixupimm_sd): Ditto.
6758 (_mm_mask_fixupimm_ss): Ditto.
6759 * config/i386/avx512vlintrin.h:
6760 (_mm256_fixupimm_pd): Update parameters and builtin.
6761 (_mm256_maskz_fixupimm_pd): Ditto.
6762 (_mm256_fixupimm_ps): Ditto.
6763 (_mm256_maskz_fixupimm_ps): Ditto.
6764 (_mm_fixupimm_pd): Ditto.
6765 (_mm_maskz_fixupimm_pd): Ditto.
6766 (_mm_fixupimm_ps): Ditto.
6767 (_mm_maskz_fixupimm_ps): Ditto.
6768 (_mm256_mask_fixupimm_pd): Update builtin.
6769 (_mm256_mask_fixupimm_ps): Ditto.
6770 (_mm_mask_fixupimm_pd): Ditto.
6771 (_mm_mask_fixupimm_ps): Ditto.
6772 * config/i386/i386-builtin-types.def: Add new types and remove useless ones.
6773 * config/i386/i386-builtin.def: Update builtin definitions.
6774 * config/i386/i386.c: Handle new builtin types and remove useless ones.
6775 * config/i386/sse.md: Update VFIXUPIMM* patterns.
6776 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
6777 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
6778 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
6779 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
6780 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
6781 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
6782 * config/i386/subst.md:
6783 (round_saeonly_sd_mask_operand4): Add new subst_attr.
6784 (round_saeonly_sd_mask_op4): Ditto.
6785 (round_saeonly_expand_operand5): Ditto.
6786 (round_saeonly_expand): Update.
6787
6788 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
6789
6790 PR target/88794
6791 Revert:
6792 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
6793
6794 * config/i386/sse.md: Combine VFIXUPIMM* patterns
6795 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
6796 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
6797 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
6798 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
6799 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
6800 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
6801
6802 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
6803
6804 PR target/88794
6805 Revert:
6806 2018-12-15 Jakub Jelinek <jakub@redhat.com>
6807
6808 PR target/88489
6809 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
6810 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
6811 instead of UNSPEC_FIXUPIMM.
6812
6813 2019-01-17 Richard Biener <rguenther@suse.de>
6814
6815 PR lto/86736
6816 * dwarf2out.c (want_pubnames): Never generate pubnames sections
6817 and friends for the LTO part of debug info.
6818
6819 2019-01-17 Jakub Jelinek <jakub@redhat.com>
6820
6821 PR tree-optimization/86214
6822 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
6823 if x == y.
6824
6825 PR rtl-optimization/88870
6826 * dce.c (deletable_insn_p): Never delete const/pure calls that can
6827 throw if we can't alter the cfg or delete dead exceptions.
6828 (mark_insn): Don't call find_call_stack_args for such calls.
6829
6830 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
6831
6832 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
6833 prototypes for vec_st.
6834 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
6835 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
6836 mainly on signed/unsigned long long and double.
6837
6838 2019-01-16 David Malcolm <dmalcolm@redhat.com>
6839
6840 PR target/88861
6841 * combine.c (delete_noop_moves): Convert to "bool" return,
6842 returning true if any edges are eliminated.
6843 (combine_instructions): Also return true if delete_noop_moves
6844 returns true.
6845
6846 2019-01-16 Tamar Christina <tamar.christina@arm.com>
6847
6848 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
6849 correct max nunits for endian swap.
6850 (aarch64_expand_fcmla_builtin): Correct subreg code.
6851 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
6852 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
6853 lane endianness.
6854
6855 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
6856
6857 * config/alpha/alpha.c (alpha_gimplify_va_arg):
6858 Handle split indirect COMPLEX_TYPE arguments.
6859
6860 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
6861
6862 PR target/86891
6863 * config/aarch64/aarch64-modes.def: Add comment about how the carry
6864 bit is set by add and compare.
6865 (CC_ADC): New CC_MODE.
6866 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
6867 to cache the code and mode of X. Adjust the shape of a CC_Cmode
6868 comparison. Add detection for CC_ADCmode.
6869 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
6870 CC_ADCmode.
6871 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
6872 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
6873 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
6874 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
6875 to eliminate the need for zero-extending the operands.
6876 (add<mode>3_compareC_imm): Delete. Merge into ...
6877 (add<mode>3_compareC): ... this. Restructure the comparison to
6878 eliminate the need for zero-extending the operands.
6879 (add<mode>3_carryin): Use LTU for the overflow detection.
6880 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
6881 Reexpress comparison for overflow.
6882 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
6883 (add<mode>3_carryinC): Likewise.
6884 (add<mode>3_carryinV): Use LTU for carry between partials.
6885 * config/aarch64/predicates.md (aarch64_carry_operation): Update
6886 handling of CC_Cmode and add CC_ADCmode.
6887 (aarch64_borrow_operation): Likewise.
6888
6889 2019-01-16 Tamar Christina <tamar.christina@arm.com>
6890
6891 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): Remove patternmode.
6892 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
6893 * config/arm/neon.md (neon_vcmla_lane<rot><mode>, neon_vcmla_laneq<rot><mode>,
6894 neon_vcmlaq_lane<rot><mode>): Remove endianness conversion.
6895
6896 2019-01-16 Martin Liska <mliska@suse.cz>
6897
6898 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
6899 for GCC driver.
6900 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
6901 a new argument.
6902 * gcc.c (add_sysrooted_hdrs_prefix): New function.
6903 (path_prefix_reset): Move up in the source file.
6904 (find_fortran_preinclude_file): Make complex search for the
6905 fortran header files.
6906
6907 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
6908
6909 * godump.c (go_output_typedef): When outputting a typedef, refer
6910 to the underlying type by its name and not its structure.
6911
6912 2019-01-15 David Malcolm <dmalcolm@redhat.com>
6913
6914 PR c++/88795
6915 * tree.c (build_function_type): Assert that arg_types is not
6916 error_mark_node.
6917
6918 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
6919
6920 PR inline-asm/52813
6921 * doc/extend.texi: Document that listing the stack pointer in the
6922 clobber list of an asm is a deprecated feature.
6923 * common.opt (Wdeprecated): Moved from c-family/c.opt.
6924 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
6925 warning instead of an error for clobbers of the stack pointer.
6926 Add a note explaining why.
6927
6928 2019-01-15 Richard Biener <rguenther@suse.de>
6929
6930 PR debug/88046
6931 * dwarf2out.c (gen_member_die): Do not generate inheritance
6932 DIEs late.
6933
6934 2019-01-15 Richard Biener <rguenther@suse.de>
6935
6936 PR tree-optimization/88855
6937 * tree-if-conv.c (combine_blocks): Collect
6938 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
6939
6940 2019-01-15 Tom de Vries <tdevries@suse.de>
6941
6942 PR target/80547
6943 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
6944 lhs == NULL_TREE for gang-level reduction.
6945
6946 2019-01-15 Richard Biener <rguenther@suse.de>
6947 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6948
6949 PR ipa/88788
6950 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
6951 return true if SSA_NAME is already marked in visited bitmap.
6952 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
6953
6954 2019-01-15 Jakub Jelinek <jakub@redhat.com>
6955
6956 PR tree-optimization/88775
6957 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
6958 equal == 0 equality pointer comparisons some more if compared in
6959 integral types and either one points to an automatic var and the
6960 other to a global, or we can prove at least one points to the middle
6961 or both point to start or both point to end.
6962
6963 2019-01-14 Andi Kleen <ak@linux.intel.com>
6964
6965 * Makefile.in: Lower autofdo sampling rate by 10x.
6966 * Makefile.tpl: Dito.
6967
6968 2019-01-14 Tom Honermann <tom@honermann.net>
6969
6970 * defaults.h: Define CHAR8_TYPE.
6971
6972 2019-01-14 Martin Sebor <msebor@redhat.com>
6973
6974 PR target/88638
6975 * doc/extend.texi (Darwin Format Checks): Clarify.
6976
6977 2019-01-14 Richard Biener <rguenther@suse.de>
6978
6979 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
6980 whether we are in (simplify ...) or (match ...) context.
6981
6982 2019-01-14 Jakub Jelinek <jakub@redhat.com>
6983
6984 PR rtl-optimization/88796
6985 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
6986 * cfgexpand.c (stack_protect_prologue): Initialize
6987 crtl->stack_protect_guard_decl.
6988 * function.c (stack_protect_epilogue): Use it instead of calling
6989 targetm.stack_protect_guard again.
6990 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
6991 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
6992 crtl->stack_protect_guard_decl.
6993 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
6994 on the returned MEM_EXPR.
6995
6996 2019-01-12 Tom de Vries <tdevries@suse.de>
6997
6998 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
6999 vector length using -fopenacc-dim.
7000
7001 2019-01-12 Tom de Vries <tdevries@suse.de>
7002
7003 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
7004 lengths into account.
7005
7006 2019-01-12 Svante Signell <svante.signell@gmail.com>
7007
7008 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
7009 (TARGET_CAN_SPLIT_STACK): Define.
7010 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
7011
7012 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
7013
7014 * params.def (inline-unit-growth): Set to 40.
7015
7016 2019-01-12 Jakub Jelinek <jakub@redhat.com>
7017
7018 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
7019
7020 2019-01-12 Tom de Vries <tdevries@suse.de>
7021
7022 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
7023 region calling vector-partitionable routine, set default_vector_length
7024 to WARP_SIZE.
7025
7026 2019-01-12 Tom de Vries <tdevries@suse.de>
7027
7028 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
7029 variable default_vector_length.
7030
7031 2019-01-12 Tom de Vries <tdevries@suse.de>
7032
7033 PR middle-end/88703
7034 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
7035 from oacc_default_dims, as oacc_validate_dims would do it, and apply
7036 dimensions limits.
7037
7038 2019-01-12 Tom de Vries <tdevries@suse.de>
7039
7040 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
7041 (nvptx_goacc_validate_dims): Add used parameter.
7042 * doc/tm.texi: Regenerate.
7043 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
7044 argument to call to targetm.goacc.validate_dims.
7045 (default_goacc_validate_dims): Add used
7046 parameter.
7047 * target.def (validate_dims): Add used parameter in DEFHOOK.
7048 * targhooks.h (default_goacc_validate_dims): Add used parameter.
7049
7050 2019-01-11 Jakub Jelinek <jakub@redhat.com>
7051
7052 PR middle-end/85956
7053 PR lto/88733
7054 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
7055 field.
7056 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
7057 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
7058 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
7059 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
7060
7061 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
7062
7063 PR rtl-optimization/87305
7064 * lra-assigns.c
7065 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
7066 for little endian pseudos used as paradoxical subreg.
7067
7068 2019-01-11 Jakub Jelinek <jakub@redhat.com>
7069
7070 PR tree-optimization/88693
7071 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
7072 for STRING_CSTs that don't contain any NUL characters in the first
7073 TREE_STRING_LENGTH bytes.
7074
7075 2019-01-11 Alan Modra <amodra@gmail.com>
7076
7077 PR 88777
7078 PR 88614
7079 * genattrtab.c (min_fn): Don't translate values.
7080 (min_attr_value): Return INT_MAX when the value can't be calculated.
7081 Return minimum among any values that can be calculated.
7082 (max_attr_value): Adjust.
7083
7084 2019-01-11 Jakub Jelinek <jakub@redhat.com>
7085
7086 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
7087
7088 2019-01-11 Steve Ellcey <sellcey@marvell.com>
7089
7090 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
7091 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
7092 (aarch64_return_call_with_max_clobbers): New function.
7093 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
7094 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
7095 argument.
7096 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
7097 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
7098 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
7099 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
7100 * cselib.c (cselib_process_insn): Add argument to
7101 targetm.hard_regno_call_part_clobbered call.
7102 * ira-conflicts.c (ira_build_conflicts): Ditto.
7103 * ira-costs.c (ira_tune_allocno_costs): Ditto.
7104 * lra-constraints.c (inherit_reload_reg): Ditto.
7105 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
7106 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
7107 argument. Call targetm.return_call_with_max_clobbers.
7108 Add argument to targetm.hard_regno_call_part_clobbered call.
7109 (calls_have_same_clobbers_p): New function.
7110 (process_bb_lives): Add call_insn and last_call_insn variables.
7111 Pass call_insn to check_pseudos_live_through_calls.
7112 Modify if stmt to check targetm.return_call_with_max_clobbers.
7113 Update setting of flush variable.
7114 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
7115 to false.
7116 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
7117 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
7118 targetm.hard_regno_call_part_clobbered call.
7119 * reginfo.c (choose_hard_reg_mode): Ditto.
7120 * regrename.c (check_new_reg_p): Ditto.
7121 * reload.c (find_equiv_reg): Ditto.
7122 * reload1.c (emit_reload_insns): Ditto.
7123 * sched-deps.c (deps_analyze_insn): Ditto.
7124 * sel-sched.c (init_regs_for_mode): Ditto.
7125 (mark_unavailable_hard_regs): Ditto.
7126 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
7127 * target.def (hard_regno_call_part_clobbered): Add insn argument.
7128 (return_call_with_max_clobbers): New target function.
7129 * doc/tm.texi: Regenerate.
7130 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
7131 * hooks.c (hook_bool_uint_mode_false): Change to
7132 hook_bool_insn_uint_mode_false.
7133 * hooks.h (hook_bool_uint_mode_false): Ditto.
7134
7135 2019-01-11 Steve Ellcey <sellcey@marvell.com>
7136
7137 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
7138 (aarch64_remove_extra_call_preserved_regs): New function.
7139 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
7140 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
7141 * doc/tm.texi: Regenerate.
7142 * final.c (get_call_reg_set_usage): Call new hook.
7143 * target.def (remove_extra_call_preserved_regs): New hook.
7144 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
7145 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
7146
7147 2019-01-11 Jakub Jelinek <jakub@redhat.com>
7148
7149 PR bootstrap/88714
7150 * passes.c (finish_optimization_passes): Call print_combine_total_stats
7151 inside of pass_combine_1 dump rather than pass_profile_1.
7152
7153 2019-01-11 Tom de Vries <tdevries@suse.de>
7154
7155 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
7156 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
7157 (PTX_NUM_PER_WORKER_BARRIERS): Define.
7158 (nvptx_apply_dim_limits): Prevent vector_length 64 and
7159 num_workers 16.
7160
7161 2019-01-11 Tom de Vries <tdevries@suse.de>
7162
7163 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
7164
7165 2019-01-11 Jan Beulich <jbeulich@suse.com>
7166
7167 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
7168 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
7169 sse2_cvtsi2sd): Add {l}.
7170 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
7171 syntax.
7172
7173 2019-01-10 Jakub Jelinek <jakub@redhat.com>
7174
7175 PR target/88785
7176 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
7177 define_expand.
7178 (*float<floatunssuffix>v2div2sf2): New define_insn.
7179 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
7180 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
7181 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
7182 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
7183 match_operands with "const0_operand" "C".
7184
7185 2019-01-10 Tamar Christina <tamar.christina@arm.com>
7186
7187 * config/aarch64/aarch64-builtins.c
7188 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
7189 (aarch64_init_simd_builtins): ...Here
7190
7191 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
7192
7193 PR rtl-optimization/87305
7194 * lra-assigns.c
7195 (setup_live_pseudos_and_spill_after_risky_transforms): Check
7196 allocation for big endian pseudos used as paradoxical subregs and
7197 spill them if it is wrong.
7198 * lra-constraints.c (lra_constraints): Add a comment.
7199
7200 2019-01-10 Richard Biener <rguenther@suse.de>
7201
7202 PR tree-optimization/88792
7203 * tree-ssa-pre.c (get_representative_for): Do not return a
7204 value-number here.
7205
7206 2019-01-10 Jakub Jelinek <jakub@redhat.com>
7207
7208 PR middle-end/84877
7209 PR bootstrap/88450
7210 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
7211 (assign_parm_setup_block): Do the argument slot realignment here
7212 instead.
7213
7214 2019-01-10 Stefan Agner <stefan@agner.ch>
7215
7216 PR target/88648
7217 * config/arm/arm.c (arm_option_override_internal): Force
7218 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
7219
7220 2019-01-10 Jakub Jelinek <jakub@redhat.com>
7221
7222 PR c/88568
7223 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
7224 DECL_EXTERNAL.
7225
7226 2019-01-10 Tamar Christina <tamar.christina@arm.com>
7227
7228 * config/arm/arm-builtins.c
7229 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
7230 (MAC_LANE_PAIR_QUALIFIERS): New.
7231 (arm_expand_builtin_args): Use it.
7232 (arm_expand_builtin_1): Likewise.
7233 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
7234 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
7235 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
7236 * config/arm/arm_neon.h:
7237 (vcadd_rot90_f16): New.
7238 (vcaddq_rot90_f16): New.
7239 (vcadd_rot270_f16): New.
7240 (vcaddq_rot270_f16): New.
7241 (vcmla_f16): New.
7242 (vcmlaq_f16): New.
7243 (vcmla_lane_f16): New.
7244 (vcmla_laneq_f16): New.
7245 (vcmlaq_lane_f16): New.
7246 (vcmlaq_laneq_f16): New.
7247 (vcmla_rot90_f16): New.
7248 (vcmlaq_rot90_f16): New.
7249 (vcmla_rot90_lane_f16): New.
7250 (vcmla_rot90_laneq_f16): New.
7251 (vcmlaq_rot90_lane_f16): New.
7252 (vcmlaq_rot90_laneq_f16): New.
7253 (vcmla_rot180_f16): New.
7254 (vcmlaq_rot180_f16): New.
7255 (vcmla_rot180_lane_f16): New.
7256 (vcmla_rot180_laneq_f16): New.
7257 (vcmlaq_rot180_lane_f16): New.
7258 (vcmlaq_rot180_laneq_f16): New.
7259 (vcmla_rot270_f16): New.
7260 (vcmlaq_rot270_f16): New.
7261 (vcmla_rot270_lane_f16): New.
7262 (vcmla_rot270_laneq_f16): New.
7263 (vcmlaq_rot270_lane_f16): New.
7264 (vcmlaq_rot270_laneq_f16): New.
7265 (vcadd_rot90_f32): New.
7266 (vcaddq_rot90_f32): New.
7267 (vcadd_rot270_f32): New.
7268 (vcaddq_rot270_f32): New.
7269 (vcmla_f32): New.
7270 (vcmlaq_f32): New.
7271 (vcmla_lane_f32): New.
7272 (vcmla_laneq_f32): New.
7273 (vcmlaq_lane_f32): New.
7274 (vcmlaq_laneq_f32): New.
7275 (vcmla_rot90_f32): New.
7276 (vcmlaq_rot90_f32): New.
7277 (vcmla_rot90_lane_f32): New.
7278 (vcmla_rot90_laneq_f32): New.
7279 (vcmlaq_rot90_lane_f32): New.
7280 (vcmlaq_rot90_laneq_f32): New.
7281 (vcmla_rot180_f32): New.
7282 (vcmlaq_rot180_f32): New.
7283 (vcmla_rot180_lane_f32): New.
7284 (vcmla_rot180_laneq_f32): New.
7285 (vcmlaq_rot180_lane_f32): New.
7286 (vcmlaq_rot180_laneq_f32): New.
7287 (vcmla_rot270_f32): New.
7288 (vcmlaq_rot270_f32): New.
7289 (vcmla_rot270_lane_f32): New.
7290 (vcmla_rot270_laneq_f32): New.
7291 (vcmlaq_rot270_lane_f32): New.
7292 (vcmlaq_rot270_laneq_f32): New.
7293 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
7294 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
7295 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
7296 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
7297 vcmlaq_lane270): New.
7298 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
7299 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
7300 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
7301 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
7302 (arm_option_reconfigure_globals): Use them.
7303 * config/arm/iterators.md (VDF, VQ_HSF): New.
7304 (VCADD, VCMLA): New.
7305 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
7306 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
7307 New.
7308 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
7309 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
7310
7311 2019-01-10 Tamar Christina <tamar.christina@arm.com>
7312
7313 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
7314 Add qualifier_lane_pair_index.
7315 (emit-rtl.h): Include.
7316 (TYPES_QUADOP_LANE_PAIR): New.
7317 (aarch64_simd_expand_args): Use it.
7318 (aarch64_simd_expand_builtin): Likewise.
7319 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
7320 New.
7321 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
7322 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
7323 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
7324 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
7325 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
7326 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
7327 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
7328 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
7329 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
7330 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
7331 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
7332 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
7333 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
7334 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
7335 Add __ARM_FEATURE_COMPLEX.
7336 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
7337 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
7338 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
7339 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
7340 fcmlaq_lane270): New.
7341 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
7342 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
7343 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
7344 * config/aarch64/arm_neon.h:
7345 (vcadd_rot90_f16): New.
7346 (vcaddq_rot90_f16): New.
7347 (vcadd_rot270_f16): New.
7348 (vcaddq_rot270_f16): New.
7349 (vcmla_f16): New.
7350 (vcmlaq_f16): New.
7351 (vcmla_lane_f16): New.
7352 (vcmla_laneq_f16): New.
7353 (vcmlaq_lane_f16): New.
7354 (vcmlaq_rot90_lane_f16): New.
7355 (vcmla_rot90_laneq_f16): New.
7356 (vcmla_rot90_lane_f16): New.
7357 (vcmlaq_rot90_f16): New.
7358 (vcmla_rot90_f16): New.
7359 (vcmlaq_laneq_f16): New.
7360 (vcmla_rot180_laneq_f16): New.
7361 (vcmla_rot180_lane_f16): New.
7362 (vcmlaq_rot180_f16): New.
7363 (vcmla_rot180_f16): New.
7364 (vcmlaq_rot90_laneq_f16): New.
7365 (vcmlaq_rot270_laneq_f16): New.
7366 (vcmlaq_rot270_lane_f16): New.
7367 (vcmla_rot270_laneq_f16): New.
7368 (vcmlaq_rot270_f16): New.
7369 (vcmla_rot270_f16): New.
7370 (vcmlaq_rot180_laneq_f16): New.
7371 (vcmlaq_rot180_lane_f16): New.
7372 (vcmla_rot270_lane_f16): New.
7373 (vcadd_rot90_f32): New.
7374 (vcaddq_rot90_f32): New.
7375 (vcaddq_rot90_f64): New.
7376 (vcadd_rot270_f32): New.
7377 (vcaddq_rot270_f32): New.
7378 (vcaddq_rot270_f64): New.
7379 (vcmla_f32): New.
7380 (vcmlaq_f32): New.
7381 (vcmlaq_f64): New.
7382 (vcmla_lane_f32): New.
7383 (vcmla_laneq_f32): New.
7384 (vcmlaq_lane_f32): New.
7385 (vcmlaq_laneq_f32): New.
7386 (vcmla_rot90_f32): New.
7387 (vcmlaq_rot90_f32): New.
7388 (vcmlaq_rot90_f64): New.
7389 (vcmla_rot90_lane_f32): New.
7390 (vcmla_rot90_laneq_f32): New.
7391 (vcmlaq_rot90_lane_f32): New.
7392 (vcmlaq_rot90_laneq_f32): New.
7393 (vcmla_rot180_f32): New.
7394 (vcmlaq_rot180_f32): New.
7395 (vcmlaq_rot180_f64): New.
7396 (vcmla_rot180_lane_f32): New.
7397 (vcmla_rot180_laneq_f32): New.
7398 (vcmlaq_rot180_lane_f32): New.
7399 (vcmlaq_rot180_laneq_f32): New.
7400 (vcmla_rot270_f32): New.
7401 (vcmlaq_rot270_f32): New.
7402 (vcmlaq_rot270_f64): New.
7403 (vcmla_rot270_lane_f32): New.
7404 (vcmla_rot270_laneq_f32): New.
7405 (vcmlaq_rot270_lane_f32): New.
7406 (vcmlaq_rot270_laneq_f32): New.
7407 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
7408 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
7409 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
7410 (FCADD, FCMLA): New.
7411 (rot): New.
7412 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
7413
7414 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
7415
7416 PR other/16615
7417
7418 * config/pa/pa.c: Change "can not" to "cannot".
7419 * gimple-ssa-evrp-analyze.c: Likewise.
7420 * ipa-icf.c: Likewise.
7421 * ipa-polymorphic-call.c: Likewise.
7422 * ipa-pure-const.c: Likewise.
7423 * lra-constraints.c: Likewise.
7424 * lra-remat.c: Likewise.
7425 * reload1.c: Likewise.
7426 * reorg.c: Likewise.
7427 * tree-ssa-uninit.c: Likewise.
7428
7429 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
7430
7431 PR other/16615
7432
7433 * Makefile.in: Mechanically replace "can not" with "cannot".
7434 * alias.c: Likewise.
7435 * builtins.c: Likewise.
7436 * calls.c: Likewise.
7437 * cgraph.c: Likewise.
7438 * cgraph.h: Likewise.
7439 * cgraphclones.c: Likewise.
7440 * cgraphunit.c: Likewise.
7441 * combine-stack-adj.c: Likewise.
7442 * combine.c: Likewise.
7443 * common/config/i386/i386-common.c: Likewise.
7444 * config/aarch64/aarch64.c: Likewise.
7445 * config/alpha/sync.md: Likewise.
7446 * config/arc/arc.c: Likewise.
7447 * config/arc/predicates.md: Likewise.
7448 * config/arm/arm-c.c: Likewise.
7449 * config/arm/arm.c: Likewise.
7450 * config/arm/arm.h: Likewise.
7451 * config/arm/arm.md: Likewise.
7452 * config/arm/cortex-r4f.md: Likewise.
7453 * config/csky/csky.c: Likewise.
7454 * config/csky/csky.h: Likewise.
7455 * config/darwin-f.c: Likewise.
7456 * config/epiphany/epiphany.md: Likewise.
7457 * config/i386/i386.c: Likewise.
7458 * config/i386/sol2.h: Likewise.
7459 * config/m68k/m68k.c: Likewise.
7460 * config/mcore/mcore.h: Likewise.
7461 * config/microblaze/microblaze.md: Likewise.
7462 * config/mips/20kc.md: Likewise.
7463 * config/mips/sb1.md: Likewise.
7464 * config/nds32/nds32.c: Likewise.
7465 * config/nds32/predicates.md: Likewise.
7466 * config/pa/pa.c: Likewise.
7467 * config/rs6000/e300c2c3.md: Likewise.
7468 * config/rs6000/rs6000.c: Likewise.
7469 * config/s390/s390.h: Likewise.
7470 * config/sh/sh.c: Likewise.
7471 * config/sh/sh.md: Likewise.
7472 * config/spu/vmx2spu.h: Likewise.
7473 * cprop.c: Likewise.
7474 * dbxout.c: Likewise.
7475 * df-scan.c: Likewise.
7476 * doc/cfg.texi: Likewise.
7477 * doc/extend.texi: Likewise.
7478 * doc/fragments.texi: Likewise.
7479 * doc/gty.texi: Likewise.
7480 * doc/invoke.texi: Likewise.
7481 * doc/lto.texi: Likewise.
7482 * doc/md.texi: Likewise.
7483 * doc/objc.texi: Likewise.
7484 * doc/rtl.texi: Likewise.
7485 * doc/tm.texi: Likewise.
7486 * dse.c: Likewise.
7487 * emit-rtl.c: Likewise.
7488 * emit-rtl.h: Likewise.
7489 * except.c: Likewise.
7490 * expmed.c: Likewise.
7491 * expr.c: Likewise.
7492 * fold-const.c: Likewise.
7493 * genautomata.c: Likewise.
7494 * gimple-fold.c: Likewise.
7495 * hard-reg-set.h: Likewise.
7496 * ifcvt.c: Likewise.
7497 * ipa-comdats.c: Likewise.
7498 * ipa-cp.c: Likewise.
7499 * ipa-devirt.c: Likewise.
7500 * ipa-fnsummary.c: Likewise.
7501 * ipa-icf.c: Likewise.
7502 * ipa-inline-transform.c: Likewise.
7503 * ipa-inline.c: Likewise.
7504 * ipa-polymorphic-call.c: Likewise.
7505 * ipa-profile.c: Likewise.
7506 * ipa-prop.c: Likewise.
7507 * ipa-pure-const.c: Likewise.
7508 * ipa-reference.c: Likewise.
7509 * ipa-split.c: Likewise.
7510 * ipa-visibility.c: Likewise.
7511 * ipa.c: Likewise.
7512 * ira-build.c: Likewise.
7513 * ira-color.c: Likewise.
7514 * ira-conflicts.c: Likewise.
7515 * ira-costs.c: Likewise.
7516 * ira-int.h: Likewise.
7517 * ira-lives.c: Likewise.
7518 * ira.c: Likewise.
7519 * ira.h: Likewise.
7520 * loop-invariant.c: Likewise.
7521 * loop-unroll.c: Likewise.
7522 * lower-subreg.c: Likewise.
7523 * lra-assigns.c: Likewise.
7524 * lra-constraints.c: Likewise.
7525 * lra-eliminations.c: Likewise.
7526 * lra-lives.c: Likewise.
7527 * lra-remat.c: Likewise.
7528 * lra-spills.c: Likewise.
7529 * lra.c: Likewise.
7530 * lto-cgraph.c: Likewise.
7531 * lto-streamer-out.c: Likewise.
7532 * postreload-gcse.c: Likewise.
7533 * predict.c: Likewise.
7534 * profile-count.h: Likewise.
7535 * profile.c: Likewise.
7536 * recog.c: Likewise.
7537 * ree.c: Likewise.
7538 * reload.c: Likewise.
7539 * reload1.c: Likewise.
7540 * reorg.c: Likewise.
7541 * resource.c: Likewise.
7542 * rtl.def: Likewise.
7543 * rtl.h: Likewise.
7544 * rtlanal.c: Likewise.
7545 * sched-deps.c: Likewise.
7546 * sched-ebb.c: Likewise.
7547 * sched-rgn.c: Likewise.
7548 * sel-sched-ir.c: Likewise.
7549 * sel-sched.c: Likewise.
7550 * shrink-wrap.c: Likewise.
7551 * simplify-rtx.c: Likewise.
7552 * symtab.c: Likewise.
7553 * target.def: Likewise.
7554 * toplev.c: Likewise.
7555 * tree-call-cdce.c: Likewise.
7556 * tree-cfg.c: Likewise.
7557 * tree-complex.c: Likewise.
7558 * tree-core.h: Likewise.
7559 * tree-eh.c: Likewise.
7560 * tree-inline.c: Likewise.
7561 * tree-loop-distribution.c: Likewise.
7562 * tree-nrv.c: Likewise.
7563 * tree-profile.c: Likewise.
7564 * tree-sra.c: Likewise.
7565 * tree-ssa-alias.c: Likewise.
7566 * tree-ssa-dce.c: Likewise.
7567 * tree-ssa-dom.c: Likewise.
7568 * tree-ssa-forwprop.c: Likewise.
7569 * tree-ssa-loop-im.c: Likewise.
7570 * tree-ssa-loop-ivcanon.c: Likewise.
7571 * tree-ssa-loop-ivopts.c: Likewise.
7572 * tree-ssa-loop-niter.c: Likewise.
7573 * tree-ssa-phionlycprop.c: Likewise.
7574 * tree-ssa-phiopt.c: Likewise.
7575 * tree-ssa-propagate.c: Likewise.
7576 * tree-ssa-threadedge.c: Likewise.
7577 * tree-ssa-threadupdate.c: Likewise.
7578 * tree-ssa-uninit.c: Likewise.
7579 * tree-ssanames.c: Likewise.
7580 * tree-streamer-out.c: Likewise.
7581 * tree.c: Likewise.
7582 * tree.h: Likewise.
7583 * vr-values.c: Likewise.
7584
7585 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
7586
7587 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
7588 (ix86_split_xorsign): Ditto.
7589 * config/i386/i386.c (ix86_expand_xorsign): New function.
7590 (ix86_split_xorsign): Ditto.
7591 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
7592 (xorsign<mode>3): New expander.
7593 (xorsign<mode>3_1): New insn_and_split pattern.
7594 * config/i386/sse.md (xorsign<mode>3): New expander.
7595
7596 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
7597
7598 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
7599 (*tablejump_sp64): Likewise.
7600 (*tablejump<P:mode>): ...this.
7601 (*call_address_sp32): Merge into...
7602 (*call_address_sp64): Likewise.
7603 (*call_address<P:mode>): ...this.
7604 (*call_symbolic_sp32): Merge into...
7605 (*call_symbolic_sp64): Likewise.
7606 (*call_symbolic<P:mode>): ...this.
7607 (call_value): Remove constraint and add predicate.
7608 (*call_value_address_sp32): Merge into...
7609 (*call_value_address_sp64): Likewise.
7610 (*call_value_address<P:mode>): ...this.
7611 (*call_value_symbolic_sp32): Merge into...
7612 (*call_value_symbolic_sp64): Likewise.
7613 (*call_value_symbolic<P:mode>): ...this.
7614 (*sibcall_symbolic_sp32): Merge into...
7615 (*sibcall_symbolic_sp64): Likewise.
7616 (*sibcall_symbolic<P:mode>): ...this.
7617 (sibcall_value): Remove constraint and add predicate.
7618 (*sibcall_value_symbolic_sp32): Merge into...
7619 (*sibcall_value_symbolic_sp64): Likewise.
7620 (*sibcall_value_symbolic<P:mode>): ...this.
7621 (window_save): Minor tweak.
7622 (*branch_sp32): Merge into...
7623 (*branch_sp64): Likewise.
7624 (*branch<P:mode>): ...this.
7625
7626 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
7627 James Clarke <jrtc27@jrtc27.com>
7628
7629 PR target/84010
7630 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
7631 consistently in TLS address generation and adjust code to the renaming
7632 of patterns. Mark calls to __tls_get_addr as const.
7633 * config/sparc/sparc.md (tgd_hi22): Turn into...
7634 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
7635 (tgd_lo10): Turn into...
7636 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
7637 (tgd_add32): Merge into...
7638 (tgd_add64): Likewise.
7639 (tgd_add<P:mode>): ...this and use Pmode throughout.
7640 (tldm_hi22): Turn into...
7641 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
7642 (tldm_lo10): Turn into...
7643 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
7644 (tldm_add32): Merge into...
7645 (tldm_add64): Likewise.
7646 (tldm_add<P:mode>): ...this and use Pmode throughout.
7647 (tldm_call32): Merge into...
7648 (tldm_call64): Likewise.
7649 (tldm_call<P:mode>): ...this and use Pmode throughout.
7650 (tldo_hix22): Turn into...
7651 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
7652 (tldo_lox10): Turn into...
7653 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
7654 (tldo_add32): Merge into...
7655 (tldo_add64): Likewise.
7656 (tldo_add<P:mode>): ...this and use Pmode throughout.
7657 (tie_hi22): Turn into...
7658 (tie_hi22<P:mode>): ...this and use Pmode throughout.
7659 (tie_lo10): Turn into...
7660 (tie_lo10<P:mode>): ...this and use Pmode throughout.
7661 (tie_ld64): Use DImode throughout.
7662 (tie_add32): Merge into...
7663 (tie_add64): Likewise.
7664 (tie_add<P:mode>): ...this and use Pmode throughout.
7665 (tle_hix22_sp32): Merge into...
7666 (tle_hix22_sp64): Likewise.
7667 (tle_hix22<P:mode>): ...this and use Pmode throughout.
7668 (tle_lox22_sp32): Merge into...
7669 (tle_lox22_sp64): Likewise.
7670 (tle_lox22<P:mode>): ...this and use Pmode throughout.
7671 (*tldo_ldub_sp32): Merge into...
7672 (*tldo_ldub_sp64): Likewise.
7673 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
7674 (*tldo_ldub1_sp32): Merge into...
7675 (*tldo_ldub1_sp64): Likewise.
7676 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
7677 (*tldo_ldub2_sp32): Merge into...
7678 (*tldo_ldub2_sp64): Likewise.
7679 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
7680 (*tldo_ldsb1_sp32): Merge into...
7681 (*tldo_ldsb1_sp64): Likewise.
7682 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
7683 (*tldo_ldsb2_sp32): Merge into...
7684 (*tldo_ldsb2_sp64): Likewise.
7685 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
7686 (*tldo_ldub3_sp64): Use DImode throughout.
7687 (*tldo_ldsb3_sp64): Likewise.
7688 (*tldo_lduh_sp32): Merge into...
7689 (*tldo_lduh_sp64): Likewise.
7690 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
7691 (*tldo_lduh1_sp32): Merge into...
7692 (*tldo_lduh1_sp64): Likewise.
7693 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
7694 (*tldo_ldsh1_sp32): Merge into...
7695 (*tldo_ldsh1_sp64): Likewise.
7696 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
7697 (*tldo_lduh2_sp64): Use DImode throughout.
7698 (*tldo_ldsh2_sp64): Likewise.
7699 (*tldo_lduw_sp32): Merge into...
7700 (*tldo_lduw_sp64): Likewise.
7701 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
7702 (*tldo_lduw1_sp64): Use DImode throughout.
7703 (*tldo_ldsw1_sp64): Likewise.
7704 (*tldo_ldx_sp64): Likewise.
7705 (*tldo_stb_sp32): Merge into...
7706 (*tldo_stb_sp64): Likewise.
7707 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
7708 (*tldo_sth_sp32): Merge into...
7709 (*tldo_sth_sp64): Likewise.
7710 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
7711 (*tldo_stw_sp32): Merge into...
7712 (*tldo_stw_sp64): Likewise.
7713 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
7714 (*tldo_stx_sp64): Use DImode throughout.
7715
7716 2018-01-09 Sudakshina Das <sudi.das@arm.com>
7717
7718 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
7719 check configure option to set BTI and Return Address Signing.
7720 * configure.ac: Add --enable-standard-branch-protection and
7721 --disable-standard-branch-protection.
7722 * configure: Regenerated.
7723 * doc/install.texi: Document the same.
7724
7725 2018-01-09 Sudakshina Das <sudi.das@arm.com>
7726 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7727
7728 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
7729 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
7730 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
7731 if bti is enabled.
7732 * config/aarch64/aarch64-bti-insert.c: New file.
7733 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
7734 pass.
7735 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
7736 new bti pass.
7737 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
7738 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
7739 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
7740 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
7741
7742 2018-01-09 Sudakshina Das <sudi.das@arm.com>
7743
7744 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
7745 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
7746 Disable bti for -mbranch-protection=none.
7747 (aarch64_handle_standard_branch_protection): Enable bti for
7748 -mbranch-protection=standard.
7749 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
7750 -mbranch-protection.
7751 (aarch64_bti_enabled): Check if bti is enabled.
7752 * config/aarch64/aarch64.opt: Declare target variable.
7753 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
7754
7755 2018-01-09 Sudakshina Das <sudi.das@arm.com>
7756
7757 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
7758 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
7759 (aarch64_expand_epilogue): Likewise.
7760 (aarch64_output_mi_thunk): Likewise
7761 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
7762 TAILCALL_ADDR_REGS to x16 and x17.
7763 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
7764
7765 2018-01-09 Sudakshina Das <sudi.das@arm.com>
7766
7767 * config/aarch64/aarch64-option-extensions.def: Define
7768 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
7769 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
7770 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
7771 (AARCH64_FL_PREDRES): New.
7772 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
7773 AARCH64_FL_PREDRES by default.
7774 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
7775
7776 2018-01-09 Sudakshina Das <sudi.das@arm.com>
7777
7778 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
7779 ARMv8.5-A.
7780 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
7781 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
7782 * doc/invoke.texi: Document ARMv8.5-A.
7783
7784 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
7785
7786 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
7787 (xorsign<mode>3): Likewise.
7788
7789 2019-01-09 Jelinek <jakub@redhat.com>
7790
7791 PR middle-end/88758
7792 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
7793 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
7794
7795 PR rtl-optimization/88331
7796 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
7797 not currently_expanding_to_rtl.
7798
7799 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
7800
7801 * doc/invoke.texi (-Os): Remove trailing spaces.
7802 (-finline-functions): Remove reference to -O2.
7803
7804 2019-01-08 Jakub Jelinek <jakub@redhat.com>
7805
7806 PR rtl-optimization/79593
7807 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
7808
7809 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
7810 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
7811
7812 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
7813
7814 PR bootstrap/88721
7815 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
7816 to -1 on entry.
7817
7818 PR debug/88723
7819 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
7820 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
7821
7822 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
7823
7824 PR target/88717
7825 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
7826 ix86_avx_u128_mode_entry.
7827
7828 2019-01-08 Martin Liska <mliska@suse.cz>
7829
7830 PR tree-optimization/88753
7831 * tree-switch-conversion.c (switch_conversion::build_one_array):
7832 Come up with local variable constructor. Convert first to
7833 type of constructor values.
7834
7835 2019-01-08 Richard Biener <rguenther@suse.de>
7836
7837 PR tree-optimization/86554
7838 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
7839 rpo_avail): Move earlier.
7840 (visit_nary_op): When value-numbering to expressions
7841 with different overflow behavior make sure there's an
7842 available expression on the path.
7843
7844 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
7845
7846 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
7847 aarch64_parse_branch_protection,
7848 struct aarch64_branch_protect_type,
7849 aarch64_handle_no_branch_protection,
7850 aarch64_handle_standard_branch_protection,
7851 aarch64_validate_mbranch_protection,
7852 aarch64_handle_pac_ret_protection,
7853 aarch64_handle_attr_branch_protection,
7854 accepted_branch_protection_string,
7855 aarch64_pac_ret_subtypes,
7856 aarch64_branch_protect_types,
7857 aarch64_handle_pac_ret_leaf): Define.
7858 (aarch64_override_options_after_change_1, aarch64_override_options):
7859 Add check for accepted_branch_protection_string.
7860 (aarch64_option_save): Save accepted_branch_protection_string.
7861 (aarch64_option_restore): Save accepted_branch_protection_string.
7862 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
7863 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
7864 msign-return-address.
7865 * doc/invoke.texi: Add mbranch-protection.
7866
7867 2019-01-08 Alan Modra <amodra@gmail.com>
7868
7869 PR target/88614
7870 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
7871 Delete "unknownp" parameter. Adjust callers. Handle
7872 CONST_INT, PLUS, MINUS, and MULT.
7873 (attr_value_aligned): Renamed from or_attr_value.
7874 (min_attr_value): Return INT_MIN for unhandled rtl case..
7875 (min_fn): ..and translate to INT_MAX here.
7876 (write_length_unit_log): Modify to cope without "unknown".
7877 (write_attr_value): Handle IF_THEN_ELSE.
7878
7879 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
7880
7881 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
7882 optimization for masked stores.
7883
7884 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
7885
7886 PR middle-end/88567
7887 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
7888 output vector directly to duplicate_and_interleave instead of
7889 going through a temporary. Postpone insertion of ctor_seq to
7890 the end of the loop.
7891
7892 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
7893
7894 PR target/86891
7895 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
7896 unsigned_p. Handle signed and unsigned overflow correction as
7897 required.
7898 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
7899 prototype.
7900 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
7901 for operand 2.
7902 (add<mode>3_compareV_imm): Make this callable for expanding.
7903 (subv<GPI:mode>4): Use register_operand for operand 1. Use
7904 aarch64_plus_operand for operand 2.
7905 (subv<GPI:mode>_insn): New insn pattern.
7906 (subv<GPI:mode>_imm): Likewise.
7907 (negv<GPI:mode>3): New expand pattern.
7908 (negv<GPI:mode>_insn): New insn pattern.
7909 (negv<GPI:mode>_cmp_only): Likewise.
7910 (cmpv<GPI:mode>_insn): Likewise.
7911 (subvti4): Use register_operand for operand 1. Update call to
7912 aarch64_expand_subvti.
7913 (usubvti4): Likewise.
7914 (negvti3): New expand pattern.
7915 (negdi_carryout): New insn pattern.
7916 (negvdi_carryinV): New insn pattern.
7917 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
7918 version the named version.
7919 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
7920 operands.
7921 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
7922 patterns.
7923 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
7924 patterns.
7925 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
7926 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
7927 (sub<mode>3_carryinCV): Delete.
7928 (sub<GPI:mode>3_carryinV): New expand pattern.
7929 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
7930
7931 2019-01-07 Richard Biener <rguenther@suse.de>
7932
7933 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
7934 of tree_operand_hash.
7935
7936 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
7937
7938 PR tree-optimization/88598
7939 * tree.h (single_nonzero_element): Declare.
7940 * tree.c (single_nonzero_element): New function.
7941 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
7942 if I is the only nonzero element of CST.
7943
7944 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
7945
7946 PR tree-optimization/88598
7947 * tree.h (initializer_each_zero_or_onep): Declare.
7948 * tree.c (initializer_each_zero_or_onep): New function.
7949 (signed_or_unsigned_type_for): Handle float types too.
7950 (unsigned_type_for, signed_type_for): Update comments accordingly.
7951 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
7952 x & { 0 or -1, 0 or -1, ... }.
7953
7954 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
7955
7956 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
7957 with x86_64-pc-linux-gnu.
7958
7959 2019-01-07 Tom de Vries <tdevries@suse.de>
7960
7961 PR target/85486
7962 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
7963 function.
7964 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
7965 routines.
7966
7967 2019-01-07 Jakub Jelinek <jakub@redhat.com>
7968
7969 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
7970 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
7971 TARGET_AVX512F as condition.
7972
7973 PR debug/88723
7974 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
7975 const_not_ok_for_debug_p target hook.
7976 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
7977 on UNSPEC and subexpressions thereof if all subexpressions of the
7978 UNSPEC are CONSTANT_P.
7979
7980 PR tree-optimization/88676
7981 * tree-ssa-phiopt.c (two_value_replacement): New function.
7982 (tree_ssa_phiopt_worker): Call it.
7983
7984 PR sanitizer/88619
7985 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
7986 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
7987
7988 PR c++/85052
7989 * tree-vect-generic.c: Include insn-config.h and recog.h.
7990 (expand_vector_piecewise): Add defaulted ret_type argument,
7991 if non-NULL, use that in preference to type for the result type.
7992 (expand_vector_parallel): Formatting fix.
7993 (do_vec_conversion, do_vec_narrowing_conversion,
7994 expand_vector_conversion): New functions.
7995 (expand_vector_operations_1): Call expand_vector_conversion
7996 for VEC_CONVERT ifn calls.
7997 * internal-fn.def (VEC_CONVERT): New internal function.
7998 * internal-fn.c (expand_VEC_CONVERT): New function.
7999 * fold-const-call.c (fold_const_vec_convert): New function.
8000 (fold_const_call): Use it for CFN_VEC_CONVERT.
8001 * doc/extend.texi (__builtin_convertvector): Document.
8002
8003 2019-01-07 Tom de Vries <tdevries@suse.de>
8004
8005 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
8006 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
8007 vector_red_partition, vector_red_sym): New global variables.
8008 (nvptx_option_override): Initialize vector_red_sym.
8009 (nvptx_declare_function_name): Restore red_partition register.
8010 (nvptx_file_end): Emit code to declare the vector reduction variables.
8011 (nvptx_output_red_partition): New function.
8012 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
8013 large vector reductions.
8014 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
8015 (nvptx_init_builtins): Add VECTOR_ADDR.
8016 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
8017 Handle nvptx_expand_shared_addr.
8018 (nvptx_get_shared_red_addr): Add vector argument and handle large
8019 vectors.
8020 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
8021 large vectors.
8022 (nvptx_goacc_reduction_init): Likewise.
8023 (nvptx_goacc_reduction_fini): Likewise.
8024 (nvptx_goacc_reduction_teardown): Likewise.
8025 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
8026 init,fini,teardown}.
8027 (nvptx_init_axis_predicate): Initialize vector_red_partition.
8028 (nvptx_set_current_function): Init vector_red_partition.
8029 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
8030 (nvptx_red_partition): New insn.
8031 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
8032
8033 2019-01-07 Tom de Vries <tdevries@suse.de>
8034
8035 PR target/85381
8036 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
8037 empty loops.
8038
8039 2019-01-07 Tom de Vries <tdevries@suse.de>
8040
8041 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
8042 (nvptx_option_override): Init oacc_bcast_partition.
8043 (nvptx_init_oacc_workers): New function.
8044 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
8045 (nvptx_needs_shared_bcast): New function.
8046 (nvptx_find_par): Generalize to enable vectors to use shared-memory
8047 to propagate state.
8048 (nvptx_shared_propagate): Initialize vector bcast partition and
8049 synchronization state.
8050 (nvptx_single): Generalize to enable vectors to use shared-memory
8051 to propagate state.
8052 (nvptx_process_pars): Likewise.
8053 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
8054 * config/nvptx/nvptx.h (struct machine_function): Add
8055 bcast_partition and sync_bar members.
8056
8057 2019-01-07 Tom de Vries <tdevries@suse.de>
8058
8059 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
8060 (nvptx_apply_dim_limits): New function.
8061 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
8062 PTX_WARP_SIZE.
8063
8064 2019-01-07 Tom de Vries <tdevries@suse.de>
8065
8066 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
8067 as late as possible.
8068
8069 2019-01-07 Tom de Vries <tdevries@suse.de>
8070
8071 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
8072 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
8073 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
8074 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
8075 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
8076
8077 2019-01-07 Tom de Vries <tdevries@suse.de>
8078
8079 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
8080
8081 2019-01-07 Tom de Vries <tdevries@suse.de>
8082
8083 * omp-offload.c (oacc_get_min_dim): New function.
8084 * omp-offload.h (oacc_get_min_dim): Declare.
8085
8086 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
8087
8088 PR target/88521
8089 * config/i386/i386.c (function_value_ms_64): Return small sturct in
8090 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
8091
8092 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
8093
8094 PR tree-opt/86020
8095 Revert:
8096 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
8097
8098 * ipa-inline.c (edge_badness): Use inlined_time instead of
8099 inline_summaries->get.
8100
8101 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
8102
8103 * opts.c (enable_fdo_optimizations): Enable
8104 version-loops-for-strides, loop-interchange, unrol-and-jam
8105 and tree-loop-distribution.
8106 * invoke.texi: Document newly enabled options.
8107
8108 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
8109
8110 * doc/invoke.texi (max-inline-insns-small): New parameters.
8111 * ipa-inline.c (want_early_inline_function_p): simplify.
8112 (want_inline_small_function_p): Fix pasto from previous patch;
8113 use max-inline-insns-small bound.
8114 * params.def (max-inline-insns-small): New param.
8115 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
8116 variables correctly.
8117
8118 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
8119
8120 * doc/invoke.texi: Document max-inline-insns-size,
8121 uninlined-function-insns, uninlined-function-time,
8122 uninlined-thunk-insns and uninlined-thunk-time.
8123 * params.def: Add max-inline-insns-size,
8124 uninlined-function-insns, uninlined-function-time,
8125 uninlined-thunk-insns and uninlined-thunk-time.
8126 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
8127 new parameters.
8128 * ipa-inline.c (can_inline_edge_by_limits_p,
8129 want_inline_small_function_p): Use new parameters.
8130
8131 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
8132
8133 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
8134
8135 2019-01-05 Jakub Jelinek <jakub@redhat.com>
8136
8137 PR middle-end/82564
8138 PR target/88620
8139 * expr.c (expand_assignment): For calls returning VLA structures
8140 if to_rtx is not a MEM, force it into a stack temporary.
8141
8142 PR debug/88635
8143 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
8144 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
8145 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
8146 subexpressions of both operands.
8147 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
8148 subrtxes are CONSTANT_P.
8149 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
8150 2018-11-09 changes.
8151
8152 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
8153
8154 * params.def (hot-bb-count-ws-permille): Set to 990.
8155
8156 2019-01-04 Martin Sebor <msebor@redhat.com>
8157
8158 PR c/88546
8159 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
8160 leaf.
8161
8162 2019-01-04 Martin Sebor <msebor@redhat.com>
8163
8164 PR c/88363
8165 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
8166
8167 2019-01-04 Jakub Jelinek <jakub@redhat.com>
8168
8169 * gdbinit.in: Turn off pagination for the skip commands, restore
8170 it to previous state afterwards.
8171
8172 2019-01-04 Jakub Jelinek <jakub@redhat.com>
8173
8174 PR target/88594
8175 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
8176 of GET_MODE (opN) as modes of the libcall arguments.
8177
8178 2019-01-04 Jan Beulich <jbeulich@suse.com>
8179
8180 * config/i386/sse.md
8181 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
8182 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
8183 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
8184 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
8185 avx512f_vmcmp<mode>3<round_saeonly_name>,
8186 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
8187 avx512f_maskcmp<mode>3,
8188 <avx512>_cvt<ssemodesuffix>2mask<mode>,
8189 <avx512>_cvt<ssemodesuffix>2mask<mode>,
8190 *<avx512>_cvtmask2<ssemodesuffix><mode>,
8191 *<avx512>_cvtmask2<ssemodesuffix><mode>,
8192 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
8193 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
8194 <avx512>_gt<mode>3<mask_scalar_merge_name>,
8195 <avx512>_gt<mode>3<mask_scalar_merge_name>,
8196 <avx512>_testm<mode>3<mask_scalar_merge_name>,
8197 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
8198 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
8199 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
8200 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
8201 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
8202 avx512cd_maskb_vec_dup<mode>,
8203 avx512cd_maskw_vec_dup<mode>,
8204 avx512dq_fpclass<mode><mask_scalar_merge_name>,
8205 avx512dq_vmfpclass<mode>,
8206 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
8207 instead of =Yk.
8208
8209 2019-01-03 Martin Sebor <msebor@redhat.com>
8210
8211 PR tree-optimization/88659
8212 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
8213
8214 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
8215
8216 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
8217 unaligned vsx and avoid lxvd2x/stxvd2x.
8218 (gen_lvx_v4si_move): New function.
8219
8220 2019-01-03 Tom de Vries <tdevries@suse.de>
8221
8222 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
8223 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
8224 function.
8225 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
8226
8227 2019-01-03 Tom de Vries <tdevries@suse.de>
8228
8229 * config/nvptx/nvptx.c (struct offload_attrs): New.
8230 (populate_offload_attrs): New function. Factor mask extraction out of
8231 nvptx_reorg. Add extraction of dimensions.
8232 (nvptx_reorg): Use populate_offload_attrs.
8233
8234 2019-01-03 Tom de Vries <tdevries@suse.de>
8235
8236 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
8237 cases for oacc_min_dims_p and routine_p. Add asserts for
8238 oacc_default_dims_p and offload_region_p.
8239
8240 2019-01-03 Tom de Vries <tdevries@suse.de>
8241
8242 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
8243 factored out of ...
8244 (nvptx_goacc_validate_dims): ... here.
8245
8246 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
8247
8248 PR tree-optimization/85574
8249 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
8250 structure.
8251 (struct ssa_equip_hash_traits): Declare.
8252 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
8253
8254 2019-01-03 Jakub Jelinek <jakub@redhat.com>
8255
8256 PR debug/88644
8257 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
8258 change it to qualified_type.
8259
8260 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
8261
8262 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
8263 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
8264
8265 2019-01-02 Martin Sebor <msebor@redhat.com>
8266 Jeff Law <law@redhat.com>
8267
8268 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
8269 (get_range_strlen_tree): Update appropriately.
8270 (get_range_strlen)
8271 * gimple-fold.h (get_range_strlen): Drop unused last argument.
8272
8273 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
8274 rather than set_range_info.
8275 * tree-ssa-strlen.c (set_strlen_range): Extracted from
8276 maybe_set_strlen_range. Handle potentially boundary crossing
8277 cases more conservatively.
8278 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
8279 Call set_strlen_range.
8280 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
8281
8282 PR middle-end/88663
8283 * gimple-fold.c (get_range_strlen): Update prototype to no longer
8284 need the flexp argument.
8285 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
8286 from calls to get_range_strlen. Update comments. Just update
8287 VAL for an unterminated const char array and let the reset of the
8288 code handle it normally. No longer try to set *flexp. Adjust
8289 return value.
8290 (get_range_strlen): Update for the new get_range_strlen API.
8291 (get_maxval_strlen): Similarly.
8292 (gimple_fold_builtin_strlen): Handle update meaning of return value
8293 from get_range_strlen.
8294 * gimple-ssa-sprintf.c (get_string_length): Update for the new
8295 get_range_strlen API.
8296
8297 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
8298
8299 PR lto/88130
8300 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
8301 false at WPA time when body was removed.
8302
8303 2019-01-02 Martin Liska <mliska@suse.cz>
8304
8305 PR tree-optimization/88650
8306 * predict.c (set_even_probabilities): Calculate probability
8307 remainer only when really used.
8308
8309 2019-01-02 Richard Biener <rguenther@suse.de>
8310
8311 PR middle-end/88651
8312 * tree-data-ref.c (analyze_subscript_affine_affine): Use
8313 widest_ints when mangling max_stmt_execution results.
8314
8315 2019-01-02 Richard Biener <rguenther@suse.de>
8316
8317 PR tree-optimization/88621
8318 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
8319 bitfields when canoncalizing.
8320
8321 2019-01-02 Richard Biener <rguenther@suse.de>
8322
8323 PR target/87545
8324 * config/i386/x86-tune-costs.h (intel_cost): Adjust
8325 cost of cheap SSE instruction.
8326
8327 2019-01-02 Richard Biener <rguenther@suse.de>
8328
8329 PR ipa/85574
8330 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
8331 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
8332 function.
8333 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
8334 set after UIDs before splitting them.
8335
8336 2019-01-01 Martin Sebor <msebor@redhat.com>
8337 Jeff Law <law@redhat.com>
8338
8339 * gimple-fold.c (get_range_strlen_tree): Record if the computed
8340 length is optimistic. If it is, then arrange to compute the
8341 conservative length as well.
8342
8343 * gimple-fold.h (get_range_strlen): Update prototype.
8344 * builtins.c (check_access): Update call to get_range_strlen to use
8345 c_strlen_data pointer. Change various variable accesses to instead
8346 pull data from the c_strlen_data structure.
8347 (check_strncat_sizes, expand_builtin_strncat): Likewise.
8348 * calls.c (maybe_warn_nonstring_arg): Likewise.
8349 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
8350 minimum length if maximum lengh is unknown.
8351 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
8352 that used c_strlen, it's no longer needed. Restructure slightly.
8353 (format_string): Set unlikely range appropriately.
8354 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
8355 formatting issues.
8356 (get_range_strlen): Accept c_strlen_data pointer for external
8357 call sites as well. Pass through to call to internal get_range_strlen.
8358 Adjust minlen, maxlen and maxbound as needed.
8359 (get_maxval_strlen): Update comments.
8360 (gimple_fold_builtin_strlen): Update call to get_range_strlen
8361 to use c_strlen_data pointer. Change variable accesses to instead
8362 use c_strlen_data data members.
8363
8364 * gimple-fold.c (get_range_strlen): Update prototype.
8365 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
8366 local variables. Use pdata to return information to caller.
8367 Update calls to get_range_strlen. Update pdata->maxbound.
8368 (get_range_strlen -- static version): Similarly.
8369 (get_range_strlen -- extern version): Update for internal
8370 get_range_strlen API change. Convert to external data format.
8371 (get_maxval_strlen): Similarly.
8372
8373 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
8374
8375 * coverage.c (get_coverage_counts): Use current_function_decl.
8376 * profile.c (read_thunk_profile): New function.
8377 (branch_prob): Add THUNK parameter.
8378 * tree-profile.c (tree_profiling): Handle thunks.
8379 * value-prof.c (init_node_map): Handle thunks.
8380 * value-prof.h (branch_prob): Upate prototype.
8381 (read_thunk_profile): Declare.
8382
8383 2019-01-01 Jakub Jelinek <jakub@redhat.com>
8384
8385 Update copyright years.
8386
8387 * gcc.c (process_command): Update copyright notice dates.
8388 * gcov-dump.c (print_version): Ditto.
8389 * gcov.c (print_version): Ditto.
8390 * gcov-tool.c (print_version): Ditto.
8391 * gengtype.c (create_file): Ditto.
8392 * doc/cpp.texi: Bump @copying's copyright year.
8393 * doc/cppinternals.texi: Ditto.
8394 * doc/gcc.texi: Ditto.
8395 * doc/gccint.texi: Ditto.
8396 * doc/gcov.texi: Ditto.
8397 * doc/install.texi: Ditto.
8398 * doc/invoke.texi: Ditto.
8399 \f
8400 Copyright (C) 2019 Free Software Foundation, Inc.
8401
8402 Copying and distribution of this file, with or without modification,
8403 are permitted in any medium without royalty provided the copyright
8404 notice and this notice are preserved.