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