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