Generalize get_most_common_single_value to return n_th value & count
[gcc.git] / gcc / ChangeLog
1 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
2
3 * ipa-profile.c (get_most_common_single_value): Use
4 get_nth_most_common_value.
5 * profile.c (sort_hist_value): New function.
6 (compute_value_histograms): Call sort_hist_value to sort the
7 values after loading from disk.
8 * value-prof.c (get_most_common_single_value): Rename to ...
9 get_nth_most_common_value. Add input params n, return
10 the n_th value and count.
11 (gimple_divmod_fixed_value_transform): Use
12 get_nth_most_common_value.
13 (gimple_ic_transform): Likewise.
14 (gimple_stringops_transform): Likewise.
15 * value-prof.h (get_most_common_single_value): Add input params
16 n, default to 0.
17
18 2019-07-25 Richard Biener <rguenther@suse.de>
19
20 PR tree-optimization/91236
21 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
22 size of CONSTRUCTOR write. Fix buffer size we pass to
23 native_encode_expr.
24
25 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
26
27 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
28 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
29 r273773.
30
31 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
32
33 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
34 explicitly disabled with --disable-initfini-array.
35
36 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
37
38 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
39 if-exists.
40
41 2019-07-24 Martin Sebor <msebor@redhat.com>
42
43 PR tree-optimization/91183
44 PR tree-optimization/86688
45 * builtins.c (compute_objsize): Handle MEM_REF.
46 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
47 (get_min_string_length): Remove.
48 (count_nonzero_bytes): New function.
49 (handle_char_store): Rename...
50 (handle_store): to this. Handle multibyte stores via integer types.
51 (strlen_check_and_optimize_stmt): Adjust conditional and the called
52 function name.
53
54 2019-07-24 Martin Sebor <msebor@redhat.com>
55
56 PR driver/80545
57 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
58 (diagnostic_report_diagnostic): Same.
59 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
60 (diagnostic_context::lang_mask): New data member.
61 * ipa-pure-const.c (suggest_attribute): Use
62 lang_hooks.option_lang_mask ().
63 * opts-common.c (option_enabled): Handle new argument.
64 (get_option_state): Pass an additional argument.
65 * opts.c (print_filtered_help): Print supported languages for
66 unsupported options. Adjust printing of current state.
67 * opts.h (option_enabled): Add argument.
68 * toplev.c (print_switch_values): Use lang_mask.
69 (general_init): Set global_dc->lang_mask.
70
71 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
72
73 PR bootstrap/87030
74 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
75
76 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
77
78 * cgraphunit.c (symbol_table::compile): Start and stop
79 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
80 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
81
82 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
83
84 * gimplify.c (flag_instrument_functions_exclude_p): Include
85 namespace/class information in the printable name.
86 * opts.c (add_comma_separated_to_vector): Add NUL terminator
87 to tokens entered into the vector.
88
89 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
90
91 * tree-nested.c (build_simple_mem_ref_notrap): New function.
92 (get_static_chain): Call it instead of build_simple_mem_ref.
93 (get_frame_field): Likewise.
94 (get_nonlocal_debug_decl): Likewise.
95 (convert_nonlocal_reference_op): Likewise.
96
97 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
98
99 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
100 declaration.
101 (arc_compute_frame_size): Millicode is disabled when compiling
102 ISR.
103 (arc_return_address_register): Likewise.
104 (arc_compute_function_type): Likewise.
105 (arc_compute_frame_size): Likewise.
106 (secondary_reload_info): Likewise.
107 (arc_get_unalign): Likewise.
108 (arc_can_use_return_insn): Declare.
109 * config/arc/arc.c (AUX_LP_START): Define
110 (AUX_LP_END): Likewise.
111 (arc_frame_info): Update gmask member to 64-bit datum.
112 (GMASK_LEN): Update.
113 (arc_compute_function_type): Make it static, move it forward.
114 (arc_must_save_register): Update, consider the extra regs.
115 (arc_compute_millicode_save_restore_regs): Update to use the 64
116 bit gmask.
117 (arc_compute_frame_size): Likewise.
118 (arc_enter_leave_p): Likewise.
119 (arc_save_callee_saves): Likewise.
120 (arc_restore_callee_saves): Likewise.
121 (arc_save_callee_enter): Likewise.
122 (arc_restore_callee_leave): Likewise.
123 (arc_save_callee_milli): Likewise.
124 (arc_restore_callee_milli): Likewise.
125 (arc_expand_prologue): Add new interrupt handling.
126 (arc_return_address_register): Make it static, move it forward.
127 (arc_expand_epilogue): Add new interrupt handling.
128 (arc_get_unalign): Delete.
129 (arc_epilogue_uses): Make sure we do not remove the extra
130 saved/restored registers when interrupt.
131 (arc_can_use_return_insn): New function.
132 (push_reg): Likewise.
133 (pop_reg): Likewise.
134 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
135 procedures.
136 (arc_restore_callee_saves): Likewise, but restoring.
137 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
138 (R33_REG): Likewise.
139 (R34_REG): Likewise.
140 (R35_REG): Likewise.
141 (R36_REG): Likewise.
142 (R37_REG): Likewise.
143 (R38_REG): Likewise.
144 (R39_REG): Likewise.
145 (R45_REG): Likewise.
146 (R46_REG): Likewise.
147 (R47_REG): Likewise.
148 (R48_REG): Likewise.
149 (R49_REG): Likewise.
150 (R50_REG): Likewise.
151 (R51_REG): Likewise.
152 (R52_REG): Likewise.
153 (R53_REG): Likewise.
154 (R54_REG): Likewise.
155 (R55_REG): Likewise.
156 (R56_REG): Likewise.
157 (R58_REG): Likewise.
158 (type): Add rtie attribute.
159 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
160 (movsi_insn): Accept moves to lp_count.
161 (rtie): Update pattern.
162 (simple_return): Simplify it, don't use this pattern as a return
163 from an interrupt.
164 (arc600_rtie): New pattern.
165 (p_return_i): Clean up.
166 (return): Likewise.
167 * config/arc/builtins.def (rtie): Only available for non ARC6xx
168 family CPUs.
169 * config/arc/predicates.md (move_src_operand): Consider lp_count
170 as a register.
171
172 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
173
174 * config/s390/predicates.md (addv_const_operand): New predicate.
175 * config/s390/s390-modes.def (CCO): New condition code mode.
176 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
177 (s390_branch_condition_mask): Likewise.
178 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
179 ("mulv<mode>4"): New expanders.
180 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
181 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
182 pattern definitions.
183
184 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
185
186 PR middle-end/91166
187 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
188 (define_predicates): Add entry for uniform_vector_p.
189 (vec_same_elem_p): New match pattern.
190
191 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
192
193 PR bootstrap/87030
194 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
195 * config/i386/darwin32-biarch.h .. to here.
196 * config/i386/darwin64-biarch.h: Adjust comments.
197 * config/rs6000/darwin32-biarch.h: Likewise.
198 * config/rs6000/darwin64-biarch.h: Likewise.
199 * config.gcc: Missed commit from r273746
200 (*-*-darwin*): Don't include CPU t-darwin here.
201 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
202 an error message if i686-darwin configuration is attempted for
203 Darwin >= 18.
204
205 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
206
207 PR bootstrap/87030
208 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
209 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
210 an error message if i686-darwin configuration is attempted for
211 Darwin >= 18.
212 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
213 (powerpc-*-darwin*): Use biarch files where needed.
214 (powerpc64-*-darwin*): Likewise.
215 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
216 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
217 arch case.
218 * config/i386/darwin32-biarch.h: New.
219 * config/i386/darwin64.h: Rename.
220 * gcc/config/i386/darwin64-biarch.h: To this.
221 * config/i386/t-darwin: Rename.
222 * gcc/config/i386/t-darwin32-biarch: To this.
223 * config/i386/t-darwin64: Rename.
224 * gcc/config/i386/t-darwin64-biarch: To this.
225 * config/rs6000/darwin32-biarch.h: New.
226 * config/rs6000/darwin64.h: Rename.
227 * config/rs6000/darwin64-biarch.h: To this.
228 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
229 arch case.
230 * config/rs6000/t-darwin8: Rename.
231 * config/rs6000/t-darwin32-biarch: To this.
232 * config/rs6000/t-darwin64 Rename.
233 * config/rs6000/t-darwin64-biarch: To this.
234
235 2019-07-23 Martin Sebor <msebor@redhat.com>
236
237 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
238
239 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
240
241 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
242 (rh): New alias for it.
243
244 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
245
246 * gdbhooks.py: Pass replace=True to
247 gdb.printing.register_pretty_printer.
248
249 2019-07-23 Richard Biener <rguenther@suse.de>
250
251 PR debug/91231
252 * lto-streamer-in.c (input_function): Drop inline-entry markers
253 that ended up with an unknown location block.
254
255 2019-07-23 Richard Biener <rguenther@suse.de>
256
257 PR tree-optimization/83518
258 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
259 init from a constant even when partial defs are already recorded.
260
261 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
262
263 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
264 * config/i386/znver1.md: Enable patterns for znver2 and add store
265 variants which use extra AGU unit.
266
267 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
268
269 * config/i386/i386-options.c (ix86_option_override_internal): Default
270 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
271 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
272 for ZNVER2.
273
274 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
275
276 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
277 (znver2_costs): Update 256 bit SSE costs and multiplication.
278
279 2019-07-23 Jan Beulich <jbeulich@suse.com>
280
281 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
282 Require only AVX512F.
283 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
284 alternative expanding to vpternlog.
285
286 2019-07-23 Martin Liska <mliska@suse.cz>
287
288 * dwarf2out.c (gen_producer_string): Canonize -flto=N
289 to -flto in dwarf producer string.
290
291 2019-07-23 Richard Biener <rguenther@suse.de>
292
293 * tree-cfg.c (label_for_bb): Remove global var.
294 (main_block_label): Take label_for_bb as argument.
295 (cleanup_dead_labels_eh): Likewise, adjust.
296 (cleanup_dead_labels): Adjust.
297
298 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
299
300 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
301 Configurations): Add documentation for __builtin_mtfsf.
302
303 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
304
305 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
306 * config/riscv/riscv.c (riscv_constant_alignment): Use
307 riscv_align_data_type.
308 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
309 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
310 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
311 * config/riscv/riscv.opt (malign-data): New.
312 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
313
314 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
315
316 * cgraph.c (dump_graphviz): New function.
317 * cgraph.h (dump_graphviz): New function.
318 * symtab.c (dump_graphviz): New function.
319
320 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
321
322 * config/aarch64/aarch64-simd.md
323 (*aarch64_simd_sra<mode>): New.
324 * config/aarch64/iterators.md
325 (SHIFTRT): New iterator.
326 (sra_op): New attribute.
327
328 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
329
330 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
331 callee-saved regs R4->R10 in an interrupt function that calls another
332 function.
333
334 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
335
336 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
337 (_mm_blendv_epi8): New.
338
339 2019-07-22 Richard Biener <rguenther@suse.de>
340
341 PR tree-optimization/91221
342 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
343 restrict partial-def handling of empty constructors and
344 memset to refs with known offset.
345
346 2019-07-22 Jan Beulich <jbeulich@suse.com>
347
348 * config/i386/sse.md (ternlogsuffix): New.
349 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
350 AVX512F is in use.
351 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
352
353 2019-07-22 Martin Liska <mliska@suse.cz>
354
355 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
356 comment.
357 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
358
359 2019-07-22 Martin Liska <mliska@suse.cz>
360
361 * lto-section-in.c (lto_get_section_data):
362 Use new function get_compression.
363 * lto-streamer-out.c (produce_lto_section): Use
364 set_compression to encode compression algorithm.
365 * lto-streamer.h (struct lto_section): Do not
366 use bitfields in the format.
367
368 2019-07-22 Martin Liska <mliska@suse.cz>
369
370 PR driver/91172
371 * opts-common.c (decode_cmdline_option): Decode
372 argument of -Werror and check it for a wrong language.
373 * opts-global.c (complain_wrong_lang): Remove such case.
374
375 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
376
377 * config/arc/arc.c (prepare_move_operands): Always use an
378 intermediate register when storing a TLS symbols.
379
380 2019-07-22 Stafford Horne <shorne@gmail.com>
381
382 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
383 force_reg.
384
385 2019-07-22 Stafford Horne <shorne@gmail.com>
386
387 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
388 and munordered-float validations.
389 * config/or1k/constraints.md (d): New register constraint.
390 * config/or1k/predicates.md (fp_comparison_operator): New.
391 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
392 operands.
393 (or1k_expand_compare): Normalize unordered comparisons.
394 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
395 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
396 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
397 * config/or1k/or1k.md (type): Add fpu.
398 (fpu): New instruction reservation.
399 (F, f, fr, fi, FI, FOP, fop): New.
400 (<fop><F:mode>3): New ALU instruction definition.
401 (float<fi><F:mode>2): New conversion instruction definition.
402 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
403 (fpcmpcc): New code iterator.
404 (*sf_fp_insn): New instruction definition.
405 (cstore<F:mode>4): New expand definition.
406 (cbranch<F:mode>4): New expand definition.
407 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
408 munordered-float): New options.
409 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
410 munordered-float.
411
412 2019-07-22 Stafford Horne <shorne@gmail.com>
413
414 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
415 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
416 documenation to be more clear.
417 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
418 more clear.
419 * config/or1k/or1k.opt (mrori): New option.
420 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
421 msfimm, mshftimm): Rewrite documentation to be more clear.
422 * config/or1k/or1k.md (insn_support): Add ror and rori.
423 (enabled): Add conditions for ror and rori.
424 (rotrsi3): Replace condition for shftimm with ror and rori.
425
426 2019-07-22 Stafford Horne <shorne@gmail.com>
427
428 PR target/90363
429 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
430 (extend<mode>si2): Update predicate.
431 * gcc/config/or1k/predicates.md (volatile_mem_operand): New.
432 (reg_or_mem_operand): New.
433
434 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
435
436 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
437 * config/rs6000/rs6000-call.c: ... to here.
438
439 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
440
441 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
442 memory.
443
444 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
445
446 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
447
448 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
449
450 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
451
452 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
453
454 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
455 (any_memory_operand): New predicate.
456 (reg_or_mem_operand): Use it.
457
458 2019-07-20 Jakub Jelinek <jakub@redhat.com>
459
460 PR target/91204
461 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
462
463 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
464
465 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
466 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
467
468 2019-07-20 Jakub Jelinek <jakub@redhat.com>
469
470 * tree.def (OMP_LOOP): New tree code.
471 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
472 (enum omp_clause_bind_kind): New enum.
473 (struct tree_omp_clause): Add subcode.bind_kind.
474 * tree.h (OMP_LOOP_CHECK): Rename to ...
475 (OMP_LOOPING_CHECK): ... this.
476 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
477 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
478 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
479 (OMP_CLAUSE_BIND_KIND): Define.
480 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
481 bind clause entries.
482 (walk_tree_1): Handle OMP_CLAUSE_BIND.
483 * tree-pretty-print.c (dump_omp_clause): Likewise.
484 (dump_generic_node): Handle OMP_LOOP.
485 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
486 (in_omp_construct): New variable.
487 (is_gimple_stmt): Handle OMP_LOOP.
488 (gimplify_scan_omp_clauses): For lastprivate don't set
489 check_non_private if code == OMP_LOOP. For reduction clause
490 on OMP_LOOP combined with parallel or teams propagate as shared
491 on the combined construct. Handle OMP_CLAUSE_BIND.
492 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
493 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
494 for constructs from a loop construct to gimplify_scan_omp_clauses.
495 Don't predetermine iterator linear on OMP_SIMD from loop construct.
496 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
497 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
498 to match the implicit ORT_TARGET construct around whole body.
499 Temporarily clear in_omp_construct when processing body.
500 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
501 etc. temporarily set in_omp_construct when processing body.
502 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
503 * omp-low.c (struct omp_context): Add loop_p.
504 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
505 in that the original var might be private.
506 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
507 (check_omp_nesting_restrictions): Adjust nesting restrictions for
508 addition of loop construct.
509 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
510
511 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
512 lastprivate non-addressable iterator of a collapse(1) simd.
513
514 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
515
516 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
517 as in rs6000.c.
518
519 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
520
521 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
522 refer to default conditions. Warn for the 'y' spec which is ignored
523 by current linkers.
524
525 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
526
527 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
528 cpu_supports_info, builtin_hash_struct, builtin_hasher,
529 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
530 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
531 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
532 init_cumulative_args, rs6000_promote_function_mode,
533 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
534 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
535 rs6000_function_arg_boundary, rs6000_parm_offset,
536 rs6000_parm_start, rs6000_arg_size,
537 rs6000_darwin64_record_arg_advance_flush,
538 rs6000_darwin64_record_arg_advance_recurse,
539 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
540 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
541 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
542 rs6000_mixed_function_arg, rs6000_psave_function_arg,
543 rs6000_finish_function_arg, rs6000_function_arg,
544 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
545 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
546 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
547 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
548 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
549 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
550 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
551 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
552 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
553 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
554 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
555 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
556 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
557 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
558 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
559 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
560 get_element_number, altivec_expand_vec_set_builtin,
561 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
562 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
563 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
564 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
565 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
566 rs6000_expand_builtin, rs6000_vector_type,
567 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
568 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
569 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
570 to rs6000-call.c.
571 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
572 cpu_supports_info, builtin_hash_struct, builtin_hasher,
573 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
574 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
575 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
576 init_cumulative_args, rs6000_promote_function_mode,
577 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
578 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
579 rs6000_function_arg_boundary, rs6000_parm_offset,
580 rs6000_parm_start, rs6000_arg_size,
581 rs6000_darwin64_record_arg_advance_flush,
582 rs6000_darwin64_record_arg_advance_recurse,
583 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
584 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
585 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
586 rs6000_mixed_function_arg, rs6000_psave_function_arg,
587 rs6000_finish_function_arg, rs6000_function_arg,
588 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
589 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
590 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
591 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
592 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
593 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
594 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
595 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
596 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
597 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
598 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
599 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
600 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
601 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
602 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
603 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
604 get_element_number, altivec_expand_vec_set_builtin,
605 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
606 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
607 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
608 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
609 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
610 rs6000_expand_builtin, rs6000_vector_type,
611 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
612 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
613 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
614 to here from rs6000.c.
615 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
616 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
617 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
618 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
619 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
620 rs6000_return_in_memory, rs6000_return_in_msb,
621 rs6000_pass_by_reference, setup_incoming_varargs,
622 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
623 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
624 rs6000_function_arg_padding, rs6000_function_arg,
625 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
626 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
627 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
628 rs6000_passes_long_double, rs6000_passes_vector,
629 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
630 altivec_builtin_mask_for_load) Add declarations.
631 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
632 * config/config.gcc: Add new source file rs6000-call.c to garbage
633 collector and extra_objs.
634
635 2019-07-19 Jeff Law <law@redhat.com>
636
637 PR tree-optimization/86061
638 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
639 strncpy. Drop some trivial dead code.
640 (maybe_trim_memstar_call): Handle strncpy.
641
642 2019-07-19 Richard Biener <rguenther@suse.de>
643
644 PR tree-optimization/91211
645 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
646 memset encoding size.
647
648 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
649
650 PR target/91204
651 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
652
653 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
654
655 PR ipa/91194
656 * ipa-inline.c (recursive_inlining): Fix limits check.
657
658 2019-07-19 Richard Biener <rguenther@suse.de>
659
660 PR tree-optimization/91200
661 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
662 no PHI nodes in middle-bb.
663
664 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
665
666 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
667 to +sve-bitperm.
668 * config/aarch64/aarch64-option-extensions.def: Likewise.
669
670 2019-07-19 Jakub Jelinek <jakub@redhat.com>
671
672 PR middle-end/91190
673 * function.c (insert_temp_slot_address): Store into the hash table
674 a copy of address to avoid RTL sharing issues.
675
676 2019-07-19 Richard Biener <rguenther@suse.de>
677
678 PR tree-optimization/91207
679 Revert
680 2019-07-17 Richard Biener <rguenther@suse.de>
681
682 PR tree-optimization/91178
683 * tree-vect-stmts.c (get_group_load_store_type): For SLP
684 loads with a gap larger than the vector size always use
685 VMAT_STRIDED_SLP.
686 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
687 avoid loading vectors that are only contained in the gap
688 and thus are not needed.
689
690 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
691
692 * config/i386/i386.md (*addqi_2_slp): Remove.
693 (*<code>qi_2_slp): Ditto.
694
695 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
696
697 * config/rs6000/predicates.md (prefixed_mem_operand): Call
698 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
699 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
700 Rename function from rs6000_prefixed_address.
701 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
702 TARGET_HAS_TOC.
703 (TARGET_TOC): Likewise.
704 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
705 rs6000.h.
706 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
707 TARGET_HAS_TOC.
708 (TARGET_TOC): Likewise.
709 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
710 rs6000.h.
711 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
712 TARGET_HAS_TOC.
713 (TARGET_TOC): Likewise.
714 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
715 check to require -mcmodel=medium for pc-relative addressing.
716 (create_TOC_reference): Add assertion for TARGET_TOC.
717 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
718 TARGET_NO_TOC.
719 (rs6000_emit_move): Likewise.
720 (TOC_alias_set): Rename TOC alias set static variable from 'set'
721 to 'TOC_alias_set'.
722 (get_TOC_alias_set): Likewise.
723 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
724 TARGET_NO_TOC.
725 (rs6000_can_eliminate): Likewise.
726 (rs6000_prefixed_address_mode_p): Rename function from
727 rs6000_prefixed_address.
728 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
729 TARGET_HAS_TOC and not pc-relative.
730 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
731 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
732 TARGET_HAS_TOC.
733 (TARGET_TOC): Likewise.
734 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
735 rs6000.h.
736
737 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
738
739 PR target/91188
740 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
741 for operand 0. Do not use (match_dup) to match operand 1 with
742 operand 0. Add check in insn constraint that either input operand
743 matches operand 0. Use SWI12 mode iterator to also handle
744 HImode operands.
745 (*and<mode>_1_slp): Ditto.
746 (*<code>qi_1_slp): Ditto.
747 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
748 Do not use (match_dup) to match operand 1 with operand 0. Add
749 check in insn constraint that operand 1 matches operand 0.
750 Use SWI12 mode iterator to also handle HImode operands.
751 (*ashl<mode>3_1_slp): Ditto.
752 (*<shift_insn><mode>3_1_slp): Ditto.
753 (*<rotate_insn><mode>3_1_slp): Ditto.
754
755 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
756
757 * config/arm/arm-builtins.c
758 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
759 (arm_expand_unop_builtin): Likewise.
760 * config/arm/crypto.md
761 (crypto_sha1h): Convert from define_insn to define_expand.
762 (crypto_<crypto_pattern>): Likewise.
763 (crypto_sha1h_lb): New define_insn.
764 (crypto_<crypto_pattern>_lb): Likewise.
765
766 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
767
768 PR target/90317
769 * config/arm/arm_neon.h
770 (vsha1h_u32): Refactor.
771 (vsha1cq_u32): Likewise.
772 (vsha1pq_u32): Likewise.
773 (vsha1mq_u32): Likewise.
774 * config/arm/crypto.md:
775 (crypto_sha1h): Remove zero extend, correct vec select.
776 (crypto_sha1c): Correct vec select.
777 (crypto_sha1m): Likewise.
778 (crypto_sha1p): Likewise.
779
780 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
781
782 * config/arm/predicates.md (arm_borrow_operation): New predicate.
783 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
784 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
785 (subdi_zesidi_zesidi): Likewise.
786 (negdi2_compare, negdi2_insn): Likewise.
787 (negdi_extensidi): Likewise.
788 (negdi_zero_extendsidi): Likewise.
789 (arm_cmpdi_insn): Likewise.
790 (subsi3_carryin): Use arm_borrow_operation.
791 (subsi3_carryin_const): Likewise.
792 (subsi3_carryin_const0): Likewise.
793 (subsi3_carryin_compare): Likewise.
794 (subsi3_carryin_compare_const): Likewise.
795 (subsi3_carryin_compare_const0): Likewise.
796 (subsi3_carryin_shift): Likewise.
797 (rsbsi3_carryin_shift): Likewise.
798 (negsi2_carryin_compare): Likewise.
799
800 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
801
802 PR tree-optimization/91137
803 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
804 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
805 Init, use and fini the above new field.
806 (determine_base_object_1): New function.
807 (determine_base_object): Reimplement using walk_tree.
808
809 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
810
811 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
812 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
813 CLEANUP_FORCE_FAST_DCE is set.
814 * ifcvt.c (rest_of_handle_if_conversion): Pass
815 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
816 if-conversion succeeded.
817
818 2019-07-18 Richard Biener <rguenther@suse.de>
819
820 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
821 branches to make code less indented.
822
823 2019-07-17 Alexandre Oliva <oliva@adacore.com>
824
825 PR middle-end/81824
826 * attribs.c (decls_mismatched_attributes): Simplify the logic
827 that avoids duplicates and false positives.
828
829 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
830
831 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
832 data into data section when generating PIC code.
833 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
834 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
835 generating code for SOM targets earlier than HP-UX 11. Otherwise,
836 return 2 for SOM and 0 for other targets.
837
838 2019-07-17 Jeff Law <law@redhat.com>
839
840 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
841 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
842 avoid unexpected switch statement fallthru.
843
844 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
845
846 * config/i386/i386.md (*add<dwi>3_doubleword):
847 Remove redundant constraints.
848 (*add<mode>_1): Ditto.
849 (*addhi_1): Ditto.
850 (*addqi_1): Ditto.
851 (*addqi_1_slp): Ditto.
852 (*add<mode>_2): Ditto.
853 (*addv<mode>4): Ditto.
854 (*sub<dwi>3_doubleword): Ditto.
855 (*sub<mode>_1): Ditto.
856 (*subqi_1_slp): Ditto.
857 (*sub<mode>_2): Ditto.
858 (*subv<mode>4): Ditto.
859 (*sub<mode>_3): Ditto.
860 (@add<mode>3_carry): Ditto.
861 (@sub<mode>3_carry): Ditto.
862 (*add<mode>3_cc_overflow_1): Ditto.
863 (*add<mode>3_zext_cc_overflow_2): Ditto.
864 (*anddi_1): Ditto.
865 (*and<mode>_1): Ditto.
866 (*andqi_1): Ditto.
867 (*andqi_1_slp): Ditto.
868 (*anddi_2): Ditto.
869 (*andqi_2_maybe_si): Ditto.
870 (*and<mode>_2): Ditto.
871 (*andqi_2_slp): Ditto.
872 (*<code><mode>_1): Ditto.
873 (*<code>qi_1): Ditto.
874 (*<code>qi_1_slp): Ditto.
875 (*<code><mode>_2): Ditto.
876 (*<code>qi_2_slp): Ditto.
877
878 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
879
880 * alias.c (record_component_aliases): Do not simplify pointed-to
881 types of ODR types.
882
883 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
884
885 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
886 partial reg stall on alternative 2.
887
888 2019-07-17 Richard Biener <rguenther@suse.de>
889
890 PR tree-optimization/91178
891 * tree-ssa.c (release_defs_bitset): Iterate from higher to
892 lower SSA names to avoid quadratic behavior in the common case.
893 * tree-data-ref.c (split_constant_offset): Add limit argument
894 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
895 (split_constant_offset_1): Add limit argument and use it to
896 limit SSA def walking. Optimize the common plus/minus case.
897
898 2019-07-17 Richard Biener <rguenther@suse.de>
899
900 PR tree-optimization/91178
901 * tree-vect-stmts.c (get_group_load_store_type): For SLP
902 loads with a gap larger than the vector size always use
903 VMAT_STRIDED_SLP.
904 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
905 avoid loading vectors that are only contained in the gap
906 and thus are not needed.
907
908 2019-07-17 Richard Biener <rguenther@suse.de>
909
910 PR tree-optimization/91180
911 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
912 computation for memset partial defs.
913
914 2019-07-17 Jakub Jelinek <jakub@redhat.com>
915
916 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
917 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
918 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
919 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
920 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
921 * omp-grid.c (grid_process_grid_body,
922 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
923 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
924 == GF_OMP_FOR_KIND_SIMD.
925 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
926 check_omp_nesting_restrictions, scan_omp_1_stmt,
927 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
928 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
929 omp_find_scan): Likewise.
930 * omp-expand.c (expand_omp_for): Likewise.
931 * omp-general.c (omp_extract_for_data): Likewise.
932
933 PR tree-optimization/91157
934 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
935 a vector boolean with scalar mode.
936 (expand_vector_condition): Handle first operand being a vector boolean
937 with scalar mode.
938 (expand_vector_operations_1): For comparisons, don't bail out early
939 if the return type is vector boolean with scalar mode, but comparison
940 operand type is not.
941
942 2019-07-17 Richard Biener <rguenther@suse.de>
943
944 PR tree-optimization/91181
945 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
946 IFN_LOADs as calls.
947
948 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
949
950 * config/i386/i386.md (*testdi_1): Match CCZmode for
951 constants that might have the SImode sign bit set.
952 (*testqi_1_maybe_si): Remove "!" constraint modifier.
953 Use correct constraints for pentium pairing.
954 (*test<mode>_1): Ditto.
955
956 2019-07-16 Jeff Law <law@redhat.com>
957
958 PR rtl-optimization/91173
959 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
960 SSA_NAME with a constant value, fold its value into the offset
961 and clear the base before calling gen_addr_rtx.
962
963 2019-07-16 Jakub Jelinek <jakub@redhat.com>
964
965 PR rtl-optimization/91164
966 * dse.c (rest_of_handle_dse): If dead edges have been purged,
967 invalidate dominance info.
968
969 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
970
971 * read-md.h (md_reader::record_potential_iterator_use): Add a
972 file_location parameter.
973 * read-rtl.c (attribute_use::loc): New field.
974 (map_attr_string): Take a file_location parameter. Report cases
975 in which attributes map to multiple distinct values.
976 (apply_attribute_uses): Update call accordingly.
977 (md_reader::handle_overloaded_name): Likewise.
978 (md_reader::apply_iterator_to_string): Likewise. Skip empty
979 nonnull strings.
980 (record_attribute_use): Take a file_location parameter.
981 Initialize attribute_use::loc.
982 (md_reader::record_potential_iterator_use): Take a file_location
983 parameter. Update call to record_attribute_use.
984 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
985 (rtx_reader::read_rtx_code): Likewise.
986 (rtx_reader::read_rtx_operand): Likewise. Record a location
987 for implicitly-expanded empty strings.
988
989 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
990
991 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
992 Use file_location instead of separate fields.
993 (md_reader::set_md_ptr_loc): Take a file_location instead of a
994 separate filename and line number.
995 * read-md.c (ptr_loc): As above.
996 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
997 (md_reader::fprint_md_ptr_loc): Likewise.
998 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
999 instead of a separate filename and line number.
1000 (md_reader::read_string): Update call accordingly.
1001
1002 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
1003
1004 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
1005 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
1006 leaving the choice between SFDF and P implicit.
1007 (*mov<mode>_update2): Likewise.
1008 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
1009 rather than leaving the choice betweem IBM128 and GPR implicit.
1010 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
1011 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
1012 QHSI implicit.
1013 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
1014 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
1015 * config/rs6000/vsx.md
1016 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
1017 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
1018 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
1019 and VSX_EXTRACT_I implicit.
1020
1021 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
1022
1023 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
1024 Explicitly use <MOVEP1:MODE> for the mode attribute.
1025
1026 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
1027
1028 PR bootstrap/91176
1029 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
1030
1031 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
1032
1033 PR target/91050
1034 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
1035 .machine directive.
1036
1037 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
1038
1039 * config/i386/i386.md (@test<mode>_ccno_1):
1040 Rename from test<mode>_ccno_1.
1041 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
1042 (*testqi_1_maybe_si): Remove modrm attribute.
1043 (*test<mode>_1): Ditto.
1044 * config/i386/i386-expand.c (ix86_split_idivmod): Use
1045 gen_test_ccno_1 and gen_extend_insn.
1046
1047 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
1048
1049 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
1050 to 0.
1051
1052 2019-07-15 Richard Biener <rguenther@suse.de>
1053
1054 PR middle-end/91162
1055 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
1056 node make sure to replace all uses with something valid.
1057
1058 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
1059
1060 PR tree-optimization/88497
1061 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
1062 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
1063 function undistribute_bitref_for_vector.
1064 (undistribute_bitref_for_vector): New function.
1065 (cleanup_vinfo_map): Likewise.
1066 (sort_by_mach_mode): Likewise.
1067
1068 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
1069
1070 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
1071 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
1072 and testdi_ccno_1 using SWI48 mode attribute.
1073 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
1074 x86_64_szext_general_operand.
1075 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
1076 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
1077 instead of genera_operand mode attribute.
1078
1079 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
1080
1081 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
1082 fopen and fclose to their respective types.
1083 (DotFn.invoke): Ditto.
1084
1085 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
1086
1087 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
1088 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
1089 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
1090 (array_index_predicate): Remove.
1091 (analyze_function_body): Account cost for variable ofsetted array
1092 indexing.
1093 (estimate_node_size_and_time): Do not compute array index hint.
1094 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
1095 (inline_read_section): Do not read array index hint.
1096 (ipa_fn_summary_write): Do not write array index hint.
1097 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
1098 * ipa-cp.c (hint_time_bonus): Remove.
1099 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
1100 (ipa_fnsummary): Remove array_index.
1101 * ipa-inline.c (want_inline_small_function_p): Do not use
1102 array_index.
1103 (edge_badness): Likewise.
1104 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
1105
1106 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
1107
1108 PR target/91148
1109 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
1110 superfluous "builtin function" phrasing.
1111
1112 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
1113
1114 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
1115 Break out from ...
1116 (aliasing_component_refs_walk): Break out from ...
1117 (aliasing_component_refs_p): ... here.
1118
1119 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
1120
1121 PR target/91148
1122 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
1123 "builtin function" phrasing.
1124
1125 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1126
1127 PR target/90723
1128 * recog.h (temporary_volatile_ok): New class.
1129 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
1130 volatile_ok temporarily to true using temporary_volatile_ok.
1131 * expr.c (emit_block_move_via_cpymem): Likewise.
1132 * optabs.c (maybe_legitimize_operand): Likewise.
1133
1134 2019-07-13 Jakub Jelinek <jakub@redhat.com>
1135
1136 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
1137 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
1138 uses inside of order(concurrent) constructs.
1139 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
1140 OMP_CLAUSE_ORDER is seen.
1141 * omp-low.c (struct omp_context): Add order_concurrent member.
1142 (scan_sharing_clauses): Set ctx->order_concurrent if
1143 OMP_CLAUSE_ORDER is seen.
1144 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
1145 of simd order(concurrent). Diagnose constructs not allowed inside of
1146 for order(concurrent).
1147 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
1148 complaining about static double setjmp (double); or class static
1149 methods or non-global namespace setjmps.
1150 (omp_runtime_api_call): New function.
1151 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
1152 order(concurrent) loops.
1153
1154 2019-07-12 Martin Sebor <msebor@redhat.com>
1155
1156 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
1157 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
1158 * tree-vrp.c (vrp_prop::check_mem_ref): Use
1159 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
1160
1161 2019-07-12 Jan Hubicka <jh@suse.cz>
1162
1163 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
1164 (indirect_refs_may_alias_p): ... here.
1165 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
1166 mem refs in the access paths.
1167
1168 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
1169
1170 PR tree-optimization/89430
1171 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
1172 store elimination for local variable without address escape.
1173
1174 2019-07-12 Jeff Law <law@redhat.com>
1175
1176 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
1177 for the ".far" section.
1178
1179 2019-07-12 Richard Biener <rguenther@suse.de>
1180
1181 PR tree-optimization/91145
1182 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
1183 chain check.
1184
1185 2019-07-12 Alexandre Oliva <oliva@adacore.com>
1186
1187 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
1188 rather than this_state as the lowering context for the ELSE
1189 seq in a GIMPLE_EH_ELSE.
1190
1191 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
1192
1193 * vector-builder.h (vector_builder::elt): Allow already-supplied
1194 elements to be read back before building is complete.
1195
1196 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
1197
1198 PR rtl-optimization/91136
1199 * df-core.c (ACCESSING REFS): Fix typos in comment.
1200 * resource.c (mark_target_live_reg): Add artificial defs that occur at
1201 the beginning of the block to the initial set of live registers.
1202
1203 2019-07-12 Richard Biener <rguenther@suse.de>
1204
1205 * fold-const.h (get_array_ctor_element_at_index): Adjust.
1206 * fold-const.c (get_array_ctor_element_at_index): Add
1207 ctor_idx output parameter informing the caller where in
1208 the constructor the element was (not) found. Add early exit
1209 for when the ctor is sorted.
1210 * gimple-fold.c (fold_array_ctor_reference): Support constant
1211 folding across multiple array elements.
1212
1213 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
1214
1215 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
1216 doesn't have location, set the current location to the function's end.
1217
1218 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
1219
1220 * config/aarch64/aarch64.md (*compare_condjump<mode>)
1221 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
1222 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
1223 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
1224 * config/aarch64/aarch64-simd.md
1225 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
1226 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
1227 * config/aarch64/aarch64-sve.md
1228 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
1229 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
1230
1231 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
1232
1233 * doc/md.texi: Document that @ patterns can have different
1234 numbers of operands.
1235 * genemit.c (handle_overloaded_gen): Handle this case.
1236 * genopinit.c (handle_overloaded_gen): Likewise.
1237 * gensupport.c (replace_operands_with_dups): Iterate over
1238 the new rtx's format rather than the old one's.
1239
1240 2019-07-12 Jakub Jelinek <jakub@redhat.com>
1241
1242 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
1243 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
1244 order clause entries.
1245 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
1246 * tree-pretty-print.c (dump_omp_clause): Likewise.
1247 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
1248 Likewise.
1249 * omp-low.c (scan_sharing_clauses): Likewise.
1250 * tree-nested.c (convert_nonlocal_omp_clauses,
1251 convert_local_omp_clauses): Likewise.
1252
1253 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
1254
1255 * gcc/cfgrtl.c (print_rtl_with_bb): Emit a hint if the
1256 fallthrough target of current basic block isn't the placed
1257 right next.
1258
1259 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
1260
1261 PR target/90980
1262 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
1263 (_mm512_storeu_epi64): Likewise.
1264 (_mm512_loadu_epi32): Likewise.
1265 (_mm512_storeu_epi32): Likewise.
1266 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
1267 (_mm_storeu_epi64): Likewise.
1268 (_mm256_storeu_epi32): Likewise.
1269 (_mm_storeu_epi32): Likewise.
1270
1271 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
1272
1273 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
1274
1275 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
1276
1277 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
1278 Handle Modula-2.
1279
1280 2019-07-11 Jakub Jelinek <jakub@redhat.com>
1281
1282 PR target/91124
1283 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
1284 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
1285 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
1286 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
1287 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
1288 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
1289 define_insns.
1290 (ufix_truncv2dfv2si2<mask_name>): Change into ...
1291 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
1292 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
1293 define_insns.
1294 (sse2_cvttpd2dq<mask_name>): Change into ...
1295 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
1296 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
1297 (*sse2_cvtpd2dq<mask_name>): Change into ...
1298 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
1299 Add "C" constraint to const0_operand.
1300 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
1301 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
1302 changes.
1303
1304 PR target/91124
1305 * config/i386/i386-builtin-types.def
1306 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
1307 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
1308 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
1309 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
1310 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
1311 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
1312 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
1313 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
1314 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
1315 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
1316 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
1317 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
1318 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
1319 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
1320 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
1321 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
1322 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
1323 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
1324 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
1325 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
1326 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
1327 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
1328 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
1329 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
1330 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
1331 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
1332 __builtin_ia32_vpdpbusd_v4si_maskz,
1333 __builtin_ia32_vpdpbusds_v16si_mask,
1334 __builtin_ia32_vpdpbusds_v16si_maskz,
1335 __builtin_ia32_vpdpbusds_v8si_mask,
1336 __builtin_ia32_vpdpbusds_v8si_maskz,
1337 __builtin_ia32_vpdpbusds_v4si_mask,
1338 __builtin_ia32_vpdpbusds_v4si_maskz,
1339 __builtin_ia32_vpdpwssd_v16si_mask,
1340 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
1341 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
1342 __builtin_ia32_vpdpwssd_v4si_maskz,
1343 __builtin_ia32_vpdpwssds_v16si_mask,
1344 __builtin_ia32_vpdpwssds_v16si_maskz,
1345 __builtin_ia32_vpdpwssds_v8si_mask,
1346 __builtin_ia32_vpdpwssds_v8si_maskz,
1347 __builtin_ia32_vpdpwssds_v4si_mask,
1348 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
1349 suffixed types rather than *_INT.
1350 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
1351 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
1352 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
1353 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
1354 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
1355 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
1356
1357 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
1358
1359 * tree-vrp.c (intersect_ranges): If we know the intersection is
1360 empty, there is no need to conservatively add anything else to
1361 the set.
1362
1363 2019-07-11 Richard Biener <rguenther@suse.de>
1364
1365 PR middle-end/91131
1366 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
1367 when the object is volatile and we have not cleared it even though
1368 there are no nonzero elements.
1369
1370 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
1371
1372 * config/rs6000/predicates.md (cint34_operand): Update
1373 SIGNED_34BIT_OFFSET_P call.
1374 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
1375 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
1376 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
1377 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
1378 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
1379 argument.
1380 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
1381 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
1382 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
1383 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
1384 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
1385
1386 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
1387
1388 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
1389 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
1390 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
1391 (DEF_MIN_OSX_VERSION): New.
1392
1393 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
1394
1395 * fold-const.c (fold_relational_const): Fix folding of
1396 vector-to-scalar NE_EXPRs.
1397 (test_vector_folding): Add more tests.
1398
1399 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
1400
1401 PR target/91060
1402 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
1403 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
1404 (vec_setv2di_internal): Reexpress as...
1405 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
1406 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
1407 rather than gen_neon_vset_lane<mode>.
1408
1409 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
1410
1411 PR target/91102
1412 * lra-constraints.c (process_alt_operands): Don't match user
1413 defined regs only if they are early clobbers.
1414
1415 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
1416
1417 * wide-int.h (wi::lshift): Reject negative values for the fast path.
1418
1419 2019-07-10 Richard Biener <rguenther@suse.de>
1420
1421 PR tree-optimization/91126
1422 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
1423 native encoding offset for BYTES_BIG_ENDIAN.
1424 (vn_reference_lookup_3): Likewise.
1425
1426 2019-07-10 Richard Biener <rguenther@suse.de>
1427
1428 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
1429 LHS whenever possible.
1430
1431 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
1432
1433 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
1434 from ...; work also on duplicated types.
1435 (nonoverlapping_component_refs_since_match): ... here
1436 (ncr_type_uid): Break out from ...
1437 (ncr_compar): ... here; look for TYPE_UID of canonical type if
1438 available.
1439 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
1440 the types and nonoverlapping_component_refs_p_1 to disambiguate.
1441
1442 2019-07-09 Martin Sebor <msebor@redhat.com>
1443
1444 PR tree-optimization/90989
1445 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
1446 optimization to just single character stores.
1447
1448 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
1449
1450 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
1451 Swap operands only once.
1452
1453 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1454
1455 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
1456 for both call instructions.
1457
1458 2019-07-09 John Darrington <john@darrington.wattle.id.au>
1459
1460 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
1461 rather than GET_MODE_BITSIZE to better handle partial integer modes.
1462
1463 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
1464
1465 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
1466 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
1467 function from rs6000-logue.c back to rs6000.c.
1468 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
1469
1470 2019-07-09 Martin Sebor <msebor@redhat.com>
1471
1472 PR c++/61339
1473 * auto-profile.c: Change class-key of PODs to struct and others
1474 to class.
1475 * basic-block.h: Same.
1476 * bitmap.c (bitmap_alloc): Same.
1477 * bitmap.h: Same.
1478 * builtins.c (expand_builtin_prefetch): Same.
1479 (expand_builtin_interclass_mathfn): Same.
1480 (expand_builtin_strlen): Same.
1481 (expand_builtin_mempcpy_args): Same.
1482 (expand_cmpstr): Same.
1483 (expand_builtin___clear_cache): Same.
1484 (expand_ifn_atomic_bit_test_and): Same.
1485 (expand_builtin_thread_pointer): Same.
1486 (expand_builtin_set_thread_pointer): Same.
1487 * caller-save.c (setup_save_areas): Same.
1488 (replace_reg_with_saved_mem): Same.
1489 (insert_restore): Same.
1490 (insert_save): Same.
1491 (add_used_regs): Same.
1492 * cfg.c (get_bb_copy): Same.
1493 (set_loop_copy): Same.
1494 * cfg.h: Same.
1495 * cfganal.h: Same.
1496 * cfgexpand.c (alloc_stack_frame_space): Same.
1497 (add_stack_var): Same.
1498 (add_stack_var_conflict): Same.
1499 (add_scope_conflicts_1): Same.
1500 (update_alias_info_with_stack_vars): Same.
1501 (expand_used_vars): Same.
1502 * cfghooks.c (redirect_edge_and_branch_force): Same.
1503 (delete_basic_block): Same.
1504 (split_edge): Same.
1505 (make_forwarder_block): Same.
1506 (force_nonfallthru): Same.
1507 (duplicate_block): Same.
1508 (lv_flush_pending_stmts): Same.
1509 * cfghooks.h: Same.
1510 * cfgloop.c (flow_loops_cfg_dump): Same.
1511 (flow_loop_nested_p): Same.
1512 (superloop_at_depth): Same.
1513 (get_loop_latch_edges): Same.
1514 (flow_loop_dump): Same.
1515 (flow_loops_dump): Same.
1516 (flow_loops_free): Same.
1517 (flow_loop_nodes_find): Same.
1518 (establish_preds): Same.
1519 (flow_loop_tree_node_add): Same.
1520 (flow_loop_tree_node_remove): Same.
1521 (flow_loops_find): Same.
1522 (find_subloop_latch_edge_by_profile): Same.
1523 (find_subloop_latch_edge_by_ivs): Same.
1524 (mfb_redirect_edges_in_set): Same.
1525 (form_subloop): Same.
1526 (merge_latch_edges): Same.
1527 (disambiguate_multiple_latches): Same.
1528 (disambiguate_loops_with_multiple_latches): Same.
1529 (flow_bb_inside_loop_p): Same.
1530 (glb_enum_p): Same.
1531 (get_loop_body_with_size): Same.
1532 (get_loop_body): Same.
1533 (fill_sons_in_loop): Same.
1534 (get_loop_body_in_dom_order): Same.
1535 (get_loop_body_in_custom_order): Same.
1536 (release_recorded_exits): Same.
1537 (get_loop_exit_edges): Same.
1538 (num_loop_branches): Same.
1539 (remove_bb_from_loops): Same.
1540 (find_common_loop): Same.
1541 (delete_loop): Same.
1542 (cancel_loop): Same.
1543 (verify_loop_structure): Same.
1544 (loop_preheader_edge): Same.
1545 (loop_exit_edge_p): Same.
1546 (single_exit): Same.
1547 (loop_exits_to_bb_p): Same.
1548 (loop_exits_from_bb_p): Same.
1549 (get_loop_location): Same.
1550 (record_niter_bound): Same.
1551 (get_estimated_loop_iterations_int): Same.
1552 (max_stmt_executions_int): Same.
1553 (likely_max_stmt_executions_int): Same.
1554 (get_estimated_loop_iterations): Same.
1555 (get_max_loop_iterations): Same.
1556 (get_max_loop_iterations_int): Same.
1557 (get_likely_max_loop_iterations): Same.
1558 * cfgloop.h (simple_loop_desc): Same.
1559 (get_loop): Same.
1560 (loop_depth): Same.
1561 (loop_outer): Same.
1562 (loop_iterator::next): Same.
1563 (loop_outermost): Same.
1564 * cfgloopanal.c (mark_irreducible_loops): Same.
1565 (num_loop_insns): Same.
1566 (average_num_loop_insns): Same.
1567 (expected_loop_iterations_unbounded): Same.
1568 (expected_loop_iterations): Same.
1569 (mark_loop_exit_edges): Same.
1570 (single_likely_exit): Same.
1571 * cfgloopmanip.c (fix_bb_placement): Same.
1572 (fix_bb_placements): Same.
1573 (remove_path): Same.
1574 (place_new_loop): Same.
1575 (add_loop): Same.
1576 (scale_loop_frequencies): Same.
1577 (scale_loop_profile): Same.
1578 (create_empty_if_region_on_edge): Same.
1579 (create_empty_loop_on_edge): Same.
1580 (loopify): Same.
1581 (unloop): Same.
1582 (fix_loop_placements): Same.
1583 (copy_loop_info): Same.
1584 (duplicate_loop): Same.
1585 (duplicate_subloops): Same.
1586 (loop_redirect_edge): Same.
1587 (can_duplicate_loop_p): Same.
1588 (duplicate_loop_to_header_edge): Same.
1589 (mfb_keep_just): Same.
1590 (has_preds_from_loop): Same.
1591 (create_preheader): Same.
1592 (create_preheaders): Same.
1593 (lv_adjust_loop_entry_edge): Same.
1594 (loop_version): Same.
1595 * cfgloopmanip.h: Same.
1596 * cgraph.h: Same.
1597 * cgraphbuild.c: Same.
1598 * combine.c (make_extraction): Same.
1599 * config/i386/i386-features.c: Same.
1600 * config/i386/i386-features.h: Same.
1601 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
1602 (ix86_emit_outlined_ms2sysv_restore): Same.
1603 (ix86_noce_conversion_profitable_p): Same.
1604 (ix86_init_cost): Same.
1605 (ix86_simd_clone_usable): Same.
1606 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
1607 Wstruct-not-pod.
1608 * coretypes.h: Same.
1609 * data-streamer-in.c (string_for_index): Change class-key of PODs
1610 to struct and others to class.
1611 (streamer_read_indexed_string): Same.
1612 (streamer_read_string): Same.
1613 (bp_unpack_indexed_string): Same.
1614 (bp_unpack_string): Same.
1615 (streamer_read_uhwi): Same.
1616 (streamer_read_hwi): Same.
1617 (streamer_read_gcov_count): Same.
1618 (streamer_read_wide_int): Same.
1619 * data-streamer.h (streamer_write_bitpack): Same.
1620 (bp_unpack_value): Same.
1621 (streamer_write_char_stream): Same.
1622 (streamer_write_hwi_in_range): Same.
1623 (streamer_write_record_start): Same.
1624 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
1625 (add_cross_iteration_register_deps): Same.
1626 (build_intra_loop_deps): Same.
1627 * df-core.c (df_analyze): Same.
1628 (loop_post_order_compute): Same.
1629 (loop_inverted_post_order_compute): Same.
1630 * df-problems.c (df_rd_alloc): Same.
1631 (df_rd_simulate_one_insn): Same.
1632 (df_rd_local_compute): Same.
1633 (df_rd_init_solution): Same.
1634 (df_rd_confluence_n): Same.
1635 (df_rd_transfer_function): Same.
1636 (df_rd_free): Same.
1637 (df_rd_dump_defs_set): Same.
1638 (df_rd_top_dump): Same.
1639 (df_lr_alloc): Same.
1640 (df_lr_reset): Same.
1641 (df_lr_local_compute): Same.
1642 (df_lr_init): Same.
1643 (df_lr_confluence_n): Same.
1644 (df_lr_free): Same.
1645 (df_lr_top_dump): Same.
1646 (df_lr_verify_transfer_functions): Same.
1647 (df_live_alloc): Same.
1648 (df_live_reset): Same.
1649 (df_live_init): Same.
1650 (df_live_confluence_n): Same.
1651 (df_live_finalize): Same.
1652 (df_live_free): Same.
1653 (df_live_top_dump): Same.
1654 (df_live_verify_transfer_functions): Same.
1655 (df_mir_alloc): Same.
1656 (df_mir_reset): Same.
1657 (df_mir_init): Same.
1658 (df_mir_confluence_n): Same.
1659 (df_mir_free): Same.
1660 (df_mir_top_dump): Same.
1661 (df_word_lr_alloc): Same.
1662 (df_word_lr_reset): Same.
1663 (df_word_lr_init): Same.
1664 (df_word_lr_confluence_n): Same.
1665 (df_word_lr_free): Same.
1666 (df_word_lr_top_dump): Same.
1667 (df_md_alloc): Same.
1668 (df_md_simulate_one_insn): Same.
1669 (df_md_reset): Same.
1670 (df_md_init): Same.
1671 (df_md_free): Same.
1672 (df_md_top_dump): Same.
1673 * df-scan.c (df_insn_delete): Same.
1674 (df_insn_rescan): Same.
1675 (df_notes_rescan): Same.
1676 (df_sort_and_compress_mws): Same.
1677 (df_install_mws): Same.
1678 (df_refs_add_to_chains): Same.
1679 (df_ref_create_structure): Same.
1680 (df_ref_record): Same.
1681 (df_def_record_1): Same.
1682 (df_find_hard_reg_defs): Same.
1683 (df_uses_record): Same.
1684 (df_get_conditional_uses): Same.
1685 (df_get_call_refs): Same.
1686 (df_recompute_luids): Same.
1687 (df_get_entry_block_def_set): Same.
1688 (df_entry_block_defs_collect): Same.
1689 (df_get_exit_block_use_set): Same.
1690 (df_exit_block_uses_collect): Same.
1691 (df_mws_verify): Same.
1692 (df_bb_verify): Same.
1693 * df.h (df_scan_get_bb_info): Same.
1694 * doc/tm.texi: Same.
1695 * dse.c (record_store): Same.
1696 * dumpfile.h: Same.
1697 * emit-rtl.c (const_fixed_hasher::equal): Same.
1698 (set_mem_attributes_minus_bitpos): Same.
1699 (change_address): Same.
1700 (adjust_address_1): Same.
1701 (offset_address): Same.
1702 * emit-rtl.h: Same.
1703 * except.c (dw2_build_landing_pads): Same.
1704 (sjlj_emit_dispatch_table): Same.
1705 * explow.c (allocate_dynamic_stack_space): Same.
1706 (emit_stack_probe): Same.
1707 (probe_stack_range): Same.
1708 * expmed.c (store_bit_field_using_insv): Same.
1709 (store_bit_field_1): Same.
1710 (store_integral_bit_field): Same.
1711 (extract_bit_field_using_extv): Same.
1712 (extract_bit_field_1): Same.
1713 (emit_cstore): Same.
1714 * expr.c (emit_block_move_via_cpymem): Same.
1715 (expand_cmpstrn_or_cmpmem): Same.
1716 (set_storage_via_setmem): Same.
1717 (emit_single_push_insn_1): Same.
1718 (expand_assignment): Same.
1719 (store_constructor): Same.
1720 (expand_expr_real_2): Same.
1721 (expand_expr_real_1): Same.
1722 (try_casesi): Same.
1723 * flags.h: Same.
1724 * function.c (try_fit_stack_local): Same.
1725 (assign_stack_local_1): Same.
1726 (assign_stack_local): Same.
1727 (cut_slot_from_list): Same.
1728 (insert_slot_to_list): Same.
1729 (max_slot_level): Same.
1730 (move_slot_to_level): Same.
1731 (temp_address_hasher::equal): Same.
1732 (remove_unused_temp_slot_addresses): Same.
1733 (assign_temp): Same.
1734 (combine_temp_slots): Same.
1735 (update_temp_slot_address): Same.
1736 (preserve_temp_slots): Same.
1737 * function.h: Same.
1738 * fwprop.c: Same.
1739 * gcc-rich-location.h: Same.
1740 * gcov.c: Same.
1741 * genattrtab.c (check_attr_test): Same.
1742 (check_attr_value): Same.
1743 (convert_set_attr_alternative): Same.
1744 (convert_set_attr): Same.
1745 (check_defs): Same.
1746 (copy_boolean): Same.
1747 (get_attr_value): Same.
1748 (expand_delays): Same.
1749 (make_length_attrs): Same.
1750 (min_fn): Same.
1751 (make_alternative_compare): Same.
1752 (simplify_test_exp): Same.
1753 (tests_attr_p): Same.
1754 (get_attr_order): Same.
1755 (clear_struct_flag): Same.
1756 (gen_attr): Same.
1757 (compares_alternatives_p): Same.
1758 (gen_insn): Same.
1759 (gen_delay): Same.
1760 (find_attrs_to_cache): Same.
1761 (write_test_expr): Same.
1762 (walk_attr_value): Same.
1763 (write_attr_get): Same.
1764 (eliminate_known_true): Same.
1765 (write_insn_cases): Same.
1766 (write_attr_case): Same.
1767 (write_attr_valueq): Same.
1768 (write_attr_value): Same.
1769 (write_dummy_eligible_delay): Same.
1770 (next_comma_elt): Same.
1771 (find_attr): Same.
1772 (make_internal_attr): Same.
1773 (copy_rtx_unchanging): Same.
1774 (gen_insn_reserv): Same.
1775 (check_tune_attr): Same.
1776 (make_automaton_attrs): Same.
1777 (handle_arg): Same.
1778 * genextract.c (gen_insn): Same.
1779 (VEC_char_to_string): Same.
1780 * genmatch.c (print_operand): Same.
1781 (lower): Same.
1782 (parser::parse_operation): Same.
1783 (parser::parse_capture): Same.
1784 (parser::parse_c_expr): Same.
1785 (parser::parse_simplify): Same.
1786 (main): Same.
1787 * genoutput.c (output_operand_data): Same.
1788 (output_get_insn_name): Same.
1789 (compare_operands): Same.
1790 (place_operands): Same.
1791 (process_template): Same.
1792 (validate_insn_alternatives): Same.
1793 (validate_insn_operands): Same.
1794 (gen_expand): Same.
1795 (note_constraint): Same.
1796 * genpreds.c (write_one_predicate_function): Same.
1797 (add_constraint): Same.
1798 (process_define_register_constraint): Same.
1799 (write_lookup_constraint_1): Same.
1800 (write_lookup_constraint_array): Same.
1801 (write_insn_constraint_len): Same.
1802 (write_reg_class_for_constraint_1): Same.
1803 (write_constraint_satisfied_p_array): Same.
1804 * genrecog.c (optimize_subroutine_group): Same.
1805 * gensupport.c (process_define_predicate): Same.
1806 (queue_pattern): Same.
1807 (remove_from_queue): Same.
1808 (process_rtx): Same.
1809 (is_predicable): Same.
1810 (change_subst_attribute): Same.
1811 (subst_pattern_match): Same.
1812 (alter_constraints): Same.
1813 (alter_attrs_for_insn): Same.
1814 (shift_output_template): Same.
1815 (alter_output_for_subst_insn): Same.
1816 (process_one_cond_exec): Same.
1817 (subst_dup): Same.
1818 (process_define_cond_exec): Same.
1819 (mnemonic_htab_callback): Same.
1820 (gen_mnemonic_attr): Same.
1821 (read_md_rtx): Same.
1822 * ggc-page.c: Same.
1823 * gimple-loop-interchange.cc (dump_reduction): Same.
1824 (dump_induction): Same.
1825 (loop_cand::~loop_cand): Same.
1826 (free_data_refs_with_aux): Same.
1827 (tree_loop_interchange::interchange_loops): Same.
1828 (tree_loop_interchange::map_inductions_to_loop): Same.
1829 (tree_loop_interchange::move_code_to_inner_loop): Same.
1830 (compute_access_stride): Same.
1831 (compute_access_strides): Same.
1832 (proper_loop_form_for_interchange): Same.
1833 (tree_loop_interchange_compute_ddrs): Same.
1834 (prune_datarefs_not_in_loop): Same.
1835 (prepare_data_references): Same.
1836 (pass_linterchange::execute): Same.
1837 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
1838 (unroll_jam_possible_p): Same.
1839 (fuse_loops): Same.
1840 (adjust_unroll_factor): Same.
1841 (tree_loop_unroll_and_jam): Same.
1842 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
1843 (loop_versioning::expensive_stmt_p): Same.
1844 (loop_versioning::version_for_unity): Same.
1845 (loop_versioning::dump_inner_likelihood): Same.
1846 (loop_versioning::find_per_loop_multiplication): Same.
1847 (loop_versioning::analyze_term_using_scevs): Same.
1848 (loop_versioning::record_address_fragment): Same.
1849 (loop_versioning::analyze_expr): Same.
1850 (loop_versioning::analyze_blocks): Same.
1851 (loop_versioning::prune_conditions): Same.
1852 (loop_versioning::merge_loop_info): Same.
1853 (loop_versioning::add_loop_to_queue): Same.
1854 (loop_versioning::decide_whether_loop_is_versionable): Same.
1855 (loop_versioning::make_versioning_decisions): Same.
1856 (loop_versioning::implement_versioning_decisions): Same.
1857 * gimple-ssa-evrp-analyze.c
1858 (evrp_range_analyzer::record_ranges_from_phis): Same.
1859 * gimple-ssa-store-merging.c (split_store::split_store): Same.
1860 (count_multiple_uses): Same.
1861 (split_group): Same.
1862 (imm_store_chain_info::output_merged_store): Same.
1863 (pass_store_merging::process_store): Same.
1864 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
1865 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
1866 (is_max): Same.
1867 (alloca_call_type): Same.
1868 (pass_walloca::execute): Same.
1869 * gimple-streamer-in.c (input_phi): Same.
1870 (input_gimple_stmt): Same.
1871 * gimple-streamer.h: Same.
1872 * godump.c (go_force_record_alignment): Same.
1873 (go_format_type): Same.
1874 (go_output_type): Same.
1875 (go_output_fndecl): Same.
1876 (go_output_typedef): Same.
1877 (keyword_hash_init): Same.
1878 (find_dummy_types): Same.
1879 * graph.c (draw_cfg_nodes_no_loops): Same.
1880 (draw_cfg_nodes_for_loop): Same.
1881 * hard-reg-set.h (hard_reg_set_iter_next): Same.
1882 * hsa-brig.c: Same.
1883 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
1884 * hsa-dump.c (dump_hsa_cfun): Same.
1885 * hsa-gen.c (gen_function_def_parameters): Same.
1886 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
1887 * input.c (dump_line_table_statistics): Same.
1888 (test_lexer): Same.
1889 * input.h: Same.
1890 * internal-fn.c (get_multi_vector_move): Same.
1891 (expand_load_lanes_optab_fn): Same.
1892 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
1893 (expand_GOMP_SIMT_EXIT): Same.
1894 (expand_GOMP_SIMT_LAST_LANE): Same.
1895 (expand_GOMP_SIMT_ORDERED_PRED): Same.
1896 (expand_GOMP_SIMT_VOTE_ANY): Same.
1897 (expand_GOMP_SIMT_XCHG_BFLY): Same.
1898 (expand_GOMP_SIMT_XCHG_IDX): Same.
1899 (expand_addsub_overflow): Same.
1900 (expand_neg_overflow): Same.
1901 (expand_mul_overflow): Same.
1902 (expand_call_mem_ref): Same.
1903 (expand_mask_load_optab_fn): Same.
1904 (expand_scatter_store_optab_fn): Same.
1905 (expand_gather_load_optab_fn): Same.
1906 * ipa-cp.c (ipa_get_parm_lattices): Same.
1907 (print_all_lattices): Same.
1908 (ignore_edge_p): Same.
1909 (build_toporder_info): Same.
1910 (free_toporder_info): Same.
1911 (push_node_to_stack): Same.
1912 (ipcp_lattice<valtype>::set_contains_variable): Same.
1913 (set_agg_lats_to_bottom): Same.
1914 (ipcp_bits_lattice::meet_with): Same.
1915 (set_single_call_flag): Same.
1916 (initialize_node_lattices): Same.
1917 (ipa_get_jf_ancestor_result): Same.
1918 (ipcp_verify_propagated_values): Same.
1919 (propagate_scalar_across_jump_function): Same.
1920 (propagate_context_across_jump_function): Same.
1921 (propagate_bits_across_jump_function): Same.
1922 (ipa_vr_operation_and_type_effects): Same.
1923 (propagate_vr_across_jump_function): Same.
1924 (set_check_aggs_by_ref): Same.
1925 (set_chain_of_aglats_contains_variable): Same.
1926 (merge_aggregate_lattices): Same.
1927 (agg_pass_through_permissible_p): Same.
1928 (propagate_aggs_across_jump_function): Same.
1929 (call_passes_through_thunk_p): Same.
1930 (propagate_constants_across_call): Same.
1931 (devirtualization_time_bonus): Same.
1932 (good_cloning_opportunity_p): Same.
1933 (context_independent_aggregate_values): Same.
1934 (gather_context_independent_values): Same.
1935 (perform_estimation_of_a_value): Same.
1936 (estimate_local_effects): Same.
1937 (value_topo_info<valtype>::add_val): Same.
1938 (add_all_node_vals_to_toposort): Same.
1939 (value_topo_info<valtype>::propagate_effects): Same.
1940 (ipcp_propagate_stage): Same.
1941 (ipcp_discover_new_direct_edges): Same.
1942 (same_node_or_its_all_contexts_clone_p): Same.
1943 (cgraph_edge_brings_value_p): Same.
1944 (gather_edges_for_value): Same.
1945 (create_specialized_node): Same.
1946 (find_more_scalar_values_for_callers_subset): Same.
1947 (find_more_contexts_for_caller_subset): Same.
1948 (copy_plats_to_inter): Same.
1949 (intersect_aggregates_with_edge): Same.
1950 (find_aggregate_values_for_callers_subset): Same.
1951 (cgraph_edge_brings_all_agg_vals_for_node): Same.
1952 (decide_about_value): Same.
1953 (decide_whether_version_node): Same.
1954 (spread_undeadness): Same.
1955 (identify_dead_nodes): Same.
1956 (ipcp_store_vr_results): Same.
1957 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
1958 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
1959 (redirect_to_unreachable): Same.
1960 (edge_set_predicate): Same.
1961 (evaluate_conditions_for_known_args): Same.
1962 (evaluate_properties_for_edge): Same.
1963 (ipa_fn_summary_t::duplicate): Same.
1964 (ipa_call_summary_t::duplicate): Same.
1965 (dump_ipa_call_summary): Same.
1966 (ipa_dump_fn_summary): Same.
1967 (eliminated_by_inlining_prob): Same.
1968 (set_cond_stmt_execution_predicate): Same.
1969 (set_switch_stmt_execution_predicate): Same.
1970 (compute_bb_predicates): Same.
1971 (will_be_nonconstant_expr_predicate): Same.
1972 (phi_result_unknown_predicate): Same.
1973 (analyze_function_body): Same.
1974 (compute_fn_summary): Same.
1975 (estimate_edge_devirt_benefit): Same.
1976 (estimate_edge_size_and_time): Same.
1977 (estimate_calls_size_and_time): Same.
1978 (estimate_node_size_and_time): Same.
1979 (remap_edge_change_prob): Same.
1980 (remap_edge_summaries): Same.
1981 (ipa_merge_fn_summary_after_inlining): Same.
1982 (ipa_fn_summary_generate): Same.
1983 (inline_read_section): Same.
1984 (ipa_fn_summary_read): Same.
1985 (ipa_fn_summary_write): Same.
1986 * ipa-fnsummary.h: Same.
1987 * ipa-hsa.c (ipa_hsa_read_section): Same.
1988 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
1989 * ipa-icf.c (sem_function::param_used_p): Same.
1990 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
1991 * ipa-inline.c (edge_badness): Same.
1992 (inline_small_functions): Same.
1993 * ipa-polymorphic-call.c
1994 (ipa_polymorphic_call_context::stream_out): Same.
1995 * ipa-predicate.c (predicate::remap_after_duplication): Same.
1996 (predicate::remap_after_inlining): Same.
1997 (predicate::stream_out): Same.
1998 * ipa-predicate.h: Same.
1999 * ipa-profile.c (ipa_profile_read_summary): Same.
2000 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
2001 (count_formal_params): Same.
2002 (ipa_dump_param): Same.
2003 (ipa_alloc_node_params): Same.
2004 (ipa_print_node_jump_functions_for_edge): Same.
2005 (ipa_print_node_jump_functions): Same.
2006 (ipa_load_from_parm_agg): Same.
2007 (get_ancestor_addr_info): Same.
2008 (ipa_compute_jump_functions_for_edge): Same.
2009 (ipa_analyze_virtual_call_uses): Same.
2010 (ipa_analyze_stmt_uses): Same.
2011 (ipa_analyze_params_uses_in_bb): Same.
2012 (update_jump_functions_after_inlining): Same.
2013 (try_decrement_rdesc_refcount): Same.
2014 (ipa_impossible_devirt_target): Same.
2015 (update_indirect_edges_after_inlining): Same.
2016 (combine_controlled_uses_counters): Same.
2017 (ipa_edge_args_sum_t::duplicate): Same.
2018 (ipa_write_jump_function): Same.
2019 (ipa_write_indirect_edge_info): Same.
2020 (ipa_write_node_info): Same.
2021 (ipa_read_edge_info): Same.
2022 (ipa_prop_read_section): Same.
2023 (read_replacements_section): Same.
2024 * ipa-prop.h (ipa_get_param_count): Same.
2025 (ipa_get_param): Same.
2026 (ipa_get_type): Same.
2027 (ipa_get_param_move_cost): Same.
2028 (ipa_set_param_used): Same.
2029 (ipa_get_controlled_uses): Same.
2030 (ipa_set_controlled_uses): Same.
2031 (ipa_get_cs_argument_count): Same.
2032 * ipa-pure-const.c (analyze_function): Same.
2033 (pure_const_read_summary): Same.
2034 * ipa-ref.h: Same.
2035 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
2036 * ipa-split.c (test_nonssa_use): Same.
2037 (dump_split_point): Same.
2038 (dominated_by_forbidden): Same.
2039 (split_part_set_ssa_name_p): Same.
2040 (find_split_points): Same.
2041 * ira-build.c (finish_loop_tree_nodes): Same.
2042 (low_pressure_loop_node_p): Same.
2043 * ira-color.c (ira_reuse_stack_slot): Same.
2044 * ira-int.h: Same.
2045 * ira.c (setup_reg_equiv): Same.
2046 (print_insn_chain): Same.
2047 (ira): Same.
2048 * loop-doloop.c (doloop_condition_get): Same.
2049 (add_test): Same.
2050 (record_reg_sets): Same.
2051 (doloop_optimize): Same.
2052 * loop-init.c (loop_optimizer_init): Same.
2053 (fix_loop_structure): Same.
2054 * loop-invariant.c (merge_identical_invariants): Same.
2055 (compute_always_reached): Same.
2056 (find_exits): Same.
2057 (may_assign_reg_p): Same.
2058 (find_invariants_bb): Same.
2059 (find_invariants_body): Same.
2060 (replace_uses): Same.
2061 (can_move_invariant_reg): Same.
2062 (free_inv_motion_data): Same.
2063 (move_single_loop_invariants): Same.
2064 (change_pressure): Same.
2065 (mark_ref_regs): Same.
2066 (calculate_loop_reg_pressure): Same.
2067 * loop-iv.c (biv_entry_hasher::equal): Same.
2068 (iv_extend_to_rtx_code): Same.
2069 (check_iv_ref_table_size): Same.
2070 (clear_iv_info): Same.
2071 (latch_dominating_def): Same.
2072 (iv_get_reaching_def): Same.
2073 (iv_constant): Same.
2074 (iv_subreg): Same.
2075 (iv_extend): Same.
2076 (iv_neg): Same.
2077 (iv_add): Same.
2078 (iv_mult): Same.
2079 (get_biv_step): Same.
2080 (record_iv): Same.
2081 (analyzed_for_bivness_p): Same.
2082 (record_biv): Same.
2083 (iv_analyze_biv): Same.
2084 (iv_analyze_expr): Same.
2085 (iv_analyze_def): Same.
2086 (iv_analyze_op): Same.
2087 (iv_analyze): Same.
2088 (iv_analyze_result): Same.
2089 (biv_p): Same.
2090 (eliminate_implied_conditions): Same.
2091 (simplify_using_initial_values): Same.
2092 (shorten_into_mode): Same.
2093 (canonicalize_iv_subregs): Same.
2094 (determine_max_iter): Same.
2095 (check_simple_exit): Same.
2096 (find_simple_exit): Same.
2097 (get_simple_loop_desc): Same.
2098 * loop-unroll.c (report_unroll): Same.
2099 (decide_unrolling): Same.
2100 (unroll_loops): Same.
2101 (loop_exit_at_end_p): Same.
2102 (decide_unroll_constant_iterations): Same.
2103 (unroll_loop_constant_iterations): Same.
2104 (compare_and_jump_seq): Same.
2105 (unroll_loop_runtime_iterations): Same.
2106 (decide_unroll_stupid): Same.
2107 (unroll_loop_stupid): Same.
2108 (referenced_in_one_insn_in_loop_p): Same.
2109 (reset_debug_uses_in_loop): Same.
2110 (analyze_iv_to_split_insn): Same.
2111 * lra-eliminations.c (lra_debug_elim_table): Same.
2112 (setup_can_eliminate): Same.
2113 (form_sum): Same.
2114 (lra_get_elimination_hard_regno): Same.
2115 (lra_eliminate_regs_1): Same.
2116 (eliminate_regs_in_insn): Same.
2117 (update_reg_eliminate): Same.
2118 (init_elimination): Same.
2119 (lra_eliminate): Same.
2120 * lra-int.h: Same.
2121 * lra-lives.c (initiate_live_solver): Same.
2122 * lra-remat.c (create_remat_bb_data): Same.
2123 * lra-spills.c (lra_spill): Same.
2124 * lra.c (lra_set_insn_recog_data): Same.
2125 (lra_set_used_insn_alternative_by_uid): Same.
2126 (init_reg_info): Same.
2127 (expand_reg_info): Same.
2128 * lto-cgraph.c (output_symtab): Same.
2129 (read_identifier): Same.
2130 (get_alias_symbol): Same.
2131 (input_node): Same.
2132 (input_varpool_node): Same.
2133 (input_ref): Same.
2134 (input_edge): Same.
2135 (input_cgraph_1): Same.
2136 (input_refs): Same.
2137 (input_symtab): Same.
2138 (input_offload_tables): Same.
2139 (output_cgraph_opt_summary): Same.
2140 (input_edge_opt_summary): Same.
2141 (input_cgraph_opt_section): Same.
2142 * lto-section-in.c (lto_free_raw_section_data): Same.
2143 (lto_create_simple_input_block): Same.
2144 (lto_free_function_in_decl_state_for_node): Same.
2145 * lto-streamer-in.c (lto_tag_check_set): Same.
2146 (lto_location_cache::revert_location_cache): Same.
2147 (lto_location_cache::input_location): Same.
2148 (lto_input_location): Same.
2149 (stream_input_location_now): Same.
2150 (lto_input_tree_ref): Same.
2151 (lto_input_eh_catch_list): Same.
2152 (input_eh_region): Same.
2153 (lto_init_eh): Same.
2154 (make_new_block): Same.
2155 (input_cfg): Same.
2156 (fixup_call_stmt_edges): Same.
2157 (input_struct_function_base): Same.
2158 (input_function): Same.
2159 (lto_read_body_or_constructor): Same.
2160 (lto_read_tree_1): Same.
2161 (lto_read_tree): Same.
2162 (lto_input_scc): Same.
2163 (lto_input_tree_1): Same.
2164 (lto_input_toplevel_asms): Same.
2165 (lto_input_mode_table): Same.
2166 (lto_reader_init): Same.
2167 (lto_data_in_create): Same.
2168 * lto-streamer-out.c (output_cfg): Same.
2169 * lto-streamer.h: Same.
2170 * modulo-sched.c (duplicate_insns_of_cycles): Same.
2171 (generate_prolog_epilog): Same.
2172 (mark_loop_unsched): Same.
2173 (dump_insn_location): Same.
2174 (loop_canon_p): Same.
2175 (sms_schedule): Same.
2176 * omp-expand.c (expand_omp_for_ordered_loops): Same.
2177 (expand_omp_for_generic): Same.
2178 (expand_omp_for_static_nochunk): Same.
2179 (expand_omp_for_static_chunk): Same.
2180 (expand_omp_simd): Same.
2181 (expand_omp_taskloop_for_inner): Same.
2182 (expand_oacc_for): Same.
2183 (expand_omp_atomic_pipeline): Same.
2184 (mark_loops_in_oacc_kernels_region): Same.
2185 * omp-offload.c (oacc_xform_loop): Same.
2186 * omp-simd-clone.c (simd_clone_adjust): Same.
2187 * optabs-query.c (get_traditional_extraction_insn): Same.
2188 * optabs.c (expand_vector_broadcast): Same.
2189 (expand_binop_directly): Same.
2190 (expand_twoval_unop): Same.
2191 (expand_twoval_binop): Same.
2192 (expand_unop_direct): Same.
2193 (emit_indirect_jump): Same.
2194 (emit_conditional_move): Same.
2195 (emit_conditional_neg_or_complement): Same.
2196 (emit_conditional_add): Same.
2197 (vector_compare_rtx): Same.
2198 (expand_vec_perm_1): Same.
2199 (expand_vec_perm_const): Same.
2200 (expand_vec_cond_expr): Same.
2201 (expand_vec_series_expr): Same.
2202 (maybe_emit_atomic_exchange): Same.
2203 (maybe_emit_sync_lock_test_and_set): Same.
2204 (expand_atomic_compare_and_swap): Same.
2205 (expand_atomic_load): Same.
2206 (expand_atomic_store): Same.
2207 (maybe_emit_op): Same.
2208 (valid_multiword_target_p): Same.
2209 (create_integer_operand): Same.
2210 (maybe_legitimize_operand_same_code): Same.
2211 (maybe_legitimize_operand): Same.
2212 (create_convert_operand_from_type): Same.
2213 (can_reuse_operands_p): Same.
2214 (maybe_legitimize_operands): Same.
2215 (maybe_gen_insn): Same.
2216 (maybe_expand_insn): Same.
2217 (maybe_expand_jump_insn): Same.
2218 (expand_insn): Same.
2219 * optabs.h (create_expand_operand): Same.
2220 (create_fixed_operand): Same.
2221 (create_output_operand): Same.
2222 (create_input_operand): Same.
2223 (create_convert_operand_to): Same.
2224 (create_convert_operand_from): Same.
2225 * optinfo.h: Same.
2226 * poly-int.h: Same.
2227 * predict.c (optimize_insn_for_speed_p): Same.
2228 (optimize_loop_for_size_p): Same.
2229 (optimize_loop_for_speed_p): Same.
2230 (optimize_loop_nest_for_speed_p): Same.
2231 (get_base_value): Same.
2232 (predicted_by_loop_heuristics_p): Same.
2233 (predict_extra_loop_exits): Same.
2234 (predict_loops): Same.
2235 (predict_paths_for_bb): Same.
2236 (predict_paths_leading_to): Same.
2237 (propagate_freq): Same.
2238 (pass_profile::execute): Same.
2239 * predict.h: Same.
2240 * profile-count.c (profile_count::differs_from_p): Same.
2241 (profile_probability::differs_lot_from_p): Same.
2242 * profile-count.h: Same.
2243 * profile.c (branch_prob): Same.
2244 * regrename.c (free_chain_data): Same.
2245 (mark_conflict): Same.
2246 (create_new_chain): Same.
2247 (merge_overlapping_regs): Same.
2248 (init_rename_info): Same.
2249 (merge_chains): Same.
2250 (regrename_analyze): Same.
2251 (regrename_do_replace): Same.
2252 (scan_rtx_reg): Same.
2253 (record_out_operands): Same.
2254 (build_def_use): Same.
2255 * regrename.h: Same.
2256 * reload.h: Same.
2257 * reload1.c (init_reload): Same.
2258 (maybe_fix_stack_asms): Same.
2259 (copy_reloads): Same.
2260 (count_pseudo): Same.
2261 (count_spilled_pseudo): Same.
2262 (find_reg): Same.
2263 (find_reload_regs): Same.
2264 (select_reload_regs): Same.
2265 (spill_hard_reg): Same.
2266 (fixup_eh_region_note): Same.
2267 (set_reload_reg): Same.
2268 (allocate_reload_reg): Same.
2269 (compute_reload_subreg_offset): Same.
2270 (reload_adjust_reg_for_icode): Same.
2271 (emit_input_reload_insns): Same.
2272 (emit_output_reload_insns): Same.
2273 (do_input_reload): Same.
2274 (inherit_piecemeal_p): Same.
2275 * rtl.h: Same.
2276 * sanopt.c (maybe_get_dominating_check): Same.
2277 (maybe_optimize_ubsan_ptr_ifn): Same.
2278 (can_remove_asan_check): Same.
2279 (maybe_optimize_asan_check_ifn): Same.
2280 (sanopt_optimize_walker): Same.
2281 * sched-deps.c (add_dependence_list): Same.
2282 (chain_to_prev_insn): Same.
2283 (add_insn_mem_dependence): Same.
2284 (create_insn_reg_set): Same.
2285 (maybe_extend_reg_info_p): Same.
2286 (sched_analyze_reg): Same.
2287 (sched_analyze_1): Same.
2288 (get_implicit_reg_pending_clobbers): Same.
2289 (chain_to_prev_insn_p): Same.
2290 (deps_analyze_insn): Same.
2291 (deps_start_bb): Same.
2292 (sched_free_deps): Same.
2293 (init_deps): Same.
2294 (init_deps_reg_last): Same.
2295 (free_deps): Same.
2296 * sched-ebb.c: Same.
2297 * sched-int.h: Same.
2298 * sched-rgn.c (add_branch_dependences): Same.
2299 (concat_insn_mem_list): Same.
2300 (deps_join): Same.
2301 (sched_rgn_compute_dependencies): Same.
2302 * sel-sched-ir.c (reset_target_context): Same.
2303 (copy_deps_context): Same.
2304 (init_id_from_df): Same.
2305 (has_dependence_p): Same.
2306 (change_loops_latches): Same.
2307 (bb_top_order_comparator): Same.
2308 (make_region_from_loop_preheader): Same.
2309 (sel_init_pipelining): Same.
2310 (get_loop_nest_for_rgn): Same.
2311 (make_regions_from_the_rest): Same.
2312 (sel_is_loop_preheader_p): Same.
2313 * sel-sched-ir.h (inner_loop_header_p): Same.
2314 (get_all_loop_exits): Same.
2315 * selftest.h: Same.
2316 * sese.c (sese_build_liveouts): Same.
2317 (sese_insert_phis_for_liveouts): Same.
2318 * sese.h (defined_in_sese_p): Same.
2319 * sreal.c (sreal::stream_out): Same.
2320 * sreal.h: Same.
2321 * streamer-hooks.h: Same.
2322 * target-globals.c (save_target_globals): Same.
2323 * target-globals.h: Same.
2324 * target.def: Same.
2325 * target.h: Same.
2326 * targhooks.c (default_has_ifunc_p): Same.
2327 (default_empty_mask_is_expensive): Same.
2328 (default_init_cost): Same.
2329 * targhooks.h: Same.
2330 * toplev.c: Same.
2331 * tree-affine.c (aff_combination_mult): Same.
2332 (aff_combination_expand): Same.
2333 (aff_combination_constant_multiple_p): Same.
2334 * tree-affine.h: Same.
2335 * tree-cfg.c (build_gimple_cfg): Same.
2336 (replace_loop_annotate_in_block): Same.
2337 (replace_uses_by): Same.
2338 (remove_bb): Same.
2339 (dump_cfg_stats): Same.
2340 (gimple_duplicate_sese_region): Same.
2341 (gimple_duplicate_sese_tail): Same.
2342 (move_block_to_fn): Same.
2343 (replace_block_vars_by_duplicates): Same.
2344 (move_sese_region_to_fn): Same.
2345 (print_loops_bb): Same.
2346 (print_loop): Same.
2347 (print_loops): Same.
2348 (debug): Same.
2349 (debug_loops): Same.
2350 * tree-cfg.h: Same.
2351 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
2352 (chrec_fold_multiply_poly_poly): Same.
2353 (chrec_evaluate): Same.
2354 (chrec_component_in_loop_num): Same.
2355 (reset_evolution_in_loop): Same.
2356 (is_multivariate_chrec): Same.
2357 (chrec_contains_symbols): Same.
2358 (nb_vars_in_chrec): Same.
2359 (chrec_convert_1): Same.
2360 (chrec_convert_aggressive): Same.
2361 * tree-chrec.h: Same.
2362 * tree-core.h: Same.
2363 * tree-data-ref.c (dump_data_dependence_relation): Same.
2364 (canonicalize_base_object_address): Same.
2365 (data_ref_compare_tree): Same.
2366 (prune_runtime_alias_test_list): Same.
2367 (get_segment_min_max): Same.
2368 (create_intersect_range_checks): Same.
2369 (conflict_fn_no_dependence): Same.
2370 (object_address_invariant_in_loop_p): Same.
2371 (analyze_ziv_subscript): Same.
2372 (analyze_siv_subscript_cst_affine): Same.
2373 (analyze_miv_subscript): Same.
2374 (analyze_overlapping_iterations): Same.
2375 (build_classic_dist_vector_1): Same.
2376 (add_other_self_distances): Same.
2377 (same_access_functions): Same.
2378 (build_classic_dir_vector): Same.
2379 (subscript_dependence_tester_1): Same.
2380 (subscript_dependence_tester): Same.
2381 (access_functions_are_affine_or_constant_p): Same.
2382 (get_references_in_stmt): Same.
2383 (loop_nest_has_data_refs): Same.
2384 (graphite_find_data_references_in_stmt): Same.
2385 (find_data_references_in_bb): Same.
2386 (get_base_for_alignment): Same.
2387 (find_loop_nest_1): Same.
2388 (find_loop_nest): Same.
2389 * tree-data-ref.h (dr_alignment): Same.
2390 (ddr_dependence_level): Same.
2391 * tree-if-conv.c (fold_build_cond_expr): Same.
2392 (add_to_predicate_list): Same.
2393 (add_to_dst_predicate_list): Same.
2394 (phi_convertible_by_degenerating_args): Same.
2395 (idx_within_array_bound): Same.
2396 (all_preds_critical_p): Same.
2397 (pred_blocks_visited_p): Same.
2398 (predicate_bbs): Same.
2399 (build_region): Same.
2400 (if_convertible_loop_p_1): Same.
2401 (is_cond_scalar_reduction): Same.
2402 (predicate_scalar_phi): Same.
2403 (remove_conditions_and_labels): Same.
2404 (combine_blocks): Same.
2405 (version_loop_for_if_conversion): Same.
2406 (versionable_outer_loop_p): Same.
2407 (ifcvt_local_dce): Same.
2408 (tree_if_conversion): Same.
2409 (pass_if_conversion::gate): Same.
2410 * tree-if-conv.h: Same.
2411 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
2412 * tree-loop-distribution.c (bb_top_order_cmp): Same.
2413 (free_rdg): Same.
2414 (stmt_has_scalar_dependences_outside_loop): Same.
2415 (copy_loop_before): Same.
2416 (create_bb_after_loop): Same.
2417 (const_with_all_bytes_same): Same.
2418 (generate_memset_builtin): Same.
2419 (generate_memcpy_builtin): Same.
2420 (destroy_loop): Same.
2421 (build_rdg_partition_for_vertex): Same.
2422 (compute_access_range): Same.
2423 (data_ref_segment_size): Same.
2424 (latch_dominated_by_data_ref): Same.
2425 (compute_alias_check_pairs): Same.
2426 (fuse_memset_builtins): Same.
2427 (finalize_partitions): Same.
2428 (find_seed_stmts_for_distribution): Same.
2429 (prepare_perfect_loop_nest): Same.
2430 * tree-parloops.c (lambda_transform_legal_p): Same.
2431 (loop_parallel_p): Same.
2432 (reduc_stmt_res): Same.
2433 (add_field_for_name): Same.
2434 (create_call_for_reduction_1): Same.
2435 (replace_uses_in_bb_by): Same.
2436 (transform_to_exit_first_loop_alt): Same.
2437 (try_transform_to_exit_first_loop_alt): Same.
2438 (transform_to_exit_first_loop): Same.
2439 (num_phis): Same.
2440 (gen_parallel_loop): Same.
2441 (gather_scalar_reductions): Same.
2442 (get_omp_data_i_param): Same.
2443 (try_create_reduction_list): Same.
2444 (oacc_entry_exit_single_gang): Same.
2445 (parallelize_loops): Same.
2446 * tree-pass.h: Same.
2447 * tree-predcom.c (determine_offset): Same.
2448 (last_always_executed_block): Same.
2449 (split_data_refs_to_components): Same.
2450 (suitable_component_p): Same.
2451 (valid_initializer_p): Same.
2452 (find_looparound_phi): Same.
2453 (insert_looparound_copy): Same.
2454 (add_looparound_copies): Same.
2455 (determine_roots_comp): Same.
2456 (predcom_tmp_var): Same.
2457 (initialize_root_vars): Same.
2458 (initialize_root_vars_store_elim_1): Same.
2459 (initialize_root_vars_store_elim_2): Same.
2460 (finalize_eliminated_stores): Same.
2461 (initialize_root_vars_lm): Same.
2462 (remove_stmt): Same.
2463 (determine_unroll_factor): Same.
2464 (execute_pred_commoning_cbck): Same.
2465 (base_names_in_chain_on): Same.
2466 (combine_chains): Same.
2467 (pcom_stmt_dominates_stmt_p): Same.
2468 (try_combine_chains): Same.
2469 (prepare_initializers_chain_store_elim): Same.
2470 (prepare_initializers_chain): Same.
2471 (prepare_initializers): Same.
2472 (prepare_finalizers_chain): Same.
2473 (prepare_finalizers): Same.
2474 (insert_init_seqs): Same.
2475 * tree-scalar-evolution.c (loop_phi_node_p): Same.
2476 (compute_overall_effect_of_inner_loop): Same.
2477 (add_to_evolution_1): Same.
2478 (add_to_evolution): Same.
2479 (follow_ssa_edge_binary): Same.
2480 (follow_ssa_edge_expr): Same.
2481 (backedge_phi_arg_p): Same.
2482 (follow_ssa_edge_in_condition_phi_branch): Same.
2483 (follow_ssa_edge_in_condition_phi): Same.
2484 (follow_ssa_edge_inner_loop_phi): Same.
2485 (follow_ssa_edge): Same.
2486 (analyze_evolution_in_loop): Same.
2487 (analyze_initial_condition): Same.
2488 (interpret_loop_phi): Same.
2489 (interpret_condition_phi): Same.
2490 (interpret_rhs_expr): Same.
2491 (interpret_expr): Same.
2492 (interpret_gimple_assign): Same.
2493 (analyze_scalar_evolution_1): Same.
2494 (analyze_scalar_evolution): Same.
2495 (analyze_scalar_evolution_for_address_of): Same.
2496 (get_instantiated_value_entry): Same.
2497 (loop_closed_phi_def): Same.
2498 (instantiate_scev_name): Same.
2499 (instantiate_scev_poly): Same.
2500 (instantiate_scev_binary): Same.
2501 (instantiate_scev_convert): Same.
2502 (instantiate_scev_not): Same.
2503 (instantiate_scev_r): Same.
2504 (instantiate_scev): Same.
2505 (resolve_mixers): Same.
2506 (initialize_scalar_evolutions_analyzer): Same.
2507 (scev_reset_htab): Same.
2508 (scev_reset): Same.
2509 (derive_simple_iv_with_niters): Same.
2510 (simple_iv_with_niters): Same.
2511 (expression_expensive_p): Same.
2512 (final_value_replacement_loop): Same.
2513 * tree-scalar-evolution.h (block_before_loop): Same.
2514 * tree-ssa-address.h: Same.
2515 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
2516 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
2517 (record_edge_info): Same.
2518 * tree-ssa-live.c (var_map_base_fini): Same.
2519 (remove_unused_locals): Same.
2520 * tree-ssa-live.h: Same.
2521 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
2522 (pass_ch_vect::execute): Same.
2523 (pass_ch::process_loop_p): Same.
2524 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
2525 (movement_possibility): Same.
2526 (outermost_invariant_loop): Same.
2527 (stmt_cost): Same.
2528 (determine_max_movement): Same.
2529 (invariantness_dom_walker::before_dom_children): Same.
2530 (move_computations): Same.
2531 (may_move_till): Same.
2532 (force_move_till_op): Same.
2533 (force_move_till): Same.
2534 (memref_free): Same.
2535 (record_mem_ref_loc): Same.
2536 (set_ref_stored_in_loop): Same.
2537 (mark_ref_stored): Same.
2538 (sort_bbs_in_loop_postorder_cmp): Same.
2539 (sort_locs_in_loop_postorder_cmp): Same.
2540 (analyze_memory_references): Same.
2541 (mem_refs_may_alias_p): Same.
2542 (find_ref_loc_in_loop_cmp): Same.
2543 (rewrite_mem_ref_loc::operator): Same.
2544 (first_mem_ref_loc_1::operator): Same.
2545 (sm_set_flag_if_changed::operator): Same.
2546 (execute_sm_if_changed_flag_set): Same.
2547 (execute_sm): Same.
2548 (hoist_memory_references): Same.
2549 (ref_always_accessed::operator): Same.
2550 (refs_independent_p): Same.
2551 (record_dep_loop): Same.
2552 (ref_indep_loop_p_1): Same.
2553 (ref_indep_loop_p): Same.
2554 (can_sm_ref_p): Same.
2555 (find_refs_for_sm): Same.
2556 (loop_suitable_for_sm): Same.
2557 (store_motion_loop): Same.
2558 (store_motion): Same.
2559 (fill_always_executed_in): Same.
2560 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
2561 (estimated_unrolled_size): Same.
2562 (loop_edge_to_cancel): Same.
2563 (remove_exits_and_undefined_stmts): Same.
2564 (remove_redundant_iv_tests): Same.
2565 (unloop_loops): Same.
2566 (estimated_peeled_sequence_size): Same.
2567 (try_peel_loop): Same.
2568 (canonicalize_loop_induction_variables): Same.
2569 (canonicalize_induction_variables): Same.
2570 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
2571 (name_info): Same.
2572 (stmt_after_inc_pos): Same.
2573 (contains_abnormal_ssa_name_p): Same.
2574 (niter_for_exit): Same.
2575 (find_bivs): Same.
2576 (mark_bivs): Same.
2577 (find_givs_in_bb): Same.
2578 (find_induction_variables): Same.
2579 (find_interesting_uses_cond): Same.
2580 (outermost_invariant_loop_for_expr): Same.
2581 (idx_find_step): Same.
2582 (add_candidate_1): Same.
2583 (add_iv_candidate_derived_from_uses): Same.
2584 (alloc_use_cost_map): Same.
2585 (prepare_decl_rtl): Same.
2586 (generic_predict_doloop_p): Same.
2587 (computation_cost): Same.
2588 (determine_common_wider_type): Same.
2589 (get_computation_aff_1): Same.
2590 (get_use_type): Same.
2591 (determine_group_iv_cost_address): Same.
2592 (iv_period): Same.
2593 (difference_cannot_overflow_p): Same.
2594 (may_eliminate_iv): Same.
2595 (determine_set_costs): Same.
2596 (cheaper_cost_pair): Same.
2597 (compare_cost_pair): Same.
2598 (iv_ca_cand_for_group): Same.
2599 (iv_ca_recount_cost): Same.
2600 (iv_ca_set_remove_invs): Same.
2601 (iv_ca_set_no_cp): Same.
2602 (iv_ca_set_add_invs): Same.
2603 (iv_ca_set_cp): Same.
2604 (iv_ca_add_group): Same.
2605 (iv_ca_cost): Same.
2606 (iv_ca_compare_deps): Same.
2607 (iv_ca_delta_reverse): Same.
2608 (iv_ca_delta_commit): Same.
2609 (iv_ca_cand_used_p): Same.
2610 (iv_ca_delta_free): Same.
2611 (iv_ca_new): Same.
2612 (iv_ca_free): Same.
2613 (iv_ca_dump): Same.
2614 (iv_ca_extend): Same.
2615 (iv_ca_narrow): Same.
2616 (iv_ca_prune): Same.
2617 (cheaper_cost_with_cand): Same.
2618 (iv_ca_replace): Same.
2619 (try_add_cand_for): Same.
2620 (get_initial_solution): Same.
2621 (try_improve_iv_set): Same.
2622 (find_optimal_iv_set_1): Same.
2623 (create_new_iv): Same.
2624 (rewrite_use_compare): Same.
2625 (remove_unused_ivs): Same.
2626 (determine_scaling_factor): Same.
2627 * tree-ssa-loop-ivopts.h: Same.
2628 * tree-ssa-loop-manip.c (create_iv): Same.
2629 (compute_live_loop_exits): Same.
2630 (add_exit_phi): Same.
2631 (add_exit_phis): Same.
2632 (find_uses_to_rename_use): Same.
2633 (find_uses_to_rename_def): Same.
2634 (find_uses_to_rename_in_loop): Same.
2635 (rewrite_into_loop_closed_ssa): Same.
2636 (check_loop_closed_ssa_bb): Same.
2637 (split_loop_exit_edge): Same.
2638 (ip_end_pos): Same.
2639 (ip_normal_pos): Same.
2640 (copy_phi_node_args): Same.
2641 (gimple_duplicate_loop_to_header_edge): Same.
2642 (can_unroll_loop_p): Same.
2643 (determine_exit_conditions): Same.
2644 (scale_dominated_blocks_in_loop): Same.
2645 (niter_for_unrolled_loop): Same.
2646 (tree_transform_and_unroll_loop): Same.
2647 (rewrite_all_phi_nodes_with_iv): Same.
2648 * tree-ssa-loop-manip.h: Same.
2649 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
2650 (number_of_iterations_ne): Same.
2651 (assert_no_overflow_lt): Same.
2652 (assert_loop_rolls_lt): Same.
2653 (number_of_iterations_lt): Same.
2654 (adjust_cond_for_loop_until_wrap): Same.
2655 (tree_simplify_using_condition): Same.
2656 (simplify_using_initial_conditions): Same.
2657 (simplify_using_outer_evolutions): Same.
2658 (loop_only_exit_p): Same.
2659 (ssa_defined_by_minus_one_stmt_p): Same.
2660 (number_of_iterations_popcount): Same.
2661 (number_of_iterations_exit): Same.
2662 (find_loop_niter): Same.
2663 (finite_loop_p): Same.
2664 (chain_of_csts_start): Same.
2665 (get_val_for): Same.
2666 (loop_niter_by_eval): Same.
2667 (derive_constant_upper_bound_ops): Same.
2668 (do_warn_aggressive_loop_optimizations): Same.
2669 (record_estimate): Same.
2670 (get_cst_init_from_scev): Same.
2671 (record_nonwrapping_iv): Same.
2672 (idx_infer_loop_bounds): Same.
2673 (infer_loop_bounds_from_ref): Same.
2674 (infer_loop_bounds_from_array): Same.
2675 (infer_loop_bounds_from_pointer_arith): Same.
2676 (infer_loop_bounds_from_signedness): Same.
2677 (bound_index): Same.
2678 (discover_iteration_bound_by_body_walk): Same.
2679 (maybe_lower_iteration_bound): Same.
2680 (estimate_numbers_of_iterations): Same.
2681 (estimated_loop_iterations): Same.
2682 (estimated_loop_iterations_int): Same.
2683 (max_loop_iterations): Same.
2684 (max_loop_iterations_int): Same.
2685 (likely_max_loop_iterations): Same.
2686 (likely_max_loop_iterations_int): Same.
2687 (estimated_stmt_executions_int): Same.
2688 (max_stmt_executions): Same.
2689 (likely_max_stmt_executions): Same.
2690 (estimated_stmt_executions): Same.
2691 (stmt_dominates_stmt_p): Same.
2692 (nowrap_type_p): Same.
2693 (loop_exits_before_overflow): Same.
2694 (scev_var_range_cant_overflow): Same.
2695 (scev_probably_wraps_p): Same.
2696 (free_numbers_of_iterations_estimates): Same.
2697 * tree-ssa-loop-niter.h: Same.
2698 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
2699 (idx_analyze_ref): Same.
2700 (analyze_ref): Same.
2701 (gather_memory_references_ref): Same.
2702 (mark_nontemporal_store): Same.
2703 (emit_mfence_after_loop): Same.
2704 (may_use_storent_in_loop_p): Same.
2705 (mark_nontemporal_stores): Same.
2706 (should_unroll_loop_p): Same.
2707 (volume_of_dist_vector): Same.
2708 (add_subscript_strides): Same.
2709 (self_reuse_distance): Same.
2710 (insn_to_prefetch_ratio_too_small_p): Same.
2711 * tree-ssa-loop-split.c (split_at_bb_p): Same.
2712 (patch_loop_exit): Same.
2713 (find_or_create_guard_phi): Same.
2714 (easy_exit_values): Same.
2715 (connect_loop_phis): Same.
2716 (connect_loops): Same.
2717 (compute_new_first_bound): Same.
2718 (split_loop): Same.
2719 (tree_ssa_split_loops): Same.
2720 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
2721 (is_maybe_undefined): Same.
2722 (tree_may_unswitch_on): Same.
2723 (simplify_using_entry_checks): Same.
2724 (tree_unswitch_single_loop): Same.
2725 (tree_unswitch_loop): Same.
2726 (tree_unswitch_outer_loop): Same.
2727 (empty_bb_without_guard_p): Same.
2728 (used_outside_loop_p): Same.
2729 (get_vop_from_header): Same.
2730 (hoist_guard): Same.
2731 * tree-ssa-loop.c (gate_oacc_kernels): Same.
2732 (get_lsm_tmp_name): Same.
2733 * tree-ssa-loop.h: Same.
2734 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
2735 (build_and_add_sum): Same.
2736 (no_side_effect_bb): Same.
2737 (get_ops): Same.
2738 (linearize_expr): Same.
2739 (should_break_up_subtract): Same.
2740 (linearize_expr_tree): Same.
2741 * tree-ssa-scopedtables.c: Same.
2742 * tree-ssa-scopedtables.h: Same.
2743 * tree-ssa-structalias.c (condense_visit): Same.
2744 (label_visit): Same.
2745 (dump_pred_graph): Same.
2746 (perform_var_substitution): Same.
2747 (move_complex_constraints): Same.
2748 (remove_preds_and_fake_succs): Same.
2749 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
2750 (determine_bb_domination_status): Same.
2751 (duplicate_thread_path): Same.
2752 (thread_through_all_blocks): Same.
2753 * tree-ssa-threadupdate.h: Same.
2754 * tree-streamer-in.c (streamer_read_string_cst): Same.
2755 (input_identifier): Same.
2756 (unpack_ts_type_common_value_fields): Same.
2757 (unpack_ts_block_value_fields): Same.
2758 (unpack_ts_translation_unit_decl_value_fields): Same.
2759 (unpack_ts_omp_clause_value_fields): Same.
2760 (streamer_read_tree_bitfields): Same.
2761 (streamer_alloc_tree): Same.
2762 (lto_input_ts_common_tree_pointers): Same.
2763 (lto_input_ts_vector_tree_pointers): Same.
2764 (lto_input_ts_poly_tree_pointers): Same.
2765 (lto_input_ts_complex_tree_pointers): Same.
2766 (lto_input_ts_decl_minimal_tree_pointers): Same.
2767 (lto_input_ts_decl_common_tree_pointers): Same.
2768 (lto_input_ts_decl_non_common_tree_pointers): Same.
2769 (lto_input_ts_decl_with_vis_tree_pointers): Same.
2770 (lto_input_ts_field_decl_tree_pointers): Same.
2771 (lto_input_ts_function_decl_tree_pointers): Same.
2772 (lto_input_ts_type_common_tree_pointers): Same.
2773 (lto_input_ts_type_non_common_tree_pointers): Same.
2774 (lto_input_ts_list_tree_pointers): Same.
2775 (lto_input_ts_vec_tree_pointers): Same.
2776 (lto_input_ts_exp_tree_pointers): Same.
2777 (lto_input_ts_block_tree_pointers): Same.
2778 (lto_input_ts_binfo_tree_pointers): Same.
2779 (lto_input_ts_constructor_tree_pointers): Same.
2780 (lto_input_ts_omp_clause_tree_pointers): Same.
2781 (streamer_read_tree_body): Same.
2782 * tree-streamer.h: Same.
2783 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
2784 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
2785 (vect_analyze_possibly_independent_ddr): Same.
2786 (vect_analyze_data_ref_dependence): Same.
2787 (vect_compute_data_ref_alignment): Same.
2788 (vect_enhance_data_refs_alignment): Same.
2789 (vect_analyze_data_ref_access): Same.
2790 (vect_check_gather_scatter): Same.
2791 (vect_find_stmt_data_reference): Same.
2792 (vect_create_addr_base_for_vector_ref): Same.
2793 (vect_setup_realignment): Same.
2794 (vect_supportable_dr_alignment): Same.
2795 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
2796 (adjust_phi_and_debug_stmts): Same.
2797 (vect_set_loop_mask): Same.
2798 (add_preheader_seq): Same.
2799 (vect_maybe_permute_loop_masks): Same.
2800 (vect_set_loop_masks_directly): Same.
2801 (vect_set_loop_condition_masked): Same.
2802 (vect_set_loop_condition_unmasked): Same.
2803 (slpeel_duplicate_current_defs_from_edges): Same.
2804 (slpeel_add_loop_guard): Same.
2805 (slpeel_can_duplicate_loop_p): Same.
2806 (create_lcssa_for_virtual_phi): Same.
2807 (iv_phi_p): Same.
2808 (vect_update_ivs_after_vectorizer): Same.
2809 (vect_gen_vector_loop_niters_mult_vf): Same.
2810 (slpeel_update_phi_nodes_for_loops): Same.
2811 (slpeel_update_phi_nodes_for_guard1): Same.
2812 (find_guard_arg): Same.
2813 (slpeel_update_phi_nodes_for_guard2): Same.
2814 (slpeel_update_phi_nodes_for_lcssa): Same.
2815 (vect_do_peeling): Same.
2816 (vect_create_cond_for_alias_checks): Same.
2817 (vect_loop_versioning): Same.
2818 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
2819 (vect_inner_phi_in_double_reduction_p): Same.
2820 (vect_analyze_scalar_cycles_1): Same.
2821 (vect_fixup_scalar_cycles_with_patterns): Same.
2822 (vect_get_loop_niters): Same.
2823 (bb_in_loop_p): Same.
2824 (vect_get_max_nscalars_per_iter): Same.
2825 (vect_verify_full_masking): Same.
2826 (vect_compute_single_scalar_iteration_cost): Same.
2827 (vect_analyze_loop_form_1): Same.
2828 (vect_analyze_loop_form): Same.
2829 (vect_active_double_reduction_p): Same.
2830 (vect_analyze_loop_operations): Same.
2831 (neutral_op_for_slp_reduction): Same.
2832 (vect_is_simple_reduction): Same.
2833 (vect_model_reduction_cost): Same.
2834 (get_initial_def_for_reduction): Same.
2835 (get_initial_defs_for_reduction): Same.
2836 (vect_create_epilog_for_reduction): Same.
2837 (vectorize_fold_left_reduction): Same.
2838 (vectorizable_reduction): Same.
2839 (vectorizable_induction): Same.
2840 (vectorizable_live_operation): Same.
2841 (loop_niters_no_overflow): Same.
2842 (vect_get_loop_mask): Same.
2843 (vect_transform_loop_stmt): Same.
2844 (vect_transform_loop): Same.
2845 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
2846 (vect_determine_precisions): Same.
2847 (vect_pattern_recog_1): Same.
2848 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
2849 * tree-vect-stmts.c (stmt_vectype): Same.
2850 (process_use): Same.
2851 (vect_init_vector_1): Same.
2852 (vect_truncate_gather_scatter_offset): Same.
2853 (get_group_load_store_type): Same.
2854 (vect_build_gather_load_calls): Same.
2855 (vect_get_strided_load_store_ops): Same.
2856 (vectorizable_simd_clone_call): Same.
2857 (vectorizable_store): Same.
2858 (permute_vec_elements): Same.
2859 (vectorizable_load): Same.
2860 (vect_transform_stmt): Same.
2861 (supportable_widening_operation): Same.
2862 * tree-vectorizer.c (vec_info::replace_stmt): Same.
2863 (vec_info::free_stmt_vec_info): Same.
2864 (vect_free_loop_info_assumptions): Same.
2865 (vect_loop_vectorized_call): Same.
2866 (set_uid_loop_bbs): Same.
2867 (vectorize_loops): Same.
2868 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
2869 * tree.c (add_tree_to_fld_list): Same.
2870 (fld_type_variant_equal_p): Same.
2871 (fld_decl_context): Same.
2872 (fld_incomplete_type_of): Same.
2873 (free_lang_data_in_binfo): Same.
2874 (need_assembler_name_p): Same.
2875 (find_decls_types_r): Same.
2876 (get_eh_types_for_runtime): Same.
2877 (find_decls_types_in_eh_region): Same.
2878 (find_decls_types_in_node): Same.
2879 (assign_assembler_name_if_needed): Same.
2880 * value-prof.c (stream_out_histogram_value): Same.
2881 * value-prof.h: Same.
2882 * var-tracking.c (use_narrower_mode): Same.
2883 (prepare_call_arguments): Same.
2884 (vt_expand_loc_callback): Same.
2885 (resolve_expansions_pending_recursion): Same.
2886 (vt_expand_loc): Same.
2887 * varasm.c (const_hash_1): Same.
2888 (compare_constant): Same.
2889 (tree_output_constant_def): Same.
2890 (simplify_subtraction): Same.
2891 (get_pool_constant): Same.
2892 (output_constant_pool_2): Same.
2893 (output_constant_pool_1): Same.
2894 (mark_constants_in_pattern): Same.
2895 (mark_constant_pool): Same.
2896 (get_section_anchor): Same.
2897 * vr-values.c (compare_range_with_value): Same.
2898 (vr_values::extract_range_from_phi_node): Same.
2899 * vr-values.h: Same.
2900 * web.c (unionfind_union): Same.
2901 * wide-int.h: Same.
2902
2903 2019-07-09 Martin Sebor <msebor@redhat.com>
2904
2905 PR c++/61339
2906 * align.h: Change class-key from class to struct and vice versa
2907 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
2908 * alloc-pool.h: Same.
2909 * asan.c (shadow_mem_size): Same.
2910 * auto-profile.c: Same.
2911 * basic-block.h: Same.
2912 * bitmap.h: Same.
2913 * cfgexpand.c (set_rtl): Same.
2914 (expand_one_stack_var_at): Same.
2915 * cfghooks.h: Same.
2916 * cfgloop.h: Same.
2917 * cgraph.h: Same.
2918 * config/i386/i386.h: Same.
2919 * df-problems.c (df_print_bb_index): Same.
2920 * df-scan.c: Same.
2921 * df.h (df_single_use): Same.
2922 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
2923 (layout::annotation_line_showed_range_p): Same.
2924 (get_printed_columns): Same.
2925 (correction::ensure_terminated): Same.
2926 (line_corrections::~line_corrections): Same.
2927 * dojump.h: Same.
2928 * dse.c: Same.
2929 * dump-context.h: Same.
2930 * dumpfile.h: Same.
2931 * dwarf2out.c: Same.
2932 * edit-context.c: Same.
2933 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
2934 * flags.h: Same.
2935 * function.c (assign_stack_local): Same.
2936 * function.h: Same.
2937 * gcc.c: Same.
2938 * gcov.c (block_info::block_info): Same.
2939 * genattrtab.c: Same.
2940 * genextract.c: Same.
2941 * genmatch.c (comparison_code_p): Same.
2942 (id_base::id_base): Same.
2943 (decision_tree::print): Same.
2944 * genoutput.c: Same.
2945 * genpreds.c (write_one_predicate_function): Same.
2946 * genrecog.c (validate_pattern): Same.
2947 (find_operand_positions): Same.
2948 (optimize_subroutine_group): Same.
2949 (merge_pattern_transition::merge_pattern_transition): Same.
2950 (merge_pattern_info::merge_pattern_info): Same.
2951 (merge_state_result::merge_state_result): Same.
2952 (merge_into_state): Same.
2953 * gensupport.c: Same.
2954 * gensupport.h: Same.
2955 * ggc-common.c (init_ggc_heuristics): Same.
2956 * ggc-tests.c (test_union): Same.
2957 * gimple-loop-interchange.cc (dump_induction): Same.
2958 * gimple-loop-versioning.cc: Same.
2959 * gimple-match.h (gimple_match_cond::any_else): Same.
2960 * gimple-ssa-backprop.c: Same.
2961 * gimple-ssa-sprintf.c: Same.
2962 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
2963 Same.
2964 (store_immediate_info::store_immediate_info): Same.
2965 (merged_store_group::apply_stores): Same.
2966 (get_location_for_stmts): Same.
2967 * gimple-ssa-strength-reduction.c: Same.
2968 * gimple-ssa-warn-alloca.c: Same.
2969 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
2970 * godump.c (go_type_decl): Same.
2971 * hash-map-tests.c (test_map_of_strings_to_int): Same.
2972 * hash-map.h: Same.
2973 * hash-set-tests.c (test_set_of_strings): Same.
2974 * hsa-brig.c: Same.
2975 * hsa-common.h: Same.
2976 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
2977 * input.c (assert_loceq): Same.
2978 * input.h: Same.
2979 * ipa-cp.c: Same.
2980 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
2981 * ipa-fnsummary.h: Same.
2982 * ipa-inline.h: Same.
2983 * ipa-prop.h: Same.
2984 * ipa-split.c (visit_bb): Same.
2985 * ira-int.h (minmax_set_iter_next): Same.
2986 * loop-invariant.c: Same.
2987 * loop-iv.c: Same.
2988 * lra-eliminations.c: Same.
2989 * lra-int.h: Same.
2990 * lra-lives.c (mark_regno_dead): Same.
2991 * lra-remat.c: Same.
2992 * lra-spills.c: Same.
2993 * lto-streamer.h: Same.
2994 * mem-stats.h: Same.
2995 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
2996 * omp-low.c (omp_clause_aligned_alignment): Same.
2997 * optabs-query.h (get_vcond_eq_icode): Same.
2998 * optabs.h: Same.
2999 * opts.c (wrap_help): Same.
3000 * poly-int.h: Same.
3001 * predict.c (predict_paths_leading_to_edge): Same.
3002 * pretty-print.h: Same.
3003 * profile-count.h: Same.
3004 * read-md.h: Same.
3005 * read-rtl-function.c: Same.
3006 * ree.c: Same.
3007 * reginfo.c: Same.
3008 * regrename.c: Same.
3009 * regrename.h: Same.
3010 * reload.h: Same.
3011 * rtl-iter.h: Same.
3012 * rtl.h (costs_add_n_insns): Same.
3013 * sanopt.c: Same.
3014 * sched-int.h: Same.
3015 * sel-sched-ir.h: Same.
3016 * selftest.h: Same.
3017 * sese.h (vec_find): Same.
3018 * stmt.c: Same.
3019 * target-globals.h: Same.
3020 * tree-affine.c (aff_combination_find_elt): Same.
3021 * tree-affine.h: Same.
3022 * tree-data-ref.h: Same.
3023 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
3024 * tree-predcom.c: Same.
3025 * tree-scalar-evolution.c (find_var_scev_info): Same.
3026 * tree-ssa-alias.h: Same.
3027 * tree-ssa-ccp.c: Same.
3028 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
3029 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
3030 (rewrite_mem_refs): Same.
3031 (execute_sm_if_changed): Same.
3032 (hoist_memory_references): Same.
3033 * tree-ssa-loop-ivopts.c (operator<=): Same.
3034 * tree-ssa-loop.h: Same.
3035 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
3036 * tree-ssa-structalias.c: Same.
3037 * tree-switch-conversion.h (cluster::cluster): Same.
3038 (simple_cluster::simple_cluster): Same.
3039 * tree-vect-patterns.c (type_conversion_p): Same.
3040 * tree-vectorizer.c (dump_stmt_cost): Same.
3041 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
3042 * tree.c (protected_set_expr_location): Same.
3043 * tree.h (desired_pro_or_demotion_p): Same.
3044 (fndecl_built_in_p): Same.
3045 * unique-ptr-tests.cc: Same.
3046 * var-tracking.c (delete_variable_part): Same.
3047 * varasm.c (assemble_real): Same.
3048 (tree_output_constant_def): Same.
3049 * vec.c: Same.
3050 * wide-int-bitmask.h: Same.
3051 * wide-int.h (decompose): Same.
3052
3053 2019-07-09 Richard Biener <rguenther@suse.de>
3054
3055 PR tree-optimization/91114
3056 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
3057 find a vector type isn't fatal.
3058
3059 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
3060
3061 * config/aarch64/aarch64-simd.md
3062 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
3063 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
3064 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
3065 (*aarch64_crypto_aese_fused,
3066 *aarch64_crypto_aesd_fused): Update to new definition.
3067 * config/aarch64/aarch64.c
3068 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
3069
3070 2019-07-09 Richard Biener <rguenther@suse.de>
3071
3072 * gimple-match.h (gimple_match_op::resimplify): New.
3073 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
3074 gimple_resimplify4, gimple_resimplify5): Remove.
3075 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
3076 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
3077 Make static.
3078 (gimple_match_op::resimplify): New.
3079 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
3080 according to availability. Use gimple_match_op::resimplify.
3081
3082 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
3083
3084 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
3085
3086 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
3087
3088 * config/arm/crypto.md:
3089 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
3090 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
3091 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
3092 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
3093 * config/arm/arm.c
3094 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
3095 * config/arm/aarch-common-protos.h
3096 (aarch_crypto_can_dual_issue): Remove.
3097 * config/arm/aarch-common.c
3098 (aarch_crypto_can_dual_issue): Likewise.
3099 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
3100 * config/arm/cortex-a53.md: Likewise.
3101 * config/arm/cortex-a57.md: Likewise.
3102 * config/arm/iterators.md:
3103 (CRYPTO_BINARY): Redefine.
3104 (CRYPTO_UNARY): Removed.
3105 (CRYPTO_AES, CRYPTO_AESMC): New.
3106
3107 2019-07-09 Richard Biener <rguenther@suse.de>
3108
3109 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
3110 (vn_reference_lookup_3): If the main ref has no access path recorded
3111 but orig_ref has use it to do access-path based disambiguation.
3112 (vn_reference_lookup_pieces): Adjust.
3113 (vn_reference_lookup): Pass down original ref if we valueized.
3114
3115 2019-07-09 Martin Liska <mliska@suse.cz>
3116
3117 * doc/extend.texi: Document influence on loop
3118 optimizers.
3119
3120 2019-07-09 Martin Liska <mliska@suse.cz>
3121
3122 * lto-compress.c (lto_normalized_zstd_level): Do not use
3123 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
3124 of libzstd. One can use 0 as a default compression level.
3125
3126 2019-07-09 Martin Liska <mliska@suse.cz>
3127
3128 * doc/invoke.texi: Add link from -fprofile-dir option.
3129 Use better wording for 'gcno filename'.
3130
3131 2019-07-08 Martin Sebor <msebor@redhat.com>
3132
3133 PR middle-end/71924
3134 PR middle-end/90549
3135 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
3136 comment.
3137 (args_loc_t): New type.
3138 (args_loc_t, locmap_t): same.
3139 (diag_returned_locals): New function.
3140 (is_addr_local): Same.
3141 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
3142 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
3143 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
3144
3145 2019-07-08 Jakub Jelinek <jakub@redhat.com>
3146
3147 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
3148 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
3149 and casts in offset when different, both through gimple stmts
3150 and through trees. Rewritten using loops to minimize code duplication
3151 for each operand.
3152
3153 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
3154
3155 * emit-rtl.c (set_insn_locations): New function moved from...
3156 * function.c (set_insn_locations): ...here.
3157 * ira-emit.c (emit_moves): Propagate location of the first instruction
3158 to the inserted move instructions.
3159 * reg-stack.c (compensate_edge): Set the location if the sequence is
3160 inserted on the edge.
3161 * rtl.h (set_insn_locations): Declare.
3162
3163 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
3164
3165 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
3166 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
3167 .machine string.
3168
3169 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
3170
3171 PR rtl-optimization/88233
3172 * common.opt (fsplit-wide-types-early): New option.
3173 * common/config/rs6000/rs6000-common.c
3174 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
3175 OPT_LEVELS_ALL.
3176 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
3177 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
3178 flag_split_wide_types_early.
3179 (pass_data_lower_subreg3): New.
3180 (pass_lower_subreg3): New.
3181 (make_pass_lower_subreg3): New.
3182 * passes.def (pass_lower_subreg2): Move after the loop passes.
3183 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
3184 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
3185 the pass pipeline; its previous place is taken by ...
3186 (make_pass_lower_subreg3): ... this.
3187
3188 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
3189
3190 * config/s390/s390.c (s390_shift_truncation_mask): Define.
3191 (TARGET_SHIFT_TRUNCATION_MASK): Define.
3192
3193 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
3194
3195 * config/s390/constraints.md: Add new jsc constraint.
3196 * config/s390/predicates.md: New predicates.
3197 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
3198 * config/s390/s390.c (s390_valid_shift_count): New function.
3199 (print_shift_count_operand): Use s390_valid_shift_count.
3200 (print_operand): Likewise.
3201 * config/s390/s390.md: Use new predicate.
3202 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
3203 * config/s390/vector.md: Use new predicate.
3204
3205 2019-07-08 Joern Rennecke <joern.rennecke@riscy-ip.com>
3206
3207 Avoid clash with system header declaration.
3208 * testsuite/gcc.dg/vect/slp-reduc-sad.c (uint32_t):
3209 Remove unused declaration.
3210
3211 2019-07-08 Andrew Waterman <andrew@sifive.com>
3212 Jim Wilson <jimw@sifive.com>
3213
3214 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
3215 bitsize instead of BITS_PER_WORD.
3216 gcc/testsuite/
3217
3218 2019-07-08 Martin Liska <mliska@suse.cz>
3219
3220 * collect2.c (defined): Revert to before r254460.
3221 (scan_prog_file): Revert to before r254460.
3222
3223 2019-07-08 Richard Biener <rguenther@suse.de>
3224
3225 PR tree-optimization/83518
3226 * tree-ssa-sccvn.c: Include splay-tree.h.
3227 (struct pd_range, struct pd_data): New.
3228 (struct vn_walk_cb_data): Add data to track partial definitions.
3229 (vn_walk_cb_data::~vn_walk_cb_data): New.
3230 (vn_walk_cb_data::push_partial_def): New.
3231 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
3232 (vn_reference_lookup_2): When partial defs are registered give up.
3233 (vn_reference_lookup_3): Track partial defs for memset and
3234 constructor zeroing and for defs from constants.
3235
3236 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
3237
3238 * doc/install.texi (bootstrap-Og): Document.
3239
3240 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
3241
3242 * config/riscv/pic.md (*local_pic_load_s<mode>)
3243 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
3244 referenced by <mode>, giving...
3245 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
3246 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
3247 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
3248 use <X:MODE> for the mode attribute.
3249
3250 2019-07-07 Jeff Law <law@redhat.com>
3251
3252 PR tree-optimization/91090
3253 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
3254 in handling of ranges to simplify switch statements.
3255
3256 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
3257
3258 * config/darwin.c (darwin_override_options): Make a final check on PIC
3259 options.
3260
3261 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
3262
3263 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
3264 on for kernel code.
3265
3266 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
3267
3268 PR target/91068
3269 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
3270 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
3271 instead of matching them to "l" output operands.
3272
3273 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
3274
3275 * config/mips/mips.c (mips_split_move): Zero-initialize addr
3276 and check whether addr.reg is nonnull before using it.
3277
3278 2019-07-06 Jakub Jelinek <jakub@redhat.com>
3279
3280 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
3281 ctx->for_simd_scan_phase simd copy the outer var to the privatized
3282 variable(s). For conditional lastprivate look through outer
3283 GIMPLE_OMP_SCAN context.
3284 (lower_omp_1): For conditional lastprivate look through outer
3285 GIMPLE_OMP_SCAN context.
3286
3287 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
3288 member to combined_into_simd_safelen1.
3289 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
3290 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
3291 clauses if ctx->combined_into_simd_safelen1 put statements after the
3292 predicate conditionalized block rather than into it.
3293
3294 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
3295
3296 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
3297 operand 1.
3298 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
3299 Make the choice of <mode> explicit, giving...
3300 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
3301
3302 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
3303
3304 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
3305 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
3306 of .md attributes.
3307 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
3308 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
3309 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
3310 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
3311 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
3312 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
3313 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
3314 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
3315 (*avx512f_scatterdi<mode>): Likewise.
3316 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
3317
3318 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
3319
3320 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
3321 specify the mode iterator referenced by <mode>, giving...
3322 (*push1_h8300hs_<QHI:mode>): ...this.
3323
3324 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
3325
3326 * config/gcn/gcn-valu.md
3327 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
3328 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
3329 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
3330 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
3331 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
3332 but using the _exec comparison patterns.
3333 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
3334 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
3335 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
3336 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
3337 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
3338 but using the _exec comparison patterns.
3339
3340 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
3341
3342 * config/arm/sync.md
3343 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
3344 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
3345 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise
3346 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
3347 <SIDI:cas_cmp_str>.
3348
3349 2019-07-06 Jakub Jelinek <jakub@redhat.com>
3350
3351 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
3352 (maybe_lookup_ctx): Add forward declaration.
3353 (omp_find_scan): Likewise. Walk into body of simd if composited
3354 with worksharing loop.
3355 (scan_omp_simd_scan): New function.
3356 (scan_omp_1_stmt): Call it.
3357 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
3358 ctx->for_simd_scan_phase.
3359 (lower_rec_input_clauses): Do much less work for inscan reductions
3360 in ctx->for_simd_scan_phase is_simd regions.
3361 (lower_omp_scan): Set is_simd also on simd constructs composited
3362 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
3363 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
3364 emit their body after in simd constructs composited with worksharing
3365 loop.
3366 (lower_omp_for_scan): Handle worksharing loop composited with simd.
3367
3368 * omp-low.c (omp_find_scan): Make static.
3369 (lower_omp_for_scan): Fix order of merge arguments in input phase of
3370 the second loop, var2 represents the first partial sum and so needs
3371 to go before rprivb[ivar].
3372
3373 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
3374
3375 * config/rs6000/rs6000-logue.c: Remove unused code.
3376
3377 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
3378
3379 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
3380
3381 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
3382
3383 PR target/90712
3384 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
3385 check with a frame laid out check.
3386
3387 2019-07-05 Richard Biener <rguenther@suse.de>
3388
3389 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
3390 when comparing against a store with possibly the same value.
3391
3392 2019-07-05 Richard Biener <rguenther@suse.de>
3393
3394 PR tree-optimization/91091
3395 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
3396 (walk_non_aliased_vuses): Likewise.
3397 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
3398 (get_continuation_for_phi): New tbaa_p parameter and pass
3399 it down.
3400 (walk_non_aliased_vuses): Likewise.
3401 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
3402 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
3403 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
3404 Likewise.
3405 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
3406 (adjust_offsets_for_equal_base_address): New function.
3407 (vn_reference_lookup_3): Use it to catch more base equivalences.
3408 Handle and pass down tbaa_p flag.
3409 (vn_reference_lookup_pieces): Adjust.
3410 (vn_reference_lookup): Remove alias-set altering, instead pass
3411 down false as tbaa_p.
3412
3413 2019-07-05 Richard Biener <rguenther@suse.de>
3414
3415 PR tree-optimization/91091
3416 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
3417 accesses can happen with -fno-strict-aliasing.
3418
3419 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
3420
3421 * tree-ssa-alias.c (alias_stats): Add
3422 nonoverlapping_component_refs_since_match_p_must_overlap.
3423 (dump_alias_stats): Print it.
3424 (nonoverlapping_component_refs_since_match_p): Add early exit.
3425 (nonoverlapping_component_refs_p): Do not account early exit.
3426
3427 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
3428
3429 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
3430 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
3431 (emit_eh_dispatch): Delete.
3432 (lower_catch): Emit the eh_dispatch manually and set the location of
3433 the first catch statement onto it.
3434 (lower_eh_filter): Emit the eh_dispatch manually and set location.
3435 (lower_eh_dispatch): Propagate location.
3436 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
3437 (eliminate_build): Likewise.
3438
3439 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
3440
3441 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
3442 phi nodes if possible.
3443 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
3444 location info on the newly created statement.
3445 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
3446 newly created increment if needed.
3447
3448 2019-07-04 Jakub Jelinek <jakub@redhat.com>
3449
3450 PR middle-end/78884
3451 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
3452 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
3453 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
3454 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
3455 ctx->add_safelen1 is set.
3456
3457 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
3458 GOMP_loop_start at the start of second worksharing loop in a scan.
3459 For nowait, don't emit GOMP_loop_end_nowait at the end of first
3460 worksharing loop in a scan even if there are conditional lastprivates,
3461 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
3462
3463 2019-07-04 Jan Hubicka <jh@suse.cz>
3464
3465 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
3466 Fix check for match in the ref walk.
3467
3468 2019-07-04 Martin Liska <mliska@suse.cz>
3469
3470 * tree-ssa-loop-niter.c
3471 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
3472 (estimate_numbers_of_iterations):
3473 Support __builtin_expect_with_probability for analysis
3474 of # of loop iterations.
3475
3476 2019-07-04 Alexandre Oliva <oliva@adacore.com>
3477
3478 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
3479 * except.c: Likewise.
3480 * expr.c (expand_expr_real_1): Reject it.
3481 * gimplify.c (gimplify_expr): Gimplify it, within
3482 TRY_FINALLY_EXPR.
3483 * tree-dump.c (dequeue_and_dump): Dump it.
3484 * tree-pretty-print.c (dump_generic_node): Likewise.
3485 * tree.c (block_may_fallthru): Handle it.
3486 * tree.def (EH_ELSE_EXPR): Introduce it.
3487 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
3488 with GIMPLE_EH_ELSE as try/finally/else.
3489
3490 2019-07-04 Richard Biener <rguenther@suse.de>
3491
3492 PR ipa/91062
3493 * tree-pass.h (execute_all_ipa_transforms): Add a flag
3494 parameter whether to disable GC collection.
3495 * passes.c (execute_one_ipa_transform_pass): Likewise, and
3496 honor it.
3497 (execute_all_ipa_transforms): Likewise and pass it down.
3498 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
3499 collection from applying IPA transforms.
3500 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
3501 from applying IPA transforms.
3502
3503 2019-07-04 Richard Biener <rguenther@suse.de>
3504
3505 PR tree-optimization/90911
3506 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
3507 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
3508 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
3509 scalar_loop_scaling.
3510 (vect_transform_loop): Scale scalar loop profile if needed.
3511 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
3512 the loop copy from if-conversion adjust edge probabilities
3513 and scale the vectorized loop body profile, queue the scalar
3514 profile for updating after peeling.
3515
3516 2019-07-04 Jan Hubicka <jh@suse.cz>
3517
3518 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
3519 parameters; return early for must-alias.
3520 (indirect_ref_may_alias_decl_p): Likewise; when establishing
3521 outer types match, try nonoverlapping_component_refs
3522 if must-alias is not obvious.
3523 (indirect_refs_may_alias_p): Likewise.
3524 (refs_may_alias_p_2): Likewise.
3525
3526 2019-07-04 Richard Biener <rguenther@suse.de>
3527
3528 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
3529 argument.
3530 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
3531 globals into...
3532 (struct vn_walk_cb_data): New callback data struct.
3533 (vn_reference_lookup_2): Adjust.
3534 (vn_reference_lookup_3): Likewise.
3535 (vn_reference_lookup_pieces): Likewise.
3536 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
3537 (visit_reference_op_load): Adjust.
3538
3539 2019-07-04 Jakub Jelinek <jakub@redhat.com>
3540
3541 PR tree-optimization/91063
3542 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
3543 stmt from stmts sequence before calling vect_init_vector_1.
3544 Formatting fix.
3545
3546 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3547
3548 PR target/88833
3549 * fwprop.c (reg_single_def_p): New function.
3550 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
3551 (forward_propagate_into): New parameter reg_prop_only
3552 with default value false.
3553 Propagate def's src into loop only if SET_SRC and SET_DEST
3554 of def_set have single definitions.
3555 Likewise if reg_prop_only is set to true.
3556 (fwprop): New param fwprop_addr_p.
3557 Integrate fwprop_addr into fwprop.
3558 (fwprop_addr): Remove.
3559 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
3560 to true.
3561 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
3562 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
3563 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
3564
3565 2019-07-04 Jakub Jelinek <jakub@redhat.com>
3566
3567 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
3568 in worksharing loop scans.
3569
3570 PR tree-optimization/91074
3571 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
3572 temporary.
3573
3574 PR rtl-optimization/90756
3575 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
3576 for VECTOR_TYPE_P.
3577
3578 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
3579
3580 * config/aarch64/aarch64.md: Remove redundant constraints from
3581 define_expand but keep some patterns untouched if they are
3582 specially selected by TARGET_SECONDARY_RELOAD hook.
3583 * config/aarch64/aarch64-sve.md: Likewise.
3584 * config/aarch64/atomics.md: Remove redundant constraints from
3585 define_expand.
3586 * config/aarch64/aarch64-simd.md: Likewise.
3587
3588 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
3589
3590 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
3591 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
3592 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
3593 clauses.
3594 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
3595 DARWIN_NOPIE_SPEC.
3596
3597 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
3598
3599 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
3600 (STARTFILE_SPEC): Split crt3 into a separate spec.
3601 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
3602 (DARWIN_CRT2_SPEC): New.
3603 (DARWIN_CRT3_SPEC): New.
3604 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
3605 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
3606 (DARWIN_CRT3_SPEC): New.
3607
3608 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
3609
3610 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
3611 Change the RTL attribute "length" from "4" to "*" to allow the
3612 length attribute to be adjusted automatically for prefixed load,
3613 store, and add immediate instructions.
3614 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
3615 Likewise.
3616 (extendsi<mode>2, EXTSI iterator): Likewise.
3617 (movsi_internal1): Likewise.
3618 (movsi_from_sf): Likewise.
3619 (movdi_from_sf_zero_ext): Likewise.
3620 (mov<mode>_internal): Likewise.
3621 (movcc_internal1, QHI iterator): Likewise.
3622 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
3623 (movsf_from_si): Likewise.
3624 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
3625 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
3626 (mov<mode>, FMOVE128 iterator): Likewise.
3627 (movdi_internal64): Likewise.
3628 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
3629 Likewise.
3630 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
3631 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
3632 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
3633 (vsx_splat_v4sf): Likewise.
3634
3635 2019-07-03 Mark Wielaard <mark@klomp.org>
3636
3637 PR debug/90981
3638 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
3639 DW_AT_addr_base if there is actually a .debug_addr section with
3640 addresses.
3641 (output_addr_table): Add DWARF5 table header generation here after
3642 checking there are actually any addresses from...
3643 (dwarf2out_finish): ...here.
3644 * testsuite/g++.dg/pr90981.C: New test.
3645
3646 2019-07-03 Richard Biener <rguenther@suse.de>
3647
3648 PR middle-end/91069
3649 * match.pd (vec_perm -> bit_insert): Fix element read from
3650 first vector.
3651
3652 2019-07-03 Martin Liska <mliska@suse.cz>
3653
3654 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
3655 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
3656 condition.
3657 * generic-match-head.c: Include dbgcnt.h.
3658 * gimple-match-head.c: Likewise.
3659
3660 2019-07-03 Martin Liska <mliska@suse.cz>
3661
3662 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
3663 (GCOV_COUNTER_V_TOPN): New.
3664 (GCOV_COUNTER_V_INDIR): Use _topn.
3665 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
3666 (GCOV_TOPN_VALUES): New.
3667 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
3668 (GCOV_TOPN_VALUES_COUNTERS): New.
3669 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
3670 * tree-profile.c:
3671 (gimple_init_gcov_profiler): Rename variables from one_value
3672 to topn_values.
3673 (gimple_gen_one_value_profiler): Remove.
3674 (gimple_gen_topn_values_profiler): New function.
3675 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
3676 names instead of SINGLE_VALUE.
3677 (stream_out_histogram_value): Likewise.
3678 (stream_in_histogram_value): Likewise.
3679 (get_most_common_single_value): Likewise.
3680 (gimple_divmod_fixed_value_transform): Likewise.
3681 (gimple_stringops_transform): Likewise.
3682 (gimple_divmod_values_to_profile): Likewise.
3683 (gimple_stringops_values_to_profile): Likewise.
3684 (gimple_find_values_to_profile): Likewise.
3685 * value-prof.h (enum hist_type): Rename to TOPN.
3686 (gimple_gen_one_value_profiler): Remove.
3687 (gimple_gen_topn_values_profiler): New.
3688
3689 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
3690
3691 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
3692 if it has the DW_AT_data_member_location attribute.
3693
3694 2019-07-03 Richard Biener <rguenther@suse.de>
3695
3696 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
3697 dumping.
3698
3699 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
3700
3701 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
3702 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
3703 (tlsdesc_small_sve_<mode>): Likewise.
3704
3705 2019-07-03 Martin Liska <mliska@suse.cz>
3706
3707 * Makefile.in: Define ZSTD_LIB.
3708 * common.opt: Adjust compression level
3709 to support also zstd levels.
3710 * config.in: Regenerate.
3711 * configure: Likewise.
3712 * configure.ac: Add --with-zstd and --with-zstd-include options
3713 and detect ZSTD.
3714 * doc/install.texi: Mention zstd dependency.
3715 * gcc.c: Print supported LTO compression algorithms.
3716 * lto-compress.c (lto_normalized_zstd_level): Likewise.
3717 (lto_compression_zstd): Likewise.
3718 (lto_uncompression_zstd): Likewise.
3719 (lto_end_compression): Dispatch in between zlib and zstd.
3720 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
3721 (lto_uncompression_zlib): Make it static.
3722 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
3723 * lto-section-in.c (lto_get_section_data): Pass info
3724 about used compression.
3725 * lto-streamer-out.c: By default use zstd when possible.
3726 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
3727 (TV_IPA_LTO_COMPRESS): Likewise for compression.
3728
3729 2019-07-03 Martin Liska <mliska@suse.cz>
3730
3731 * lto-section-in.c (lto_get_section_data): Add "lto" section.
3732 * lto-section-out.c (lto_destroy_simple_output_block): Never
3733 compress LTO_section_lto section.
3734 * lto-streamer-out.c (produce_asm): Do not set major_version
3735 and minor_version.
3736 (lto_output_toplevel_asms): Likewise.
3737 (produce_lto_section): New function.
3738 (lto_output): Call produce_lto_section.
3739 (lto_write_mode_table): Do not set major_version and
3740 minor_version.
3741 (produce_asm_for_decls): Likewise.
3742 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
3743 type.
3744 (struct lto_header): Remove.
3745 (struct lto_section): New struct.
3746 (struct lto_simple_header): Do not inherit from lto_header.
3747 (struct lto_file_decl_data): Add lto_section_header field.
3748
3749 2019-07-03 Martin Liska <mliska@suse.cz>
3750
3751 * lra-eliminations.c (eliminate_regs_in_insn): Remove
3752 dead assignemts.
3753 * reg-stack.c (check_asm_stack_operands): Likewise.
3754 * tree-ssa-structalias.c (create_function_info_for): Likewise.
3755 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
3756 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
3757 force_expand_binop.
3758
3759 2019-07-03 Martin Liska <mliska@suse.cz>
3760
3761 PR tree-optimization/90892
3762 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
3763 in string constants.
3764
3765 2019-07-03 Martin Liska <mliska@suse.cz>
3766
3767 PR middle-end/90899
3768 * multiple_target.c (create_dispatcher_calls): Add to comdat
3769 group only if set for ifunc.
3770
3771 2019-07-03 Martin Liska <mliska@suse.cz>
3772
3773 PR target/88056
3774 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
3775 Define local_object_name in outer scope in order to handle
3776 use-after-scope issue.
3777
3778 2019-07-03 Martin Liska <mliska@suse.cz>
3779
3780 * common.opt: Add fprofile-note.
3781 * coverage.c (coverage_init): Append the option
3782 to bbg_file_name.
3783 * doc/invoke.texi: Document -fprofile-note.
3784
3785 2019-07-03 Jakub Jelinek <jakub@redhat.com>
3786
3787 PR tree-optimization/91033
3788 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
3789 vect_analyze_data_refs): Add bool * arguments.
3790 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
3791 if failure is due to scatter/gather, set *fatal to false if non-NULL.
3792 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
3793 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
3794 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
3795 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
3796 vect_analyze_data_refs caller.
3797
3798 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
3799 clause.
3800 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
3801 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
3802 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
3803 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
3804 OMP_CLAUSE__SCANTEMP_ entry.
3805 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
3806 * tree-pretty-print.c (dump_omp_clause): Likewise.
3807 * tree-nested.c (convert_nonlocal_omp_clauses,
3808 convert_local_omp_clauses): Likewise.
3809 * omp-general.h (struct omp_for_data): Add have_scantemp and
3810 have_nonctrl_scantemp members.
3811 * omp-general.c (omp_extract_for_data): Initialize them.
3812 * omp-low.c (struct omp_context): Add scan_exclusive member.
3813 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
3814 result again with GF_OMP_FOR_KIND_MASK. Initialize also
3815 ctx->scan_exclusive.
3816 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
3817 of !ctx->scan_inclusive.
3818 (lower_rec_input_clauses): Simplify gimplification of dtors using
3819 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
3820 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
3821 loops. Don't add barrier for reduction_omp_orig_ref if
3822 ctx->scan_??xclusive.
3823 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
3824 (lower_omp_scan): Use ctx->scan_exclusive instead
3825 of !ctx->scan_inclusive. Handle worksharing loops with inscan
3826 reductions. Use new_vard != new_var instead of repeated
3827 omp_is_reference calls.
3828 (omp_find_scan, lower_omp_for_scan): New functions.
3829 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
3830 inscan reductions.
3831 * omp-expand.c (expand_omp_scantemp_alloc): New function.
3832 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
3833 and fd->have_scantemp.
3834
3835 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
3836 on worksharing loop propagate it as shared clause to containing
3837 combined parallel.
3838
3839 * omp-expand.c (expand_omp_for_static_nochunk,
3840 expand_omp_for_static_chunk): For nowait worksharing loop with
3841 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
3842 at the end.
3843
3844 2019-07-02 Joern Rennecke <joern.rennecke@riscy-ip.com>
3845
3846 PR testsuite/91065
3847 * testsuite/gcc.dg/plugin/start_unit_plugin.c: Register a root tab
3848 to reference fake_var.
3849
3850 2019-07-02 qing zhao <qing.zhao@oracle.com>
3851
3852 PR preprocessor/90581
3853 * doc/cppopts.texi: Add document for -fmax-include-depth.
3854 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
3855
3856 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
3857
3858 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
3859 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
3860 (mmx_packssdw): Ditto.
3861 (mmx_punpckhbw): Ditto.
3862 (mmx_punpcklbw): Ditto.
3863 (mmx_punpckhwd): Ditto.
3864 (mmx_punpcklwd): Ditto.
3865 (mmx_punpckhdq): Ditto.
3866 (mmx_punpckldq): Ditto.
3867 (*vec_dupv4hi): Ditto.
3868 (*vec_dupv2si): Ditto.
3869 (mmx_pmovmskb): Ditto.
3870 * config/i386/sse.md (sse_cvtpi2ps): Use
3871 TARGET_SSE2 && SSE_REG_P in split condition.
3872 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
3873 TARGET_SSSE3 && SSE_REGNO_P in split condition.
3874 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
3875 (ssse3_pshufbv8qi3): Ditto.
3876 (ssse3_palignrdi): Ditto.
3877
3878 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
3879
3880 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
3881 with inlined save and restore.
3882
3883 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
3884
3885 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
3886 to be inserted on single successor edge of the entry block. Then call
3887 commit_edge_insertions instead of inserting the instructions manually.
3888 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
3889 RTL expansion and rebuild jump labels chain.
3890
3891 2019-07-02 Richard Biener <rguenther@suse.de>
3892
3893 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
3894 TI_CHREC_KNOWN.
3895 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
3896 Define here.
3897 * tree.c (build_common_tree_nodes): Initialize them.
3898 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
3899 Make declarations comments.
3900 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
3901 chrec_known): Remove definitions.
3902 (initialize_scalar_evolutions_analyzer): Remove.
3903 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
3904 * tree-streamer.c (preload_common_nodes): Do not preload
3905 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
3906
3907 2019-07-02 Jan Hubicka <jh@suse.cz>
3908
3909 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
3910 sanity check.
3911
3912 2019-07-02 Jan Hubicka <jh@suse.cz>
3913
3914 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
3915 to ..
3916 (nonoverlapping_component_refs_since_match_p): ... this one;
3917 handle also non-decl bases; return -1 if search gave up.
3918 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
3919 nonoverlapping_component_refs_of_decl_p_no_alias to
3920 nonoverlapping_component_refs_since_match_p_may_alias,
3921 nonoverlapping_component_refs_since_match_p_no_alias.
3922 (dump_alias_stats): Update dumping.
3923 (aliasing_matching_component_refs_p): Break out from ...;
3924 dispatch to nonoverlapping_component_refs_for_decl_p
3925 and nonoverlapping_component_refs_since_match_p.
3926 (aliasing_component_refs_p): ... here; call
3927 nonoverlapping_component_refs_p in scenarios where we can not
3928 precisely determine base match.
3929 (decl_refs_may_alias_p): Use
3930 nonoverlapping_component_refs_since_match_p.
3931 (indirect_ref_may_alias_decl_p): Do not call
3932 nonoverlapping_component_refs_p.
3933 (indirect_refs_may_alias_p): Likewise.
3934
3935 2019-07-02 Jan Hubicka <jh@suse.cz>
3936
3937 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
3938 to clobber of return value.
3939
3940 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3941
3942 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
3943 for is_neon_type instructions that have not already been categorized.
3944
3945 2019-07-02 Richard Biener <rguenther@suse.de>
3946
3947 PR tree-optimization/58483
3948 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
3949 for MEM_REF base hashing.
3950 (equal_mem_array_ref_p): Likewise for base comparison.
3951
3952 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
3953
3954 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
3955 parameterized name.
3956 (signbit<mode>2): Use that name. Simplify.
3957
3958 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
3959
3960 PR middle-end/66726
3961 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
3962 Tune heuristic from PR71016 to allow MIN / MAX.
3963 * testsuite/gcc.dg/tree-ssa/pr66726-4.c: New testcase.
3964
3965 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
3966
3967 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
3968 parameterized name.
3969 (abs<mode>2): Use that name. Simplify.
3970
3971 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
3972
3973 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
3974 parameterized name.
3975 (neg<mode>2): Use that name. Simplify.
3976
3977 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
3978
3979 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
3980 name.
3981 (abs<mode>2): Use that name. Simplify.
3982
3983 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
3984
3985 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
3986 name.
3987 (neg<mode>2): Use that name. Simplify.
3988
3989 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
3990
3991 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
3992 ("enabled" attribute): Handle sse_noavx isa attribute.
3993 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
3994 Use TARGET_SSE && SSE_REGNO_P in split condition.
3995 (*vec_dupv2sf): Ditto.
3996
3997 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
3998
3999 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
4000 name.
4001 (floatsi<mode>2): Use that name. Simplify.
4002
4003 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4004
4005 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
4006 parameterized name.
4007 (extenddf<mode>2_vsx): Make this a parameterized name.
4008 (extenddf<mode>2): Use those names. Simplify.
4009
4010 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4011
4012 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
4013 name.
4014 (eh_return): Use that name. Simplify.
4015
4016 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4017
4018 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
4019 (doloop_end): Use that name. Simplify.
4020
4021 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4022
4023 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
4024 parameterized name.
4025 (indirect_jump): Use that name. Simplify.
4026
4027 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4028
4029 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
4030 parameterized name.
4031 (abs<mode>2): Use that name. Simplify.
4032
4033 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4034
4035 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
4036 parameterized name.
4037 (fix_trunc<mode>si2): Use that name. Simplify.
4038
4039 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4040
4041 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
4042 (allocate_stack): Use that name. Simplify.
4043
4044 2019-07-01 Martin Sebor <msebor@redhat.com>
4045
4046 PR middle-end/90923
4047 * hash-map.h (hash_map::put): On insertion invoke element ctor.
4048 (hash_map::get_or_insert): Same. Reformat comment.
4049 * hash-set.h (hash_set::add): On insertion invoke element ctor.
4050 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
4051 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
4052 * hash-table.h (hash_table::operator=): Prevent copy assignment.
4053 (hash_table::hash_table (const hash_table&)): Use copy ctor
4054 instead of assignment to copy elements.
4055
4056 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
4057 John David Anglin <danglin@gcc.gnu.org>
4058
4059 PR target/90963
4060 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
4061 using saved frame pointer.
4062
4063 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
4064
4065 PR middle-end/64242
4066 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
4067 Add frame clobber and schedule blockage.
4068
4069 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
4070
4071 * doc/invoke.texi (Link Options): Further editorial changes to
4072 -flinker-output docs.
4073
4074 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4075
4076 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
4077 Load both operands of a PLUS into registers separately.
4078
4079 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
4080
4081 * config/s390/vector.md: Fix shift count operand printing.
4082
4083 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
4084
4085 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
4086
4087 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
4088
4089 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
4090 Use recog_data to test for an output operand.
4091
4092 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
4093
4094 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
4095 exclude any others that are disparaged or that are bound to need
4096 a reload or spill.
4097 (ira_get_dup_out_num): Expand comment.
4098
4099 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
4100
4101 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
4102 constraint string for each operand/alternative combo. Only handle
4103 '%' at the start of constraint strings, and look for it outside
4104 the main loop.
4105
4106 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
4107
4108 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
4109 alternative_mask instead of HARD_REG_SET to represent a
4110 bitmask of alternatives.
4111 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
4112 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
4113
4114 2019-07-01 Martin Liska <mliska@suse.cz>
4115
4116 * edit-context.c (test_applying_fixits_unreadable_file): Do not
4117 use () for a constructor call.
4118 (test_applying_fixits_line_out_of_range): Likewise.
4119 * ggc-page.c (alloc_page): Use (void *) for %p printf format
4120 argument.
4121 (free_page): Likewise.
4122
4123 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
4124
4125 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
4126 parameter names to match usage (no functional change).
4127 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
4128
4129 2019-07-01 Richard Biener <rguenther@suse.de>
4130
4131 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
4132 pass parameter.
4133 (pass_fre::execute): Honor it.
4134 * passes.def: Adjust pass_fre invocations to allow iterating,
4135 add non-iterating pass_fre before late threading/dom.
4136
4137 2019-07-01 Richard Biener <rguenther@suse.de>
4138
4139 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
4140 TARGET_MEM_REF handling to also handle address-taken ones.
4141
4142 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
4143
4144 * doc/sourcebuild.texi (Effective-Target Keywords, Other
4145 hardware attributes): Document avx512vp2intersect.
4146
4147 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
4148
4149 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
4150 (abs<mode>2): New expander.
4151 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
4152 Use CODE_FOR_ssse3_absv8qi2.
4153 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
4154 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
4155
4156 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
4157
4158 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
4159 to sse, sse_noavx and avx. Update all uses.
4160
4161 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
4162
4163 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
4164 (*mmx_<plusminus_insn><mode>3): Ditto.
4165 (*mmx_mulv4hi3"): Ditto.
4166 (*mmx_smulv4hi3_highpart): Ditto.
4167 (*mmx_umulv4hi3_highpart): Ditto.
4168 (*mmx_pmaddwd): Ditto.
4169 (*sse2_umulv1siv1di3): Ditto.
4170 (*mmx_<code>v4hi3): Ditto.
4171 (*mmx_<code>v8qi3): Ditto.
4172 (mmx_ashr<mode>3): Ditto.
4173 ("mmx_<shift_insn><mode>3): Ditto.
4174 (*mmx_eq<mode>3): Ditto.
4175 (mmx_gt<mode>3): Ditto.
4176 (mmx_andnot<mode>3): Ditto.
4177 (*mmx_<code><mode>3): Ditto.
4178 (*mmx_pinsrw): Ditto.
4179 (*mmx_pextrw): Ditto.
4180 (mmx_pshufw_1): Ditto.
4181 (*mmx_uavgv8qi3): Ditto.
4182 (*mmx_uavgv4hi3): Ditto.
4183 ("mmx_psadbw): Ditto.
4184 * config/i386/sse.md (sse_cvtps2pi): Ditto.
4185 (sse_cvttps2pi): Ditto.
4186 (ssse3_pmaddubsw): Ditto.
4187 (*ssse3_pmulhrswv4hi3): Ditto.
4188 (ssse3_psign<mode>3): Ditto.
4189
4190 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
4191
4192 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
4193 adjustment for bit-fields to all aggregate types.
4194
4195 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
4196
4197 * config/rs6000/predicates.md (pcrel_address): Use
4198 SYMBOL_REF_LOCAL_P to determine if a label is local.
4199 (pcrel_external_address): New predicate.
4200 (non_prefixed_mem_operand): Delete, predicate not used.
4201 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
4202 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
4203 addressing.
4204 (SYMBOL_REF_PCREL_P): Likewise.
4205
4206 PR target/91009
4207 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
4208 alternative.
4209 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
4210 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
4211 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
4212
4213 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
4214
4215 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
4216 override on extra_headers.
4217
4218 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
4219
4220 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
4221 * config/darwin-driver.c (darwin_default_min_version): Remove newline
4222 from warning.
4223 (darwin_driver_init): Likewise.
4224
4225 2019-06-28 Jan Beulich <jbeulich@suse.com>
4226
4227 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
4228 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
4229 Eliminate redundant alternative.
4230
4231 2019-06-28 Jan Beulich <jbeulich@suse.com>
4232
4233 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
4234 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
4235 Use vector_operand.
4236
4237 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
4238
4239 * config/arc/arc.c (arc_rtx_costs): All short instructions are
4240 having a lower cost regardless of the speed option.
4241
4242 2019-06-28 Jan Beulich <jbeulich@suse.com>
4243
4244 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
4245 vector_operand plus, on both alternatives, "Bm" constraint.
4246
4247 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
4248
4249 * config/arm/arm.md: Remove redundant constraints from
4250 define_expand but leave reload_inm and reload_outm patterns
4251 untouched since they need special constraints to work.
4252 * config/arm/arm-fixed.md: Remove redundant constraints from
4253 define_expand.
4254 * config/arm/iwmmxt.md: Likewise.
4255 * config/arm/neon.md: Likewise.
4256 * config/arm/sync.md: Likewise.
4257 * config/arm/thumb1.md: Likewise.
4258 * config/arm/vec-common.md: Likewise.
4259
4260 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
4261
4262 * doc/install.texi: Document --disable-tm-clone-registry.
4263
4264 2019-06-27 Jakub Jelinek <jakub@redhat.com>
4265
4266 PR c++/91024
4267 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
4268 statements.
4269
4270 PR tree-optimization/91010
4271 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
4272 return true. Otherwise, don't call operand_equal_p if offset1 or
4273 offset2 is NULL and just return false.
4274
4275 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
4276
4277 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
4278 user-specified float mode choice for kernel mode code.
4279
4280 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
4281
4282 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
4283 spec.
4284
4285 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
4286
4287 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
4288 use longcall for 64b code.
4289
4290 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
4291
4292 * builtins.c (get_memory_rtx): Fix comment.
4293 * optabs.def (movmem_optab): Change to cpymem_optab.
4294 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
4295 (emit_block_move_hints): Change movmem to cpymem.
4296 * defaults.h: Change movmem to cpymem.
4297 * targhooks.c (get_move_ratio): Change movmem to cpymem.
4298 (default_use_by_pieces_infrastructure_p): Ditto.
4299 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
4300 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
4301 to cpymem.
4302 * config/aarch64/aarch64.h: Change movmem to cpymem.
4303 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
4304 * config/alpha/alpha.h: Change movmem to cpymem in comment.
4305 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
4306 movmem to cpymem.
4307 * config/arc/arc-protos.h: Change movmem to cpymem.
4308 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
4309 * config/arc/arc.h: Change movmem to cpymem in comment.
4310 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
4311 * config/arm/arm-protos.h: Change movmem to cpymem in names.
4312 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
4313 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
4314 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
4315 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
4316 * config/avr/avr-protos.h: Change movmem to cpymem.
4317 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
4318 avr_out_movmem): Change movmem to cpymem.
4319 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
4320 Change movmem to cpymem.
4321 * config/bfin/bfin-protos.h: Change movmem to cpymem.
4322 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
4323 Change movmem to cpymem.
4324 * config/bfin/bfin.h: Change movmem to cpymem in comment.
4325 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
4326 * config/c6x/c6x-protos.h: Change movmem to cpymem.
4327 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
4328 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
4329 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
4330 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
4331 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
4332 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
4333 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
4334 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
4335 expand_small_cpymem_or_setmem,
4336 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
4337 expand_set_or_cpymem_constant_prologue,
4338 ix86_expand_set_or_cpymem): Change movmem to cpymem.
4339 * config/i386/i386-protos.h: Change movmem to cpymem.
4340 * config/i386/i386.h: Change movmem to cpymem in comment.
4341 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
4342 (setmem<mode>): Change expansion function name.
4343 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
4344 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
4345 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
4346 * config/m32c/m32c-protos.h: Change movmem to cpymem.
4347 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
4348 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
4349 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
4350 to cpymem.
4351 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
4352 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
4353 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
4354 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
4355 Change movmem to cpymem.
4356 * config/mips/mips.h: Change movmem to cpymem.
4357 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
4358 * config/nds32/nds32-memory-manipulation.c
4359 (nds32_expand_movmemsi_loop_unknown_size,
4360 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
4361 nds32_expand_movmemsi_unroll,
4362 nds32_expand_movmemsi): Change movmem to cpymem.
4363 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
4364 * config/nds32/nds32-protos.h: Change movmem to cpymem.
4365 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
4366 (pa_adjust_insn_length): Change call to compute_movmem_length.
4367 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
4368 movmemdi, movmemdi_prereload,
4369 movmemdi_postreload): Change movmem to cpymem.
4370 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
4371 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
4372 * config/riscv/riscv.c: Change movmem to cpymem in comment.
4373 * config/riscv/riscv.h: Change movmem to cpymem.
4374 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
4375 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
4376 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
4377 movmem to cpymem.
4378 * config/s390/s390-protos.h: Change movmem to cpymem.
4379 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
4380 s390_expand_insv): Change movmem to cpymem.
4381 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
4382 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
4383 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
4384 * config/sparc/sparc.h: Change movmem to cpymem in comment.
4385 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
4386 for nonexistent function.
4387 * config/vax/vax.h: Change movmem to cpymem in comment.
4388 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
4389 * config/visium/visium.h: Change movmem to cpymem in comment.
4390 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
4391 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
4392 * doc/md.texi: Change movmem to cpymem and update description to match.
4393 * doc/rtl.texi: Change movmem to cpymem.
4394 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
4395 * doc/tm.texi: Regenerate.
4396
4397 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
4398
4399 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
4400 -fvariable-expansion-in-unroller by default.
4401 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
4402 default for Power.
4403
4404 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
4405
4406 Revert
4407 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
4408 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
4409
4410 * config.gcc(rs6000-*-*): Define target_gtfiles.
4411
4412 2019-06-27 Jan Hubicka <jh@suse.cz>
4413
4414 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
4415 (add_type_duplicate): When odr hash is not allocated, to nothing.
4416 (odr_based_tbaa_p): New function.
4417 (set_type_canonical_for_odr_type): New function.
4418 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
4419 set_type_canonical_for_odr_type): New.
4420 * tree.c (gimple_canonical_types_compatible_p): ODR types with
4421 ODR based TBAA are not equivalent to non-ODR types.
4422
4423 2019-06-27 Martin Liska <mliska@suse.cz>
4424
4425 PR tree-optimization/90974
4426 PR rtl-optimization/90975
4427 PR rtl-optimization/90976
4428 PR target/91016
4429 PR tree-optimization/91017
4430 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
4431 unused tmp.
4432 * lra.c (lra_set_insn_recog_data): Remove a leftover from
4433 initial commit of IRA.
4434 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
4435 of op0 and op1.
4436 * tree-vect-loop.c (vect_create_epilog_for_reduction):
4437 Remove unused mode1.
4438 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
4439 to new_stmt_info.
4440
4441 2019-06-27 Jakub Jelinek <jakub@redhat.com>
4442
4443 PR target/90991
4444 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
4445 instead of register_operand for operands[1], add m to its constraints
4446 if operands[2] uses "C" constraint. Ensure in condition that if
4447 operands[2] is not 0, then operands[1] is not a MEM. For last two
4448 alternatives, use unaligned loads instead of aligned if operands[1] is
4449 misaligned_operand.
4450
4451 2019-06-27 Martin Liska <mliska@suse.cz>
4452
4453 * asan.c (asan_emit_allocas_unpoison): Remove obviously
4454 dead assignments.
4455 * bt-load.c (move_btr_def): Likewise.
4456 * builtins.c (expand_builtin_apply_args_1): Likewise.
4457 (expand_builtin_apply): Likewise.
4458 * cfgexpand.c (expand_asm_stmt): Likewise.
4459 (construct_init_block): Likewise.
4460 * cfghooks.c (verify_flow_info): Likewise.
4461 * cfgloopmanip.c (remove_path): Likewise.
4462 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
4463 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
4464 * combine.c (simplify_if_then_else): Likewise.
4465 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
4466 (choose_basereg): Likewise.
4467 (ix86_expand_prologue): Likewise.
4468 (ix86_preferred_output_reload_class): Likewise.
4469 * cselib.c (cselib_record_sets): Likewise.
4470 * df-scan.c (df_scan_alloc): Likewise.
4471 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
4472 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
4473 * emit-rtl.c (try_split): Likewise.
4474 * graphite-scop-detection.c (assign_parameter_index_in_region):
4475 Likewise.
4476 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
4477 * ira-color.c (setup_profitable_hard_regs): Likewise.
4478 * ira.c (rtx_moveable_p): Likewise.
4479 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
4480 * read-rtl.c (read_subst_mapping): Likewise.
4481 * regrename.c (scan_rtx): Likewise.
4482 * reorg.c (fill_slots_from_thread): Likewise.
4483 * tree-inline.c (tree_function_versioning): Likewise.
4484 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
4485 * tree-ssa-sink.c (statement_sink_location): Likewise.
4486 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
4487 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
4488 (vect_create_epilog_for_reduction): Likewise.
4489 * tree.c (build_nonstandard_integer_type): Likewise.
4490
4491 2019-06-27 Richard Biener <rguenther@suse.de>
4492
4493 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
4494
4495 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
4496
4497 PR tree-optimization/89772
4498 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
4499 out-of-bound accesses checking.
4500
4501 2019-06-27 Martin Liska <mliska@suse.cz>
4502
4503 PR tree-optimization/91014
4504 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
4505 when LHS is NULL_TREE.
4506
4507 2019-06-27 Martin Liska <mliska@suse.cz>
4508
4509 * symbol-summary.h (traverse): Pass
4510 argument a to the call of callback.
4511 (gt_ggc_mx): Mark arguments as unused.
4512 (gt_pch_nx): Likewise.
4513
4514 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
4515
4516 PR target/62147
4517 * gcc/loop-iv.c (find_simple_exit): Call finite_loop_p to update
4518 finiteness.
4519
4520 2019-06-26 Jeff Law <law@redhat.com>
4521
4522 PR tree-optimization/90883
4523 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
4524 (delete_dead_or_redundant_assignment): Likewise.
4525
4526 PR tree-optimization/90883
4527 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
4528 * tree-ssa-dse.c: Update various comments to distinguish between
4529 dead and redundant stores.
4530 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
4531 (dse_optimize_redundant_stores): New function.
4532 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
4533 Distinguish between dead and redundant calls in dump output. All
4534 callers updated.
4535 (delete_dead_or_redundant_assignment): Similarly for assignments.
4536 (dse_optimize_stmt): Handle _CHK variants. For statements which
4537 store 0 into multiple memory locations, try to prove a subsequent
4538 store is redundant.
4539
4540 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
4541
4542 PR target/89021
4543 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
4544 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
4545
4546 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
4547
4548 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
4549 (branch_islands): New extern.
4550 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
4551 * config/rs6000/rs6000.c: .. here.
4552
4553 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
4554
4555 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
4556 (powerpc*-*-*) ... to here.
4557
4558 2019-06-26 Jeff Law <law@redhat.com>
4559
4560 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
4561 memcpy, memmove and memset builtins.
4562 (maybe_trim_memstar_call): Likewise.
4563
4564 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
4565
4566 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
4567
4568 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
4569
4570 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
4571
4572 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
4573
4574 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
4575 declaration.
4576 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
4577 "static".
4578 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
4579 declaration.
4580
4581 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
4582
4583 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
4584
4585 2019-06-26 Richard Biener <rguenther@suse.de>
4586
4587 PR ipa/90982
4588 * tree-inline.c (remap_ssa_name): Copy SSA range info.
4589
4590 2019-06-26 Richard Biener <rguenther@suse.de>
4591
4592 * lto-streamer.h (lto_bitmap_alloc): Remove.
4593 (lto_bitmap_free): Likewise.
4594 * lto-streamer.c (lto_bitmap_alloc): Remove.
4595 (lto_bitmap_free): Likewise.
4596 (lto_obstack): Likewise.
4597 (lto_obstack_initialized): Likewise.
4598 * lto-streamer-out.c (lto_output): Use own obstack for local
4599 bitmap, free it consistently.
4600
4601 2019-06-26 Jakub Jelinek <jakub@redhat.com>
4602
4603 PR target/90991
4604 * config/i386/sse.md
4605 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
4606 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
4607 insns if operands[2] is misaligned_operand.
4608
4609 2019-06-26 Li Jia He <helijia@linux.ibm.com>
4610
4611 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
4612 TARGET_POWERPC64.
4613 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
4614 to GPR.
4615
4616 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
4617
4618 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
4619
4620 2019-06-26 Martin Liska <mliska@suse.cz>
4621
4622 PR tree-optimization/90973
4623 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
4624 epilogue_cost_vec instead of prologue_cost_vec for
4625 a epilogue cost.
4626
4627 2019-06-26 Martin Liska <mliska@suse.cz>
4628
4629 * bb-reorder.c (connect_better_edge_p): Add missing else
4630 statement in the middle of if-else statements.
4631
4632 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
4633 H.J. Lu <hongjiu.lu@intel.com>
4634 Olga Makhotina <olga.makhotina@intel.com>
4635
4636 * common/config/i386/i386-common.c
4637 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
4638 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
4639 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
4640 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
4641 (ix86_handle_option): Handle -mavx512vp2intersect.
4642 * config/i386/avx512vp2intersectintrin.h: New.
4643 * config/i386/avx512vp2intersectvlintrin.h: New.
4644 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
4645 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
4646 AVX512VP2INTERSECT.
4647 * config/i386/i386-builtin-types.def: Add new types.
4648 * config/i386/i386-builtin.def: Add new builtins.
4649 * config/i386/i386-builtins.c: (enum processor_features): Add
4650 F_AVX512VP2INTERSECT.
4651 (static const _isa_names_table isa_names_table): Ditto.
4652 * config/i386/i386-c.c (ix86_target_macros_internal): Define
4653 __AVX512VP2INTERSECT__.
4654 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
4655 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
4656 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
4657 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
4658 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
4659 * config/i386/i386-options.c (ix86_target_string): Add
4660 -mavx512vp2intersect.
4661 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
4662 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
4663 P2HImode and P2QImode.
4664 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
4665 number for P2QImode and P2HImode.
4666 (ix86_regmode_natural_size): New function.
4667 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
4668 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
4669 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
4670 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
4671 * config/i386/i386.opt: Add -mavx512vp2intersect.
4672 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
4673 avx512vp2intersectvlintrin.h.
4674 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
4675 (define_mode_iterator VI48_AVX512VP2VL): New.
4676 (avx512vp2intersect_2intersect<mode>,
4677 avx512vp2intersect_2intersectv16si): New define_insn patterns.
4678 * config.gcc: Add avx512vp2intersectvlintrin.h and
4679 avx512vp2intersectintrin.h to extra_headers.
4680 * doc/invoke.texi: Document -mavx512vp2intersect.
4681
4682 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
4683
4684 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
4685
4686 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
4687
4688 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
4689 savres_routine_syms, savres_routine_name, morestack_ref,
4690 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
4691 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
4692 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
4693 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
4694 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
4695 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
4696 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
4697 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
4698 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
4699 get_stack_clash_protection_probe_interval,
4700 get_stack_clash_protection_guard_size,
4701 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
4702 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
4703 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
4704 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
4705 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
4706 gen_frame_mem_offset, rs6000_savres_routine_name,
4707 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
4708 ptr_regno_for_savres, rs6000_emit_savres_rtx,
4709 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
4710 rs6000_global_entry_point_prologue_needed_p,
4711 rs6000_get_separate_components, rs6000_components_for_bb,
4712 rs6000_disqualify_components, rs6000_emit_prologue_components,
4713 rs6000_emit_epilogue_components, rs6000_set_handled_components,
4714 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
4715 rs6000_output_savres_externs, rs6000_output_function_prologue,
4716 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
4717 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
4718 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
4719 rs6000_output_function_epilogue, gen_add3_const,
4720 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
4721 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
4722 to rs6000-logue.c.
4723 (machine_function): Moved to rs6000.h.
4724 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
4725 rs6000-internal.h.
4726 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
4727 savres_routine_syms, savres_routine_name, morestack_ref,
4728 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
4729 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
4730 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
4731 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
4732 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
4733 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
4734 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
4735 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
4736 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
4737 get_stack_clash_protection_probe_interval,
4738 get_stack_clash_protection_guard_size,
4739 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
4740 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
4741 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
4742 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
4743 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
4744 gen_frame_mem_offset, rs6000_savres_routine_name,
4745 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
4746 ptr_regno_for_savres, rs6000_emit_savres_rtx,
4747 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
4748 rs6000_global_entry_point_prologue_needed_p,
4749 rs6000_get_separate_components, rs6000_components_for_bb,
4750 rs6000_disqualify_components, rs6000_emit_prologue_components,
4751 rs6000_emit_epilogue_components, rs6000_set_handled_components,
4752 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
4753 rs6000_output_savres_externs, rs6000_output_function_prologue,
4754 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
4755 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
4756 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
4757 rs6000_output_function_epilogue, gen_add3_const,
4758 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
4759 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
4760 to here from rs6000.c.
4761 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
4762 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
4763 quad_address_offset_p) Moved to here from rs6000.c.
4764 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
4765 * config/config.gcc: Add new source file rs6000-logue.c to garbage
4766 collector.
4767
4768 2019-06-25 Martin Liska <mliska@suse.cz>
4769
4770 * hash-table.c (hashtab_chk_error): Move here from ...
4771 * hash-table.h (hashtab_chk_error): ... here.
4772
4773 2019-06-25 Martin Liska <mliska@suse.cz>
4774
4775 PR tree-optimization/90978
4776 * df-scan.c (df_update_entry_block_defs): Remove dead else
4777 branch.
4778 (df_update_exit_block_uses): Likewise.
4779
4780 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
4781 Andrew Stubbs <ams@codesourcery.com>
4782
4783 * config.gcc (thread_file): Set to gcn for AMD GCN.
4784 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
4785 (TARGET_EMUTLS_VAR_INIT): New hook.
4786
4787 2019-06-25 Martin Jambor <mjambor@suse.cz>
4788
4789 PR ipa/90939
4790 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
4791
4792 2019-06-25 Richard Biener <rguenther@suse.de>
4793
4794 PR tree-optimization/90930
4795 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
4796 into parallel form in the last pass instance.
4797
4798 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
4799
4800 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
4801 (arc_legitimize_pic_address): Simplify and cleanup the function.
4802 (SYMBOLIC_CONST): Remove.
4803 (prepare_pic_move): Likewise.
4804 (prepare_move_operands): Handle complex mov cases here.
4805 (arc_legitimize_address_0): Remove call to
4806 arc_legitimize_pic_address.
4807 (arc_legitimize_address): Remove call to
4808 arc_legitimize_tls_address.
4809 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
4810 (movhi_insn): Likewise.
4811
4812 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4813
4814 * gcc/c-family/c-common.c (c_common_nodes_and_builtins): Define
4815 alternate "__intN__" name for "__intN" types.
4816 * gcc/c/c-parser.c (c_parse_init): Create keyword for "__intN__" type.
4817 * gcc/cp/lex.c (init_reswords): Likewise.
4818 * gcc/config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
4819 PTRDIFF_TYPE.
4820 * gcc/cp/cp-tree.h (cp_decl_specifier_seq): New bitfield "int_n_alt".
4821 * gcc/c/c-decl.c (declspecs_add_type): Don't pedwarn about "__intN" ISO
4822 C incompatibility if alternate "__intN__" form is used.
4823 * gcc/cp/decl.c (grokdeclarator): Likewise.
4824 * gcc/cp/parser.c (cp_parser_simple_type_specifier): Set
4825 decl_specs->int_n_alt if "__intN__" form is used.
4826 * gcc/gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
4827 format of "__intN" types for UINTMAX_TYPE.
4828 * gcc/brig/brig-lang.c (brig_build_c_type_nodes): Accept "__intN__"
4829 format of "__intN" types for SIZE_TYPE.
4830 * gcc/lto/lto-lang.c (lto_build_c_type_nodes): Likewise.
4831 * gcc/stor-layout.c (initialize_sizetypes): Accept "__intN__"
4832 format of "__intN" types for SIZETYPE.
4833 * gcc/tree.c (build_common_tree_nodes): Accept "__intN__"
4834 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
4835 * gcc/doc/invoke.texi: Document that __intN__ disables pedantic
4836 warnings.
4837
4838 2019-06-25 Jan Hubicka <jh@suse.cz>
4839
4840 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
4841 base2_alias_set is non-zero before doing TBAA based disambiguation.
4842
4843 2019-06-25 Martin Liska <mliska@suse.cz>
4844
4845 PR tree-optimization/90973
4846 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
4847 of prologue and epilogue.
4848
4849 2019-06-24 Jan Hubicka <jh@suse.cz>
4850
4851 * ipa-utils.h (type_with_linkage_p): Verify that type is
4852 CXX_ODR_P.
4853 (odr_type_p): Remove extra return.
4854 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
4855 hash STRING_FLAG only for arrays and integers.
4856 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
4857 Update analogously.
4858 * tree-streamer-out.c (pack_ts_type_common_value_fields):
4859 Likewise.
4860 * print-tree.c (print_node): Print cxx-odr-p
4861 and string-flag.
4862 * tree.c (need_assembler_name_p): Also check that type
4863 is CXX_ODR_TYPE_P
4864 (verify_type_variant): Update verification of SRING_FLAG;
4865 also check CXX_ODR_P.
4866 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
4867 (TYPE_STRING_FLAG): Use it.
4868 (TYPE_CXX_ODR_P): New macro.
4869 * dwarf2out.c (gen_array_type_die): First check that type
4870 is an array and then test string flag.
4871
4872 2019-06-24 Richard Biener <rguenther@suse.de>
4873
4874 PR tree-optimization/90972
4875 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
4876 in common code, dealing with STRING_CST properly.
4877
4878 2019-06-24 Richard Biener <rguenther@suse.de>
4879
4880 PR tree-optimization/90930
4881 PR tree-optimization/90316
4882 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
4883 decrement of limit.
4884
4885 2019-06-24 Martin Sebor <msebor@redhat.com>
4886
4887 * tree-pretty-print.h: Remove unnecessary punctuation characters
4888 from a diagnostic.
4889 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
4890
4891 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
4892
4893 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
4894 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
4895 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
4896
4897 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
4898
4899 * config/rs6000/darwin.h: Handle GCC target pragma.
4900
4901 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
4902
4903 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
4904
4905 2019-06-22 Jeff Law <law@redhat.com>
4906
4907 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
4908
4909 2019-06-22 Jan Hubicka <jh@suse.cz>
4910
4911 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
4912 give up on bitfields; continue searching for different refs
4913 appearing later.
4914
4915 2019-06-21 Jakub Jelinek <jakub@redhat.com>
4916
4917 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
4918 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
4919 containing the offset as possible simd lane access. Look through
4920 widening conversion. Move the
4921 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
4922
4923 2019-06-21 Richard Biener <rguenther@suse.de>
4924
4925 PR tree-optimization/90930
4926 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
4927 flag on new stmts to avoid re-processing them.
4928
4929 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
4930
4931 PR c++/90875 - added -Wswitch-outside-range option
4932 * doc/invoke.texi (Wswitch-outside-range): Document.
4933
4934 2019-06-21 Jeff Law <law@redhat.com>
4935
4936 PR tree-optimization/90949
4937 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
4938 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
4939
4940 2019-06-21 Richard Biener <rguenther@suse.de>
4941
4942 PR debug/90914
4943 * dwarf2out.c (prune_unused_types_walk): Always consider
4944 function-local extern declarations as used.
4945
4946 2019-06-21 Richard Biener <rguenther@suse.de>
4947
4948 PR tree-optimization/90913
4949 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
4950 the scalar variant of if-conversion versioning.
4951
4952 2019-06-21 Jakub Jelinek <jakub@redhat.com>
4953
4954 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
4955 create another "omp scan inscan exclusive" array if
4956 !ctx->scan_inclusive.
4957 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
4958 (lower_omp_scan): Likewise.
4959 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
4960 2-bit bitfield for simd_lane_access_p member.
4961 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
4962 aux == (void *)-4 as simd lane access.
4963 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
4964 comment with permutations to show the canonical permutation order.
4965 (vectorizable_scan_store): Handle exclusive scan.
4966 (vectorizable_store): Call vectorizable_scan_store even for
4967 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
4968
4969 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
4970 "omp simd array" arrays with one byte elements.
4971
4972 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
4973
4974 * config/alpha/alpha.md (@unaligned_store<mode>):
4975 Rename from unaligned_store<mode>.
4976 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
4977 * config/alpha/sync.md (@load_locked_<mode>): Rename
4978 from load_locked_<mode>.
4979 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
4980 (@atomic_compare_and_swap<mode>_1): Rename
4981 from atomic_compare_and_swap<mode>_1.
4982 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
4983 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
4984 Use gen_reload_in_aligned and gen_unaligned_store.
4985 (emit_load_locked): Remove.
4986 (emit_store_conditional): Ditto.
4987 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
4988 (alpha_split_compare_and_swap): Ditto.
4989 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
4990 (alpha_split_compare_and_swap_12): Use gen_load_locked
4991 and gen_store_conditional.
4992 (alpha_split_atomic_exchange): Ditto.
4993 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
4994 (alpha_split_atomic_exchange_12): Use gen_load_locked
4995 and gen_store_conditional.
4996
4997 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
4998
4999 * config/aarch64/aarch64-errata.h: New file.
5000 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
5001 (CA53_ERR_843419_SPEC): Delete.
5002 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
5003 * config/aarch64/aarch64-linux.h: Likewise.
5004 * config/aarch64/aarch64-netbsd.h: Likewise.
5005 * config/aarch64/aarch64-freebsd.h: Likewise.
5006
5007 2019-06-20 Marek Polacek <polacek@redhat.com>
5008
5009 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
5010
5011 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
5012
5013 * config/rs6000/rs6000.md (isa attribute): Add support for
5014 for a future processor.
5015
5016 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
5017
5018 PR target/54855
5019 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
5020 standard scalar operation pattern for V2DF.
5021 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
5022 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
5023 (*ieee_<ieee_maxmin><mode>3): Likewise.
5024 (vec_setv2df_0): Likewise.
5025
5026 2019-06-20 Jan Hubicka <jh@suse.cz>
5027
5028 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
5029 parameter; it has no use in gimple memory model.
5030 (indirect_ref_may_alias_decl_p): Update.
5031
5032 2019-06-20 Martin Liska <mliska@suse.cz>
5033
5034 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
5035 to 10.
5036
5037 2019-06-20 Jakub Jelinek <jakub@redhat.com>
5038
5039 * tree-vect-stmts.c (enum scan_store_kind): New type.
5040 (scan_store_can_perm_p): Change last argument from int * to
5041 vec<enum scan_store_kind> *, record precisely which permutations
5042 need whole vector left shift or that plus VEC_COND_EXPR.
5043 (vectorizable_scan_store): Adjust caller, use whole vector left shift
5044 and additional VEC_COND_EXPR only for those iterations that need it.
5045
5046 2019-06-20 Alexandre Oliva <oliva@adacore.com>
5047
5048 * config.gcc: Fix ARM --with-fpu checking and error message.
5049
5050 2019-06-19 Marek Polacek <polacek@redhat.com>
5051
5052 PR c++/60364 - noreturn after first decl not diagnosed.
5053 * attribs.c (get_attribute_namespace): No longer static.
5054 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
5055 attributes.
5056 (attr_noreturn_exclusions): Make it extern.
5057 * attribs.h (get_attribute_namespace): Declare.
5058 * tree-inline.c (function_attribute_inlinable_p): Use
5059 get_attribute_name.
5060
5061 2019-06-19 Martin Sebor <msebor@redhat.com>
5062
5063 PR tree-optimization/90626
5064 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
5065
5066 PR tree-optimization/90626
5067 * tree-ssa-strlen.c (strxcmp_unequal): New function.
5068 (handle_builtin_string_cmp): Call it.
5069
5070 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
5071
5072 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
5073 and DARWIN_NOPIE_SPEC.
5074 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
5075 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
5076 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
5077 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
5078 (DARWIN_EXPORT_DYNAMIC): Delete.
5079 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
5080 and pie options processing to darwin.h.
5081 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
5082
5083 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
5084
5085 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
5086 in computing the number of options to be moved.
5087
5088 2019-06-19 Maya Rashish <coypu@sdf.org>
5089
5090 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
5091 (CLEAR_INSN_CACHE) Use it.
5092
5093 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
5094
5095 * config/i386/i386.md (cmpstrnsi): Remove dead code.
5096
5097 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
5098
5099 PR middle-end/84521
5100 * builtins.c (expand_builtin_setjmp_setup): Save
5101 hard_frame_pointer_rtx.
5102 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
5103 restore fp.
5104 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
5105 non-local goto.
5106 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
5107 elimination code.
5108 (remove_reg_equal_offset_note): Remove unused function.
5109 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
5110 code.
5111 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
5112 (arc_builtin_setjmp_frame_value): Remove function.
5113 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
5114 (avr_builtin_setjmp_frame_value): Remove function.
5115 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
5116 (ix86_builtin_setjmp_frame_value): Remove function.
5117 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
5118 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
5119 (sparc_builtin_setjmp_frame_value): Remove function.
5120 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
5121 (vax_builtin_setjmp_frame_value): Remove function.
5122 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
5123 pointer if has_nonlocal_label.
5124
5125 2019-06-19 Jakub Jelinek <jakub@redhat.com>
5126
5127 * doc/md.texi: Document vec_shl_<mode> pattern.
5128 * optabs.def (vec_shl_optab): New optab.
5129 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
5130 argument, if == vec_shl_optab, check for left whole vector shift
5131 pattern rather than right shift.
5132 (expand_vec_perm_const): Add vec_shl_optab support.
5133 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
5134 in the comment.
5135 * tree-vect-generic.c (lower_vec_perm): Support permutations which
5136 can be handled by vec_shl_optab.
5137 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
5138 (check_scan_store): Use it.
5139 (vectorizable_scan_store): If target can't do normal permutations,
5140 try to use whole vector left shifts and if needed a VEC_COND_EXPR
5141 after it.
5142 * config/i386/sse.md (vec_shl_<mode>): New expander.
5143
5144 * omp-low.c (lower_rec_input_clauses): Handle references properly
5145 in inscan clauses.
5146 (lower_omp_scan): Likewise.
5147
5148 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5149
5150 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
5151 mem_mode is BLKmode.
5152
5153 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
5154
5155 PR target/90922
5156 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
5157 pointer adjustment for the case of no callee-saved registers and
5158 stack frame bigger than 128 bytes.
5159
5160 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
5161
5162 PR middle-end/90862
5163 * omp-low.c (check_omp_nesting_restrictions): Handle
5164 GF_OMP_TARGET_KIND_OACC_DECLARE.
5165
5166 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
5167
5168 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
5169 (@add<mode>3_carry): Rename from add<mode>3_carry.
5170 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
5171 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
5172 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
5173 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
5174 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
5175 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
5176 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
5177 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
5178 (cmpstrnsi): Use gen_cmp_1.
5179 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
5180 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
5181 (@umonitor_<mode>): Rename from umonitor_<mode>.
5182 * config/i386/i386-expand.c (ix86_expand_copysign):
5183 Use gen_copysign3_const and gen_copysign3_var.
5184 (ix86_expand_xorsign): Use gen_xorsign3_1.
5185 (ix86_expand_branch): Use gen_sub3_carry_ccc,
5186 gen_sub3_carry_ccgz and gen_cmp1.
5187 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
5188 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
5189 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
5190 (ix86_split_lshr): Ditto.
5191 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
5192
5193 2019-06-18 Jason Merrill <jason@redhat.com>
5194
5195 * tree.c (build_constructor): Add MEM_STAT_DECL.
5196
5197 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
5198
5199 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
5200 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
5201 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
5202 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
5203 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
5204 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
5205 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
5206 Use CC_NZC instead of CC.
5207 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
5208 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
5209 (aarch64_print_operand): Handle E_CC_NZCmode.
5210 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
5211 of gen_set_clobber_cc.
5212
5213 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
5214
5215 * config/aarch64/aarch64-sve.md: Tabify file.
5216
5217 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
5218
5219 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
5220 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
5221 * config/aarch64/aarch64-sve.md: Use it.
5222
5223 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
5224
5225 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
5226 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
5227 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
5228 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
5229 (aarch64_expand_sve_vec_cmp_int): Use it.
5230 (aarch64_expand_sve_vec_cmp_float): Likewise.
5231 * config/aarch64/aarch64-sve.md: Likewise throughout.
5232
5233 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
5234 Kugan Vivekanandarajah <kuganv@linaro.org>
5235
5236 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
5237 (*cond_<optab><mode>_z): Fold into...
5238 (*cond_<optab><mode>_any): ...here. Also handle cases in which
5239 operand 4 can be tied to operand 0 (either inherently or via RA).
5240
5241 2019-06-18 Richard Biener <rguenther@suse.de>
5242
5243 PR debug/90900
5244 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
5245 as if optimized away.
5246
5247 2019-06-18 Tom de Vries <tdevries@suse.de>
5248
5249 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
5250 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
5251 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
5252 Rename to ...
5253 (define_insn "@set_softstack_<mode>"): ... this.
5254 (define_insn "omp_simt_enter_<mode>"): Rename to ...
5255 (define_insn "@omp_simt_enter_<mode>"): ... this.
5256 (define_insn "omp_simt_exit_<mode>"): Rename to ...
5257 (define_insn "@omp_simt_exit_<mode>"): ... this.
5258
5259 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
5260
5261 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
5262 vf parameter. Restore the previous iv step of nscalars_step,
5263 but give it iv_type rather than compare_type. Tweak code order
5264 to match the comments.
5265 (vect_set_loop_condition_masked): Update accordingly.
5266 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
5267 for iv_precision. Tweak comment formatting.
5268
5269 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
5270
5271 * config/darwin.c: Strip trailing whitespace.
5272
5273 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
5274
5275 * config/darwin.c (darwin_emit_unwind_label): New default to false.
5276 (darwin_override_options): Set darwin_emit_unwind_label as needed.
5277
5278 2019-06-18 Martin Jambor <mjambor@suse.cz>
5279
5280 PR ipa/90889
5281 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
5282 caller does not have flag_ipa_cp set.
5283
5284 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
5285
5286 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
5287 from "*fold_left_plus_<mode>", updated operands order.
5288 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
5289 * internal-fn.c (mask_fold_left_direct): New define.
5290 (expand_mask_fold_left_optab_fn): Likewise.
5291 (direct_mask_fold_left_optab_supported_p): Likewise.
5292 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
5293 * optabs.def (mask_fold_left_plus_optab): New optab.
5294 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
5295 masked internal_fn for a reduction ifn.
5296 (vectorize_fold_left_reduction): Add support for masking reductions.
5297
5298 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
5299
5300 PR middle-end/80791
5301 * target.def (predict_doloop_p): New hook.
5302 * targhooks.h (default_predict_doloop_p): New declaration.
5303 * targhooks.c (default_predict_doloop_p): New function.
5304 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
5305 * doc/tm.texi: Regenerate.
5306 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
5307 (TARGET_PREDICT_DOLOOP_P): New macro.
5308 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
5309
5310 2019-06-17 Jakub Jelinek <jakub@redhat.com>
5311
5312 * omp-low.c (struct omp_context): Add scan_inclusive field.
5313 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
5314 if inclusive scan.
5315 (struct omplow_simd_context): Add lastlane member.
5316 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
5317 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
5318 1 or 2 argument.
5319 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
5320 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
5321 (lower_omp_scan): New function.
5322 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
5323 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
5324 check 3rd argument if present rather than 2nd.
5325 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
5326 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
5327 2-bit bitfield.
5328 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
5329 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
5330 than 2nd.
5331 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
5332 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
5333 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
5334 init.
5335 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
5336 IFN_GOMP_SIMD_LANE argument.
5337 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
5338 encoded ->aux value.
5339 * tree-vect-stmts.c: Include attribs.h.
5340 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
5341 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
5342 functions.
5343 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
5344 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
5345
5346 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
5347
5348 PR target/62055
5349 * config/i386/i386.md (*nabstf2_1): New insn pattern.
5350 (*nabs<mode>2_1): Ditto.
5351 (nabs sse-reg splitter): New splitter.
5352 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
5353
5354 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
5355
5356 PR bootstrap/90873.
5357 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
5358 TMR index check.
5359
5360 2019-06-17 Tom de Vries <tdevries@suse.de>
5361
5362 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
5363 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
5364 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
5365 ...
5366 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
5367 match_operand 0.
5368 (define_insn "omp_simt_enter_insn"): Rename to ...
5369 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
5370 match_operand 0, 1 and 2, as well as the unspec_volatile result.
5371 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
5372 gen_omp_simt_enter_si.
5373 (define_expand "omp_simt_exit"): New.
5374 (define_insn "omp_simt_exit"): Rename to ...
5375 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
5376 match_operand 0.
5377
5378 2019-06-17 Matthew Green <mrg@eterna.com.au>
5379 Maya Rashish <coypu@sdf.org>
5380
5381 * config.gcc (aarch64*-*-netbsd*): New target.
5382 * config/aarch64/aarch64-netbsd.h: New file.
5383 * config/aarch64/t-aarch64-netbsd: Likewise.
5384
5385 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
5386
5387 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
5388 the access path from base to first VIEW_CONVERT_EXPR or
5389 BIT_FIELD_REF.
5390
5391 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
5392
5393 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
5394 access path on BIT_FIELD_REFs.
5395
5396 2019-06-17 Martin Liska <mliska@suse.cz>
5397
5398 PR ipa/90874
5399 * ipa-utils.h (odr_type_p): Remove dead code.
5400
5401 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5402
5403 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
5404 alternative Solaris 11.4 format.
5405 * configure: Regenerate.
5406
5407 2019-06-17 Tom de Vries <tdevries@suse.de>
5408
5409 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
5410 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
5411 match_operand 0.
5412 (define_insn "call_value_insn"): Rename to ...
5413 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
5414 match_operand 0.
5415 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
5416 DI.
5417
5418 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
5419
5420 PR middle-end/64242
5421 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
5422 frame clobbers and schedule block.
5423 (builtin_longjmp): Likewise.
5424
5425 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5426
5427 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
5428 describe how to perform MSPABI compliant 64-bit shift.
5429 * config/msp430/msp430.md (ashldi3): New define_expand.
5430 (ashrdi3): New define_expand.
5431 (lshrdi3): New define_expand.
5432
5433 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5434
5435 * doc/sourcebuild.texi: Document new effective target keyword
5436 longlong64.
5437
5438 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
5439
5440 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
5441 indirect_refs_may_alias_p): Revert accidental commits.
5442
5443 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
5444 at the end of structures.
5445
5446 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
5447
5448 * config/darwin.c (machopic_indirect_call_target): Use renamed
5449 darwin_picsymbol_stubs to decide on output.
5450 (darwin_override_options): Handle darwin_picsymbol_stubs.
5451 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
5452 (LD64_VERSION): Revise default.
5453 * config/darwin.opt: (mpic-symbol-stubs): New option.
5454 (darwin_picsymbol_stubs): New variable.
5455 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
5456 rename to TARGET_MACHO_PICSYM_STUBS.
5457 * config/i386/i386.c (output_pic_addr_const): Likewise.
5458 * config/i386/i386.h Likewise.
5459 * config/rs6000/darwin.h: Likewise.
5460 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
5461 darwin_picsymbol_stubs.
5462
5463 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
5464
5465 * config/darwin.opt (prebind, noprebind, seglinkedit,
5466 noseglinkedit): Add RejectNegative.
5467
5468 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
5469
5470 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
5471 in my previous patch.
5472
5473 2019-06-16 Tom de Vries <tdevries@suse.de>
5474
5475 PR tree-optimization/89376
5476 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
5477
5478 2019-06-15 Maya Rashish <coypu@sdf.org>
5479
5480 * doc/invoke.texi (Spec Files): Update location of the
5481 Fortran spec file.
5482
5483 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
5484
5485 * doc/extend.texi (Common Function Attributes): Clarify
5486 no_sanitize. Fix grammar.
5487
5488 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
5489
5490 * tree-ssa-alias.c (alias_stats): Add
5491 nonoverlapping_component_refs_p_may_alias,
5492 nonoverlapping_component_refs_p_no_alias,
5493 nonoverlapping_component_refs_of_decl_p_may_alias,
5494 nonoverlapping_component_refs_of_decl_p_no_alias.
5495 (dump_alias_stats): Dump them.
5496 (nonoverlapping_component_refs_of_decl_p): Add stats.
5497 (nonoverlapping_component_refs_p): Add stats; do not stop on first
5498 ARRAY_REF.
5499
5500 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
5501
5502 * config/i386/i386.md (and<mode>3): Generate zero-extends for
5503 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
5504 only.
5505 (*anddi3_doubleword): Split before reload. Merge with
5506 anddi->zext pre-reload splitter.
5507 (*andndi3_doubleword): Split before reload.
5508 (*<code>di3_doubleword): Ditto.
5509 (*one_cmpldi2_doubleword): Ditto.
5510
5511 2019-06-15 Jakub Jelinek <jakub@redhat.com>
5512
5513 PR middle-end/90779
5514 * gimplify.c: Include omp-offload.h and context.h.
5515 (gimplify_bind_expr): Add "omp declare target" attributes
5516 to static block scope variables inside of target region or target
5517 functions.
5518
5519 2019-06-15 Tom de Vries <tdevries@suse.de>
5520
5521 PR tree-optimization/90009
5522 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
5523 Return NULL if bb contains IFN_UNIQUE.
5524
5525 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
5526
5527 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
5528 (un): New define_mode_attr.
5529 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
5530 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
5531 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
5532 merge into ...
5533 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
5534
5535 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
5536
5537 * config/darwin.opt: Add RejectNegative where needed, reorder
5538 and add minimal functional descriptions.
5539
5540 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
5541
5542 PR rtl-optimization/90765
5543 * calls.c (update_stack_alignment_for_call): New function.
5544 (expand_call): Call update_stack_alignment_for_call when
5545 outgoing parameter is passed in the stack.
5546 (emit_library_call_value_1): Likewise.
5547 * function.c (locate_and_pad_parm): Don't update
5548 stack_alignment_needed and preferred_stack_boundary.
5549
5550 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
5551
5552 PR target/90877
5553 * config/i386/i386-features.c
5554 (dimode_scalar_chain::compute_convert_gain): Replace
5555 mmxsse_to_integer with sse_to_integer.
5556 * config/i386/i386.c (ix86_register_move_cost): Verify that
5557 moves between MMX and non-MMX units require secondary memory.
5558 Correct costs of moves between SSE and integer units.
5559 * config/i386/i386.h (processor_costs): Rename cost of moving
5560 SSE register to integer to sse_to_integer. Rename cost of
5561
5562 2019-06-14 Matt Thomas <matt@3am-software.com>
5563 Matthew Green <mrg@eterna.com.au>
5564 Nick Hudson <skrll@netbsd.org>
5565 Maya Rashish <coypu@sdf.org>
5566 Richard Earnshaw <rearnsha@arm.com>
5567
5568 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
5569 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
5570 * config/arm/netbsd-eabi.h: New file.
5571 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
5572 redefining.
5573 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
5574 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
5575 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
5576 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
5577
5578 2019-06-14 Richard Biener <rguenther@suse.de>
5579
5580 * tree-loop-distribution.c (classify_partition): Return
5581 whether a reduction appeared in all partitions and do not
5582 stop builtin detection because of this.
5583 (distribute_loop): Sort a non-builtin partition last if
5584 there's a reduction in all partitions and make sure the
5585 partition prevailing as last is not a builtin.
5586
5587 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
5588
5589 PR ipa/90401
5590 * ipa-prop.c (add_to_agg_contents_list): New function.
5591 (clobber_by_agg_contents_list_p): Likewise.
5592 (extract_mem_content): Likewise.
5593 (get_place_in_agg_contents_list): Delete.
5594 (determine_known_aggregate_parts): Renamed from
5595 determine_locally_known_aggregate_parts. New parameter
5596 aa_walk_budget_p.
5597
5598 2019-06-13 Martin Sebor <msebor@redhat.com>
5599
5600 PR tree-optimization/90662
5601 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
5602 to the same type.
5603
5604 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
5605
5606 PR bootstrap/90873
5607 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
5608 dbase is not TARGET_MEM_REF.
5609
5610 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
5611
5612 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
5613 Update all uses.
5614 (and<mode>3): Use gen_extend_insn instead of indirect functions.
5615 Do not generate DImode extends for 32bit targets.
5616 (and->zext post-reload splitter): Use gen_extend_insn
5617 instead of indirect functions.
5618 (anddi->zext pre-reload splitter): New.
5619 (*zext<mode>_doubleword_and): Remove.
5620 (*zext<mode>_doubleword): Ditto.
5621 (*zextsi_doubleword): Dittto.
5622
5623 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
5624
5625 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
5626 Use gen_sub3_insn instead of indirect function.
5627 (ix86_expand_ashl_const): Use gen_add2_insn instead of
5628 indirect function.
5629 (ix86_adjust_counter): Ditto.
5630
5631 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
5632 Lijia He <helijia@linux.ibm.com>
5633
5634 PR tree-optimization/77820
5635 * tree-ssa-threadedge.c
5636 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
5637 function.
5638 (thread_across_edge): Add call to
5639 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
5640
5641 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
5642
5643 * config/darwin-driver.c (validate_macosx_version_min): New.
5644 (darwin_default_min_version): Cleanup and validate supplied version.
5645 (darwin_driver_init): Likewise and push cleaned version into opts.
5646
5647 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
5648
5649 PR tree-optimization/90869
5650 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
5651 converts in MEM_REF referencing decl rather than view converts
5652 from decl type to MEM_REF type.
5653
5654 2019-06-13 Richard Biener <rguenther@suse.de>
5655
5656 PR tree-optimization/90856
5657 * tree-sra.c (build_ref_for_model): Only use
5658 build_reconstructed_reference when address-spaces are the same.
5659
5660 2019-06-13 Jakub Jelinek <jakub@redhat.com>
5661
5662 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
5663 wrap ei variable name in the declaration in ()s.
5664 (nvptx_single): Actually use mode_label variable. Formatting fix.
5665
5666 2019-06-13 Richard Biener <rguenther@suse.de>
5667
5668 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
5669 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
5670 also return the condition stmt.
5671 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
5672 loop we can version and version that, reusing the loop version
5673 created by if-conversion instead of versioning again.
5674
5675 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
5676
5677 * gimple-loop-versioning.cc (prune_loop_conditions): Use
5678 may_contain_p.
5679 * tree-vrp (value_range_base::may_contain_p): Call into
5680 value_inside_range.
5681 (value_inside_range): Make private inside value_range_base class.
5682 Take min/max from *this.
5683 (range_includes_p): Remove.
5684 * tree-vrp.h (value_range_base): Add value_inside_range.
5685 (range_includes_p): Remove.
5686 (range_includes_zero_p): Call may_contain_p.
5687 * vr-values.c (compare_range_with_value): Same.
5688
5689 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
5690
5691 * doc/extend.texi (ARC Function Attributes): Update info.
5692
5693 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
5694
5695 PR tree-optimization/89713
5696 * doc/invoke.texi (-ffinite-loops): Document new option.
5697 * common.opt (-ffinite-loops): New option.
5698 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
5699 IFN_GOACC_LOOP calls as necessary.
5700 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
5701 is finite.
5702 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
5703 IFN_GOACC_LOOP call is not used.
5704 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
5705
5706 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5707
5708 PR target/88838
5709 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
5710 compare_type is not with Pmode size, we will create an IV with
5711 Pmode size with truncated use (i.e. converted to the correct type).
5712 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
5713 (vect_iv_limit_for_full_masking): New. Factored out of
5714 vect_set_loop_condition_masked.
5715 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
5716 (vect_iv_limit_for_full_masking): Declare.
5717
5718 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5719
5720 PR target/88834
5721 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
5722 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
5723 (get_alias_ptr_type_for_ptr_address): Likewise.
5724 (add_iv_candidate_for_use): Add scaled index candidate if useful.
5725 * tree-ssa-address.c (preferred_mem_scale_factor): New.
5726 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
5727 allow_reg_index_p.
5728
5729 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5730
5731 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
5732
5733 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
5734
5735 * common/config/pru/pru-common.c: New file.
5736 * config.gcc: Add PRU target.
5737 * config/pru/alu-zext.md: New file.
5738 * config/pru/constraints.md: New file.
5739 * config/pru/predicates.md: New file.
5740 * config/pru/pru-opts.h: New file.
5741 * config/pru/pru-passes.c: New file.
5742 * config/pru/pru-pragma.c: New file.
5743 * config/pru/pru-protos.h: New file.
5744 * config/pru/pru.c: New file.
5745 * config/pru/pru.h: New file.
5746 * config/pru/pru.md: New file.
5747 * config/pru/pru.opt: New file.
5748 * config/pru/t-pru: New file.
5749 * doc/extend.texi: Document PRU pragmas.
5750 * doc/invoke.texi: Document PRU-specific options.
5751 * doc/md.texi: Document PRU asm constraints.
5752
5753 2019-06-12 Martin Sebor <msebor@redhat.com>
5754
5755 PR middle-end/90676
5756 * tree-pretty-print.c (dump_mem_ref): New function. Include
5757 MEM_REF type in output when different size than operand.
5758 (dump_generic_node): Move code to dump_mem_ref and call it.
5759
5760 2019-06-12 Martin Sebor <msebor@redhat.com>
5761
5762 PR tree-optimization/90662
5763 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
5764 to arrays.
5765
5766 2019-06-12 Tom de Vries <tdevries@suse.de>
5767
5768 PR tree-optimization/90009
5769 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
5770
5771 2019-06-12 Martin Liska <mliska@suse.cz>
5772
5773 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
5774 the created map.
5775 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
5776 * mem-stats.h (mem_alloc_description::mem_alloc_description):
5777 Do not sanitize created maps.
5778
5779 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
5780
5781 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
5782 value_range::singleton_p.
5783 * tree-vrp.c (value_range_constant_singleton): Remove.
5784 * tree-vrp.h (value_range_constant_singleton): Remove.
5785 * vr-values.c (vr_values::singleton): Use
5786 value_range::singleton_p.
5787
5788 2019-06-12 Jakub Jelinek <jakub@redhat.com>
5789
5790 PR target/90811
5791 * cfgexpand.c (align_local_variable): Add really_expand argument,
5792 don't SET_DECL_ALIGN if it is false.
5793 (add_stack_var): Add really_expand argument, pass it through to
5794 align_local_variable.
5795 (expand_one_stack_var_1): Pass true as really_expand to
5796 align_local_variable.
5797 (expand_one_ssa_partition): Pass true as really_expand to
5798 add_stack_var.
5799 (expand_one_var): Pass really_expand through to add_stack_var.
5800
5801 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
5802
5803 * config/arm/iterators.md (VABAL): New int iterator.
5804 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
5805 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
5806 UNSPEC_VABAL_U values.
5807
5808 2019-06-12 Martin Liska <mliska@suse.cz>
5809
5810 * value-prof.c (stream_out_histogram_value): Only first value
5811 can't be negative.
5812
5813 2019-06-12 Jakub Jelinek <jakub@redhat.com>
5814
5815 PR c/90760
5816 * symtab.c (symtab_node::set_section): Allow being called on aliases
5817 as long as they aren't analyzed yet.
5818
5819 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
5820
5821 * config/mips/mips.c (mips_final_postscan_insn): Modify call
5822 to `mips_set_text_contents_type' to indicate whether a
5823 non-debug insn follows.
5824
5825 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
5826
5827 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
5828 enabling -mpcrel by default.
5829 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
5830 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
5831 that the test against -mcpu=future is done first. Then test if
5832 -mprefixed-addr is on for -mpcrel.
5833 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
5834
5835 2019-06-11 Jakub Jelinek <jakub@redhat.com>
5836
5837 PR target/90811
5838 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
5839 instead of and.u%d.
5840
5841 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
5842
5843 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
5844
5845 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
5846
5847 PR c++/90449 - add -Winaccessible-base option.
5848 * doc/invoke.texi (Winaccessible-base): Document.
5849
5850 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
5851
5852 PR tree-optimization/62041
5853 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
5854
5855 2019-06-11 Jason Merrill <jason@redhat.com>
5856
5857 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
5858 * tree.c (get_tree_code_name): Likewise.
5859 * print-tree.c (print_node): Only briefly print a node with an
5860 invalid code.
5861
5862 2019-06-11 Jakub Jelinek <jakub@redhat.com>
5863
5864 PR bootstrap/90819
5865 * trans-mem.c (tm_memopt_compute_available): Add assertion
5866 that blocks is not empty. Formatting fix.
5867
5868 2019-06-11 Martin Liska <mliska@suse.cz>
5869
5870 PR c++/87847
5871 * hash-table.h: Extend create_gcc, add one parameter
5872 that is passed into hash_table::hash_table.
5873
5874 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
5875
5876 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
5877 New prototype.
5878 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
5879 Emit clobber also for non-sse operations.
5880 (ix86_split_fp_absneg_operator): New function.
5881 * config/i386/i386.md (SSEMODEF): New mode iterator.
5882 (ssevecmodef): New mode attribute.
5883 (<code>tf2): Use absneg code iterator.
5884 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
5885 Add three-operand AVX alternatives.
5886 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
5887 Use absneg code iterator and X87MODEF mode iterator.
5888 (absneg fp_reg non-sse splitter): Call absneg code iterator
5889 and X87MODEF mode iterator.
5890 (absneg general_reg non-sse splitter): Use absneg code iterator
5891 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
5892 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
5893 code iterator. Add three-operand AVX alternative.
5894 (absneg sse_reg splitter): Use absneg code iterator
5895 and SSEMODEF mode iterator. Handle AVX operands.
5896 (absneg fp_reg splitter): Use absneg code iterator
5897 and MODEF mode iterator.
5898 (absneg general_reg splitter): Merge splitters using MODEF mode
5899 iterator. Use absneg code iterator. Call
5900 ix86_split_fp_absneg_operator.
5901 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
5902 Do not enable for non-sse modes before reload.
5903 (CSGNMODE): Remove.
5904 (CSGNVMODE): Ditto.
5905 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
5906 ssevecmodef mode attribute instaed of CSGNVMODE.
5907 (copysign<mode>3_const): Ditto.
5908 (copysign<mode>3_var): Ditto.
5909 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
5910 Use absneg code iterator. Simplify code using std::swap.
5911 * config/i386/predicates.md (absneg_operator): Remove.
5912
5913 2019-06-10 Martin Sebor <msebor@redhat.com>
5914
5915 * gimple-fold.c (get_range_strlen): Update comment that didn't
5916 make it into r267503 or related commits.
5917
5918 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
5919
5920 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
5921 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
5922
5923 2019-06-10 Jakub Jelinek <jakub@redhat.com>
5924
5925 * tree.def (OMP_SCAN): New tree code.
5926 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
5927 OMP_CLAUSE_EXCLUSIVE.
5928 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
5929 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
5930 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
5931 OMP_CLAUSE_{IN,EX}CLUSIVE.
5932 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
5933 * tree-nested.c (convert_nonlocal_reference_stmt,
5934 convert_local_reference_stmt, convert_gimple_call): Handle
5935 GIMPLE_OMP_SCAN.
5936 * tree-pretty-print.c (dump_omp_clause): Handle
5937 OMP_CLAUSE_{IN,EX}CLUSIVE.
5938 (dump_generic_node): Handle OMP_SCAN.
5939 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
5940 * gimple.h (gomp_scan): New type.
5941 (is_a_helper <gomp_scan *>::test,
5942 is_a_helper <const gomp_scan *>::test): New templates.
5943 (gimple_build_omp_scan): Declare.
5944 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
5945 gimple_omp_scan_set_clauses): New inline functions.
5946 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
5947 * gimple.c (gimple_build_omp_scan): New function.
5948 (gimple_copy): Handle GIMPLE_OMP_SCAN.
5949 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
5950 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
5951 GIMPLE_OMP_TASKGROUP.
5952 (dump_gimple_omp_scan): New function.
5953 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
5954 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
5955 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
5956 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
5957 (is_gimple_stmt): Handle OMP_SCAN.
5958 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
5959 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
5960 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
5961 mentioned in nested #pragma omp scan. Handle
5962 OMP_CLAUSE_{IN,EX}CLUSIVE.
5963 (gimplify_expr): Handle OMP_SCAN.
5964 * omp-low.c (check_omp_nesting_restrictions): For parent context,
5965 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
5966 simd constructs.
5967 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
5968 GIMPLE_OMP_SCAN.
5969
5970 2019-06-10 Martin Liska <mliska@suse.cz>
5971
5972 * ipa-cp.c (ignore_edge_p): New function.
5973 (build_toporder_info): Use it.
5974 * ipa-inline.c (ignore_edge_p): New function.
5975 (inline_small_functions): Use it.
5976 * ipa-pure-const.c (ignore_edge_for_nothrow):
5977 Verify opt_for_fn for caller and callee.
5978 (ignore_edge_for_pure_const): Likewise.
5979 * ipa-reference.c (ignore_edge_p): Extend to check
5980 for opt_for_fn.
5981 * ipa-utils.c (searchc): Refactor.
5982 * ipa-utils.h: Fix coding style.
5983
5984 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
5985
5986 * config/arc/arc.c (arc_rtx_costs): Update costs.
5987
5988 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
5989
5990 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
5991 (arc_split_ior): Likewise.
5992 (arc_check_mov_const): Likewise.
5993 (arc_split_mov_const): Likewise.
5994 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
5995 (arc_rtx_costs): Replace check Crr with Cax constraint.
5996 (prepare_move_operands): Cleanup, remove unused code.
5997 (arc_split_ior): New function.
5998 (arc_check_ior_const): Likewise.
5999 (arc_split_mov_const): Likewise.
6000 (arc_check_mov_const): Likewise.
6001 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
6002 in define_insn_and_split pattern.
6003 (iorsi3): Likewise.
6004 (mulsi3_v2): Add new matching variant.
6005 (andsi3_i): Cleanup pattern.
6006 (rotrsi3_cnt1): Update pattern.
6007 (rotrsi3_cnt8): New pattern.
6008 (ashlsi2_cnt8): Likewise.
6009 (ashlsi2_cnt16): Likewise.
6010 * config/arc/constraints.md (C0p): Update constraint.
6011 (Crr): Remove it.
6012 (C0x): New pattern.
6013 (Cax): New pattern.
6014
6015 2019-06-10 Martin Liska <mliska@suse.cz>
6016
6017 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
6018 Update coding style.
6019 (sem_item_optimizer::dump_cong_classes):
6020 Print how many items are in a non-singular class. Improve
6021 coding style.
6022
6023 2019-06-10 Martin Liska <mliska@suse.cz>
6024
6025 * value-prof.c (dump_histogram_value): Change dump format.
6026 (gimple_mod_subtract_transform): Remove legacy comment.
6027
6028 2019-06-10 Martin Liska <mliska@suse.cz>
6029
6030 * value-prof.c (dump_histogram_value): Print histogram values
6031 only if present.
6032
6033 2019-06-10 Martin Liska <mliska@suse.cz>
6034
6035 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
6036 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
6037 * ipa-profile.c (ipa_profile_generate_summary):
6038 Use get_most_common_single_value.
6039 * tree-profile.c (gimple_init_gcov_profiler):
6040 Instrument with __gcov_one_value_profiler_v2
6041 and __gcov_indirect_call_profiler_v4.
6042 * value-prof.c (dump_histogram_value):
6043 Print all values for HIST_TYPE_SINGLE_VALUE.
6044 (stream_out_histogram_value): Update assert for
6045 N values.
6046 (stream_in_histogram_value): Set number of
6047 counters for HIST_TYPE_SINGLE_VALUE.
6048 (get_most_common_single_value): New.
6049 (gimple_divmod_fixed_value_transform):
6050 Use get_most_common_single_value.
6051 (gimple_ic_transform): Likewise.
6052 (gimple_stringops_transform): Likewise.
6053 (gimple_find_values_to_profile): Set number
6054 of counters for HIST_TYPE_SINGLE_VALUE.
6055 * value-prof.h (get_most_common_single_value): New.
6056
6057 2019-06-10 Martin Liska <mliska@suse.cz>
6058
6059 * hash-map.h: Pass default value to hash_table ctor.
6060 * hash-table.h: Add default value to call of a ctor.
6061
6062 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
6063
6064 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
6065 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
6066
6067 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
6068
6069 PR target/90751
6070 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
6071 Call pa_output_function_label.
6072 (TARGET_ASM_FUNCTION_PROLOGUE): define.
6073 * config/pa/pa-protos.h (pa_output_function_label): Declare.
6074 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
6075 to declaration.
6076 (pa_linux_output_function_prologue): Declare.
6077 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
6078 (pa_output_function_label): New.
6079 (pa_output_function_prologue): Revise to use pa_output_function_label.
6080 (pa_linux_output_function_prologue): New.
6081 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
6082
6083 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
6084
6085 * tree-vrp.h (value_range_base::intersect): New.
6086 (value_range::intersect_helper): Move from here...
6087 (value_range_base::intersect_helper): ...to here.
6088 * tree-vrp.c (value_range::intersect_helper): Rename to...
6089 (value_range_base::intersect_helper): ...this, and rewrite to
6090 return a value instead of modifying THIS in place.
6091 Also, move equivalence handling...
6092 (value_range::intersect): ...here, while calling intersect_helper.
6093 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
6094 calling intersect.
6095 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
6096 Same.
6097 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
6098
6099 2019-06-07 Jakub Jelinek <jakub@redhat.com>
6100
6101 * Makefile.in (genprogerr): Add condmd.
6102 (genprog): Remove it here.
6103
6104 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
6105
6106 * doc/invoke.texi (AMD GCN Options): Add gfx906.
6107
6108 2019-06-07 Richard Biener <rguenther@suse.de>
6109
6110 PR debug/90574
6111 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
6112 that appear after user labels.
6113
6114 2019-06-07 Martin Liska <mliska@suse.cz>
6115
6116 * cselib.c (cselib_init): Disable hash table
6117 sanitization.
6118 * hash-set.h: Pass new default argument to m_table.
6119 * hash-table.c: Add global variable with hash table
6120 sanitization limit.
6121 * hash-table.h (Allocator>::hash_table): Add new argument
6122 to ctor.
6123 (hashtab_chk_error): New.
6124 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
6125 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
6126 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
6127
6128 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
6129
6130 * common.opt (flto-odr-type-merging): Ignore.
6131 * invoke.texi (-flto-odr-type-merging): Remove.
6132 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
6133 (can_be_vtable_hashed_p): Remove.
6134 (hash_odr_vtable): Remove.
6135 (odr_vtable_hasher::hash): Remove.
6136 (types_same_for_odr): Remove.
6137 (types_odr_comparable): Remove.
6138 (odr_vtable_hasher::equal): Remove.
6139 (odr_vtable_hash_type, odr_vtable_hash): Remove.
6140 (add_type_duplicate): Do not synchronize vtable and name hashtables.
6141 (get_odr_type): Do not use vtable hash.
6142 (dump_odr_type): Remove commented out code.
6143 (build_type_inheritance_graph): Do not allocate vtable hash.
6144 (rebuild_type_inheritance_graph): Do not delete vtable hash.
6145 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
6146 (odr_type_p): Likewise.
6147 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
6148 test.
6149
6150 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
6151
6152 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
6153 immediately after same_types_for_tbaa_p returns -1 and continue
6154 looking for possible exact match; if matching types are arrays
6155 watch for partial overlaps.
6156 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
6157 (indirect_refs_may_alias_p): Do type based disambiguation first;
6158 update comment.
6159
6160 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
6161
6162 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
6163
6164 2019-06-07 Martin Liska <mliska@suse.cz>
6165
6166 * doc/invoke.texi: Remove param.
6167 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
6168 Remove.
6169 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
6170 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
6171 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
6172 * profile.c (instrument_values): Remove
6173 HIST_TYPE_INDIR_CALL_TOPN.
6174 * tree-profile.c (init_ic_make_global_vars):
6175 Always build __gcov_indirect_call only.
6176 (gimple_init_gcov_profiler): Remove usage
6177 of PARAM_INDIR_CALL_TOPN_PROFILE.
6178 (gimple_gen_ic_profiler): Likewise.
6179 * value-prof.c (dump_histogram_value): Likewise.
6180 (stream_in_histogram_value): Likewise.
6181 (gimple_indirect_call_to_profile): Likewise.
6182 (gimple_find_values_to_profile): Likewise.
6183 * value-prof.h (enum hist_type): Likewise.
6184
6185 2019-06-07 Martin Liska <mliska@suse.cz>
6186
6187 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
6188 function.
6189
6190 2019-06-07 Martin Liska <mliska@suse.cz>
6191
6192 PR tree-optimization/78902
6193 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
6194 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
6195 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
6196 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
6197 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
6198 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
6199 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
6200 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
6201 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
6202 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
6203 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
6204 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
6205 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
6206 New.
6207 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
6208 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
6209 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
6210 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
6211 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
6212 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
6213 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
6214 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
6215 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
6216 warn_unused_result attribute.
6217 (BUILT_IN_STRDUP): Likewise.
6218 (BUILT_IN_STRNDUP): Likewise.
6219 (BUILT_IN_ALLOCA): Likewise.
6220 (BUILT_IN_CALLOC): Likewise.
6221 (BUILT_IN_MALLOC): Likewise.
6222 (BUILT_IN_REALLOC): Likewise.
6223
6224 2019-06-06 Jim Wilson <jimw@sifive.com>
6225
6226 PR target/89955
6227 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
6228 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
6229 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
6230
6231 2019-06-06 Martin Sebor <msebor@redhat.com>
6232
6233 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
6234 (handle_builtin_malloc): Remove trailing spaces.
6235 (handle_builtin_memset): Same.
6236 (handle_builtin_memcmp): Same.
6237 (compute_string_length): Same.
6238 (determine_min_objsize): Same.
6239 (handle_builtin_string_cmp): Same.
6240 (handle_char_store): Same. Break up excessively long line.
6241
6242 2019-06-06 Martin Jambor <mjambor@suse.cz>
6243
6244 * tree-sra.c (build_reconstructed_reference): Drop the alignment
6245 check.
6246
6247 2019-06-06 Martin Jambor <mjambor@suse.cz>
6248
6249 * tree-sra.c (struct access): New field grp_same_access_path.
6250 (dump_access): Dump it.
6251 (build_reconstructed_reference): New function.
6252 (build_ref_for_model): Use it if possible.
6253 (path_comparable_for_same_access): New function.
6254 (same_access_path_p): Likewise.
6255 (sort_and_splice_var_accesses): Set the new flag.
6256 (analyze_access_subtree): Likewise.
6257 (propagate_subaccesses_across_link): Propagate zero value of the new
6258 flag down the access tree.
6259
6260 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
6261
6262 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
6263 * config/gcn/gcn.opt (gpu_type): Add gfx906.
6264 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
6265 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
6266 Add gfx906.
6267
6268 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6269
6270 PR tree-optimization/90332
6271 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
6272 Handle VALS containing two vectors.
6273 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
6274 to...
6275 (@aarch64_combinez<mode>): ... This.
6276 (*aarch64_combinez_be<mode>): Rename to...
6277 (@aarch64_combinez_be<mode>): ... This.
6278 (vec_init<mode><Vhalf>): New define_expand.
6279 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
6280
6281 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6282
6283 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
6284 library functions only when not optimizing for size.
6285 (ashlsi3): Likewise.
6286 (ashrhi3): Likewise.
6287 (ashrsi3): Likewise.
6288 (lshrhi3): Likewise.
6289 (lshrsi3): Likewise.
6290
6291 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
6292
6293 PR rtl-optimization/88751
6294 * ira.c (ira): Use the number of the actually referenced registers
6295 when calculating the threshold.
6296
6297 2019-06-06 Jakub Jelinek <jakub@redhat.com>
6298
6299 * configure: Regenerate.
6300
6301 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6302
6303 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
6304 register if it is in memory, so the shift can be emulated with a rotate
6305 instruction.
6306 (ashrhi3): Likewise.
6307 (lshrhi3): Likewise.
6308
6309 2019-06-06 Martin Liska <mliska@suse.cz>
6310
6311 PR tree-optimization/87954
6312 * match.pd: Simplify mult where both arguments are 0 or 1.
6313
6314 2019-06-06 Richard Biener <rguenther@suse.de>
6315
6316 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
6317 put equivalences on UNDEFINED ranges.
6318 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
6319 Make sure to drop defs of stmts added during simplification
6320 to VARYING.
6321
6322 2019-06-06 Richard Biener <rguenther@suse.de>
6323
6324 * tree-ssa-structalias.c: Include tree-cfg.h.
6325 (make_heapvar): Do not make heap vars artificial.
6326 (find_func_aliases_for_builtin_call): Handle stack allocation
6327 functions.
6328 (find_func_aliases): Delay processing of simple enough returns
6329 in non-IPA mode.
6330 (set_uids_in_ptset): Adjust.
6331 (find_what_var_points_to): Likewise.
6332 (solve_constraints): Do not dump points-to sets here.
6333 (compute_points_to_sets): Post-process return statements,
6334 amending the escaped solution. Dump points-to sets afterwards.
6335 (ipa_pta_execute): Dump points-to sets.
6336
6337 2019-06-06 Martin Liska <mliska@suse.cz>
6338
6339 PR web/87933
6340 * doc/install.texi: Fix HTML headers and
6341 titles for 'Installing GCC' pages.
6342
6343 2019-06-06 Martin Liska <mliska@suse.cz>
6344
6345 * ipa-icf-gimple.h (dump_message_1): Remove.
6346 (dump_message): Likewise.
6347 (return_false_with_message_1): Print also file.
6348 (return_false_with_msg): Likewise.
6349 (return_with_result): Likewise.
6350 (return_with_debug): Likewise.
6351 * ipa-icf.c (sem_function::equals_private): Remove call
6352 to dump_message.
6353
6354 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
6355
6356 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
6357 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
6358 memory operand for it.
6359 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
6360
6361 2019-06-05 Martin Sebor <msebor@redhat.com>
6362
6363 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
6364 Adjust quoting and hyphenation.
6365 * convert.c (convert_to_real_1): Same.
6366 * gcc.c (driver_wrong_lang_callback): Same.
6367 (driver::handle_unrecognized_options): Same.
6368 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
6369 * opts-common.c (cmdline_handle_error): Same.
6370 (read_cmdline_option): Same.
6371 * opts-global.c (complain_wrong_lang): Same.
6372 (print_ignored_options): Same.
6373 (handle_common_deferred_options): Same.
6374 * pretty-print.h: Same.
6375 * print-rtl.c (debug_bb_n_slim): Same.
6376 * sched-rgn.c (make_pass_sched_fusion): Same.
6377 * tree-cfg.c (verify_gimple_assign_unary): Same.
6378 (verify_gimple_label): Same.
6379 * tree-ssa-operands.c (verify_ssa_operands): Same.
6380 * varasm.c (do_assemble_alias): Same.
6381 (assemble_alias): Same.
6382
6383 2019-06-05 Richard Henderson <rth@twiddle.net>
6384
6385 * config/alpha/alpha.c (direct_return): Move down after
6386 struct machine_function definition; use saved frame_size;
6387 return bool.
6388 (struct machine_function): Add sa_mask, sa_size, frame_size.
6389 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
6390 (alpha_compute_frame_layout): ... new function.
6391 (TARGET_COMPUTE_FRAME_LAYOUT): New.
6392 (alpha_initial_elimination_offset): Use saved sa_size.
6393 (alpha_vms_initial_elimination_offset): Likewise.
6394 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
6395 (alpha_expand_prologue): Use saved frame data. Merge integer
6396 and fp register save loops.
6397 (alpha_expand_epilogue): Likewise.
6398 (alpha_start_function): Use saved frame data.
6399 * config/alpha/alpha-protos.h (direct_return): Update.
6400 (alpha_sa_size): Remove.
6401
6402 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
6403
6404 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
6405 multiplication by a power-of-two value.
6406 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
6407 and turn the modulo operation into a masking operation.
6408
6409 2019-06-05 Jakub Jelinek <jakub@redhat.com>
6410
6411 PR debug/90733
6412 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
6413 with VOIDmode inner operands.
6414
6415 2019-06-05 Richard Biener <rguenther@suse.de>
6416
6417 PR middle-end/90726
6418 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
6419 turn an expression graph into a tree.
6420
6421 2019-06-05 Jakub Jelinek <jakub@redhat.com>
6422
6423 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
6424 member.
6425 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
6426 treat it like explicit monotonic schedule modifier.
6427 (expand_omp_for): Initialize has_lastprivate_conditional.
6428 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
6429 schedule modifier.
6430
6431 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
6432 references, lookup in in hash map MEM_REF operand instead of the
6433 MEM_REF itself.
6434 (lower_omp_1): When looking for lastprivate conditional assignments,
6435 handle MEM_REFs with REFERENCE_TYPE operands.
6436
6437 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
6438 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
6439 and references a VLA. Handle references to non-VLAs if is_simd
6440 all privatization clauses like reductions.
6441 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
6442 If omp_is_reference, use always omp simd arrays and set
6443 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
6444 fails, emit reference initialization.
6445
6446 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
6447
6448 PR target/89803
6449 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
6450 _mm_mask_fpclass_sd_mask): New intrinsics.
6451 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
6452 * config/i386/i386-builtin.def
6453 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
6454 New builtins.
6455 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
6456 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
6457 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
6458 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
6459 case QI_FTYPE_V2SF_INT): Ditto.
6460 * config/i386/sse.md
6461 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
6462 Extended to insnstructions with mask operands.
6463
6464 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
6465
6466 * config/rs6000/constraints.md (define_register_constraint "wp"):
6467 Delete.
6468 (define_register_constraint "wq"): Delete.
6469 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6470 (rs6000_init_hard_regno_mode_ok): Adjust.
6471 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6472 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
6473 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
6474 (define_mode_attr VSa): Delete.
6475 (define_mode_attr VSisa): New.
6476 (rest of file): Adjust.
6477 * doc/md.texi (Machine Constraints): Adjust.
6478
6479 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
6480
6481 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
6482 (define_attr "enabled"): Handle those new isa values.
6483
6484 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
6485
6486 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
6487 (define_mode_attr VSr5): Delete.
6488 (define_mode_attr VStype_sqrt): Delete.
6489 (define_mode_iterator VSX_SPDP): Delete.
6490 (define_mode_attr VS_spdp_res): Delete.
6491 (define_mode_attr VS_spdp_insn): Delete.
6492 (define_mode_attr VS_spdp_type): Delete.
6493 (*vsx_sqrt<mode>2): Adjust.
6494 (vsx_<VS_spdp_insn>): Delete, split to...
6495 (vsx_xscvdpsp): ... this. New. And...
6496 (vsx_xvcvspdp): ... this. New. And...
6497 (vsx_xvcvdpsp): ... this. New.
6498
6499 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
6500
6501 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
6502 and V2DF.
6503 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
6504 (rest of file): Adjust.
6505
6506 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
6507
6508 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
6509 (vsx_extract_<mode>_var): Ditto.
6510
6511 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
6512
6513 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
6514 with just "wa".
6515
6516 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
6517
6518 * config/rs6000/constraints.md (define_register_constraint "ww"):
6519 Delete.
6520 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6521 (rs6000_init_hard_regno_mode_ok): Adjust.
6522 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6523 RS6000_CONSTRAINT_ww.
6524 * config/rs6000/rs6000.md: Adjust.
6525 * config/rs6000/vsx.md: Adjust.
6526 * doc/md.texi (Machine Constraints): Adjust.
6527
6528 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
6529
6530 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
6531 (define_mode_attr sd): New.
6532 (define_mode_attr s): New.
6533 (define_mode_attr Ftrad): Delete.
6534 (define_mode_attr Fvsx): Delete.
6535 (define_mode_attr Fs): Delete.
6536 (rest of file): Use the new mode attributes.
6537 * config.rs6000/vsx.md: Use the new mode attributes.
6538
6539 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
6540
6541 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
6542 with just "wa".
6543
6544 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
6545
6546 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
6547 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
6548 used with VSX_B, VSX_D, or VSX_F, with just "wa".
6549
6550 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
6551
6552 PR target/78263
6553 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
6554 C++ with strict ANSI requirements.
6555
6556 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
6557
6558 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
6559 computations when step is 1.
6560
6561 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
6562
6563 * config/rs6000/constraints.md (define_register_constraint "wf"):
6564 Delete.
6565 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6566 (rs6000_init_hard_regno_mode_ok): Adjust.
6567 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6568 RS6000_CONSTRAINT_wf.
6569 * config/rs6000/rs6000.md: Adjust.
6570 * config/rs6000/vsx.md: Adjust.
6571 * doc/md.texi (Machine Constraints): Adjust.
6572
6573 2019-06-04 Andrew Pinski <apinski@marvell.com>
6574
6575 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
6576 Fix ILP32 value.
6577
6578 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
6579
6580 * config/rs6000/constraints.md (define_register_constraint "wd"):
6581 Delete.
6582 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6583 (rs6000_init_hard_regno_mode_ok): Adjust.
6584 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6585 RS6000_CONSTRAINT_wd.
6586 * config/rs6000/rs6000.md: Adjust.
6587 * config/rs6000/vsx.md: Adjust.
6588 * doc/md.texi (Machine Constraints): Adjust.
6589
6590 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
6591
6592 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
6593 (rest of file): Adjust.
6594
6595 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
6596
6597 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
6598 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
6599 (vsx_splat_<mode>_reg): Adjust.
6600
6601 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
6602
6603 * config/rs6000/constraints.md (define_register_constraint "ws"):
6604 Delete.
6605 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6606 (rs6000_init_hard_regno_mode_ok): Adjust.
6607 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6608 RS6000_CONSTRAINT_ws.
6609 * config/rs6000/rs6000.md: Adjust.
6610 * config/rs6000/vsx.md: Adjust.
6611 * doc/md.texi (Machine Constraints): Adjust.
6612
6613 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
6614
6615 * config/rs6000/constraints.md (define_register_constraint "wv"):
6616 Delete.
6617 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6618 (rs6000_init_hard_regno_mode_ok): Adjust.
6619 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6620 RS6000_CONSTRAINT_wv.
6621 * config/rs6000/rs6000.md: Adjust.
6622 * config/rs6000/vsx.md: Adjust.
6623 * doc/md.texi (Machine Constraints): Adjust.
6624
6625 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
6626
6627 * config/rs6000/constraints.md (define_register_constraint "wi"):
6628 Delete.
6629 (define_register_constraint "wt"): Delete.
6630 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6631 (rs6000_init_hard_regno_mode_ok): Adjust.
6632 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6633 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
6634 * config/rs6000/rs6000.md: Adjust.
6635 * config/rs6000/vsx.md: Adjust.
6636 * doc/md.texi (Machine Constraints): Adjust.
6637
6638 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
6639
6640 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
6641 const.
6642 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
6643 default_elf_asm_output_external.
6644
6645 2019-06-04 Martin Liska <mliska@suse.cz>
6646
6647 * ipa-icf.c (INCLUDE_LIST): Remove.
6648 (sem_item_optimizer::execute): Remove call to init_wpa.
6649 * ipa-icf.h (init_wpa): Remove.
6650
6651 2019-06-04 Jakub Jelinek <jakub@redhat.com>
6652
6653 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
6654 conditional on combined for simd.
6655 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
6656 member.
6657 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
6658 constructs, don't remove lastprivate_conditional_map, but instead set
6659 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
6660 to parent construct temporaries.
6661 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
6662 like !ctx->lastprivate_conditional_map.
6663 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
6664 use up->outer context instead of up.
6665 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
6666 gimple_omp_for_combined_p.
6667 (expand_omp_for_static_nochunk): Likewise.
6668 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
6669 probably moved over into expand_omp_for_generic rather than being copied
6670 there.
6671
6672 2019-06-04 Martin Liska <mliska@suse.cz>
6673
6674 * value-prof.c (dump_histogram_value): Fix typo.
6675 (gimple_mod_subtract_transform): Likewise.
6676
6677 2019-06-04 Richard Biener <rguenther@suse.de>
6678
6679 PR middle-end/90726
6680 * tree-chrec.c (chrec_contains_symbols): Add to visited.
6681 (tree_contains_chrecs): Likewise.
6682 (chrec_contains_symbols_defined_in_loop): Move here and avoid
6683 exponential behaivor from ...
6684 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
6685 ... here.
6686 (expression_expensive_p): Avoid exponential behavior and compute
6687 expanded size, rejecting any expansion.
6688 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
6689 (idx_contains_abnormal_ssa_name_p): Likewise.
6690 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
6691 (contains_abnormal_ssa_name_p): Simplify and use
6692 walk_tree_without_duplicates.
6693
6694 2019-06-04 Richard Biener <rguenther@suse.de>
6695
6696 PR tree-optimization/90738
6697 Revert
6698 2019-06-03 Richard Biener <rguenther@suse.de>
6699
6700 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
6701 full reference tree and record in ref->ref.
6702 (vn_reference_lookup_3): Pass in original ref to
6703 ao_ref_init_from_vn_reference.
6704 (vn_reference_lookup): Likewise.
6705 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
6706 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
6707 Handle non-decl bases in the original reference.
6708
6709 2019-06-04 Martin Liska <mliska@suse.cz>
6710
6711 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
6712 number of references.
6713 (sem_item_optimizer::do_congruence_step):
6714 (sem_item_optimizer::worklist_push): Dump how references
6715 a class has.
6716 (sem_item_optimizer::worklist_pop): Use heap.
6717 (sem_item_optimizer::process_cong_reduction): Likewise.
6718 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
6719
6720 2019-06-04 Martin Liska <mliska@suse.cz>
6721
6722 * ipa-icf.h (struct sem_usage_pair_hash): New.
6723 (sem_usage_pair_hash::hash): Likewise.
6724 (sem_usage_pair_hash::equal): Likewise.
6725 (struct sem_usage_hash): Likewise.
6726 * ipa-icf.c (sem_item::sem_item): Initialize
6727 referenced_by_count.
6728 (sem_item::add_reference): Register a reference
6729 in ref_map and not in target->usages.
6730 (sem_item::setup): Remove initialization of
6731 dead vectors.
6732 (sem_item::~sem_item): Remove usage of dead vectors.
6733 (sem_item::dump): Remove dump of references.
6734 (sem_item_optimizer::sem_item_optimizer): Initialize
6735 m_references.
6736 (sem_item_optimizer::read_section): Remove useless
6737 dump.
6738 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
6739 (sem_item_optimizer::build_graph): Pass m_references
6740 to ::add_reference.
6741 (sem_item_optimizer::verify_classes): Remove usage of dead
6742 vectors.
6743 (sem_item_optimizer::traverse_congruence_split): Return true
6744 when a class is split.
6745 (sem_item_optimizer::do_congruence_step_for_index): Use
6746 hash_map for look up of (sem_item *, index). That brings
6747 significant speed up.
6748 (sem_item_optimizer::do_congruence_step): Return true
6749 when a split is done.
6750 (congruence_class::is_class_used): Use referenced_by_count.
6751
6752 2019-06-04 Alan Modra <amodra@gmail.com>
6753
6754 PR target/90689
6755 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
6756 error.
6757
6758 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
6759
6760 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
6761 * config/rs6000/rs6000.c (direct_move_p): Adjust.
6762 (rs6000_secondary_reload_simple_move): Adjust.
6763 (rs6000_opt_masks): Neuter the "mfpgpr" option.
6764 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
6765 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
6766 comment.
6767 (power6x): Adjust.
6768 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
6769 (floatunssi<mode>2_lfiwzx): Adjust.
6770 (fix_trunc<mode>si2_stfiwx): Adjust.
6771 (fixuns_trunc<mode>si2_stfiwx): Adjust.
6772 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
6773 (mfpgpr): Mark as deprecated.
6774 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
6775 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
6776 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
6777
6778 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
6779
6780 * config/rs6000/constraints.md (define_register_constraint "wg"):
6781 Delete.
6782 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6783 RS6000_CONSTRAINT_wg.
6784 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6785 (rs6000_init_hard_regno_mode_ok): Adjust.
6786 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
6787 Delete "wg" alternatives.
6788 * doc/md.texi (Machine Constraints): Adjust.
6789
6790 2019-06-03 Alan Modra <amodra@gmail.com>
6791
6792 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
6793 (get_uncond_jump_length): Assert length less than INT_MAX and
6794 non-negative.
6795
6796 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
6797
6798 PR middle-end/64242
6799 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
6800 block.
6801 (expand_builtin_nonlocal_goto): Likewise.
6802
6803 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
6804
6805 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
6806 (aarch64_asm_output_external): Declare.
6807 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
6808 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
6809 (aarch64_asm_output_alias): New.
6810 (aarch64_asm_output_external): New.
6811 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
6812 (ASM_OUTPUT_EXTERNAL): Define.
6813
6814 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
6815 * tree-vrp.h (value_range_base::nonzero_p): New.
6816 (value_range_base::set_nonnull): Rename to...
6817 (value_range_base::set_nonzero): ...this.
6818 (value_range_base::set_null): Rename to...
6819 (value_range_base::set_zero): ...this.
6820 (value_range::set_nonnull): Remove.
6821 (value_range::set_null): Remove.
6822 * tree-vrp.c (range_is_null): Remove.
6823 (range_is_nonnull): Remove.
6824 (extract_range_from_binary_expr): Use value_range_base::*zero_p
6825 instead of range_is_*null.
6826 (extract_range_from_unary_expr): Same.
6827 (value_range_base::set_nonnull): Rename to...
6828 (value_range_base::set_nonzero): ...this.
6829 (value_range::set_nonnull): Remove.
6830 (value_range_base::set_null): Rename to...
6831 (value_range_base::set_zero): ...this.
6832 (value_range::set_null): Remove.
6833 (extract_range_from_binary_expr): Rename set_*null uses to
6834 set_*zero.
6835 (extract_range_from_unary_expr): Same.
6836 (union_helper): Same.
6837 * vr-values.c (get_value_range): Use set_*zero instead of
6838 set_*null.
6839 (vr_values::extract_range_from_binary_expr): Same.
6840 (vr_values::extract_range_basic): Same.
6841
6842 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
6843
6844 PR driver/90684
6845 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
6846
6847 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6848
6849 * config/aarch64/iterators.md (MAX_OPP): New code attr.
6850 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
6851 Rename to...
6852 (aarch64_<su>abd<mode>_3): ... This.
6853 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
6854
6855 2019-06-03 Richard Biener <rguenther@suse.de>
6856
6857 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
6858 full reference tree and record in ref->ref.
6859 (vn_reference_lookup_3): Pass in original ref to
6860 ao_ref_init_from_vn_reference.
6861 (vn_reference_lookup): Likewise.
6862 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
6863 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
6864 Handle non-decl bases in the original reference.
6865
6866 2019-06-03 Martin Liska <mliska@suse.cz>
6867
6868 * doc/generic.texi: Remove Java Trees.
6869
6870 2019-06-03 Martin Liska <mliska@suse.cz>
6871
6872 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
6873 returns 0 when operands are equal.
6874
6875 2019-06-03 Richard Biener <rguenther@suse.de>
6876
6877 PR tree-optimization/90716
6878 * tree-loop-distribution.c (destroy_loop): Process blocks in
6879 correct order.
6880
6881 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6882
6883 PR target/88837
6884 * vector-builder.h (vector_builder::count_dups): New method.
6885 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
6886 Declare prototype.
6887 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
6888 (vec_init<mode><Vel>): New pattern.
6889 * config/aarch64/aarch64.c (emit_insr): New function.
6890 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
6891 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
6892 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
6893 (aarch64_sve_expand_vector_init): Define two overloaded functions.
6894
6895 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
6896
6897 PR tree-optimization/90681
6898 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
6899 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
6900 special case for SLP, but fail on non-groupped loads.
6901
6902 2019-06-03 Martin Liska <mliska@suse.cz>
6903
6904 * cfg.c (debug): Use TDF_DETAILS for debug and
6905 print edge info only once.
6906
6907 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
6908
6909 PR fortran/90539
6910 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
6911
6912 2019-06-01 Martin Sebor <msebor@redhat.com>
6913
6914 PR middle-end/90694
6915 * tree-pretty-print.c (dump_generic_node): Add parentheses.
6916
6917 2019-05-31 Jan Hubicka <jh@suse.cz>
6918
6919 * alias.c: Include ipa-utils.h.
6920 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
6921 * ipa-devirt.c (prevailing_odr_type): New.
6922 * ipa-utils.h (previaling_odr_type): Declare.
6923
6924 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
6925 Hongtao Liu <hongtao.liu@intel.com>
6926
6927 PR target/89355
6928 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
6929 NOTE_INSN_DELETED_LABEL check.
6930
6931 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
6932 Robert Suchanek <robert.suchanek@mips.com>
6933
6934 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
6935 and 3rd operands of the fmadd/fmsub/maddv builtin.
6936
6937 2019-05-31 Jakub Jelinek <jakub@redhat.com>
6938
6939 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
6940 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
6941 on OMP_SIMD if not nested inside of worksharing loop that also has
6942 lastprivate conditional clause for the same decl.
6943 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
6944 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
6945 on simd.
6946 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
6947 on simd construct.
6948 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
6949 on simd construct.
6950 (lower_lastprivate_clauses): Likewise.
6951 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
6952 calling lower_rec_input_clauses.
6953 (lower_omp_for): Likewise.
6954 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
6955 clause on simd construct.
6956 * omp-expand.c (expand_omp_simd): Initialize cond_var if
6957 OMP_CLAUSE__CONDTEMP_ clause is present.
6958
6959 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
6960 ivar and lvar.
6961
6962 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
6963
6964 PR c/43673
6965 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
6966 TEX_D32, TEX_D64 or TEX_D128.
6967
6968 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
6969
6970 * match.pd (~(vec?cst1:cst2)): New transformation.
6971
6972 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
6973
6974 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
6975 ((size_t)(A /[ex] B) CMP C): New transformation.
6976
6977 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
6978
6979 * doc/md.texi: Document define_insn_and_rewrite.
6980 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
6981 * gensupport.c (queue_elem): Update comment.
6982 (replace_operands_with_dups): New function.
6983 (gen_rewrite_sequence): Likewise.
6984 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
6985 * read-rtl.c (apply_subst_iterator): Likewise.
6986 (add_condition_to_rtx, named_rtx_p): Likewise.
6987 (rtx_reader::read_rtx_operand): Likewise.
6988 * config/aarch64/aarch64-sve.md
6989 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
6990 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
6991 define_insn_and_rewrite.
6992 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
6993 Remove separate define_split.
6994
6995 2019-05-31 Jan Hubicka <jh@suse.cz>
6996
6997 * tree-ssa-alias.c (type_has_components_p): New function.
6998 (aliasing_component_refs_p): Use it.
6999
7000 2019-05-31 Martin Liska <mliska@suse.cz>
7001
7002 * gdbhooks.py: Add const_tree to TreePrinter.
7003
7004 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
7005
7006 PR debug/86964
7007 * common.opt (feliminate-unused-debug-symbols): Enable by default.
7008 * doc/invoke.texi (Debugging Options): Document new default of
7009 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
7010
7011 2019-05-31 Jakub Jelinek <jakub@redhat.com>
7012
7013 PR tree-optimization/90671
7014 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
7015 template_block used to be empty on the first call, don't use
7016 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
7017 seq with bb_seq and set it with set_bb_seq.
7018
7019 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
7020
7021 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
7022
7023 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
7024 Michael Meissner <meissner@linux.ibm.com>
7025
7026 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
7027 (prefixed_mem_operand): Likewise.
7028 (non_prefixed_mem_operand): Likewise.
7029 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
7030 prototype.
7031 * config/rs6000/rs6000.c (print_operand_address): Handle
7032 PC-relative addresses.
7033 (mode_supports_prefixed_address_p): New function.
7034 (rs6000_prefixed_address): New function.
7035 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
7036 (SYMBOL_REF_PCREL_P): Likewise.
7037
7038 2019-05-30 Jakub Jelinek <jakub@redhat.com>
7039
7040 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
7041 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
7042 (gimplify_omp_for): If worksharing loop with lastprivate conditional
7043 is nested inside of parallel region, add _condtemp_ clause to both.
7044 * tree-nested.c (convert_nonlocal_omp_clauses,
7045 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
7046 assertion failure.
7047 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
7048 member.
7049 * omp-general.c (omp_extract_for_data): Compute it.
7050 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
7051 (lower_rec_input_clauses): Likewise.
7052 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
7053 clause is already present, just add one further one after it.
7054 (lower_lastprivate_clauses): Handle cond_ptr with array type.
7055 (lower_send_shared_vars): Clear _condtemp_ vars.
7056 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
7057 or section or taskgroup.
7058 * omp-expand.c (determine_parallel_type): Disallow combining only if
7059 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
7060 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
7061 (expand_omp_for_generic, expand_omp_for_static_nochunk,
7062 expand_omp_for_static_chunk, expand_omp_for): Use
7063 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
7064 determine if a special set of API routines are needed and if condtemp
7065 needs to be initialized, while always initialize cond_var if
7066 fd->lastprivate_conditional is non-zero.
7067
7068 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
7069 Michael Meissner <meissner@linux.ibm.com>
7070
7071 * config/rs6000/constraints.md (eI): New constraint.
7072 * config/rs6000/predicates.md (cint34_operand): New predicate.
7073 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
7074 (SIGNED_34BIT_OFFSET_P): Likewise.
7075 * doc/md.texi (eI): Document constraint.
7076
7077 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
7078
7079 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
7080
7081 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
7082 Michael Meissner <meissner@linux.ibm.com>
7083
7084 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
7085 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
7086 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
7087 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
7088 (OTHER_FUTURE_MASKS): Likewise.
7089 (POWERPC_MASKS): Likewise.
7090 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
7091 specified without -mprefixed-addr or -mcpu=future. Error if
7092 -mprefixed-addr is specified without -mcpu=future.
7093 (rs6000_opt_masks): Add entry for prefixed-addr.
7094 * rs6000.opt (mprefixed-addr): New option.
7095
7096 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
7097
7098 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
7099 cfun->is_thunk check.
7100
7101 2019-05-30 Jakub Jelinek <jakub@redhat.com>
7102
7103 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
7104 to length.
7105
7106 2019-05-30 Martin Liska <mliska@suse.cz>
7107
7108 * gdbinit.in: Fix 'ptc' command. Add trt
7109 that prints TREE_TYPE($).
7110
7111 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
7112 Alan Modra <amodra@gmail.com>
7113
7114 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
7115 calls here...
7116 (rs6000_indirect_call_template_1): ...and here.
7117 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
7118 plt16_ha, plt16_lo, mtctr indirect calls. Use
7119 rs6000_pltseq_enum.
7120 (rs6000_decl_ok_for_sibcall): New function.
7121 (rs6000_function_ok_for_sibcall): Refactor.
7122 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
7123 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
7124 when pcrel. Reorganize.
7125 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
7126 * rs6000.h (rs6000_pltseq_enum): New enum.
7127 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
7128 (*pltseq_tocsave): Use rs6000_pltseq_enum.
7129 (*pltseq_plt16_ha): Likewise.
7130 (*pltseq_plt16_lo): Likewise.
7131 (*pltseq_mtctr): Likewise.
7132 (*pltseq_plt_pcrel): New insn.
7133 (*call_local_aix): Handle @notoc calls.
7134 (*call_value_local_aix): Likewise.
7135 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
7136 (*call_value_nonlocal_aix): Likewise.
7137 (*call_indirect_pcrel): New insn.
7138 (*call_value_indirect_pcrel): Likewise.
7139
7140 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
7141
7142 * config/i386/sse.md (*save_multiple<mode>): Rename from
7143 save_multiple<mode>.
7144 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
7145 (*restore_multiple_and_return<mode>): Rename from
7146 restore_multiple_and_return<mode>.
7147 (*restore_multiple_leave_return<mode>): Rename from
7148 restore_multiple_leave_return<mode>.
7149
7150 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
7151
7152 * config.gcc (rx-*-linux*): New target.
7153 * config/rx/elf.opt: New file.
7154 * config/rx/linux.h: Likewise.
7155 * config/rx/t-linux: Likewise.
7156 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
7157 make it zero.
7158 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
7159 (ASM_APP_OFF): Likewise.
7160 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
7161 moved elsewhere.
7162
7163 2019-05-29 Jan Hubicka <jh@suse.cz>
7164
7165 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
7166 variants are pointer equivalent.
7167
7168 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
7169
7170 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
7171 * config/aarch64/aarch64-sve2.md: New file.
7172 (<u>avg<mode>3_floor): New pattern.
7173 (<u>avg<mode>3_ceil): Likewise.
7174 (*<sur>h<addsub><mode>): Likewise.
7175 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
7176 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
7177
7178 2019-05-29 Jakub Jelinek <jakub@redhat.com>
7179
7180 PR bootstrap/90543
7181 * optc-save-gen.awk: In cl_optimization_print, use correct condition
7182 for var_opt_string printing. In cl_optimization_print_diff, print
7183 (null) instead of invoking undefined behavior if one of the
7184 var_opt_string pointers is NULL and use && instead of first || in the
7185 guarding condition. For var_target_other options, handle const char *
7186 target variables similarly to const char * optimize node variables.
7187
7188 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
7189
7190 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
7191 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
7192 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
7193 Add autib1716 and pacib1716 initialisation.
7194 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
7195 for autib1716 and pacib1716.
7196 * config/aarch64/aarch64-protos.h (aarch64_key_type,
7197 aarch64_post_cfi_startproc): Define.
7198 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
7199 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
7200 aarch64_handle_pac_ret_protection): Set default sign key to A.
7201 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
7202 aarch64_expand_prologue): Add check for b-key.
7203 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
7204 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
7205 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
7206 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
7207 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
7208 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
7209 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
7210 * config/aarch64/aarch64.md (do_return): Add check for b-key.
7211 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
7212 pauth_hint_num_a with pauth_hint_num.
7213 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
7214 pauth_hint_num_a with pauth_hint_num.
7215 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
7216 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
7217 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
7218 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
7219 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
7220 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
7221 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
7222 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
7223 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
7224 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
7225 UNSPEC_AUTIA1716 respectively.
7226 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
7227 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
7228 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
7229 * doc/invoke.texi (-mbranch-protection): Add b-key type.
7230 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
7231 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
7232
7233 2019-05-29 Jakub Jelinek <jakub@redhat.com>
7234
7235 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
7236 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
7237 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
7238 explicit clause on combined parallel into implicit shared clause.
7239 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
7240 and firstprivate if the decl has one too from combined parallel to
7241 the worksharing construct.
7242
7243 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
7244 Michael Meissner <meissner@linux.ibm.com>
7245
7246 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
7247
7248 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
7249
7250 * rtl.h (LABEL_REF_P): New #define.
7251
7252 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
7253
7254 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
7255
7256 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
7257
7258 * internal-fn.c: Marked mask_load_direct as vectorizable.
7259 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
7260 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
7261 combined even if masks different with allow_slp_p param.
7262 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
7263 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
7264 dissolve SLP-only vectorizable groups when SLP has been discarded.
7265 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
7266 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
7267 masks.
7268 (vect_build_slp_tree_1): Fixed comment typo.
7269 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
7270 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
7271 loads for SLP only.
7272 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
7273 vectorizable.
7274 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
7275
7276 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7277
7278 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
7279 Remove obsolete use_thunk reference.
7280 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
7281 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
7282 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
7283 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
7284 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
7285 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
7286 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
7287 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
7288 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
7289
7290 2019-05-28 Nathan Sidwell <nathan@acm.org>
7291
7292 * tree.h (IDENTIFIER_ANON_P): New.
7293 (anon_aggrname_format, anon_aggname_p): Don't declare.
7294 (make_anon_name): Declare.
7295 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
7296 (hash_tree): Likewise.
7297 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
7298 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
7299 (anon_cnt, make_anon_name): New.
7300
7301 2019-05-28 Martin Liska <mliska@suse.cz>
7302
7303 PR other/90315
7304 * opts-global.c (decode_options): Print help for all
7305 help_option_arguments.
7306 * opts.c (print_help): Add new argument.
7307 (common_handle_option): Remember all values into
7308 help_option_arguments.
7309 * opts.h (print_help): Add new argument.
7310
7311 2019-05-28 Martin Liska <mliska@suse.cz>
7312
7313 PR ipa/90555
7314 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
7315 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
7316 (func_checker::compare_bb): Call compare_loops.
7317
7318 2019-05-27 Jakub Jelinek <jakub@redhat.com>
7319
7320 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
7321 on sections construct.
7322 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
7323 construct.
7324 (lower_omp_sections): Handle lastprivate conditional.
7325 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
7326 lastprivate_conditional_map.
7327 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
7328
7329 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
7330 critical, taskgroup and section regions when looking for a region
7331 with non-NULL lastprivate_conditional_map.
7332
7333 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
7334
7335 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
7336 (*ix86_gen_sub3): Ditto.
7337 (*ix86_gen_sub3_carry): Ditto.
7338 (*ix86_gen_one_cmpl2): Ditto.
7339 (*ix86_gen_andsp): Ditto.
7340 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
7341 (gen_and2_insn): New static function.
7342 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
7343 Use gen_add3_insn instead of ix86_gen_add3.
7344 (ix86_expand_split_stack_prologue): Use gen_add2_insn
7345 instead of ix86_gen_add3.
7346 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
7347 Use gen_sub3_insn instead of ix86_gen_sub3.
7348 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
7349 instead of ix86_gen_add3.
7350 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
7351 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
7352 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
7353 * config/i386/i386-options.c (ix86_option_override_internal):
7354 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
7355 ix86_gen_one_cmpl2 and ix86_gen_andsp.
7356
7357 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
7358
7359 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
7360 and DW_OP_GNU_const_index opcodes.
7361
7362 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
7363
7364 * config/i386/i386.h (STACK_SIZE_MODE): Define.
7365
7366 2019-05-27 Richard Biener <rguenther@suse.de>
7367
7368 PR tree-optimization/90637
7369 * tree-ssa-sink.c (statement_sink_location): Honor the
7370 computed sink location for single-uses.
7371
7372 2019-05-27 Richard Biener <rguenther@suse.de>
7373
7374 PR middle-end/90610
7375 * match.pd (vec_perm): Avoid clobbering op0 when not generating
7376 a bit-insert.
7377
7378 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
7379
7380 * config/i386/i386.md (@sub<mode>3_carry): Rename
7381 from sub<mode>3_carry.
7382 (@leave_<mode>): New expander.
7383 (*leave): Rename from leave.
7384 (*leave_rex64): Rename from leave_rex64.
7385 (@monitorx_<mode>): Rename from monitorx_<mode>.
7386 (@clzero_<mode>): Rename from clzero_<mode>.
7387 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
7388 from sse3_monitor_<mode>.
7389 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
7390 (*ix86_gen_leave): Ditto.
7391 (*ix86_gen_monitor): Ditto.
7392 (*ix86_gen_monitorx): Ditto.
7393 (*ix86_gen_clzero): Ditto.
7394 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
7395 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
7396 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
7397 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
7398 Use gen_sse3_monitor instead of ix86_gen_monitor.
7399 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
7400 instead of ix86_gen_monitorx.
7401 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
7402 instead of ix86_gen_clzero.
7403 * config/i386/i386-options.c (ix86_option_override_internal):
7404 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
7405 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
7406
7407 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
7408
7409 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
7410 Rename from tls_global_dynamic_64_<mode>.
7411 (@tls_local_dynamic_base_64_<mode>): Rename from
7412 tls_local_dynamic_base_64_<mode>.
7413 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
7414 Remove indirect function.
7415 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
7416 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
7417 instead of ix86_gen_tls_global_dynamic_64.
7418 Use gen_tls_local_dynamic_base_64 instead of
7419 ix86_gen_tls_local_dynamic_base_64.
7420 * config/i386/i386-options.c (ix86_option_override_internal):
7421 Do not initialize ix86_gen_tls_global_dynamic_64 and
7422 ix86_gen_tls_local_dynamic_base_64.
7423
7424 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
7425
7426 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
7427 Rename from pro_epilogue_adjust_stack_<mode>_add.
7428 (@pro_epilogue_adjust_stack_sub_<mode>)
7429 Rename from pro_epilogue_adjust_stack_<mode>_sub.
7430 (@allocate_stack_worker_probe_<mode>):
7431 Rename from allocate_stack_worker_probe_<mode>.
7432 (allocate_stack): Use gen_allocate_stack_worker_probe.
7433 (probe_stack): Use gen_probe_stack_1.
7434 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
7435 (@adjust_stack_and_probe_<mode>): Rename from
7436 adjust_stack_and_probe<mode>.
7437 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
7438 (stack_protect_set): Use gen_stack_protect_set_1.
7439 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
7440 (stack_protect_test): Use gen_stack_protect_test_1.
7441 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
7442 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
7443 Remove indirect function.
7444 (*ix86_gen_adjust_stack_and_probe): Ditto.
7445 (*ix86_gen_probe_stack_range): Ditto.
7446 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
7447 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
7448 (ix86_adjust_stack_and_probe_stack_clash): Use
7449 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
7450 (ix86_adjust_stack_and_probe): Ditto.
7451 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
7452 of ix86_gen_probe_stack_range.
7453 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
7454 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
7455 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
7456 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
7457 CODE_FOR_stack_protect_test_{si,di}.
7458 * config/i386/i386-options.c (ix86_option_override_internal):
7459 Do not initialize ix86_gen_allocate_stack_worker,
7460 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
7461
7462 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
7463
7464 * doc/invoke.texi (Link Options): Many editorial changes around
7465 -flinker-output.
7466
7467 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7468
7469 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
7470 pre-Solaris 11 referene and most Studio compiler details.
7471
7472 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
7473
7474 PR target/90530
7475 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
7476 DImode to SImode in floating-point registers on 64-bit target.
7477 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
7478 register_operand in xmpyu patterns.
7479
7480 2019-05-24 Jakub Jelinek <jakub@redhat.com>
7481
7482 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
7483 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
7484 OMP_CLAUSE__REDUCTEMP_.
7485 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
7486 OMP_CLAUSE__CONDTEMP_.
7487 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
7488 * tree-pretty-print.c (dump_omp_clause): Likewise.
7489 * tree-nested.c (convert_nonlocal_omp_clauses,
7490 convert_local_omp_clauses): Likewise.
7491 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
7492 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
7493 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
7494 on OMP_FOR.
7495 (gimplify_omp_for): Warn and disable conditional modifier from
7496 lastprivate on loop iterators.
7497 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
7498 member.
7499 * omp-general.c (omp_extract_for_data): Initialize it.
7500 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
7501 member.
7502 (delete_omp_context): Delete it.
7503 (lower_lastprivate_conditional_clauses): New function.
7504 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
7505 handle lastprivate conditional clauses.
7506 (lower_reduction_clauses): Add CLIST argument, emit it into
7507 the critical section if any.
7508 (lower_omp_sections): Adjust lower_lastprivate_clauses and
7509 lower_reduction_clauses callers.
7510 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
7511 to lower_lastprivate_clauses.
7512 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
7513 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
7514 clist into a critical section if not emitted there already by
7515 lower_reduction_clauses.
7516 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
7517 callers.
7518 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
7519 conditional variables.
7520 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
7521 clause is present.
7522 (expand_omp_for_generic, expand_omp_for_static_nochunk,
7523 expand_omp_for_static_chunk): Handle lastprivate conditional.
7524 (expand_omp_for): Handle fd.lastprivate_conditional like
7525 fd.have_reductemp.
7526
7527 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
7528
7529 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
7530 kernel does not exit cleanly.
7531 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
7532
7533 2019-05-24 Jason Merrill <jason@redhat.com>
7534
7535 Revert:
7536 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
7537
7538 2019-05-24 Richard Biener <rguenther@suse.de>
7539
7540 PR testsuite/90607
7541 * tree-loop-distribution.c (struct partition): Add location
7542 member.
7543 (partition_alloc): Initialize all fields.
7544 (generate_memset_builtin): Use the location recorded in the
7545 partition for the generated call.
7546 (generate_memcpy_builtin): Likewise.
7547 (classify_partition): Record the location of a single store
7548 as location for the partition.
7549
7550 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
7551
7552 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
7553 for lo-part.
7554
7555 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
7556
7557 PR target/90588
7558 * common/config/aarch64/aarch64-common.c
7559 (aarch64_rewrite_selected_cpu): Change local temporary variable
7560 type from unsigned long to uint64_t.
7561 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
7562 aarch64_get_extension_string_for_isa_flags): Change declaration to
7563 match new definition by replacing unsigned long with uint64_t.
7564
7565 2019-05-24 Jakub Jelinek <jakub@redhat.com>
7566
7567 PR target/90568
7568 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
7569 gen_attr_type just once instead of 4-7 times. Formatting fixes.
7570 Handle stack_protect_test_<mode> codegen similarly to corresponding
7571 sub instruction.
7572
7573 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
7574
7575 * config/i386/darwin.h: Reject -mfentry*.
7576 * doc/sourcebuild.texi: Document mfentry target support.
7577
7578 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
7579
7580 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
7581 Rename to rs6000_global_entry_point_prologue_needed_p. Return
7582 false for PC-relative functions.
7583 (rs6000_output_function_prologue): Change called function name to
7584 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
7585 name,1" for PC-relative functions.
7586 (rs6000_elf_declare_function_name): Change called function name to
7587 rs6000_global_entry_point_prologue_needed_p.
7588
7589 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
7590
7591 PR target/90552
7592 * config/i386/i386.c (gen_rtx_cost):
7593 Use ix86_tune_cost instead of ix86_cost.
7594
7595 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
7596 Michael Meissner <meissner@linux.ibm.com>
7597 Segher Boessenkool <segher@kernel.crashing.org>
7598
7599 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
7600 OPTION_MASK_PCREL.
7601 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
7602 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
7603 (rs6000_fndecl_pcrel_p): Likewise.
7604 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
7605 error if -mpcrel is requested without -mcpu=future.
7606 (rs6000_opt_masks): Add entry for pcrel.
7607 (rs6000_fndecl_pcrel_p): New function.
7608 (rs6000_pcrel_p): Likewise.
7609 * config/rs6000/rs6000.opt (mpcrel): New option.
7610 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
7611
7612 2019-05-23 Jan Hubicka <jh@suse.cz>
7613 Martin Liska <mliska@suse.cz>
7614
7615 PR tree-optimization/90576
7616 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
7617 poly_int_tree_p.
7618 (aliasing_component_refs_p): Fix three way size compare conditional;
7619 give up earlier in case we can not decide on equivalence.
7620
7621 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
7622 Michael Meissner <meissner@linux.ibm.com>
7623 Segher Boessenkool <segher@kernel.crashing.org>
7624
7625 * config.gcc: Add future cpu.
7626 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
7627 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
7628 #define.
7629 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
7630 (RS6000_CPU): New instantiation for future cpu.
7631 * config/rs6000/rs6000-opts.h (enum processor_type): Add
7632 PROCESSOR_FUTURE.
7633 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
7634 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
7635 * config/rs6000/rs6000-tables.opt: Regenerate.
7636 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
7637 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
7638 (rs6000_machine_from_flags): Handle future cpu.
7639 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
7640 PROCESSOR_POWER9 for now.
7641 (rs6000_adjust_cost): Likewise.
7642 (rs6000_issue_rate): Likewise.
7643 (rs6000_register_move_cost): Likewise.
7644 (rs6000_opt_masks): Add entry for future.
7645 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
7646 (MASK_FUTURE): New #define.
7647 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
7648 * config/rs6000/rs6000.opt (mfuture): New target option.
7649 * doc/invoke.texi (mcpu): Add future cpu.
7650
7651 2019-05-23 Martin Liska <mliska@suse.cz>
7652
7653 PR c++/90587
7654 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
7655 operation points to a temporary (pointed via tree_to_wide_ref)
7656 that is out of scope after the &.
7657
7658 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
7659
7660 PR c++/90592
7661 * doc/extend.texi (Function Names): Add missing word.
7662
7663 2019-05-23 Richard Biener <rguenther@suse.de>
7664
7665 PR tree-optimization/88440
7666 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
7667 at -O[2s]+.
7668 * tree-loop-distribution.c (generate_memset_builtin): Fold the
7669 generated call.
7670 (generate_memcpy_builtin): Likewise.
7671 (distribute_loop): Pass in whether to only distribute patterns.
7672 (prepare_perfect_loop_nest): Also allow size optimization.
7673 (pass_loop_distribution::execute): When optimizing a loop
7674 nest for size allow pattern replacement.
7675
7676 2019-05-23 Jakub Jelinek <jakub@redhat.com>
7677
7678 PR target/90568
7679 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
7680 of xor.
7681
7682 2019-05-23 Martin Liska <mliska@suse.cz>
7683
7684 PR sanitizer/90570
7685 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
7686 expression similarly to gimplify_decl_expr.
7687
7688 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7689
7690 * cse.c (cse_dump_path): s/dump_file/f.
7691
7692 2019-05-22 David Malcolm <dmalcolm@redhat.com>
7693
7694 PR c++/90462
7695 * diagnostic-format-json.cc: Include "selftest.h".
7696 (json_from_expanded_location): Only add "file" key for non-NULL
7697 file strings.
7698 (json_from_location_range): Don't add "start" and "finish"
7699 children if they are UNKNOWN_LOCATION.
7700 (selftest::test_unknown_location): New selftest.
7701 (selftest::test_bad_endpoints): New selftest.
7702 (selftest::diagnostic_format_json_cc_tests): New function.
7703 * json.cc (json::object::get): New function.
7704 (selftest::test_object_get): New selftest.
7705 (selftest::json_cc_tests): Call it.
7706 * json.h (json::object::get): New decl.
7707 * selftest-run-tests.c (selftest::run_tests): Call
7708 selftest::diagnostic_format_json_cc_tests.
7709 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
7710 decl.
7711
7712 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
7713 Andrew Stubbs <amd@codesourcery.com>
7714
7715 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
7716 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
7717 (kernel): Rename to...
7718 (main_kernel): ... this.
7719 (load_image): Load _init_array and _fini_array kernels.
7720 (run): Add argument for kernel to run.
7721 (main): Run init_array_kernel before main_kernel, and
7722 fini_array_kernel after.
7723 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
7724 amdgpu_hsa_kernel attribute on functions.
7725 (gcn_disable_constructors): Delete.
7726 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
7727 * config/gcn/crt0.c (size_t): Define.
7728 (_init_array, _fini_array): New.
7729 (__preinit_array_start, __preinit_array_end,
7730 __init_array_start, __init_array_end,
7731 __fini_array_start, __fini_array_end): Declare weak references.
7732
7733 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
7734
7735 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
7736
7737 2019-05-22 Jason Merrill <jason@redhat.com>
7738
7739 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
7740
7741 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
7742
7743 PR target/88483
7744 * config/i386/i386-options.c (ix86_init_machine_status): Set
7745 stack_frame_required to true.
7746 * config/i386/i386.c (ix86_get_frame_size): New function.
7747 (ix86_frame_pointer_required): Replace get_frame_size with
7748 ix86_get_frame_size.
7749 (ix86_compute_frame_layout): Likewise.
7750 (ix86_find_max_used_stack_alignment): Changed to void. Set
7751 stack_frame_required.
7752 (ix86_finalize_stack_frame_flags): Always call
7753 ix86_find_max_used_stack_alignment. Replace get_frame_size with
7754 ix86_get_frame_size.
7755 * config/i386/i386.h (machine_function): Add stack_frame_required.
7756
7757 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
7758
7759 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
7760
7761 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
7762
7763 * common/config/aarch64/aarch64-common.c
7764 (struct aarch64_option_extension, struct processor_name_to_arch,
7765 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
7766 aarch64_contains_opt,
7767 aarch64_get_extension_string_for_isa_flags): Change type of
7768 variables storing flags to uint64_t.
7769 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
7770 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
7771 * config/aarch64/aarch64.c (struct processor,
7772 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
7773 aarch64_validate_march, aarch64_override_options,
7774 aarch64_option_print, aarch64_handle_attr_isa_flags,
7775 aarch64_declare_function_name, aarch64_start_file): Make flag
7776 variables uint64_t.
7777 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
7778 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
7779 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
7780 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
7781 * config/aarch64/driver-aarch64.c
7782 (struct aarch64_arch_extension, struct aarch64_core_data,
7783 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
7784 flag variables uint64_t.
7785 * doc/invoke.texi: Add documentation for new arguments.
7786
7787 2019-05-22 Richard Biener <rguenther@suse.de>
7788
7789 * alias.c (ao_ref_from_mem): Move stack-slot sharing
7790 rewrite ...
7791 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
7792
7793 2019-05-22 Martin Liska <mliska@suse.cz>
7794
7795 PR lto/90500
7796 * doc/extend.texi: Document the change.
7797
7798 2019-05-22 Richard Biener <rguenther@suse.de>
7799
7800 PR tree-optimization/90450
7801 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
7802 (mem_ref_hasher::equal): Check it.
7803 (mem_ref_alloc): Initialize it.
7804 (gather_mem_refs_stmt): Set it.
7805
7806 2019-05-22 Richard Biener <rguenther@suse.de>
7807
7808 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
7809 Add ABS_EXPR.
7810 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
7811 as ABSU_EXPR.
7812
7813 2019-05-22 Alan Modra <amodra@gmail.com>
7814
7815 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
7816 (ASM_CPU_SPEC): Conditionally add -many.
7817 * config/rs6000/rs6000.c (rs6000_machine): New static var.
7818 (rs6000_machine_from_flags, emit_asm_machine): New functions..
7819 (rs6000_file_start): ..extracted from here, and modified to
7820 test all ISA bits.
7821 (rs6000_output_function_prologue): Emit .machine as necessary.
7822 * testsuite/gcc.target/powerpc/ppc32-abi-dfp-1.c: Don't use
7823 power mnemonics.
7824 * testsuite/gcc.dg/vect/O3-pr70130.c: Disable default options
7825 added by check_vect_support_and_set_flags.
7826 * testsuite/gcc.dg/vect/pr48765.c: Likewise.
7827 * testsuite/gfortran.dg/vect/pr45714-b.f: Likewise.
7828
7829 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
7830
7831 PR middle-end/90553
7832 * ira-lives.c (process_bb_node_lives): Consider defs
7833 for a call insn to be die before the call, not after.
7834
7835 * function.c (assign_parm_setup_block): Raise alignment of
7836 stacked parameter only for STRICT_ALIGNMENT targets.
7837
7838 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
7839
7840 * config/rs6000/constraints.md (define_register_constraint "wz"):
7841 Delete.
7842 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
7843 RS6000_CONSTRAINT_wz.
7844 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
7845 (rs6000_init_hard_regno_mode_ok): Adjust.
7846 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
7847 * doc/md.texi (Machine Constraints): Adjust.
7848
7849 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
7850
7851 * config/rs6000/constraints.md (define_register_constraint "wl"):
7852 Delete.
7853 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
7854 RS6000_CONSTRAINT_wl.
7855 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
7856 (rs6000_init_hard_regno_mode_ok): Adjust.
7857 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
7858 * doc/md.texi (Machine Constraints): Adjust.
7859
7860 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
7861
7862 * config/rs6000/constraints.md (define_register_constraint "wm"):
7863 Delete.
7864 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
7865 RS6000_CONSTRAINT_wm.
7866 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
7867 (rs6000_init_hard_regno_mode_ok): Adjust.
7868 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
7869 * doc/md.texi (Machine Constraints): Adjust.
7870
7871 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
7872
7873 * config/rs6000/constraints.md (define_register_constraint "wk"):
7874 Delete.
7875 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
7876 RS6000_CONSTRAINT_wk.
7877 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
7878 (rs6000_init_hard_regno_mode_ok): Adjust.
7879 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
7880 * doc/md.texi (Machine Constraints): Adjust.
7881
7882 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
7883
7884 * config/rs6000/constraints.md (define_register_constraint "wj"):
7885 Delete.
7886 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
7887 RS6000_CONSTRAINT_wj.
7888 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
7889 (rs6000_init_hard_regno_mode_ok): Adjust.
7890 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
7891 (VS_64dm): Delete.
7892 * config/rs6000/vsx.md: Ditto.
7893 * doc/md.texi (Machine Constraints): Adjust.
7894
7895 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
7896
7897 * config/rs6000/constraints.md (define_register_constraint "wh"):
7898 Delete.
7899 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
7900 RS6000_CONSTRAINT_wh.
7901 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
7902 (rs6000_init_hard_regno_mode_ok): Adjust.
7903 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
7904 * doc/md.texi (Machine Constraints): Adjust.
7905
7906 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
7907
7908 PR target/90547
7909 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
7910 Avoid calling gen_lowpart with CONST operand.
7911
7912 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
7913
7914 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
7915 field template_last_to_copy.
7916 (ssa_create_duplicates): Set it, and use it. Attempt to
7917 preserve more debug stmts.
7918
7919 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
7920
7921 * config/i386/sse.md (VF1_AVX2): New mode iterator.
7922 (signbit<mode>2): New expander
7923
7924 2019-05-21 James Clarke <jrtc27@jrtc27.com>
7925
7926 PR bootstrap/87338
7927 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
7928 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
7929
7930 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
7931
7932 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
7933 %ebx and %ecx bafore calling cpuid with leaf 1 or
7934 non-constant leaf argument.
7935
7936 2019-05-21 Alan Modra <amodra@gmail.com>
7937
7938 PR target/90545
7939 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
7940 power9 direct move cost.
7941 * testsuite/gcc.target/powerpc/fold-vec-splats-floatdouble.c:
7942 Correct comments and rename functions to suit parameters.
7943
7944 2019-05-21 Richard Biener <rguenther@suse.de>
7945
7946 PR middle-end/90510
7947 * fold-const.c (fold_read_from_vector): New function.
7948 * fold-const.h (fold_read_from_vector): Declare.
7949 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
7950 single-element insert permutations. Canonicalize selector
7951 further and fix issue with last commit.
7952
7953 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
7954
7955 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
7956 parameter with default value false to declaration.
7957 (split_edges_for_insertion): New inline function. Wrapper for
7958 split_critical_edges with for_edge_insertion_p = true.
7959 * tree-cfg.c (split_critical_edges): Don't split non-critical
7960 edges if for_edge_insertion_p is false. Fix whitespace.
7961 * tree-ssa-pre.c (pass_pre::execute): Call
7962 split_edges_for_insertion instead of split_critical_edges.
7963 * gcc/tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
7964 * gcc/tree-ssa-sink.c (pass_sink_code::execute): Ditto.
7965 (pass_data_sink_code): Update function name in the comment.
7966
7967 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
7968
7969 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
7970 around is_value_included_in that knows how to handle BIT_AND_EXPR.
7971 (is_pred_expr_subset_of): Use the new function. Handle more cases where
7972 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
7973 positives.
7974
7975 2019-05-21 Martin Liska <mliska@suse.cz>
7976
7977 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
7978 an extra newline.
7979 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
7980 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
7981 vec_lvsr.
7982 * config/rs6000/rs6000.c (rs6000_option_override_internal):
7983 Quote a C type.
7984 (rs6000_function_arg): Likewise.
7985 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
7986 (rs6000_expand_ternop_builtin): Use interval syntax.
7987 (get_element_number): Likewise.
7988 (altivec_expand_builtin): Likewise.
7989 (rs6000_get_function_versions_dispatcher): Quote target_clones.
7990
7991 2019-05-20 Jakub Jelinek <jakub@redhat.com>
7992
7993 PR c++/59813
7994 PR target/90418
7995 * function.h (struct function): Add calls_eh_return member.
7996 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
7997 gimplifying __builtin_eh_return call.
7998 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
7999 to cfun.
8000 (expand_call_inline): Or in src_cfun->calls_eh_return into
8001 dst_cfun->calls_eh_return.
8002 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
8003 cfun->calls_eh_return.
8004 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
8005 * lto-streamer-out.c (output_struct_function_base): Write
8006 calls_eh_return.
8007
8008 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
8009
8010 PR rtl-optimization/43147
8011 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
8012 IX86_BUILTIN_SHUFPD.
8013
8014 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
8015
8016 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
8017 (refs_may_alias_p_1): ... here; update stats.
8018 (refs_may_alias_p): Do not update stats here.
8019
8020 2019-05-20 Richard Biener <rguenther@suse.de>
8021
8022 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
8023 doesn't produce pointers.
8024 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
8025 the first operand points to.
8026
8027 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
8028
8029 * tree-ssa-alias.c (compare_sizes): New function.
8030 (sompare_type_sizes): New function
8031 (aliasing_component_refs_p): Use it.
8032 (indirect_ref_may_alias_decl_p): Likewise.
8033
8034 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8035
8036 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
8037
8038 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8039
8040 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
8041 (LIBLSAN_EARLY_SPEC): Likewise.
8042 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
8043
8044 2019-05-20 Martin Liska <mliska@suse.cz>
8045
8046 * config/i386/i386.c (ix86_libc_has_fast_function):
8047 Add ATTRIBUTE_UNUSED for the argument.
8048
8049 2019-05-20 Richard Biener <rguenther@suse.de>
8050
8051 * gimple-match-head.c: Include vec-perm-indices.h.
8052 * generic-match-head.c: Likewise.
8053 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
8054 is included.
8055 * fold-const.c (fold_vec_perm): Export.
8056 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
8057 (match.pd): ...here.
8058
8059 2019-05-20 Jakub Jelinek <jakub@redhat.com>
8060
8061 * cfgloop.h (struct loop): Add simdlen member.
8062 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
8063 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
8064 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
8065 as new argument to autovectorize_vector_sizes target hook. If
8066 loop->simdlen, pick up vector size where the vectorization factor
8067 is equal to loop->simd, and if there is none, fall back to the first
8068 successful one.
8069 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
8070 caller.
8071 * omp-low.c (omp_clause_aligned_alignment): Likewise.
8072 * omp-general.c (omp_max_vf): Likewise.
8073 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
8074 * tree-vect-slp.c (vect_slp_bb): Likewise.
8075 * target.def (autovectorize_vector_sizes): Add ALL argument and
8076 document it.
8077 * doc/tm.texi: Adjust documentation.
8078 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
8079 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
8080 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
8081 bool argument.
8082 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
8083 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
8084 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
8085 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
8086 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
8087 preferred vector size is not 512-bit or 256-bit, just put those
8088 unpreferred ones last.
8089
8090 2019-05-20 Martin Liska <mliska@suse.cz>
8091
8092 * targhooks.c (default_libc_has_fast_function): New function.
8093 * targhooks.h (default_libc_has_fast_function): Likewise.
8094
8095 2019-05-20 Martin Liska <mliska@suse.cz>
8096
8097 PR middle-end/90263
8098 * builtins.c (expand_builtin_memory_copy_args): When having a
8099 target with fast mempcpy implementation do now use memcpy.
8100 * config/i386/i386.c (ix86_libc_has_fast_function): New.
8101 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
8102 * doc/tm.texi: Likewise.
8103 * doc/tm.texi.in: Likewise.
8104 * target.def:
8105 * expr.c (emit_block_move_hints): Add 2 new arguments.
8106 * expr.h (emit_block_move_hints): Bail out when libcall
8107 to memcpy would be used.
8108
8109 2019-05-20 Martin Liska <mliska@suse.cz>
8110
8111 * profile-count.c: Add vertical spacing in order
8112 to separate functions.
8113 * profile-count.h: Likewise.
8114
8115 2019-05-20 Martin Liska <mliska@suse.cz>
8116
8117 * profile-count.h: Do not use full qualified
8118 names if possible.
8119 * profile-count.c (profile_count::to_frequency): Likewise.
8120
8121 2019-05-20 Martin Liska <mliska@suse.cz>
8122
8123 * profile-count.h (enum profile_quality): Use capital letters
8124 for enum value names. Use the adjusted names.
8125 * profile-count.c: Use the adjusted names.
8126
8127 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
8128
8129 * config/rs6000/constraints.md (define_register_constraint "wH"):
8130 Delete.
8131 (define_register_constraint "wI"): Delete.
8132 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8133 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
8134 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8135 (rs6000_init_hard_regno_mode_ok): Adjust.
8136 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
8137 resp. "d", or with "wa" as appropriate, all with "p8v".
8138 * config/rs6000/vsx.md: Ditto.
8139 * doc/md.texi (Machine Constraints): Adjust.
8140
8141 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
8142
8143 * config/rs6000/constraints.md (define_register_constraint "wy"):
8144 Delete.
8145 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8146 RS6000_CONSTRAINT_wy.
8147 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8148 (rs6000_init_hard_regno_mode_ok): Adjust.
8149 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
8150 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
8151 (define_mode_attr Fisa): New.
8152 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
8153 * doc/md.texi (Machine Constraints): Adjust.
8154
8155 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
8156
8157 * config/rs6000/constraints.md (define_register_constraint "wu"):
8158 Delete.
8159 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8160 RS6000_CONSTRAINT_wu.
8161 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8162 (rs6000_init_hard_regno_mode_ok): Adjust.
8163 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
8164 both with "p8v".
8165 (define_mode_attr Fa): Delete.
8166 * config/rs6000/vsx.md: Ditto.
8167 * doc/md.texi (Machine Constraints): Adjust.
8168
8169 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
8170
8171 * config/rs6000/constraints.md (define_register_constraint "wJ"):
8172 Delete.
8173 (define_register_constraint "wK"): Delete.
8174 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8175 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
8176 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8177 (rs6000_init_hard_regno_mode_ok): Adjust.
8178 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
8179 Replace "wK" constraint by "wH" with "p9v".
8180 * config/rs6000/vsx.md: Ditto.
8181 * doc/md.texi (Machine Constraints): Adjust.
8182
8183 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
8184
8185 * config/rs6000/constraints.md (define_register_constraint "wb"):
8186 Delete.
8187 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8188 RS6000_CONSTRAINT_wb.
8189 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8190 (rs6000_init_hard_regno_mode_ok): Adjust.
8191 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
8192 * config/rs6000/vsx.md: Ditto.
8193 * doc/md.texi (Machine Constraints): Adjust.
8194
8195 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
8196
8197 * config/rs6000/constraints.md (define_register_constraint "wo"):
8198 Delete.
8199 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8200 RS6000_CONSTRAINT_wo.
8201 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8202 (rs6000_init_hard_regno_mode_ok): Adjust.
8203 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
8204 * config/rs6000/altivec.md: Ditto.
8205 * doc/md.texi (Machine Constraints): Adjust.
8206
8207 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
8208
8209 * config/darwin-c.c (darwin_register_objc_includes): Do not
8210 prepend the sysroot when building gnu-runtime header search
8211 paths.
8212
8213 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
8214
8215 * config/darwin.c (darwin_file_end): Use switch_to_section ()
8216 instead of direct output of the asm.
8217
8218 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
8219
8220 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
8221 argument to be type bool (was int before).
8222 (rs6000_emit_epilogue): Simplify some code. Declare some variables
8223 at first use. Use type bool for some variables. Fix a theoretical
8224 eh_return bug for svr4.
8225
8226 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
8227
8228 * config/rs6000/rs6000.md (isa): New attribute.
8229 (enabled): New attribute.
8230
8231 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
8232
8233 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
8234 assemble_start_function and assemble_end_function.
8235
8236 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
8237
8238 PR middle-end/89433
8239 * omp-general.c (oacc_verify_routine_clauses): Change formal
8240 parameters. Add checking if already marked with an OpenACC
8241 'routine' directive. Adjust all users.
8242
8243 PR middle-end/89433
8244 * omp-general.c (oacc_build_routine_dims): Move some of its
8245 processing into...
8246 (oacc_verify_routine_clauses): ... this new function.
8247 * omp-general.h (oacc_verify_routine_clauses): New prototype.
8248
8249 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
8250
8251 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
8252 formating of picbase labels to match other ports.
8253
8254 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
8255
8256 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
8257 in the generated code.
8258
8259 2019-05-16 Martin Sebor <msebor@redhat.com>
8260
8261 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
8262 identifiers, keywords, operators, and types in diagnostics. Correct
8263 quoting, spelling, and sentence capitalization issues.
8264 (expand_builtin_atomic_is_lock_free): Same.
8265 (fold_builtin_next_arg): Same.
8266 * cfgexpand.c (expand_one_var): Same.
8267 (tree_conflicts_with_clobbers_p): Same.
8268 (expand_asm_stmt): Same.
8269 (verify_loop_structure): Same.
8270 * cgraphunit.c (process_function_and_variable_attributes): Same.
8271 * collect-utils.c (collect_execute): Same.
8272 * collect2.c (maybe_run_lto_and_relink): Same.
8273 (is_lto_object_file): Same.
8274 (scan_prog_file): Same.
8275 * convert.c (convert_to_real_1): Same.
8276 * dwarf2out.c (dwarf2out_begin_prologue): Same.
8277 * except.c (verify_eh_tree): Same.
8278 * gcc.c (execute): Same.
8279 (eval_spec_function): Same.
8280 (run_attempt): Same.
8281 (driver::set_up_specs): Same.
8282 (compare_debug_auxbase_opt_spec_function): Same.
8283 * gcov-tool.c (unlink_gcda_file): Same.
8284 (do_merge): Same.
8285 (do_rewrite): Same.
8286 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
8287 * gimplify.c (gimplify_asm_expr): Same.
8288 (gimplify_adjust_omp_clauses): Same.
8289 * hsa-gen.c (gen_hsa_addr_insns): Same.
8290 (gen_hsa_insns_for_load): Same.
8291 (gen_hsa_cmp_insn_from_gimple): Same.
8292 (gen_hsa_insns_for_operation_assignment): Same.
8293 (gen_get_level): Same.
8294 (gen_hsa_alloca): Same.
8295 (omp_simple_builtin::generate): Same.
8296 (gen_hsa_atomic_for_builtin): Same.
8297 (gen_hsa_insns_for_call): Same.
8298 * input.c (dump_location_info): Same.
8299 * ipa-devirt.c (compare_virtual_tables): Same.
8300 * ira.c (ira_setup_eliminable_regset): Same.
8301 * lra-assigns.c (lra_assign): Same.
8302 * lra-constraints.c (lra_constraints): Same.
8303 * lto-streamer-in.c (lto_input_mode_table): Same.
8304 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
8305 (merge_and_complain): Same.
8306 (compile_offload_image): Same.
8307 (compile_images_for_offload_targets): Same.
8308 (debug_objcopy): Same.
8309 (run_gcc): Same.
8310 (main): Same.
8311 * opts.c (print_specific_help): Same.
8312 (parse_no_sanitize_attribute): Same.
8313 (print_help): Same.
8314 (handle_param): Same.
8315 * plugin.c (add_new_plugin): Same.
8316 (parse_plugin_arg_opt): Same.
8317 (try_init_one_plugin): Same.
8318 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
8319 operators, and types in diagnostics. Correct quoting and spelling
8320 issues.
8321 * read-rtl-function.c (parse_edge_flag_token): Same.
8322 (function_reader::parse_enum_value): Same.
8323 * reg-stack.c (check_asm_stack_operands): Same.
8324 * regcprop.c (validate_value_data): Same.
8325 * sched-rgn.c (make_pass_sched_fusion): Same.
8326 * stmt.c (check_unique_operand_names): Same.
8327 * targhooks.c (default_target_option_pragma_parse): Same.
8328 * tlink.c (recompile_files): Same.
8329 * toplev.c (process_options): Same.
8330 (do_compile): Same.
8331 * trans-mem.c (diagnose_tm_1): Same.
8332 (ipa_tm_scan_irr_block): Same.
8333 (ipa_tm_diagnose_transaction): Same.
8334 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
8335 format a tree code name in a diagnostic.
8336 (verify_types_in_gimple_min_lval): Same.
8337 (verify_types_in_gimple_reference): Same.
8338 (verify_gimple_call): Same.
8339 (verify_gimple_assign_unary): Same.
8340 (verify_gimple_assign_binary): Same.
8341 (verify_gimple_assign_ternary): Same.
8342 (verify_gimple_assign_single): Same.
8343 (verify_gimple_switch): Same.
8344 (verify_gimple_label): Same.
8345 (verify_gimple_phi): Same.
8346 (verify_gimple_in_seq): Same.
8347 (verify_eh_throw_stmt_node): Same.
8348 (collect_subblocks): Same.
8349 (gimple_verify_flow_info): Same.
8350 (do_warn_unused_result): Same.
8351 * tree-inline.c (expand_call_inline): Same.
8352 * tree-into-ssa.c (update_ssa): Same.
8353 * tree.c (tree_int_cst_elt_check_failed): Same.
8354 (tree_vec_elt_check_failed): Same.
8355 (omp_clause_operand_check_failed): Same.
8356 (verify_type_variant): Same.
8357 (verify_type): Same.
8358 * value-prof.c (verify_histograms): Same.
8359 * varasm.c (assemble_start_function): Same.
8360
8361 2019-05-16 Martin Sebor <msebor@redhat.com>
8362
8363 * config/i386/i386-expand.c (get_element_number): Quote keywords
8364 and other internal names in diagnostics. Adjust other diagnostic
8365 formatting issues noted by -Wformat-diag.
8366 * config/i386/i386-features.c
8367 (ix86_mangle_function_version_assembler_name): Same.
8368 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
8369 * config/i386/i386.c (ix86_function_type_abi): Same.
8370 (ix86_function_ms_hook_prologue): Same.
8371 (classify_argument): Same.
8372 (ix86_expand_prologue): Same.
8373 (ix86_md_asm_adjust): Same.
8374 (ix86_memmodel_check): Same.
8375
8376 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
8377
8378 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
8379 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
8380 and fpxx modes.
8381
8382 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
8383
8384 PR target/90497
8385 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
8386 intrinsics without SSE/SSE2/SSSE3.
8387 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
8388 check.
8389 (*mmx_uavgv8qi3): Likewise.
8390
8391 2019-05-17 Richard Biener <rguenther@suse.de>
8392
8393 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
8394 VEC_PERM_EXPR as __VEC_PERM with -gimple.
8395
8396 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
8397
8398 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
8399 vec_sldw insn pattern.
8400
8401 2019-05-17 Richard Biener <rguenther@suse.de>
8402
8403 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
8404
8405 2019-05-17 Martin Liska <mliska@suse.cz>
8406
8407 PR driver/90496
8408 * toplev.c (output_stack_usage): With LTO and sanitizer it
8409 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
8410 has no file location.
8411
8412 2019-05-16 Jakub Jelinek <jakub@redhat.com>
8413
8414 PR c++/90484
8415 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
8416 sz0 is equal to sz1, instead return false in that case.
8417
8418 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
8419 has non-constant expression, force sctx.lane and use two
8420 argument IFN_GOMP_SIMD_LANE instead of single argument.
8421 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
8422 two argument IFN_GOMP_SIMD_LANE without lhs.
8423 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
8424 member.
8425 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
8426 Define.
8427 (LOOP_REQUIRES_VERSIONING): Or in
8428 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
8429 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
8430 simd_if_cond.
8431 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
8432 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
8433 from simd if clause if needed.
8434
8435 2019-05-16 Richard Biener <rguenther@suse.de>
8436
8437 * tree-affine.c (expr_to_aff_combination): New function split
8438 out from...
8439 (tree_to_aff_combination): ... here.
8440 (aff_combination_expand): Avoid building a GENERIC tree.
8441
8442 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
8443
8444 * cgraphunit.c (cgraph_node::expand_thunk): Remove
8445 assemble_start_function and assemble_end_function calls.
8446 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
8447 assemble_start_function and assemble_end_function.
8448 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
8449 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
8450 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
8451 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
8452 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
8453 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
8454 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
8455 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
8456 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
8457 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
8458 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
8459 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
8460 Likewise.
8461 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
8462 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
8463 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
8464 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
8465 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
8466 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
8467 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
8468 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
8469 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
8470 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
8471 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
8472 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
8473 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
8474 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
8475 Likewise.
8476 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
8477 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
8478 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
8479
8480 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
8481
8482 * tree-ssa-alias.c (alias_stats): Add
8483 aliasing_component_refs_p_may_alias and
8484 aliasing_component_refs_p_no_alias.
8485 (dump_alias_stats): Print aliasing_component_refs_p stats.
8486 (aliasing_component_refs_p): Update stats.
8487
8488 2019-05-16 Martin Liska <mliska@suse.cz>
8489
8490 PR lto/90500
8491 * multiple_target.c (expand_target_clones): Do not allow
8492 target_clones being used with a symbol that is an alias.
8493
8494 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
8495
8496 PR tree-optimization/90394
8497 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
8498 positives rather than ICE for cases where (code2 == NE_EXPR
8499 && code1 == BIT_AND_EXPR).
8500
8501 2019-05-16 Jakub Jelinek <jakub@redhat.com>
8502
8503 PR fortran/90329
8504 * tree-core.h (struct tree_decl_common): Document
8505 decl_nonshareable_flag for PARM_DECLs.
8506 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
8507 * calls.c (expand_call): Don't try tail call if caller
8508 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
8509 passed on the stack and callee needs to pass any arguments on the
8510 stack.
8511 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
8512 else if instead of series of mutually exclusive ifs. Handle
8513 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
8514 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
8515
8516 * lto-streamer.h (LTO_major_version): Bump to 9.
8517
8518 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
8519
8520 PR tree-optimization/90106
8521 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
8522 new parameter as new internal function call, also move it to new
8523 basic block.
8524 (use_internal_fn): Pass internal function call to
8525 shrink_wrap_one_built_in_call_with_conds.
8526
8527 2019-05-15 Jakub Jelinek <jakub@redhat.com>
8528
8529 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
8530 max_vf to 1.
8531 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
8532 safelen_int and set loop->dont_vectorize.
8533
8534 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8535
8536 PR target/89021
8537 * config/i386/i386-builtin.def: Enable MMX intrinsics with
8538 SSE/SSE2/SSSE3.
8539 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
8540 Likewise.
8541 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
8542 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
8543 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
8544 is defined.
8545
8546 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8547
8548 PR target/89021
8549 * config/i386/mmx.md (*vec_dupv2sf): Changed to
8550 define_insn_and_split to support SSE emulation.
8551 (*vec_extractv2sf_0): Likewise.
8552 (*vec_extractv2sf_1): Likewise.
8553 (*vec_extractv2si_0): Likewise.
8554 (*vec_extractv2si_1): Likewise.
8555 (*vec_extractv2si_zext_mem): Likewise.
8556 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
8557 (vec_extractv2sf_1 splitter): Likewise.
8558 (vec_extractv2sfsf): Likewise.
8559 (vec_setv2si): Likewise.
8560 (vec_extractv2si_1 splitter): Likewise.
8561 (vec_extractv2sisi): Likewise.
8562 (vec_setv4hi): Likewise.
8563 (vec_extractv4hihi): Likewise.
8564 (vec_setv8qi): Likewise.
8565 (vec_extractv8qiqi): Likewise.
8566 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
8567 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
8568 (vec_extractv2sisi): Likewise.
8569 (vec_extractv4hihi): Likewise.
8570 (vec_extractv8qiqi): Likewise.
8571 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
8572 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
8573 (vec_initv2sisi): Likewise.
8574 (vec_initv4hihi): Likewise.
8575 (vec_initv8qiqi): Likewise.
8576 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
8577 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
8578 (vec_setv4hi): Likewise.
8579 (vec_setv8qi): Likewise.
8580
8581 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8582
8583 PR target/89021
8584 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
8585 TARGET_MMX_WITH_SSE.
8586 (MMXMODE:*mov<mode>_internal): Likewise.
8587 (MMXMODE:movmisalign<mode>): Likewise.
8588
8589 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
8590
8591 PR target/89021
8592 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
8593 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
8594 (sse2_cvtpd2pi): Ditto.
8595 (sse2_cvttpd2pi): Ditto.
8596 (*vec_concatv2sf_sse4_1): Ditto.
8597 (*vec_concatv2sf_sse): Ditto.
8598 (*vec_concatv2si_sse4_1): Ditto.
8599 (*vec_concatv2si): Ditto.
8600 (*vec_concatv4si_0): Ditto.
8601 (*vec_concatv2di_0): Ditto.
8602
8603 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8604
8605 PR target/89021
8606 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
8607
8608 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8609
8610 PR target/89021
8611 * config/i386/sse.md (ssse3_palignrdi): Changed to
8612 define_insn_and_split to support SSE emulation.
8613
8614 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8615
8616 PR target/89021
8617 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
8618
8619 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8620
8621 PR target/89021
8622 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
8623 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
8624 SSE emulation.
8625
8626 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8627
8628 PR target/89021
8629 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
8630 or TARGET_MMX_WITH_SSE.
8631 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
8632
8633 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8634
8635 PR target/89021
8636 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
8637
8638 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8639
8640 PR target/89021
8641 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
8642 Changed to define_insn_and_split to support SSE emulation.
8643
8644 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8645
8646 PR target/89021
8647 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
8648 Changed to define_insn_and_split to support SSE emulation.
8649
8650 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8651
8652 PR target/89021
8653 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
8654 (*mmx_<emms>): This.
8655 (mmx_<emms>): New expander.
8656
8657 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8658
8659 PR target/89021
8660 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
8661 support.
8662 (*sse2_umulv1siv1di3): Add SSE2 emulation.
8663
8664 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8665
8666 PR target/89021
8667 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
8668
8669 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8670
8671 PR target/89021
8672 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
8673
8674 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8675
8676 PR target/89021
8677 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
8678 TARGET_MMX_WITH_SSE.
8679 (*mmx_uavgv4hi3): Add SSE emulation.
8680
8681 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8682
8683 PR target/89021
8684 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
8685 and TARGET_MMX_WITH_SSE.
8686 (*mmx_uavgv8qi3): Add SSE emulation.
8687
8688 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8689
8690 PR target/89021
8691 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
8692 maskmovdqu for __MMX_WITH_SSE__.
8693
8694 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8695
8696 PR target/89021
8697 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
8698 TARGET_MMX and TARGET_MMX_WITH_SSE.
8699 (*mmx_umulv4hi3_highpart): Add SSE emulation.
8700
8701 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8702
8703 PR target/89021
8704 * config/i386/mmx.md (mmx_pmovmskb): Changed to
8705 define_insn_and_split to support SSE emulation.
8706
8707 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8708
8709 PR target/89021
8710 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
8711 and TARGET_MMX_WITH_SSE.
8712 (mmx_<code>v8qi3): Likewise.
8713 (smaxmin:<code>v4hi3): New.
8714 (umaxmin:<code>v8qi3): Likewise.
8715 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
8716 (umaxmin:*mmx_<code>v8qi3): Likewise.
8717
8718 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8719
8720 PR target/89021
8721 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
8722 TARGET_MMX_WITH_SSE.
8723 (*mmx_pinsrw): Add SSE emulation.
8724
8725 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8726
8727 PR target/89021
8728 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
8729
8730 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8731
8732 PR target/89021
8733 * config/i386/sse.md (sse_cvtpi2ps): Changed to
8734 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
8735 SSE emulation.
8736
8737 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8738
8739 PR target/89021
8740 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
8741 (sse_cvttps2pi): Likewise.
8742
8743 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8744
8745 PR target/89021
8746 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
8747 TARGET_MMX_WITH_SSE.
8748 (mmx_pshufw_1): Add SSE emulation.
8749 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
8750 TARGET_MMX_WITH_SSE to support SSE emulation.
8751
8752 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8753
8754 PR target/89021
8755 * config/i386/constraints.md (Yw): New constraint.
8756 * config/i386/mmx.md (*vec_dupv2si): Changed to
8757 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
8758 support SSE emulation.
8759
8760 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8761
8762 PR target/89021
8763 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
8764 TARGET_MMX_WITH_SSE.
8765 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
8766 support.
8767 (mmx_gt<mode>3): Likewise.
8768
8769 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8770
8771 PR target/89021
8772 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
8773 TARGET_MMX_WITH_SSE. Add SSE support.
8774
8775 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8776
8777 PR target/89021
8778 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
8779 TARGET_MMX_WITH_SSE.
8780 (any_logic:<code><mode>3): New.
8781 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
8782 Add SSE support.
8783
8784 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8785
8786 PR target/89021
8787 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
8788 TARGET_MMX_WITH_SSE. Add SSE emulation.
8789 (mmx_<shift_insn><mode>3): Likewise.
8790 (ashr<mode>3): New.
8791 (<shift_insn><mode>3): Likewise.
8792
8793 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8794
8795 PR target/89021
8796 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
8797 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
8798
8799 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8800
8801 PR target/89021
8802 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
8803 TARGET_MMX_WITH_SSE.
8804 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
8805 SSE support.
8806
8807 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8808
8809 PR target/89021
8810 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
8811 TARGET_MMX_WITH_SSE.
8812 (mulv4hi3): New.
8813 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
8814 support.
8815
8816 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8817
8818 PR target/89021
8819 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
8820 (plusminus:mmx_<plusminus_insn><mode>3): Check
8821 TARGET_MMX_WITH_SSE.
8822 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
8823 (<plusminus_insn><mode>3): New.
8824 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
8825 (*mmx_<plusminus_insn><mode>3): Likewise.
8826
8827 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8828
8829 PR target/89021
8830 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
8831 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
8832 prototype.
8833 * config/i386/mmx.m (mmx_punpckhbw): Changed to
8834 define_insn_and_split to support SSE emulation.
8835 (mmx_punpcklbw): Likewise.
8836 (mmx_punpckhwd): Likewise.
8837 (mmx_punpcklwd): Likewise.
8838 (mmx_punpckhdq): Likewise.
8839 (mmx_punpckldq): Likewise.
8840
8841 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8842 Uros Bizjak <ubizjak@gmail.com>
8843
8844 PR target/89021
8845 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
8846 New function.
8847 (ix86_split_mmx_pack): Likewise.
8848 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
8849 New prototype.
8850 (ix86_split_mmx_pack): Likewise.
8851 * config/i386/i386.md (mmx_isa): New.
8852 (enabled): Also check mmx_isa.
8853 * config/i386/mmx.md (any_s_truncate): New code iterator.
8854 (s_trunsuffix): New code attr.
8855 (mmx_packsswb): Removed.
8856 (mmx_packssdw): Likewise.
8857 (mmx_packuswb): Likewise.
8858 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
8859 MMX packsswb/packuswb with SSE2.
8860 (mmx_packssdw): Likewise.
8861 * config/i386/predicates.md (register_mmxmem_operand): New.
8862
8863 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8864
8865 PR target/89021
8866 * config/i386/i386-c.c (ix86_target_macros_internal): Define
8867 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
8868 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
8869 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
8870 (ix86_vector_mode_supported_p): Likewise.
8871 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
8872
8873 2019-05-15 Martin Liska <mliska@suse.cz>
8874
8875 PR middle-end/90478
8876 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
8877 Check for overflow.
8878
8879 2019-05-15 Richard Biener <rguenther@suse.de>
8880
8881 * tree-into-ssa.c (pass_build_ssa::execute): Run
8882 update_address_taken before going into SSA.
8883
8884 2019-05-15 Richard Biener <rguenther@suse.de>
8885
8886 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
8887 as __BIT_FIELD_REF with type with -gimple.
8888
8889 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
8890
8891 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
8892 semantically equivalent branches (left over after prior refactorings).
8893
8894 2019-05-15 Richard Biener <rguenther@suse.de>
8895
8896 PR tree-optimization/88828
8897 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
8898 bogus check.
8899
8900 2019-05-14 Richard Biener <rguenther@suse.de>
8901
8902 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
8903 as __VIEW_CONVERT with -gimple.
8904
8905 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
8906
8907 PR target/82920
8908 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
8909 Darwin.
8910
8911 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
8912
8913 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
8914 define_split to become a define_insn_and_split.
8915
8916 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
8917
8918 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
8919 arguments.
8920 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
8921 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
8922 (sibcall_epilogue): Adjust.
8923 (epilogue): Adjust.
8924
8925 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8926
8927 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
8928 to unsupported ones.
8929 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
8930 * config.host: Likewise.
8931 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
8932 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
8933 __svr4__]: Remove "brand" fallback.
8934 [!KSTAT_DATA_STRING]: Remove.
8935 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
8936 to *-*-solaris2*.
8937 (comdat_group): Likewise.
8938 (set_have_as_tls): Likewise.
8939 (gcc_cv_target_dl_iterate_phdr): Likewise.
8940 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
8941 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
8942 * configure: Regenerate.
8943 * doc/install.texi: Simplify Solaris target triplets.
8944 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
8945 (Specific, *-*-solaris2*): Document Solaris 10 removal.
8946 Remove Solaris 10 references.
8947 Remove obsolete Solaris bug reference.
8948 (Specific, sparc-sun-solaris2.10): Remove.
8949
8950 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
8951
8952 * config/i386/i386.md (any_div): New code iterator.
8953 (paired_mod): New code attribute.
8954 (sgnprefix): Handle DIV and UDIV RTXes.
8955 (u): Ditto.
8956 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
8957 and udivmod<mode>4 patterns using any_div code iterator.
8958 (divmod splitters): Macroize splitters using any_div code iterator.
8959 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
8960 (*udivmodsi4_pow2_zext_2): Ditto.
8961 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
8962 and *udivmod<mode>4_noext patterns using any_div code iterator.
8963 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
8964 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
8965 patterns using any_div code iterator.
8966 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
8967 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
8968 patterns using any_div code iterator.
8969 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
8970 udivmodhiqi3 patterns using any_extend code iterator.
8971
8972 2019-05-14 Richard Biener <rguenther@suse.de>
8973 H.J. Lu <hongjiu.lu@intel.com>
8974
8975 PR tree-optimization/88828
8976 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
8977 permuting in a single non-constant element not extracted
8978 from a vector.
8979
8980 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
8981
8982 * internal-fn.def (SIGNBIT): New.
8983 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
8984 defined.
8985 (signbitv4sf2): Likewise.
8986
8987 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
8988
8989 PR target/90357
8990 * config/mips/mips.c (mips_split_move): Skip forward SRC into
8991 next insn when the SRC reg is dead.
8992
8993 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
8994
8995 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
8996 (alloc_cand_and_find_basis): Ditto.
8997 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
8998 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
8999 (create_add_imm_cand, slsr_process_cast): Ditto.
9000 (slsr_process_copy, replace_mult_candidate): Ditto.
9001 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
9002 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
9003 (pass_strength_reduction::execute): Init the first NULL element.
9004
9005 2019-05-13 Nathan Sidwell <nathan@acm.org>
9006
9007 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
9008 (run_attempt): Reformat line break.
9009
9010 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
9011
9012 PR target/90418
9013 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
9014 data registers in sibcall epilogues.
9015 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
9016
9017 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
9018
9019 PR target/89221
9020 * configure.ac (--enable-frame-pointer):
9021 Disable by default for cygwin and mingw.
9022 * configure: Regenerate.
9023
9024 2019-05-13 Nathan Sidwell <nathan@acm.org>
9025
9026 * dwarf2out.c (breakout_comdat_types): Move comment to correct
9027 piece of code.
9028 (const_ok_for_output_1): Balance parens around #if/#else/#endif
9029 (gen_member_die): Move abstract origin check earlier. Only VARs
9030 can be static_inline_p. Simplify splicing control flow.
9031
9032 2019-05-13 Richard Biener <rguenther@suse.de>
9033
9034 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
9035 VIEW_CONVERT_EXPR.
9036 (vect_build_slp_tree_1): Likewise.
9037
9038 2019-05-13 Richard Biener <rguenther@suse.de>
9039
9040 PR tree-optimization/90402
9041 * tree-if-conv.c (tree_if_conversion): Value number only
9042 the loop body by making the latch an exit of the region
9043 as well.
9044 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
9045 processing PHIs.
9046 (do_rpo_vn): Deal with multiple edges into the entry block
9047 that are not backedges inside the region by skipping PHIs
9048 of the entry block.
9049
9050 2019-05-13 Richard Biener <rguenther@suse.de>
9051
9052 PR tree-optimization/90316
9053 * tree-ssa-pre.c (insert_aux): Fold into ...
9054 (insert): ... this function. Use a RPO walk to reduce the
9055 number of required iterations.
9056
9057 2019-05-13 Martin Liska <mliska@suse.cz>
9058
9059 PR tree-optimization/90416
9060 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
9061 string instead of passing the second part as va_arg argument.
9062
9063 2019-05-13 Martin Liska <mliska@suse.cz>
9064
9065 PR gcov-profile/90380
9066 * gcov.c (handle_cycle): Do not support zero cycle count,
9067 it should not be possible.
9068 (path_contains_zero_cycle_arc): New function.
9069 (circuit): Ignore zero cycle arc counts.
9070
9071 2019-05-13 Martin Liska <mliska@suse.cz>
9072
9073 PR gcov-profile/90380
9074 * gcov.c (enum loop_type): Remove the enum and
9075 the operator.
9076 (handle_cycle): Assert that we should not reach
9077 a negative count.
9078 (circuit): Use loop_found instead of a tri-state loop_type.
9079 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
9080 happen.
9081
9082 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
9083
9084 PR target/82920
9085 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
9086 (ix86_output_indirect_branch_via_reg): Use output mechanism
9087 accounting for __USER_LABEL_PREFIX__.
9088 (ix86_output_indirect_branch_via_push): Likewise.
9089 (ix86_output_function_return): Likewise.
9090 (ix86_output_indirect_function_return): Likewise.
9091
9092 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
9093
9094 * doc/md.texi: Document use of code attributes in rtx patterns.
9095 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
9096 * read-rtl.c (find_code): Split out search loops into...
9097 (maybe_find_code): ...this new function.
9098 (check_code_iterator): Make the error message more informative.
9099 (check_code_attribute): New function.
9100 (rtx_reader::rtx_alloc_for_name): Likewise.
9101 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
9102 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
9103 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
9104 <max_opp> directly as an rtx code instead of via a match_operator.
9105 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
9106 (<su>abd<mode>_3): Update accordingly.
9107
9108 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
9109
9110 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
9111 is given, print the state of the EH "save world" computation for
9112 Darwin.
9113
9114 2019-05-11 Jakub Jelinek <jakub@redhat.com>
9115
9116 PR c++/59813
9117 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
9118 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
9119
9120 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
9121
9122 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
9123 Use pinsrd for TARGET_SSE4_1.
9124 * config/i386/sse.md (movdi_to_sse): Ditto.
9125
9126 2019-05-10 Richard Biener <rguenther@suse.de>
9127
9128 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
9129 (do_rpo_vn): Initialize next_value_id.
9130
9131 2019-05-10 Martin Liska <mliska@suse.cz>
9132
9133 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
9134 Fix plural form.
9135
9136 2019-05-10 Jakub Jelinek <jakub@redhat.com>
9137
9138 PR tree-optimization/90385
9139 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
9140 arguments of the exit phis.
9141
9142 PR c++/90383
9143 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
9144 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
9145 id->do_not_fold.
9146 (copy_tree_body_r): Likewise.
9147 (copy_fn): Set id.do_not_fold to true.
9148
9149 2019-05-10 Martin Liska <mliska@suse.cz>
9150
9151 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
9152 Reapply changes from r269790.
9153
9154 2019-05-10 Martin Liska <mliska@suse.cz>
9155
9156 PR middle-end/90340
9157 * doc/invoke.texi: New params.
9158 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
9159 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
9160 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
9161 Use it.
9162 * tree-switch-conversion.h (struct jump_table_cluster):
9163 Likewise.
9164
9165 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
9166
9167 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
9168
9169 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
9170
9171 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
9172
9173 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
9174
9175 PR rtl-optimization/88879
9176 * sel-sched.c (sel_target_adjust_priority): Remove assert.
9177
9178 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
9179
9180 PR target/90405
9181 * config/arm/arm.c (callee_saved_reg_p): Move before
9182 thumb_find_work_register.
9183 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
9184 thumb_find_work_register. Only call df_get_live_out once.
9185 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
9186 (thumb_find_work_register): Use
9187 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
9188 algorithms to locate a spare call clobbered reg.
9189
9190 2019-05-09 Martin Liska <mliska@suse.cz>
9191
9192 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
9193 and MAX_EXPR in GIMPLE FE format.
9194
9195 2019-05-09 Martin Liska <mliska@suse.cz>
9196
9197 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
9198 * gimple-pretty-print.c (dump_gimple_bb_header):
9199 Dump BB count.
9200 (pp_cfg_jump): Dump edge probability.
9201 * profile-count.c (profile_quality_as_string): Simplify
9202 with a static array.
9203 (parse_profile_quality): New function.
9204 (profile_count::dump): Simplify with a static array.
9205 (profile_count::from_gcov_type): Add new argument.
9206 * profile-count.h (parse_profile_quality): Likewise.
9207 * predict.h (set_hot_bb_threshold): New.
9208 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
9209 New param.
9210 * predict.c (get_hot_bb_threshold): Set from the new param.
9211 (set_hot_bb_threshold): New.
9212
9213 2019-05-09 Richard Biener <rguenther@suse.de>
9214
9215 PR tree-optimization/90395
9216 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
9217 rewrite vector stores that throw internally.
9218
9219 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
9220
9221 * cif-code.def (CHKP): Remove.
9222
9223 PR target/89221
9224 * configure.ac (--enable-frame-pointer): Disable by default for
9225 GNU systems.
9226 * configure: Regenerate.
9227
9228 2019-05-09 Alan Modra <amodra@gmail.com>
9229
9230 PR target/89271
9231 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
9232 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
9233 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
9234 cost for general <-> vsx when direct moves are available.
9235 Cost union classes at minimal cost for any reg in the class.
9236 Correct calculation for moves between vsx, float, and altivec.
9237 Don't return a low cost for moves between special regs. Don't
9238 use hard coded register numbers.
9239 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
9240 (rs6000_ira_change_pseudo_allocno_class): New function.
9241 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
9242 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
9243 alternatives.
9244 (movsi_internal1): Don't disparage vector alternatives.
9245 (mov<mode>_internal): Likewise, excepting alternative that
9246 will be split.
9247 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
9248 we <- b alternative.
9249
9250 2019-05-08 Jakub Jelinek <jakub@redhat.com>
9251
9252 PR c++/59813
9253 PR tree-optimization/89060
9254 * tree-ssa-live.h (live_vars_map): New typedef.
9255 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
9256 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
9257 (struct compute_live_vars_data): New type.
9258 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
9259 live_vars_at_stmt, destroy_live_vars): New functions.
9260 * tree-tailcall.c: Include tree-ssa-live.h.
9261 (live_vars, live_vars_vec): New global variables.
9262 (find_tail_calls): Perform variable life analysis before punting.
9263 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
9264 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
9265 member.
9266 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
9267 Perform variable life analysis to select variables that really need
9268 clobbers added.
9269 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
9270 instead set id->eh_landing_pad_dest and assert it is the same.
9271 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
9272
9273 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
9274 Richard Earnshaw <rearnsha@arm.com>
9275
9276 PR target/88167
9277 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
9278 function.
9279 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
9280 (thumb1_compute_save_core_reg_mask): Don't force a spare work
9281 register if both the epilogue and prologue can use call-clobbered
9282 regs.
9283 (thumb1_unexpanded_epilogue): Use
9284 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
9285 picking temporaries for restoring high regs to match that of the
9286 prologue where possible.
9287 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
9288 the list of work registers. Detect if the return address is still live
9289 at the end of the prologue and avoid using it for a work register if so.
9290 If the return address is not live, add LR to the list of pushable regs
9291 after the first pass.
9292
9293 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
9294
9295 PR tree-optimization/90078
9296 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
9297 (INFTY): Increase the value for infinite cost.
9298 (struct comp_cost): Promote type of members to int64_t.
9299 (infinite_cost): Don't set complexity in initialization.
9300 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
9301 overflows to infinite_cost.
9302 (adjust_setup_cost): Promote type of parameter and cost computation
9303 to int64_t.
9304 (struct ainc_cost_data, struct iv_ca): Promote type of member to
9305 int64_t.
9306 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
9307 cost computation to int64_t.
9308 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
9309 int64_t's format specifier in dump.
9310
9311 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
9312
9313 PR tree-optimization/90240
9314 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
9315 with respect to scaling factor pre-computed for each basic block.
9316 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
9317 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
9318 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
9319 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
9320 live range for array of loop's basic blocks. Cleanup aux field of
9321 loop's basic blocks.
9322
9323 2019-05-08 Jakub Jelinek <jakub@redhat.com>
9324
9325 PR tree-optimization/90356
9326 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
9327
9328 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
9329
9330 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
9331 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
9332 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
9333 (ix86_handle_option): Handle -mavx512bf16.
9334 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
9335 to extra_headers.
9336 * config/i386/avx512bf16vlintrin.h: New.
9337 * config/i386/avx512bf16intrin.h: New.
9338 * config/i386/cpuid.h (bit_AVX512BF16): New.
9339 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
9340 * config/i386/i386-builtin-types.def: Add new types.
9341 * config/i386/i386-builtin.def: Add new builtins.
9342 * config/i386/i386-c.c (ix86_target_macros_internal): Define
9343 __AVX512BF16__.
9344 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
9345 (ix86_option_override_internal): Handle BF16.
9346 (ix86_valid_target_attribute_inner_p): Ditto.
9347 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
9348 * config/i386/i386-builtin.c (enum processor_features): Add
9349 F_AVX512BF16.
9350 (static const _isa_names_table isa_names_table): Ditto.
9351 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
9352 (PTA_AVX512BF16): Ditto.
9353 * config/i386/i386.opt: Add -mavx512bf16.
9354 * config/i386/immintrin.h: Include avx512bf16intrin.h
9355 and avx512bf16vlintrin.h.
9356 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
9357 avx512f_cvtneps2bf16_<mode><mask_name>,
9358 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
9359 * config/i386/subst.md (mask_half): Add new subst.
9360 * doc/invoke.texi: Document -mavx512bf16.
9361
9362 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
9363
9364 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
9365 Delete declaration.
9366 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
9367 (rs6000_debug_legitimize_reload_address): Delete.
9368 (rs6000_legitimize_reload_address_ptr): Delete.
9369 (rs6000_option_override_internal): Adjust.
9370 (mem_operand_gpr): Adjust comment.
9371 (legitimate_lo_sum_address_p): Ditto.
9372 (rs6000_legitimize_reload_address): Delete.
9373 (rs6000_debug_legitimize_reload_address): Delete.
9374 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
9375
9376 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
9377
9378 PR target/89765
9379 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
9380 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
9381 to compute vector element selector for both constant and variable
9382 operands.
9383
9384 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
9385
9386 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
9387 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
9388 ashrdi3_cvt using SWI48 mode iterator.
9389
9390 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
9391
9392 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
9393 (aarch64_<su>abd<mode>_3): Likewise.
9394 (*aarch64_<su>abd<mode>_3): New define_insn.
9395 (<sur>sad<vsi2qi>): New define_expand.
9396 * config/aarch64/iterators.md: Added MAX_OPP attribute.
9397 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
9398 (build_vect_cond_expr): Likewise.
9399
9400 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
9401
9402 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
9403 clobbers outside of accessible_reg_set.
9404 * config/i386/i386.c (ix86_conditional_register_usage):
9405 Disable register sets by clearing corresponding bits in
9406 accessible_reg_set. Do not set corresponding bits in fixed_regs,
9407 call_used_regs and don't clear corresponding reg_names array members.
9408
9409 2019-05-07 Richard Biener <rguenther@suse.de>
9410
9411 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
9412 not specified still compute a comp_vectype for invariant
9413 compares.
9414
9415 2019-05-07 Richard Biener <rguenther@suse.de>
9416
9417 PR tree-optimization/90316
9418 * tree-ssa-pre.c (translate_vuse_through_block): When
9419 same_valid is NULL do not bother to search for a virtual
9420 PHI continuation.
9421 (phi_translate_1): When operands changed we cannot keep
9422 the same value-number so do not bother to ask whether
9423 that's possible from translate_vuse_through_block.
9424
9425 2019-05-07 Martin Liska <mliska@suse.cz>
9426
9427 * bitmap.c (bitmap_register): Come up with
9428 alloc_descriptor_max_uid and assign it for
9429 a new bitmap.
9430 (register_overhead): Use get_descriptor as
9431 a descriptor.
9432 (release_overhead): New.
9433 (bitmap_elem_to_freelist): Call it.
9434 (bitmap_elt_clear_from): Likewise.
9435 (bitmap_obstack_free): Likewise.
9436 (bitmap_move): Sensitively release memory.
9437 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
9438 (bitmap_initialize): Initialize alloc_descriptor to zero.
9439 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
9440
9441 2019-05-07 Richard Biener <rguenther@suse.de>
9442
9443 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
9444 we build a SLP node. Remove max_size and limiting.
9445 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
9446
9447 2019-05-07 Richard Biener <rguenther@suse.de>
9448
9449 PR tree-optimization/90316
9450 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
9451 limit by reference.
9452 (walk_non_aliased_vuses): Take walking limit argument.
9453 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
9454 walking if it is reached instead of just counting.
9455 (get_continuation_for_phi): Likewise.
9456 (walk_non_aliased_vuses): Likewise, instead of leaving counter
9457 limiting to the callback.
9458 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
9459 (vn_reference_lookup_3): Likewise.
9460 (vn_reference_lookup_pieces): Likewise.
9461 (vn_reference_lookup): Likewise.
9462 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
9463 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
9464 (avail_exprs_stack::lookup_avail_expr): Likewise.
9465
9466 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
9467
9468 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
9469 for comparaible types in the second direction even if first one
9470 hits incomparable type.
9471
9472 2019-05-07 Richard Biener <rguenther@suse.de>
9473
9474 PR lto/90369
9475 * lto-wrapper.c (debug_objcopy): Use the original filename
9476 including archive offset for the filename used for -save-temps.
9477
9478 2019-05-07 Li Jia He <helijia@linux.ibm.com>
9479
9480 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
9481 detection.
9482
9483 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
9484 Hongtao Liu <hongtao.liu@intel.com>
9485
9486 PR target/89750
9487 PR target/86444
9488 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
9489 Modified, original implementation isn't correct.
9490
9491 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
9492
9493 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
9494 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
9495 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
9496 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
9497 (FRAME_POINTER_REGNUM): Change numbering.
9498 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
9499 (alt_reg_names): Adjust.
9500 (rs6000_conditional_register_usage): Don't mark hard register 64 as
9501 fixed.
9502 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
9503 (DWARF_FRAME_REGISTERS): Delete.
9504 (DWARF2_FRAME_REG_OUT): Fix whitespace.
9505 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
9506 Adjust.
9507 (REG_ALLOC_ORDER): Adjust.
9508 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
9509 (REG_CLASS_CONTENTS): Adjust.
9510 (RETURN_ADDR_RTX): Change comment.
9511 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
9512 instead of 67.
9513 (REGISTER_NAMES): Adjust.
9514 (ADDITIONAL_REGISTER_NAMES): Adjust.
9515 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
9516
9517 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
9518
9519 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
9520 Delete.
9521 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
9522 (DWARF_FRAME_REGISTERS): Adjust.
9523 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
9524 Adjust.
9525 (REG_ALLOC_ORDER): Adjust.
9526 (enum reg_class): Delete SPR_REGS.
9527 (REG_CLASS_NAMES): Delete SPR_REGS.
9528 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
9529 (REGISTER_NAMES): Adjust.
9530 (ADDITIONAL_REGISTER_NAMES): Adjust.
9531 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
9532 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
9533 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
9534 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
9535 (htm_spr_regno): Delete.
9536 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
9537 argument.
9538 (rs6000_dbx_register_number): Adjust.
9539
9540 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
9541
9542 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
9543
9544 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
9545
9546 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
9547 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
9548
9549 2019-05-06 Jakub Jelinek <jakub@redhat.com>
9550
9551 PR tree-optimization/88709
9552 PR tree-optimization/90271
9553 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
9554 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
9555 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
9556 variable.
9557 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
9558 of the store merging group is larger than
9559 PARAM_STORE_MERGING_MAX_SIZE parameter.
9560 (split_group): Add bzero_first argument. If set, always emit first
9561 the first store which must be = {} of the whole area and then for the
9562 rest of the stores consider all zero bytes as paddings.
9563 (imm_store_chain_info::output_merged_store): Check if first store
9564 is = {} of the whole area and if yes, determine which setting of
9565 bzero_first for split_group gives smaller number of stores. Adjust
9566 split_group callers.
9567 (lhs_valid_for_store_merging_p): Allow decls.
9568 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
9569 no elts.
9570 (pass_store_merging::process_store): Likewise.
9571
9572 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
9573
9574 PR target/89424
9575 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
9576 handling of V1TImode.
9577
9578 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
9579
9580 PR target/89221
9581 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
9582 and enable_frame_pointer ...
9583 * configure.ac: ... here. Update help strings for
9584 --enable-frame-pointer.
9585 * configure: Regenerate.
9586 * config/i386/i386-options.c (ix86_option_override_internal): Remove
9587 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
9588 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
9589 (USE_X86_64_FRAME_POINTER): Ditto.
9590
9591 2019-05-06 Martin Liska <mliska@suse.cz>
9592
9593 * config.gcc: Append to target_gtfiles and fix indentation.
9594
9595 2019-05-06 Richard Biener <rguenther@suse.de>
9596
9597 PR tree-optimization/90358
9598 * tree-vect-stmts.c (get_group_load_store_type): Properly
9599 detect unused upper half of load.
9600 (vectorizable_load): Likewise.
9601
9602 2019-05-06 Richard Biener <rguenther@suse.de>
9603
9604 PR tree-optimization/88828
9605 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
9606 (simplify_vector_constructor): ...here. Handle constants in
9607 the constructor.
9608
9609 2019-05-06 Richard Biener <rguenther@suse.de>
9610
9611 PR tree-optimization/90328
9612 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
9613 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
9614 is valid in the loop nest before using it.
9615 (initialize_data_dependence_relation): Adjust.
9616 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
9617 loop as loop-nest to dr_may_alias_p.
9618
9619 2019-05-06 Richard Biener <rguenther@suse.de>
9620
9621 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
9622
9623 2019-05-06 Richard Biener <rguenther@suse.de>
9624
9625 PR tree-optimization/90316
9626 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
9627 compute target on demand.
9628 (get_continuation_for_phi): Remove code walking stmts to
9629 get to a target virtual operand which could end up being
9630 quadratic.
9631
9632 2019-05-06 Martin Liska <mliska@suse.cz>
9633
9634 PR sanitizer/90312
9635 * config/i386/i386-options.c (ix86_option_override_internal): Error only
9636 when -mabi is selected to a non-default version.
9637
9638 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
9639 Martin Liska <mliska@suse.cz>
9640
9641 * Makefile.in: Add lto-dump.texi.
9642 * cgraph.h: Add new functions get_visibility_string and
9643 get_symtab_type_string.
9644 * doc/gcc.texi: Include lto-dump section.
9645 * doc/lto-dump.texi: New file.
9646 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
9647 (parse_dump_option): Factor out this function.
9648 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
9649 (parse_dump_option): Export the function.
9650 * symtab.c (symtab_node::get_visibility_string): New function.
9651 (symtab_node::get_symtab_type_string): Likewise.
9652
9653 2019-05-06 Martin Liska <mliska@suse.cz>
9654
9655 * config/i386/i386-builtins.c: New file.
9656 * config/i386/i386-builtins.h: New file.
9657 * config/i386/i386-expand.c: New file.
9658 * config/i386/i386-expand.h: New file.
9659 * config/i386/i386-features.c: New file.
9660 * config/i386/i386-features.h: New file.
9661 * config/i386/i386-options.c: New file.
9662 * config/i386/i386-options.h: New file.
9663 * config.gcc: Add new files into extra_objs and
9664 target_gtfiles.
9665 * config/i386/i386.c: Split content of the file
9666 into newly introduced files.
9667 * config/i386/i386.h: Declare common variables
9668 and macros.
9669 * config/i386/t-i386: Define dependencies for new files.
9670
9671 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
9672
9673 PR target/89400
9674 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
9675 Restrict 'all' variant to 32-bit configurations.
9676 (unaligned_loadhiu): Likewise.
9677 (unaligned_storehi): Likewise.
9678 (unaligned_storesi): Likewise.
9679 (unaligned_loadhis): Disable when compiling for thumb1.
9680
9681 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
9682
9683 PR tree-optimization/90269
9684 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
9685 Ignore clobbers.
9686
9687 2019-05-03 Martin Liska <mliska@suse.cz>
9688
9689 * hash-map.h: Add is_empty function.
9690 * hash-set.h: Likewise.
9691 * hash-table.h: Likewise.
9692 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
9693 elements () == 0 (and similar usages).
9694 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
9695 * gimplify.c (gimplify_bind_expr): Likewise.
9696 (gimplify_switch_expr): Likewise.
9697 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
9698 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
9699 * postreload-gcse.c (dump_hash_table): Likewise.
9700 (gcse_after_reload_main): Likewise.
9701 * predict.c (combine_predictions_for_bb): Likewise.
9702 * tree-parloops.c (reduction_phi): Likewise.
9703 (separate_decls_in_region): Likewise.
9704 (transform_to_exit_first_loop): Likewise.
9705 (gen_parallel_loop): Likewise.
9706 (gather_scalar_reductions): Likewise.
9707 (try_create_reduction_list): Likewise.
9708 * var-tracking.c (dump_vars): Likewise.
9709 (emit_notes_for_changes): Likewise.
9710 (vt_emit_notes): Likewise.
9711
9712 2019-05-03 Richard Biener <rguenther@suse.de>
9713
9714 PR tree-optimization/90316
9715 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
9716 before running VN.
9717
9718 2019-05-03 Richard Biener <rguenther@suse.de>
9719
9720 * tree-vect-stmts.c (get_group_load_store_type): Avoid
9721 peeling for gaps by loading only lower halves of vectors
9722 if possible.
9723 (vectorizable_load): Likewise.
9724
9725 2019-05-03 Richard Biener <rguenther@suse.de>
9726
9727 PR middle-end/89518
9728 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
9729
9730 2019-05-03 Richard Biener <rguenther@suse.de>
9731
9732 PR middle-end/87314
9733 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
9734 Handle STRING_CST vs DECL or STRING_CST.
9735
9736 2019-05-03 Richard Biener <rguenther@suse.de>
9737
9738 PR tree-optimization/88963
9739 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
9740 vector loads feeding only BIT_FIELD_REFs to component
9741 loads. Rewrite stores fed by CONSTRUCTORs to component
9742 stores.
9743
9744 2019-05-03 Jakub Jelinek <jakub@redhat.com>
9745
9746 * opts.h (finish_options): Remove lang_mask argument.
9747 (print_help, help_option_argument): Declare.
9748 * opts.c (print_help): Remove forward declaration, no longer static.
9749 (finish_options): Remove lang_mask argument, don't call print_help
9750 here.
9751 * opts-global.c (decode_options): Adjust finish_option caller, call
9752 print_help here.
9753
9754 PR tree-optimization/90303
9755 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
9756 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
9757
9758 2019-05-03 Richard Biener <rguenther@suse.de>
9759
9760 PR tree-optimization/89698
9761 * gimple-fold.c (canonicalize_constructor_val): Early out
9762 for constants, handle unfolded INTEGER_CSTs as they appear in
9763 C++ virtual table ctors.
9764
9765 2019-05-03 Richard Biener <rguenther@suse.de>
9766
9767 * passes.c (execute_function_todo): Remove dead code.
9768
9769 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
9770
9771 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
9772 the internal register number, for any "real" register.
9773
9774 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
9775
9776 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
9777 correct numbers for TFHAR, TFIAR, TEXASR.
9778
9779 2019-05-02 Richard Biener <rguenther@suse.de>
9780
9781 PR tree-optimization/89653
9782 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
9783 update-address-taken before the pass.
9784 * passes.def (pass_tree_loop_init): Put comment before it.
9785
9786 2019-05-02 Richard Biener <rguenther@suse.de>
9787
9788 PR tree-optimization/89509
9789 * tree-ssa-structalias.c (compute_dependence_clique): Look
9790 at the first subvar when determining whether it is restrict.
9791
9792 2019-05-02 Richard Biener <rguenther@suse.de>
9793
9794 PR tree-optimization/90273
9795 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
9796 useless debug stmts.
9797
9798 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
9799
9800 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
9801 ACLE branch.
9802 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
9803 SVE ACLE branch.
9804 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
9805 VEC_COND_EXPR be inserted to emulate a conditional internal function.
9806 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
9807 (vectorizable_reduction): Use the functions above to vectorize in a
9808 fully masked loop codes that don't have a conditional internal
9809 function.
9810
9811 2019-05-02 Martin Liska <mliska@suse.cz>
9812
9813 * cgraphclones.c: Call valid_attribute_p with 1 for
9814 target_clone.
9815 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
9816 it's for target attribute.
9817 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
9818 Add new boolean argument.
9819 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
9820 Likewise.
9821 (ix86_valid_target_attribute_tree): Pass target_clone_attr
9822 to ix86_valid_target_attribute_inner_p.
9823 (ix86_valid_target_attribute_p): Pass flags argument to
9824 ix86_valid_target_attribute_inner_p.
9825 (get_builtin_code_for_version): Use 0 as it's target attribute.
9826
9827 2019-05-02 Martin Liska <mliska@suse.cz>
9828
9829 * gcc.c (process_command): Add dummy file only
9830 if n_infiles == 0.
9831 * opts-global.c (decode_options): Pass lang_mask.
9832 * opts.c (print_help): New function.
9833 (finish_options): Print --help if help_option_argument
9834 is set.
9835 (common_handle_option): Factor out content of OPT__help_
9836 into print_help.
9837 * opts.h (finish_options): Add new argument.
9838
9839 2019-05-02 Martin Liska <mliska@suse.cz>
9840
9841 PR target/88809
9842 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
9843 With -minline-all-stringops use inline expansion using 4B loop.
9844 * doc/invoke.texi: Document the change of
9845 -minline-all-stringops.
9846
9847 2019-05-01 Jeff Law <law@redhat.com>
9848
9849 PR tree-optimization/88797
9850 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
9851 PHI feeds a conditional on the RHS of an assignment.
9852
9853 2019-04-30 Andrew Waterman <andrew@sifive.com>
9854 Jim Wilson <jimw@sifive.com>
9855
9856 * config/riscv/constraints.md (L): New.
9857 * config/riscv/predicates.md (lui_operand): New.
9858 (sfb_alu_operand): New.
9859 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
9860 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
9861 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
9862 * config/riscv/risc.md (type): Add sfb_alu.
9863 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
9864 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
9865 (branch_zero<mode>): Delete.
9866 (mov<mode>cc): New.
9867 (mov<GPR:mode><X:mode>cc): Likewise.
9868 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
9869
9870 2019-04-30 Nathan Sidwell <nathan@acm.org>
9871
9872 * tree.h (MARK_TS_EXP): New.
9873
9874 2019-04-30 Martin Liska <mliska@suse.cz>
9875
9876 * opts.c (enable_warning_as_error): Provide hints
9877 for unknown options.
9878
9879 2019-04-30 Martin Liska <mliska@suse.cz>
9880
9881 PR debug/90288
9882 * doc/invoke.texi: Add missing dash for gas-locview-support
9883 and gno-as-locview-support.
9884
9885 2019-04-30 Jakub Jelinek <jakub@redhat.com>
9886
9887 PR target/89093
9888 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
9889 whitespace at the start of target attribute string.
9890
9891 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9892
9893 PR target/86538
9894 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
9895 Define __ARM_FEATURE_ATOMICS.
9896
9897 2019-04-30 Martin Liska <mliska@suse.cz>
9898
9899 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
9900 into built_in_function enum. Remove code for endp == 2 and
9901 use BUILT_IN_* constants.
9902 (gimple_fold_builtin): Call the function with fcode.
9903
9904 2019-04-30 Martin Liska <mliska@suse.cz>
9905
9906 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
9907 DECL_FUNCTION_CODE into ix86_builtins enum before
9908 the switch statement.
9909
9910 2019-04-30 Jakub Jelinek <jakub@redhat.com>
9911
9912 PR tree-optimization/89475
9913 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
9914 calls.
9915
9916 2019-04-30 Martin Liska <mliska@suse.cz>
9917
9918 PR translation/90274
9919 * opts.c (print_filtered_help): Wrap string in _(...).
9920
9921 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
9922
9923 PR tree-optimization/90240
9924 Revert:
9925 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
9926
9927 PR tree-optimization/90078
9928 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
9929 checks for infinite_cost overflow.
9930
9931 2019-04-29 Jeff Law <law@redhat.com>
9932
9933 * passes.def: Move -Wrestrict pass after copy propagation.
9934
9935 2019-04-29 Maya Rashish <coypu@sdf.org>
9936
9937 * config.gcc (default_gnu_indirect_function): Default to yes
9938 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
9939 sparc*-*-netbsd*, x86_64-*-netbsd*.
9940
9941 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
9942
9943 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
9944 where cond2 is NE_EXPR.
9945 (is_value_included_in): Update comment.
9946
9947 2019-04-29 Richard Biener <rguenther@suse.de>
9948
9949 PR tree-optimization/90278
9950 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
9951 EH on comparison simplification.
9952
9953 2019-04-29 Jason Merrill <jason@redhat.com>
9954
9955 PR c++/82081 - tail call optimization breaks noexcept
9956 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
9957 nothrow function to a might-throw function into a tail call.
9958
9959 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
9960
9961 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
9962 (DDR_INNER_LOOP): Likewise.
9963 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
9964 (initialize_data_dependence_relation): Likewise.
9965 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
9966
9967 2019-04-29 Jakub Jelinek <jakub@redhat.com>
9968
9969 PR rtl-optimization/90257
9970 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
9971 return value.
9972
9973 Revert the revert:
9974 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
9975
9976 PR target/90178
9977 Revert:
9978 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
9979
9980 Revert the revert:
9981 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
9982
9983 Revert:
9984 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
9985
9986 * lra-spills.c (lra_final_code_change): Remove useless move insns.
9987
9988 2019-04-29 Richard Biener <rguenther@suse.de>
9989
9990 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
9991 rhs issue a reset.
9992
9993 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
9994
9995 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
9996 varasm.h, and netbsd-protos.h.
9997
9998 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
9999
10000 PR target/89261
10001 * config/i386/i386-protos.h (ix86_data_alignment): Change
10002 the second argument type to unsigned int.
10003 * config/i386/i386.c (ix86_data_alignment): Change "align"
10004 argument type to unsigned int.
10005
10006 2019-04-27 Martin Liska <mliska@suse.cz>
10007
10008 PR middle-end/90258
10009 * opt-suggestions.c (option_proposer::build_option_suggestions):
10010 When get_valid_option_values returns empty values, add the
10011 misspelling candidate.
10012
10013 2019-04-26 Jim Wilson <jimw@sifive.com>
10014
10015 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
10016 parameter.
10017 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
10018 Pass orig_mode to riscv_build_integer.
10019 (riscv_split_integer): Pass mode to riscv_move_integer.
10020 (riscv_legitimize_const_move): Likewise.
10021 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
10022 promoted_mode. Replace force_reg call with code to load constant into
10023 promoted reg and then subreg it for the store.
10024 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
10025 riscv_move_integer.
10026
10027 2018-04-26 Eugene Sharygin <eush@ispras.ru>
10028
10029 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
10030 corrupt codes.
10031
10032 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
10033
10034 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
10035 commentary about the encoding of precision.
10036
10037 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
10038
10039 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
10040 * config/i386/t-freebsd64: New file.
10041 * config.gcc: Add the t-freebsd64 for multilib support.
10042
10043 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
10044
10045 * doc/extend.texi (vector_size): Add missing comma after @xref.
10046
10047 2019-04-25 Jakub Jelinek <jakub@redhat.com>
10048
10049 * BASE-VER: Set to 10.0.0.
10050
10051 2019-04-25 Richard Biener <rguenther@suse.de>
10052
10053 PR middle-end/89765
10054 * gimplify.c (gimplify_expr): Avoid turning a lvalue
10055 VIEW_CONVERT_EXPR into one operating on an rvalue.
10056
10057 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
10058
10059 PR target/89929
10060 * config/i386/i386.c (feature_priority): Moved to file scope.
10061 (processor_features): Likewise.
10062 (processor_model): Likewise.
10063 (_arch_names_table): Likewise.
10064 (arch_names_table): Likewise.
10065 (_feature_list): Removed.
10066 (feature_list): Likewise.
10067 (_isa_names_table): Moved to file scope. Add priority.
10068 (isa_names_table): Likewise.
10069 (get_builtin_code_for_version): Replace feature_list with
10070 isa_names_table. Update error message for P_ZERO priority.
10071
10072 2019-04-25 Richard Biener <rguenther@suse.de>
10073
10074 * tree-pass.h (make_pass_phi_only_cprop): Remove.
10075 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
10076
10077 2019-04-24 Jeff Law <law@redhat.com>
10078
10079 PR tree-optimization/90037
10080 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
10081 * passes.def: Replace all instance of phi-only cprop with the
10082 lattice propagator. Move propagation pass from after erroneous
10083 path isolation to before erroneous path isolation.
10084 * tree-ssa-phionlycprop.c: Remove.
10085
10086 2019-04-24 Richard Biener <rguenther@suse.de>
10087
10088 PR middle-end/90213
10089 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
10090 by size and BITS_PER_UNIT on poly-wide-ints.
10091
10092 2019-04-25 Richard Biener <rguenther@suse.de>
10093
10094 PR middle-end/90194
10095 * match.pd: Add pattern to simplify view-conversion of an
10096 empty constructor.
10097
10098 2019-04-24 Clement Chigot <clement.chigot@atos.net>
10099
10100 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
10101 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
10102 for Go on 32 bit AIX.
10103 * config/rs6000/aix72.h: Likewise.
10104
10105 2019-04-24 Jakub Jelinek <jakub@redhat.com>
10106
10107 PR target/90193
10108 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
10109 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
10110
10111 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
10112
10113 PR target/89952
10114 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
10115 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
10116 for restored hard frame pointer.
10117 (s390_sched_dependencies_evaluation): Implement new target hook.
10118 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
10119
10120 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
10121
10122 * config/arc/arc-options.def: Fix typos and spelling mistakes.
10123 * config/arc/arc.c (arc_init): Cleanup warning message.
10124 (arc_override_options): Likewise.
10125
10126 2019-04-24 Jakub Jelinek <jakub@redhat.com>
10127
10128 PR target/90187
10129 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
10130 a register if both if_true and if_false are MEMs.
10131
10132 PR tree-optimization/90208
10133 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
10134 after labels of new_bb, not before them.
10135
10136 PR tree-optimization/90211
10137 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
10138 which are not SSA_NAMEs.
10139
10140 2018-04-23 Sudakshina Das <sudi.das@arm.com>
10141
10142 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
10143 AArch64.
10144 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
10145
10146 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
10147
10148 PR rtl-optimization/87979
10149 * modulo-sched.c (sms_schedule): Start ii value "mii" should
10150 not equal zero.
10151
10152 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
10153
10154 PR rtl-optimization/84032
10155 * modulo-sched.c (ps_insn_find_column): Change condition so that
10156 branch will always be the last insn in a row inside partial
10157 schedule.
10158
10159 2019-04-23 Richard Biener <rguenther@suse.de>
10160
10161 PR debug/90131
10162 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
10163 dest_single_pred_p argument.
10164 (remove_forwarder_block): Adjust.
10165 (remove_forwarder_block_with_phi): Likewise.
10166
10167 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10168 Bernd Edlinger <bernd.edlinger@hotmail.de>
10169 Jakub Jelinek <jakub@redhat.com>
10170
10171 PR target/89093
10172 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
10173 if used with general-regs-only.
10174 (arm_conditional_register_usage): Don't add non-general regs if
10175 general-regs-only.
10176 (arm_valid_target_attribute_rec): Handle general-regs-only.
10177 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
10178 general-regs-only.
10179 (TARGET_HARD_FLOAT_SUB): Define.
10180 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
10181 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
10182 (TARGET_REALLY_IWMMXT2): Likewise.
10183 * config/arm/arm.opt: Add -mgeneral-regs-only.
10184 * doc/extend.texi: Document ARM general-regs-only target.
10185 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
10186
10187 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
10188
10189 PR tree-optimization/90078
10190 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
10191 checks for infinite_cost overflow.
10192
10193 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
10194
10195 PR tree-optimization/90021
10196 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
10197 and check univariate against it.
10198 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
10199 * tree-data-ref.c (add_other_self_distances): Pass new argument.
10200
10201 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
10202
10203 PR target/90178
10204 Revert:
10205 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
10206
10207 Revert the revert:
10208 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
10209
10210 Revert:
10211 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
10212
10213 * lra-spills.c (lra_final_code_change): Remove useless move insns.
10214
10215 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
10216
10217 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
10218 names using operand format, rather than hard-wired.
10219 (speculation_barrier): Likewise.
10220
10221 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
10222
10223 PR tree-optimization/88055
10224 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
10225 (gen_one_condition): Use it if !HONOR_NANS.
10226
10227 2019-04-19 Jakub Jelinek <jakub@redhat.com>
10228
10229 PR middle-end/90139
10230 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
10231 assign_temp instead of gen_reg_rtx.
10232
10233 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
10234
10235 PR translation/90118
10236 * config/aarch64/aarch64.c (aarch64_override_options_internal):
10237 Add missing space before %<.
10238
10239 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
10240
10241 PR rtl-optimization/87871
10242 * ira-lives.c (make_object_dead): Don't add conflicts to
10243 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
10244
10245 2019-04-18 Martin Sebor <msebor@redhat.com>
10246
10247 PR middle-end/89797
10248 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
10249 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
10250 assuming type size fits in SHWI.
10251
10252 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
10253
10254 PR ipa/85051
10255 * ipa-inline.c (flatten_function): New parameter UPDATE.
10256 (ipa_inline, early_inliner): Use it.
10257
10258 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
10259
10260 * fold-const.c (int_const_binop): Return early on failure.
10261
10262 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
10263
10264 PR middle-end/85164
10265 * combine.c (force_int_to_mode): Cast the argument rather than
10266 the result of known_alignment.
10267 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
10268
10269 2019-04-18 Richard Biener <rguenther@suse.de>
10270
10271 PR debug/90131
10272 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
10273 out from ...
10274 (remove_forwarder_block): ... here.
10275 (remove_forwarder_block_with_phi): Also move debug stmts here.
10276
10277 2019-04-18 Jakub Jelinek <jakub@redhat.com>
10278
10279 PR translation/79183
10280 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
10281 inform where appropriate.
10282
10283 2019-04-18 Richard Biener <rguenther@suse.de>
10284
10285 * tree.c (get_qualified_type): Put found type variants at the
10286 head of the variant list.
10287
10288 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
10289
10290 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
10291
10292 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
10293
10294 PR target/90125
10295 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
10296 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
10297 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
10298 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
10299 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
10300
10301 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
10302
10303 * ira-conflicts.c (print_allocno_conflicts): Always print something,
10304 even for allocno's with no conflicts.
10305 (print_conflicts): Print an extra newline.
10306
10307 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
10308
10309 * auto-inc-dec.c (attempt_change): Set the alignment of the
10310 temporary memory to that of the original.
10311
10312 2019-04-17 Joao Moreira <jmoreira@suse.de>
10313
10314 * targhooks.c (default_print_patchable_function_entry): Emit
10315 __patchable_function_entries section with writable flags to allow
10316 relocation resolution.
10317
10318 2019-04-17 Jonny Grant <jg@jguk.org>
10319
10320 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
10321
10322 2019-04-17 Jakub Jelinek <jakub@redhat.com>
10323
10324 PR middle-end/90095
10325 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
10326 on lowpart SUBREGs.
10327
10328 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
10329
10330 * config/arc/arc.c (arc_init): Format diagnostic string.
10331 (arc_override_options): Likewise.
10332 (check_if_valid_regno_const): Likewise.
10333 (arc_reorg): Likewise.
10334
10335 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
10336
10337 PR target/17108
10338 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
10339 name.
10340 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
10341 name.
10342 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
10343 (*movdi_update1): Use Pmode.
10344 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
10345 (movdi_<mode>_update_stack): Rename to ...
10346 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
10347 use Pmode.
10348 (*movsi_update1): Use Pmode.
10349 (*movsi_update2): Use Pmode.
10350 (movsi_update): Rename to ...
10351 (movsi_<mode>_update): ... this. Use Pmode.
10352 (movsi_update_stack): Fix condition.
10353 (*movhi_update1): Use Pmode. Fix argument to
10354 avoiding_indexed_address_p.
10355 (*movhi_update2): Ditto.
10356 (*movhi_update3): Ditto.
10357 (*movhi_update4): Ditto.
10358 (*movqi_update1): Ditto.
10359 (*movqi_update2): Ditto.
10360 (*movqi_update3): Ditto.
10361 (*movsf_update1, *movdf_update1): Merge, rename to...
10362 (*mov<mode>_update1): This. Use Pmode. Fix argument to
10363 avoiding_indexed_address_p. Add "size" attribute.
10364 (*movsf_update2, *movdf_update2): Merge, rename to...
10365 (*mov<mode>_update2): This. Ditto.
10366 (*movsf_update3): Use Pmode. Fix argument to
10367 avoiding_indexed_address_p.
10368 (*movsf_update4): Ditto.
10369 (allocate_stack): Simplify condition. Adjust pattern names.
10370
10371 2019-04-17 Jakub Jelinek <jakub@redhat.com>
10372
10373 PR target/89093
10374 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
10375 whitespace at the start of target attribute string.
10376
10377 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
10378
10379 PR target/84369
10380 * config/rs6000/power9.md: Add store forwarding bypass.
10381
10382 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
10383
10384 PR debug/89528
10385 * valtrack.c (dead_debug_insert_temp): Reset debug references
10386 to the return value of a call being removed.
10387
10388 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
10389
10390 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
10391 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
10392 implement target hook.
10393 (arc_memory_move_cost): New function.
10394 (TARGET_REGISTER_MOVE_COST): Define.
10395 (TARGET_MEMORY_MOVE_COST): Likewise.
10396 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
10397 (MEMORY_MOVE_COST): Likewise.
10398
10399 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
10400
10401 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
10402 (sibcall_value_insn): Likewise.
10403 * config/arc/constraints.md (Rs5): Remove.
10404
10405 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
10406
10407 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
10408 for last two fake registers.
10409 (arc_conditional_register_usage): Make sure fake frame and arg
10410 pointer regs are in general regs class.
10411 (FRAME_POINTER_MASK): Remove.
10412 (RETURN_ADDR_MASK): Remove.
10413 (arc_must_save_register): Use hard frame regnum.
10414 (frame_restore_reg): Use hard_frame_pointer_rtx.
10415 (arc_save_callee_saves): Likewise.
10416 (arc_restore_callee_saves): Likewise.
10417 (arc_save_callee_enter): Likewise.
10418 (arc_restore_callee_leave): Likewise.
10419 (arc_save_callee_milli): Likewise.
10420 (arc_eh_return_address_location): Likewise.
10421 (arc_check_multi): Use hard frame regnum.
10422 (arc_can_eliminate): Likewise.
10423 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
10424 for register allocator.
10425 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
10426 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
10427 (FRAME_POINTER_REGNUM): Change it to a fake register.
10428 (HARD_FRAME_POINTER_REGNUM): Defined.
10429 (ARG_POINTER_REGNUM): Change it to a new fake register.
10430 (ELIMINABLE_REGS): Update.
10431 (REGISTER_NAMES): Update names.
10432 * config/arc/arc.md (LP_START): Remove.
10433 (LP_END): Likewise.
10434 (shift_si3_loop): Update pattern.
10435
10436 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
10437
10438 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
10439 to avoid delay slot scheduling.
10440 (arc_must_save_register): Don't save SP.
10441 * config/arc/arc.md (stack_tie): Remove.
10442 (UNSPEC_ARC_STKTIE): Likewise.
10443
10444 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
10445 Shiva Chen <shiva0217@gmail.com>
10446
10447 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
10448 code gen with large shift amount.
10449
10450 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
10451
10452 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
10453 subreg.
10454
10455 2019-04-16 Jakub Jelinek <jakub@redhat.com>
10456
10457 PR target/90096
10458 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
10459 print -m64/-mx32/-m32 if it is true.
10460 (ix86_debug_options, ix86_function_specific_print): Pass true as
10461 ADD_ABI_P to ix86_target_string.
10462 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
10463 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
10464 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
10465
10466 PR rtl-optimization/90082
10467 * dce.c (can_delete_call): New function.
10468 (deletable_insn_p, mark_insn): Use it.
10469
10470 PR tree-optimization/90090
10471 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
10472 throw internally.
10473 (is_division_by_square): Likewise. Formatting fix.
10474
10475 2019-04-16 Richard Biener <rguenther@suse.de>
10476
10477 PR tree-optimization/56049
10478 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
10479 equality check if alias-set zero will prevail.
10480
10481 2019-04-15 Jeff Law <law@redhat.com>
10482
10483 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
10484 size and alignment as unsigned.
10485
10486 2019-04-15 Richard Biener <rguenther@suse.de>
10487
10488 PR debug/90074
10489 * tree-loop-distribution.c (destroy_loop): Preserve correct
10490 debug info.
10491
10492 2019-04-15 Richard Biener <rguenther@suse.de>
10493
10494 PR tree-optimization/90071
10495 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
10496 abnormal operands from def stmts.
10497
10498 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
10499
10500 PR rtl-optimization/89794
10501 * combine.c (count_auto_inc): New function.
10502 (try_combine): Count how many auto_inc expressions there were in the
10503 original instructions. Ensure we have the same number in the new
10504 instructions. Remove the code that tried to ensure auto_inc side
10505 effects on i1 and i0 are not lost.
10506
10507 2019-04-15 Richard Biener <rguenther@suse.de>
10508
10509 PR ipa/88936
10510 * tree.h (auto_var_p): Declare.
10511 * tree.c (auto_var_p): New function, split out from ...
10512 (auto_var_in_fn_p): ... here.
10513 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
10514 member.
10515 (new_var_info): Initialize it.
10516 (set_uids_in_ptset): Also set the shadow variable uid if required.
10517 (ipa_pta_execute): Postprocess points-to solutions assigning
10518 shadow variable uids for locals that may reach their containing
10519 function recursively.
10520 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
10521 assert but instead check whether the points-to solution is
10522 a singleton.
10523
10524 2019-04-15 Martin Jambor <mjambor@suse.cz>
10525
10526 PR ipa/pr89693
10527 * cgraph.c (clone_of_p): Loop over clone chain for each step in
10528 the thunk chain.
10529
10530 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
10531
10532 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
10533
10534 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
10535 Kito Cheng <kito.cheng@gmail.com>
10536 Shiva Chen <shiva0217@gmail.com>
10537
10538 * config/nds32/nds32-md-auxiliary.c
10539 (nds32_legitimize_pic_address): Use new PIC pattern.
10540 (nds32_legitimize_tls_address): Use new TLS pattern.
10541 (nds32_output_symrel): New.
10542 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
10543 (nds32_alloc_relax_group_id): Ditto.
10544 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
10545 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
10546 relax_group_id.
10547 (nds32_group_tls_insn): Ditto.
10548 (nds32_group_float_insns): Ditto.
10549 * config/nds32/nds32.md (tls_le): New.
10550 (sym_got): Ditto.
10551
10552 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
10553
10554 * configure: Add nds32 target for dwarf2 debug_line checking.
10555 * configure.ac: Regenerated.
10556
10557 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
10558
10559 PR lto/89358
10560 * ipa-devirt.c (skip_in_fields_list_p): New.
10561 (odr_types_equivalent_p): Use it.
10562
10563 2019-04-13 Jakub Jelinek <jakub@redhat.com>
10564
10565 PR target/89093
10566 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
10567 instead of strncmp when checking for thumb and arm. Formatting fixes.
10568
10569 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
10570
10571 * doc/install.texi: Document --with-target-system-zlib.
10572
10573 2019-04-12 Martin Sebor <msebor@redhat.com>
10574
10575 PR c/88383
10576 PR c/89288
10577 PR c/89798
10578 PR c/89797
10579 * targhooks.c (default_vector_alignment): Avoid assuming
10580 argument fits in SHWI.
10581 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
10582 a shift expression.
10583 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
10584
10585 2019-04-12 Jakub Jelinek <jakub@redhat.com>
10586
10587 PR rtl-optimization/89965
10588 * dce.c: Include rtl-iter.h.
10589 (struct check_argument_load_data): New type.
10590 (check_argument_load): New function.
10591 (find_call_stack_args): Check for loads from stack slots still tracked
10592 in sp_bytes and punt if any is found.
10593
10594 * config/mips/loongson-mmiintrin.h: Fix up #error message.
10595
10596 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
10597
10598 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
10599 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
10600
10601 2019-04-12 Martin Liska <mliska@suse.cz>
10602
10603 PR middle-end/89970
10604 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
10605 in error message.
10606 (separate_attrs): Handle multiple 'default's.
10607 (expand_target_clones): Rework error handling code.
10608
10609 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
10610
10611 PR target/87532
10612 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
10613 mode of vector rather than mode of destination for move instruction.
10614 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
10615 Use QI inner mode with V16QI vector mode.
10616
10617 2019-04-12 Jakub Jelinek <jakub@redhat.com>
10618
10619 PR target/52726
10620 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
10621 "invalid %%t operand" in output_operand_lossage message.
10622
10623 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
10624
10625 * config/s390/predicates.md (permute_pattern_operand): New
10626 predicate.
10627 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
10628 operand for the permute pattern.
10629 ("*vec_perm<mode>"): New insn definition.
10630 ("bswap<mode>"): Generate the permute pattern operand in the
10631 expander and perform the operand reloads for pre arch13 level
10632 already.
10633 ("*bswap<mode>_emu"): Rename to ...
10634 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
10635 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
10636 Add the USE operand for the permute pattern.
10637 ("*vec_set_bswap_vec<mode>"): Likewise.
10638
10639 2019-04-12 Jakub Jelinek <jakub@redhat.com>
10640
10641 PR c/89946
10642 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
10643 and gcc_unreachable if it fails, just call tree_to_uhwi which
10644 verifies that too. Test TREE_CHAIN instead of list_length > 1.
10645 Start warning message with a lower-case letter. Formatting fixes.
10646
10647 PR rtl-optimization/90026
10648 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
10649 successors, look for BARRIERs inside of the whole BB_FOOTER chain
10650 rather than just at the start of it. If e->src BB_FOOTER is not NULL
10651 in cfglayout mode, use emit_barrier_after_bb.
10652
10653 2018-04-11 Steve Ellcey <sellcey@marvell.com>
10654
10655 PR rtl-optimization/87763
10656 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
10657 New Instruction.
10658
10659 2019-04-11 Tom de Vries <tdevries@suse.de>
10660
10661 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
10662 max macro using statement expression.
10663
10664 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
10665
10666 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
10667 * xcoffout.c (xcoff_private_rodata_section_name): Define.
10668 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
10669 read_only_private_data_section using xcoff_private_rodata_section_name.
10670 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
10671
10672 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
10673
10674 PR target/90016
10675 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
10676
10677 2019-04-11 Jakub Jelinek <jakub@redhat.com>
10678
10679 PR rtl-optimization/89965
10680 * dce.c (sp_based_mem_offset): New function.
10681 (find_call_stack_args): Use sp_based_mem_offset.
10682
10683 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
10684
10685 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
10686
10687 2019-04-11 Richard Biener <rguenther@suse.de>
10688
10689 PR tree-optimization/90020
10690 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
10691 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
10692 * tree-ssa-pre.c (compute_avail): Use it to not put
10693 possibly trapping references after a call that might not
10694 return into EXP_GEN.
10695 * gcse.c (compute_hash_table_work): Do not elide
10696 marking a block containing a call if the call might not
10697 return.
10698
10699 2019-04-11 Richard Biener <rguenther@suse.de>
10700
10701 PR tree-optimization/90018
10702 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
10703 Test both SLP and interleaving variants.
10704
10705 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
10706
10707 * config/s390/8561.md: New file.
10708 * config/s390/driver-native.c (s390_host_detect_local_cpu):
10709 Add arch13 cpu model.
10710 * config/s390/s390-opts.h (enum processor_type): Likewise.
10711 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
10712 (s390_get_unit_mask): Likewise.
10713 (s390_is_fpd): Likewise.
10714 (s390_is_fxd): Likewise.
10715 * config/s390/s390.h (s390_tune_attr): Likewise.
10716 * config/s390/s390.md: Include arch13 pipeline description.
10717 * config/s390/s390.opt: Add arch13.
10718
10719 2018-04-10 Steve Ellcey <sellcey@marvell.com>
10720
10721 PR rtl-optimization/87763
10722 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
10723 New prototype.
10724 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
10725 New function.
10726 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
10727 New instruction.
10728 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
10729 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
10730 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
10731 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
10732
10733 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
10734
10735 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
10736 "Although" in -fipa-icf documentation.
10737
10738 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
10739 of using multiple -g options.
10740
10741 2019-04-10 Martin Liska <mliska@suse.cz>
10742
10743 PR gcov-profile/89959
10744 * doc/gcov.texi: Make documentation of -x option
10745 more precise.
10746
10747 2019-04-10 Richard Biener <rguenther@suse.de>
10748
10749 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
10750 member.
10751 (DR_GROUP_SAME_DR_STMT): Remove.
10752 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
10753 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
10754 replace with assert.
10755 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
10756 (vect_record_grouped_load_vectors): Remove unreachable code.
10757
10758 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
10759
10760 PR target/90016
10761 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
10762 obsolete reference to N.
10763
10764 2019-04-10 Jakub Jelinek <jakub@redhat.com>
10765
10766 PR middle-end/90025
10767 * expr.c (store_expr): Set properly size on the MEM passed to
10768 clear_storage.
10769
10770 PR c++/90010
10771 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
10772 with strlen in between hostsz-3 and hostsz-1 inclusive when no
10773 translation is needed, and when translation is needed, only append
10774 ... if the string length is hostsz or more bytes long. Avoid using
10775 strncpy or strcat.
10776
10777 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
10778
10779 PR target/90024
10780 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
10781 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
10782 into three.
10783 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
10784 differences directly.
10785 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
10786
10787 2019-04-09 Jakub Jelinek <jakub@redhat.com>
10788
10789 PR translation/90011
10790 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
10791 from diagnostics.
10792 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
10793 diagnostics.
10794 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
10795 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
10796 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
10797 trailing space from -gsplit-dwarf diagnostics.
10798
10799 PR tree-optimization/89998
10800 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
10801 instead of integer_type_node if possible, don't add ranges if return
10802 type is not compatible with int.
10803 * gimple-fold.c (gimple_fold_builtin_sprintf,
10804 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
10805 integer_type_node.
10806
10807 2019-04-09 Martin Liska <mliska@suse.cz>
10808
10809 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
10810 * doc/install.texi: Document the new config.
10811
10812 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
10813
10814 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
10815 use gimple_expr_type for load and store calls. Skip over the
10816 condition argument in a conditional internal function.
10817 Protect use of TREE_INT_CST_LOW.
10818
10819 2019-04-09 Jakub Jelinek <jakub@redhat.com>
10820
10821 PR target/90015
10822 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
10823 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
10824 trailing period from it too.
10825
10826 2019-04-08 wu yuan <wuyuan5@huawei.com>
10827
10828 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
10829 * config/aarch64/aarch64.md : Add "tsv110.md"
10830 * config/aarch64/tsv110.md: New file.
10831
10832 2019-04-08 Richard Biener <rguenther@suse.de>
10833
10834 PR tree-optimization/90006
10835 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
10836 calls like lrint.
10837
10838 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
10839
10840 PR target/83033
10841 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
10842 construction.
10843 (fma_root_node): Likewise.
10844 (func_fma_steering): Likewise.
10845
10846 2019-04-08 Jakub Jelinek <jakub@redhat.com>
10847
10848 PR rtl-optimization/89865
10849 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
10850
10851 PR rtl-optimization/89865
10852 * config/i386/i386.md
10853 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
10854 numbers not to clash with the additional operands[4].
10855 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
10856 with extra register copy in the middle.
10857
10858 2019-04-08 Martin Liska <mliska@suse.cz>
10859
10860 PR gcov-profile/89961
10861 * doc/gcov.texi: Document data_file.
10862 * gcov.c (generate_results): Add data_info into JSON output.
10863
10864 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
10865
10866 PR tree-optimization/89725
10867 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
10868 loop's chrec as invariant symbol.
10869 * tree-chrec.h (chrec_contains_symbols): New parameter.
10870 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
10871 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
10872 function of loops not in DDR's loop_nest.
10873 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
10874
10875 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
10876
10877 PR target/89623
10878 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
10879 Mask.
10880
10881 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
10882
10883 PR target/89945
10884 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
10885 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
10886
10887 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
10888
10889 * sched-deps.c (sched_macro_fuse_insns): Check return value of
10890 targetm.fixed_condition_code_regs.
10891
10892 2019-04-05 Richard Biener <rguenther@suse.de>
10893
10894 PR debug/89892
10895 PR debug/89905
10896 * tree-cfgcleanup.c (remove_forwarder_block): Always move
10897 debug bind stmts but reset them if they are not valid at the
10898 destination.
10899
10900 2019-04-05 Martin Liska <mliska@suse.cz>
10901
10902 PR translation/89936
10903 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
10904 order to wrap keywords or arguments.
10905 * collect2.c (main): Likewise.
10906 (scan_prog_file): Likewise.
10907 (scan_libraries): Likewise.
10908 * common/config/riscv/riscv-common.c
10909 (riscv_subset_list::parsing_subset_version): Likewise.
10910 (riscv_subset_list::parse_std_ext): Likewise.
10911 * config/aarch64/aarch64.c (aarch64_override_options_internal):
10912 Likewise.
10913 * config/arm/arm.c (arm_option_override): Likewise.
10914 * config/cris/cris.c (cris_print_operand): Likewise.
10915 * config/darwin-c.c (darwin_pragma_options): Likewise.
10916 (darwin_pragma_unused): Likewise.
10917 (darwin_pragma_ms_struct): Likewise.
10918 * config/ft32/ft32.c (ft32_print_operand): Likewise.
10919 * config/i386/i386.c (print_reg): Likewise.
10920 (ix86_print_operand): Likewise.
10921 * config/i386/xm-djgpp.h: Likewise.
10922 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
10923 * config/m32c/m32c.c (m32c_option_override): Likewise.
10924 * config/msp430/msp430.c (msp430_option_override): Likewise.
10925 * config/nds32/nds32.c (nds32_option_override): Likewise.
10926 * config/nvptx/mkoffload.c (main): Likewise.
10927 * config/rx/rx.c (rx_print_operand): Likewise.
10928 (valid_psw_flag): Likewise.
10929 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
10930 (vms_pragma_nomember_alignment): Likewise.
10931 (vms_pragma_extern_model): Likewise.
10932 * lto-wrapper.c (compile_offload_image): Likewise.
10933 * omp-offload.c (oacc_parse_default_dims): Likewise.
10934 * symtab.c (symtab_node::verify_base): Likewise.
10935 * tlink.c (recompile_files): Likewise.
10936 (start_tweaking): Likewise.
10937 * tree-profile.c (parse_profile_filter): Likewise.
10938
10939 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
10940
10941 PR tree-optimization/89956
10942 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
10943 multiple negates of the same value.
10944
10945 2019-04-04 Martin Sebor <msebor@redhat.com>
10946
10947 PR middle-end/89957
10948 PR middle-end/89911
10949 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
10950 have the same precision since the function crashes otherwise.
10951 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
10952 has non-zero arguments.
10953
10954 2019-04-04 Martin Sebor <msebor@redhat.com>
10955
10956 PR middle-end/89934
10957 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
10958 out if the number of arguments is less than expected.
10959
10960 2019-04-04 Jeff Law <law@redhat.com>
10961
10962 PR rtl-optimization/89399
10963 * ree.c (combine_set_extension): Use single_set rather than
10964 digging into PATTERN for items on the candidate list.
10965 (combine_reaching_defs): Likewise.
10966
10967 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
10968
10969 PR rtl-optimization/46590
10970 * loop-invariant.c (find_defs): Move df_remove_problem and
10971 df_process_deferred_rescans to move_invariants.
10972 Move df_live_add_problem and df_live_set_all_dirty calls
10973 to move_invariants.
10974 (move_invariants): Likewise.
10975 (move_loop_invariants): Likewise, making the df_live calls
10976 conditional on -O. Remove the problem again if we added it
10977 locally.
10978
10979 2019-04-03 qing zhao <qing.zhao@oracle.com>
10980
10981 PR tree-optimization/89730
10982 * ipa-inline.c (can_inline_edge_p): Delete the checking for
10983 -flive-patching=inline-only-static.
10984 (can_inline_edge_by_limits_p): Add the checking for
10985 -flive-patching=inline-only-static and grant always_inline
10986 even when -flive-patching=inline-only-static is specified.
10987
10988 2019-04-03 Jeff Law <law@redhat.com>
10989
10990 PR rtl-optimization/81025
10991 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
10992
10993 2019-04-03 Richard Biener <rguenther@suse.de>
10994
10995 PR tree-optimization/84101
10996 * tree-vect-stmts.c: Include explow.h for hard_function_value,
10997 regs.h for hard_regno_nregs.
10998 (cfun_returns): New helper.
10999 (vect_model_store_cost): When vectorizing a store to a decl
11000 we return and the function ABI returns in a multi-reg location
11001 account for the possible spilling that will happen.
11002
11003 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
11004
11005 * config/s390/s390.c (s390_legitimate_address_p): Reject long
11006 displacement addresses for vector mode operands.
11007
11008 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
11009
11010 * config/arc/arc.c (GMASK_LEN): Define.
11011 (arc_restore_callee_saves): Restore first blink when
11012 !optimize_size.
11013
11014 2019-04-03 Sudakshina Das <sudi.das@arm.com>
11015
11016 * doc/extend.texi: Add deprecated comment on sign-return-address
11017 function attribute and add mbranch-protection.
11018 * doc/invoke.texi: Add bti to the options for mbranch-protection.
11019
11020 2019-04-03 Richard Biener <rguenther@suse.de>
11021
11022 PR lto/89896
11023 * lto-wrapper.c (run_gcc): Avoid implicit rules making
11024 the all target phony.
11025
11026 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
11027
11028 PR target/89902
11029 PR target/89903
11030 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
11031 Return false for variable DImode shifts.
11032 (dimode_scalar_chain::compute_convert_gain): Do not handle
11033 register count operand in variable DImode shifts.
11034 (dimode_scalar_chain::make_vector_copies): Remove support to copy
11035 count argument of a variable shift instruction to a vector register.
11036 (dimode_scalar_chain::convert_reg): Remove support to convert
11037 count argument of a variable shift instruction.
11038
11039 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
11040
11041 PR rtl-optimization/84206
11042 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
11043 iterating over loop headers.
11044
11045 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
11046
11047 PR rtl-optimization/85876
11048 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
11049 beyond the original fence.
11050
11051 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
11052
11053 * config.gcc: Mark spu* targets as deprecated/obsolete.
11054
11055 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11056
11057 * config/s390/s390-builtin-types.def: New builtin function type
11058 definitions. Remove unused types.
11059 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
11060 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
11061 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
11062 overloaded builtins.
11063 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
11064 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
11065 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
11066 (vec_double, vec_signed, vec_unsigned): Define to use the new
11067 overloaded builtins.
11068 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
11069 Remove expanders.
11070
11071 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11072
11073 * config/s390/s390-builtin-types.def: New builtin function type
11074 definitions.
11075 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
11076 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
11077 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
11078 (s390_vstrszh, s390_vstrszf): New low-level builtins.
11079 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
11080 constant definitions.
11081 * config/s390/vecintrin.h (vec_search_string_cc)
11082 (vec_search_string_until_zero_cc): New builtin name definitions.
11083 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
11084 expanders.
11085 ("vec_vstrs<mode>"): New insn definition.
11086
11087 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11088
11089 * config/s390/s390-builtin-types.def: Add new builtin function
11090 types.
11091 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
11092 New overloaded builtins.
11093 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
11094 s390_vsrd.
11095 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
11096 (UNSPEC_VEC_SLDBYTE): ... this.
11097 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
11098 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
11099 definitions.
11100 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
11101 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
11102 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
11103
11104 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11105
11106 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
11107 New insn definition.
11108 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
11109 * config/s390/vector.md (V_HW_HSD): ... here.
11110
11111 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11112
11113 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
11114 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
11115 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
11116 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
11117 New insn definitions.
11118
11119 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11120
11121 * config/s390/s390-builtin-types.def: Add new builtin function type.
11122 * config/s390/s390-builtins.def: Add overloaded builtin
11123 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
11124 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
11125 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
11126 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
11127 ("eltswap<mode>"): New expander.
11128 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
11129 insn definitions.
11130
11131 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11132
11133 * config/s390/s390-builtin-types.def: Add new builtin function types.
11134 * config/s390/s390-builtins.def: Add overloaded builtin
11135 s390_vec_revb. Add low-level builtins for vlbr and vstbr
11136 instructions.
11137 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
11138 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
11139 ("bswap<mode>"): New expander.
11140 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
11141
11142 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11143
11144 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
11145 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
11146 vector builtin version number in __VEC__.
11147
11148 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11149
11150 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
11151 iterators.
11152 (SFSI): New mode attribute.
11153 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
11154 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
11155 rename to ...
11156 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
11157 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
11158 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
11159 ("floatsi<mode>2"): Add wcefb instruction.
11160
11161 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11162
11163 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
11164 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
11165 mode iterators.
11166 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
11167 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
11168 support 32 bit fp-int conversions. Rename to ...
11169 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
11170 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
11171 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
11172 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
11173 ... to these.
11174
11175 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11176
11177 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
11178 if-then-else constructs if we can use the select instruction.
11179 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
11180
11181 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11182
11183 * config/s390/s390.md ("*popcountdi_arch13_cc")
11184 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
11185 definition.
11186 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
11187 Append _z196 to make it ...
11188 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
11189 ("popcounthi2_z196"): ... this.
11190 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
11191 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
11192
11193 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11194
11195 * config/s390/s390.c (s390_canonicalize_comparison): Convert
11196 certain compares for arch13 in order to make use of the condition
11197 code result produced by the new instructions.
11198 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
11199 nxrk, and nxgrk instruction patterns.
11200 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
11201 (inv_no): Add new code iterator together with some attributes.
11202 ("*andc_split_<mode>"): Disable splitter for arch13.
11203 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
11204 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
11205 ("*<ANDOR:bitops_name>c<GPR:mode>")
11206 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
11207 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
11208 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
11209 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
11210
11211 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11212
11213 * common/config/s390/s390-common.c (processor_flags_table): New
11214 entry for arch13.
11215 * config.gcc: Support arch13 with the --with-arch= configure flag.
11216 * config/s390/driver-native.c (s390_host_detect_local_cpu):
11217 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
11218 * config/s390/s390.c (s390_get_sched_attrmask)
11219 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
11220 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
11221 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
11222 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
11223 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
11224 definitions.
11225 * config/s390/s390.opt: Support arch13 as processor type in
11226 command line options.
11227
11228 2019-04-02 Martin Liska <mliska@suse.cz>
11229
11230 PR translation/89912
11231 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
11232 Fix param description of graphite-max-arrays-per-scop.
11233
11234 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
11235
11236 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
11237 (ASAN_CC1_SPEC): Use it in 64-bit mode.
11238 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
11239
11240 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
11241
11242 PR rtl-optimization/85412
11243 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
11244 sel_sched_region_1, not after.
11245
11246 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
11247
11248 PR rtl-optimization/86928
11249 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
11250 compute_live if necessary.
11251 (sel_redirect_edge_and_branch): Likewise.
11252
11253 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
11254
11255 PR rtl-optimization/89865
11256 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
11257 register if it is a part of small class.
11258
11259 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
11260
11261 PR rtl-optimization/87273
11262 * sel-sched-ir.c (merge_fences): Remove assert.
11263
11264 2019-04-01 Richard Biener <rguenther@suse.de>
11265
11266 PR tree-optimization/46590
11267 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
11268 (dom_walker::m_reachability): Add in place of...
11269 (dom_walker::m_skip_unreachable_blocks): ...this.
11270 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
11271 Move complex initialization ...
11272 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
11273 lazily and initialize edge flags on each invocation.
11274 (dom_walker::bb_reachable): Use m_reachability.
11275
11276 2019-04-01 Martin Liska <mliska@suse.cz>
11277
11278 PR driver/89861
11279 * opt-suggestions.c (option_proposer::build_option_suggestions):
11280 Add variant without any argument in order to provide better
11281 hints.
11282
11283 2019-04-01 Richard Biener <rguenther@suse.de>
11284
11285 PR c/71598
11286 * gimple.c: Include langhooks.h.
11287 (gimple_get_alias_set): Treat enumeral types as the underlying
11288 integer type.
11289
11290 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
11291 Eric Botcazou <ebotcazou@adacore.com>
11292
11293 PR rtl-optimization/89862
11294 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
11295 that operates on the full registers for WORD_REGISTER_OPERATIONS
11296 architectures.
11297
11298 2019-03-29 Jim Wilson <jimw@sifive.com>
11299
11300 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
11301 Clear MASK_RVC and then set if C subset supported.
11302
11303 2019-03-29 Jakub Jelinek <jakub@redhat.com>
11304
11305 PR c/89872
11306 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
11307 non-addressable complit into its initializer if it is volatile.
11308
11309 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
11310
11311 * opts-common.c (integral_argument): Set errno properly in one case.
11312
11313 2019-03-29 Martin Liska <mliska@suse.cz>
11314
11315 * doc/invoke.texi: Remove -Wchkp from documentation.
11316
11317 2019-03-29 Martin Liska <mliska@suse.cz>
11318
11319 * dbgcnt.c (print_limit_reach): New function.
11320 (dbg_cnt): Use it.
11321
11322 2019-03-29 Martin Liska <mliska@suse.cz>
11323
11324 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
11325 (dbg_cnt_process_opt): Parse first tokens aas
11326 dbg_cnt_process_single_pair is also using strtok.
11327
11328 2019-03-29 Jakub Jelinek <jakub@redhat.com>
11329
11330 PR rtl-optimization/87485
11331 * function.c (expand_function_end): Move stack_protect_epilogue
11332 before loading of return value into hard register(s).
11333
11334 2019-03-28 Jakub Jelinek <jakub@redhat.com>
11335
11336 PR middle-end/89621
11337 * tree-inline.h (struct copy_body_data): Add
11338 dont_remap_vla_if_no_change flag.
11339 * tree-inline.c (remap_type_3, remap_type_2): New functions.
11340 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
11341 and remap_type_2 returns false.
11342 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
11343 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
11344 only from where it is copied to nested contexts.
11345
11346 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
11347
11348 PR target/89865
11349 * config/i386/i386.md (RMW operation with LEA peephole):
11350 Use LEAMODE mode attribute instead of SWI mode iterator for
11351 LEA pattern.
11352
11353 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
11354
11355 PR target/89848
11356 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
11357 Also process XEXP (src, 0) of a shift insn.
11358
11359 2019-03-28 David Malcolm <dmalcolm@redhat.com>
11360
11361 PR middle-end/89725
11362 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
11363 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
11364
11365 2019-03-28 Jakub Jelinek <jakub@redhat.com>
11366
11367 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
11368 test.
11369 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
11370 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
11371 immediately after first one with df_analyze in between, but rather
11372 process all bbs, queueing ones that need second pass in a worklist,
11373 df_analyze, process queued debug insn changes and if second pass is
11374 needed, process bbs from worklist, df_analyze, process queued debug
11375 insns again.
11376
11377 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
11378 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
11379 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
11380
11381 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
11382
11383 PR c/79022
11384 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
11385 definition.
11386
11387 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
11388
11389 PR target/85667
11390 * config/i386/i386.c (ix86_function_value_1): Call the newly added
11391 function for 32-bit MS_ABI.
11392 (function_value_ms_32): New function.
11393
11394 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
11395
11396 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
11397 (movdi): Call gen_movdi_symbol_save_scc.
11398 (gen_movdi_symbol_save_scc): New insn and split.
11399
11400 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
11401
11402 PR rtl-optimization/89313
11403 * function.c (matching_constraint_num): New static function.
11404 (match_asm_constraints_1): Use it. Fixup white space and comment.
11405 Don't replace inputs with non-matching constraints which conflict
11406 with early clobber outputs.
11407
11408 2019-03-27 Jeff Law <law@redhat.com>
11409
11410
11411 PR rtl-optimization/87761
11412 PR rtl-optimization/89826
11413 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
11414 slightly later.
11415 (pass_cprop_hardreg::execute): Call df_analyze after adding the
11416 note problem to get REG_DEAD/REG_UNUSED notes updated.
11417
11418 2019-03-27 Richard Biener <rguenther@suse.de>
11419
11420 PR tree-optimization/89463
11421 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
11422 queue edges to remove.
11423 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
11424 dead stmts. Delay edge removal until PHIs are removed to
11425 make debug-stmt creation not confused by seemingly degenerate
11426 PHIs.
11427
11428 2019-03-27 Alan Modra <amodra@gmail.com>
11429
11430 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
11431 throughout file.
11432 * config/rs6000/darwin.h: Likewise.
11433 * config/rs6000/rs6000.c: Likewise.
11434
11435 2019-03-27 Alan Modra <amodra@gmail.com>
11436
11437 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
11438 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
11439
11440 2019-03-26 Andrew Waterman <andrew@sifive.com>
11441 Jim Wilson <jimw@sifive.com>
11442
11443 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
11444 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
11445 (generic_idivdi, generic_fmul_single, generic_fmul_double)
11446 (generic_fdiv, generic_fsqrt): Add check for generic tune.
11447 (generic_alu): Add auipc to type list.
11448 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
11449 (riscv_microarchitecture): Declare.
11450 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
11451 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
11452 field.
11453 (riscv_microarchitecture): New.
11454 (sifive_7_tune_info): New.
11455 (riscv_cpu_info_table): Add microarchitecture value for rocket and
11456 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
11457 entries.
11458 (riscv_store_data_bypass_p): New.
11459 (riscv_option_override): Set riscv_microarchitecture from
11460 cpu->microarchitecture.
11461 * config/riscv/riscv.md: Include sifive-7.md.
11462 (type): Add auipc.
11463 (tune): New.
11464 (auipc<mode>): Change type to auipc.
11465 (restore_stack_nonlocal): New.
11466 * config/riscv/sifive-7.md: New.
11467 * doc/invoke.texi (RISC-V Options): Update mtune docs.
11468
11469 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
11470
11471 PR target/89827
11472 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
11473 Also process XEXP (src, 0) of a shift insn.
11474
11475 2019-03-26 Richard Biener <rguenther@suse.de>
11476
11477 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
11478 (copy_debug_stmt): Likewise.
11479 (expand_call_inline): Likewise.
11480 (copy_bb): Avoid redundant lookup & set of gimple_block.
11481 * gimple-low.c (lower_gimple_return): Likewise.
11482 (lower_builtin_setjmp): Likewise.
11483
11484 2019-03-26 Jakub Jelinek <jakub@redhat.com>
11485
11486 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
11487 is constant 0, turn into static const data member initialized to false.
11488 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
11489 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
11490
11491 2019-03-26 Jason Merrill <jason@redhat.com>
11492 Jakub Jelinek <jakub@redhat.com>
11493
11494 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
11495 method.
11496 (mem_alloc_description::release_object_overhead): Fix comment typos.
11497 * hash-table.h (hash_table::~hash_table): Call
11498 release_instance_overhead only if m_entries is non-NULL, otherwise
11499 call unregister_descriptor.
11500
11501 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
11502
11503 PR tree-optimization/81740
11504 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
11505 In case of outer loop vectorization, check for backward dependence
11506 at the inner loop if outer loop dependence is reversed.
11507
11508 2019-03-26 Alan Modra <amodra@gmail.com>
11509
11510 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
11511 rs6000_vector_mem init. Correct wI and wJ comment.
11512
11513 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
11514
11515 PR rtl-optimization/88347
11516 PR rtl-optimization/88423
11517 * sched-deps.c (sched_analyze_insn): Take into account that for
11518 tablejumps the barrier appears after a label and a jump_table_data.
11519
11520 2019-03-25 Martin Sebor <msebor@redhat.com>
11521
11522 PR c/89812
11523 * c-common.c (check_user_alignment): Rename local. Correct maximum
11524 alignment in diagnostic. Avoid assuming argument fits in SHWI,
11525 convert it to UHWI when it fits.
11526
11527 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
11528
11529 PR debug/86964
11530 * dwarf2out.c (premark_used_variables): New function.
11531 (prune_unused_types_walk): Do not mark not premarked external
11532 variables.
11533 (prune_unused_types): Call premark_used_variables.
11534
11535 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
11536
11537 PR rtl-optimization/89676
11538 * lra-constraints.c (curr_insn_transform): Do match reload for
11539 early clobbers when the match was successful only for different
11540 registers.
11541
11542 2019-03-25 Martin Sebor <msebor@redhat.com>
11543
11544 * doc/extend.texi (Common Type Attributes): Document vector_size.
11545 (Common Variable Attributes): Mention size constraint. Correct
11546 quoting and typos.
11547 (Vector Extensions): Use @dfn when defining bas type. Clarify
11548 base type and size constraints.
11549
11550 2019-03-25 Richard Biener <rguenther@suse.de>
11551
11552 PR tree-optimization/89789
11553 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
11554 changes from non-undefined back to undefined.
11555
11556 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
11557
11558 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
11559 heap string and a gc string, but since this variable is unknown to
11560 ggc the gc string might get reused and corrupted. Fixed by always
11561 using a heap string.
11562
11563 2019-03-25 Richard Biener <rguenther@suse.de>
11564
11565 PR tree-optimization/89779
11566 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
11567 to remove IV defs, delay actual removal.
11568 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
11569 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
11570 very end, properly also reset loop control IV information.
11571
11572 2019-03-25 Richard Biener <rguenther@suse.de>
11573
11574 PR tree-optimization/89802
11575 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
11576 move EH data to folded stmt.
11577
11578 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
11579
11580 * config/s390/s390-builtin-types.def: Remove few unused types and
11581 fix sort order for others.
11582
11583 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
11584
11585 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
11586 expected and found types with -mdebug during builtin matching.
11587
11588 2019-03-25 Richard Biener <rguenther@suse.de>
11589
11590 PR middle-end/89790
11591 * fold-const.c (operand_equal_p): Revert last change with
11592 updated comment.
11593
11594 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
11595
11596 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
11597 notes for the result of the __tls_get_addr calls.
11598 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
11599
11600 2019-03-24 Jeff Law <law@redhat.com>
11601
11602 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
11603
11604 PR rtl-optimization/87761
11605 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
11606 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
11607 as needed.
11608 (pass_cprop_hardreg::execute): Add df note problem and defer insn
11609 rescans. Reprocess blocks as needed, calling df_analyze before
11610 reprocessing. Always call df_analyze before fixing up debug bind
11611 insns.
11612
11613 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
11614
11615 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
11616 big endian.
11617
11618 2019-03-22 Andrew Pinski <apinski@marvell.com>
11619
11620 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
11621 attrribute for uxtw.
11622
11623 2019-03-26 Jeff Law <law@redhat.com>
11624
11625 PR rtl-optimization/87761
11626 * config/mips/mips-protos.h (mips_split_move): Add new argument.
11627 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
11628 (mips_split_move): Accept new INSN argument. Try to forward SRC
11629 into the next instruction.
11630 (mips_split_move_insn): Pass INSN through to mips_split_move.
11631
11632 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
11633
11634 PR rtl-optimization/89676
11635 * lra-constraints.c (curr_insn_transform): Do match reload for
11636 early clobbers even if the match was successful.
11637
11638 2019-03-22 Jakub Jelinek <jakub@redhat.com>
11639
11640 PR c++/87481
11641 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
11642
11643 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
11644
11645 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
11646
11647 2019-03-22 Jakub Jelinek <jakub@redhat.com>
11648
11649 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
11650 <avx512>_fmsub_<mode>_mask3<round_name>,
11651 <avx512>_fnmadd_<mode>_mask3<round_name>,
11652 <avx512>_fnmsub_<mode>_mask3<round_name>,
11653 avx512f_vmfmadd_<mode>_mask3<round_name>,
11654 avx512f_vmfmsub_<mode>_mask3<round_name>,
11655 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
11656 instead of register_operand and %v instead of v for match_operand 1.
11657 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
11658 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
11659 <round_nimm_predicate> instead of register_operand and %v instead of v
11660 for match_operand 1.
11661
11662 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
11663 <avx512>_fmadd_<mode>_mask3<round_name>,
11664 <avx512>_fmsub_<mode>_mask<round_name>,
11665 <avx512>_fmsub_<mode>_mask3<round_name>,
11666 <avx512>_fnmadd_<mode>_mask<round_name>,
11667 <avx512>_fnmadd_<mode>_mask3<round_name>,
11668 <avx512>_fnmsub_<mode>_mask<round_name>,
11669 <avx512>_fnmsub_<mode>_mask3<round_name>,
11670 <avx512>_fmaddsub_<mode>_mask<round_name>,
11671 <avx512>_fmaddsub_<mode>_mask3<round_name>,
11672 <avx512>_fmsubadd_<mode>_mask<round_name>,
11673 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
11674 <round_nimm_predicate> instead of nonimmediate_operand.
11675 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
11676 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
11677 Use register_operand instead of <round_nimm_predicate> for the
11678 operand that needs to match output.
11679 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
11680 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
11681 Likewise. Formatting fixes.
11682
11683 PR target/89784
11684 * config/i386/i386.c (enum ix86_builtins): Remove
11685 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
11686 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
11687 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
11688 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
11689 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
11690 __builtin_ia32_vfmsubss3_mask3): New builtins.
11691 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
11692 avx512f_vmfmadd_<mode>_mask3<round_name>,
11693 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
11694 *avx512f_vmfmsub_<mode>_mask<round_name>,
11695 avx512f_vmfmsub_<mode>_mask3<round_name>,
11696 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
11697 *avx512f_vmfnmadd_<mode>_mask<round_name>,
11698 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
11699 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
11700 *avx512f_vmfnmsub_<mode>_mask<round_name>,
11701 avx512f_vmfnmsub_<mode>_mask3<round_name>,
11702 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
11703 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
11704 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
11705 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
11706 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
11707 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
11708 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
11709 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
11710 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
11711 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
11712 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
11713 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
11714 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
11715 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
11716 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
11717 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
11718 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
11719 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
11720 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
11721 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
11722 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
11723 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
11724
11725 2019-03-21 Martin Sebor <msebor@redhat.com>
11726
11727 PR tree-optimization/89350
11728 * builtins.c (compute_objsize): Also ignore offsets whose upper
11729 bound is negative.
11730 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
11731 (builtin_memref::builtin_memref): Initialize new member.
11732 Allow EXPR to be null.
11733 (builtin_memref::extend_offset_range): Replace local with a member.
11734 Avoid assuming pointer offsets are unsigned.
11735 (builtin_memref::set_base_and_offset): Determine base object
11736 before computing offset range.
11737 (builtin_access::builtin_access): Handle memset.
11738 (builtin_access::generic_overlap): Replace local with a member.
11739 (builtin_access::strcat_overlap): Same.
11740 (builtin_access::overlap): Same.
11741 (maybe_diag_overlap): Same.
11742 (maybe_diag_access_bounds): Same.
11743 (wrestrict_dom_walker::check_call): Handle memset.
11744 (check_bounds_or_overlap): Same.
11745
11746 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
11747 Jakub Jelinek <jakub@redhat.com>
11748
11749 PR lto/89692
11750 * tree.c (fld_type_variant, fld_incomplete_type_of,
11751 fld_process_array_type): Call fld->pset.add and don't call
11752 add_tree_to_fld_list if it returns true.
11753 (free_lang_data_in_type): Similarly with self-recursive call. Purge
11754 non-marked types from TYPE_NEXT_VARIANT list.
11755 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
11756
11757 2019-03-21 Jakub Jelinek <jakub@redhat.com>
11758
11759 * hash-table.h (hash_table): Add Lazy template parameter defaulted
11760 to false, if true, don't alloc_entries during construction, but defer
11761 it to the first method that needs m_entries allocated.
11762 (hash_table::hash_table, hash_table::~hash_table,
11763 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
11764 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
11765 hash_table::clear_slot, hash_table::traverse_noresize,
11766 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
11767 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
11768 false.
11769 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
11770 NO_INSERT instead of find_with_hash.
11771 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
11772 hash_set::m_table): Add Lazy to template params of hash_table.
11773 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
11774 * attribs.c (test_attribute_exclusions): Likewise.
11775 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
11776 hash_set. Add tests for hash_set with Lazy = true.
11777
11778 2019-03-21 Richard Biener <rguenther@suse.de>
11779
11780 PR tree-optimization/89779
11781 * tree.c (tree_nop_conversion): Consolidate and fix defensive
11782 checks with respect to released SSA names now having error_mark_node
11783 type.
11784 * fold-const.c (operand_equal_p): Likewise.
11785
11786 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
11787
11788 PR target/89775
11789 * config/s390/s390.c (global_not_special_regno_p): Move to make it
11790 available to ...
11791 (s390_optimize_register_info): Use global_not_special_regno_p to
11792 check for global regs.
11793
11794 2019-03-20 Jakub Jelinek <jakub@redhat.com>
11795
11796 PR target/89752
11797 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
11798 update this_alternative nor this_alternative_set.
11799
11800 2019-03-19 Jim Wilson <jimw@sifive.com>
11801
11802 PR target/89411
11803 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
11804 align, size, offset. Use them to handle a BLKmode reference. Update
11805 comment.
11806 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
11807
11808 2019-03-19 Jakub Jelinek <jakub@redhat.com>
11809
11810 PR rtl-optimization/89768
11811 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
11812 instead of GEN_INT.
11813 (unroll_loop_runtime_iterations): Likewise.
11814
11815 2019-03-19 Martin Sebor <msebor@redhat.com>
11816
11817 PR tree-optimization/89644
11818 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
11819 rather than endptr as an indicator of nul-termination.
11820
11821 PR tree-optimization/89644
11822 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
11823 arrays in determining sequence sizes in strncpy and stpncpy.
11824
11825 2019-03-19 Martin Liska <mliska@suse.cz>
11826
11827 PR middle-end/89737
11828 * predict.c (combine_predictions_for_bb): Empty likely_edges and
11829 unlikely_edges if there's an edge that belongs to both these sets.
11830
11831 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
11832
11833 PR target/89746
11834 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
11835 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
11836 go via a stack temporary.
11837
11838 2019-03-19 Jakub Jelinek <jakub@redhat.com>
11839
11840 PR target/89378
11841 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
11842 instead of gen_rtx_SUBREG.
11843 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
11844
11845 2019-03-19 Richard Biener <rguenther@suse.de>
11846
11847 PR debug/88389
11848 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
11849
11850 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
11851
11852 PR lto/87809
11853 PR lto/89335
11854 * tree.c (free_lang_data_in_decl): Do not free context of C++
11855 destrutors.
11856
11857 2019-03-19 Jakub Jelinek <jakub@redhat.com>
11858
11859 PR target/89506
11860 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
11861 subs for the first alternative except when operands[3] is 1.
11862
11863 PR target/89752
11864 * gimplify.c (gimplify_asm_expr): For output argument with
11865 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
11866 diagnose error.
11867
11868 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
11869
11870 PR rtl-optimization/89753
11871 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
11872 explicit unrolling factor even more robust.
11873
11874 2019-03-19 Jakub Jelinek <jakub@redhat.com>
11875
11876 PR target/89726
11877 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
11878 compensation use x2 += 1 instead of x2 -= -1 and when honoring
11879 signed zeros, do another copysign after the compensation.
11880
11881 2019-03-18 Martin Sebor <msebor@redhat.com>
11882
11883 PR tree-optimization/89720
11884 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
11885 more conservatively, the same as anti-range.
11886
11887 2019-03-18 Richard Biener <rguenther@suse.de>
11888
11889 PR middle-end/88945
11890 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
11891 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
11892 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
11893 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
11894
11895 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
11896
11897 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
11898 Extend queue to 1024 entries.
11899 Add "consumed" field.
11900 (gomp_print_output): Remove print_index parameter.
11901 Add final parameter.
11902 Change limit to unsigned.
11903 Use consumed field to implement circular buffer.
11904 Detect interrupted print in final pass.
11905 Flush output at the end.
11906 (run): Update gomp_print_output usage.
11907 (main): Initialize kernargs->output_data.consumed.
11908
11909 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
11910
11911 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
11912 calculation of the minimum number of scalar iterations for
11913 fully-predicated loops.
11914
11915 2019-03-18 Martin Jambor <mjambor@suse.cz>
11916
11917 PR tree-optimization/89546
11918 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
11919 any propagation to its children took place.
11920
11921 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
11922
11923 PR target/89627
11924 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
11925 parameter, and make use of it.
11926 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
11927
11928 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
11929
11930 * config/arc/arc.opt (mcode-density-frame): Get the inital value
11931 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
11932 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
11933 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
11934 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
11935 match what the ops is doing.
11936 (push_multi_fp_blink): Likewise.
11937 * config/arc/arc.c (arc_override_options): Enable enter/leave when
11938 compiling for size and elf target.
11939 (arc_save_callee_enter): Adjust note to match what enter/leave
11940 operation does.
11941
11942 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
11943
11944 * config/arc/arc.md (tst_movb): Fix constraint.
11945
11946 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
11947
11948 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
11949
11950 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
11951
11952 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
11953 * config/arc/arc.c (arc_conditional_register_usage): Remove all
11954 reg_alloc_order references.
11955 (size_alloc_order): Define.
11956 (arc_adjust_reg_alloc_order): New function.
11957 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
11958 order.
11959 (ADJUST_REG_ALLOC_ORDER): Define.
11960 (HONOR_REG_ALLOC_ORDER): Likewise.
11961
11962 2019-03-18 Richard Biener <rguenther@suse.de>
11963
11964 PR target/87561
11965 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
11966 loads and stores a bit more.
11967
11968 2019-03-18 Richard Biener <rguenther@suse.de>
11969
11970 PR target/87561
11971 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
11972 load pessimization to stores as well.
11973
11974 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
11975
11976 PR middle-end/86979
11977 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
11978 successor, use NULL as its av set.
11979
11980 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
11981
11982 PR rtl-optimization/89721
11983 * lra-constraints (invariant_p): Return false if side_effects_p holds.
11984
11985 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
11986
11987 PR target/87532
11988 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
11989 When handling vec_extract, use modular arithmetic to allow
11990 constant selectors greater than vector length.
11991 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
11992 V1TImode vectors to have constant selector values greater than 0.
11993 Use modular arithmetic to compute vector index.
11994 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
11995 index for in-memory vectors. Correct code generation for
11996 in-register vectors.
11997 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
11998 compute index.
11999
12000 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
12001
12002 PR c++/88534
12003 PR c++/88537
12004 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
12005 VAR_DECL args.
12006
12007 2019-03-15 Jakub Jelinek <jakub@redhat.com>
12008
12009 PR c++/89709
12010 * tree.c (inchash::add_expr): Strip any location wrappers.
12011 * fold-const.c (operand_equal_p): Move stripping of location wrapper
12012 after hash verification.
12013
12014 PR debug/89704
12015 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
12016 SIGN_EXTEND and ZERO_EXTEND.
12017
12018 2019-03-14 Jason Merrill <jason@redhat.com>
12019 Jakub Jelinek <jakub@redhat.com>
12020
12021 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
12022 than if is_empty (*slot).
12023 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
12024 existing elt and for elt removal.
12025 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
12026 of already removed elt.
12027
12028 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
12029
12030 PR target/89650
12031 * config/i386/i386.c (remove_partial_avx_dependency): Handle
12032 REG_EH_REGION note.
12033
12034 2019-03-14 Martin Liska <mliska@suse.cz>
12035
12036 PR other/89712
12037 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
12038
12039 2019-03-14 Richard Biener <rguenther@suse.de>
12040
12041 PR target/89711
12042 * config/i386/i386.c (make_resolver_func): Properly set
12043 DECL_CONTEXT on the RESULT_DECL.
12044 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
12045
12046 2019-03-14 Richard Biener <rguenther@suse.de>
12047
12048 * gimple-pretty-print.c: Include cfgloop.h.
12049 (dump_gimple_phi): Adjust.
12050 (dump_gimple_bb_header): Dump loop header for GIMPLE.
12051 (pp_cfg_jump): Adjust.
12052 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
12053 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
12054 (lower_phi_internal_fn): Remove.
12055 (verify_gimple_call): Remove IFN_PHI special-casing.
12056 (dump_function_to_file): Dump IL state.
12057 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
12058 done to deal with PHI nodes being present in non-SSA state.
12059
12060 2019-03-14 Jakub Jelinek <jakub@redhat.com>
12061
12062 PR ipa/89684
12063 * multiple_target.c (create_dispatcher_calls): Change
12064 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
12065 In the node->iterate_referring loop, push *ref rather than ref, call
12066 ref->remove_reference () and always pass 0 to iterate_referring.
12067
12068 PR rtl-optimization/89679
12069 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
12070 would contain a paradoxical SUBREG.
12071
12072 2019-03-14 Richard Biener <rguenther@suse.de>
12073
12074 PR tree-optimization/89710
12075 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
12076 safe_dyn_cast.
12077
12078 2019-03-14 Martin Liska <mliska@suse.cz>
12079
12080 * coverage.c (coverage_begin_function): Stream also
12081 end_column.
12082 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
12083 documentation about function declaration location.
12084 * gcov-dump.c (tag_function): Print whole range
12085 of function declaration.
12086 * gcov.c (struct function_info): Add end_column field.
12087 (function_info::function_info): Initialize it.
12088 (output_json_intermediate_file): Output {start,end}_column
12089 fields.
12090 (read_graph_file): Read end_column.
12091
12092 2019-03-14 Richard Biener <rguenther@suse.de>
12093
12094 PR middle-end/89698
12095 * fold-const.c (operand_equal_p): For INDIRECT_REF check
12096 that the access types are similar.
12097
12098 2019-03-14 Jakub Jelinek <jakub@redhat.com>
12099
12100 PR tree-optimization/89703
12101 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
12102 aren't compatible also with builtin_decl_explicit. Check pure
12103 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
12104 and BUILT_IN_STPNCPY{,_CHK}.
12105
12106 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
12107
12108 PR target/89523
12109 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
12110 addr32 prefix to VSIB address for X32.
12111 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
12112 "%M2" to opcode.
12113 (*avx512pf_gatherpf<mode>df_mask): Likewise.
12114 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
12115 (*avx512pf_scatterpf<mode>df_mask): Likewise.
12116 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
12117 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
12118 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
12119 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
12120 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
12121 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
12122 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
12123 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
12124 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
12125 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
12126 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
12127 (*avx512f_scatterdi<mode>): Likewise.
12128
12129 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
12130
12131 PR target/85860
12132 * lra-constraints.c (inherit_in_ebb): Update
12133 potential_reload_hard_regs along with live_hard_regs.
12134
12135 2019-03-13 Jakub Jelinek <jakub@redhat.com>
12136
12137 PR debug/89498
12138 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
12139 DWARF_OFFSET_SIZE.
12140 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
12141
12142 2019-03-13 Martin Sebor <msebor@redhat.com>
12143
12144 PR tree-optimization/89662
12145 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
12146 has a size.
12147
12148 2019-03-13 Richard Biener <rguenther@suse.de>
12149
12150 PR middle-end/89677
12151 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
12152 throw FP expressions at tree-affine.
12153
12154 2019-03-14 Richard Biener <rguenther@suse.de>
12155
12156 * tree-pretty-print.c (dump_generic_node): For -gimple properly
12157 dump negative integer constants using _Literal (type) -num.
12158
12159 2019-03-13 Jakub Jelinek <jakub@redhat.com>
12160
12161 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
12162 nonlocal_value member.
12163
12164 PR middle-end/88588
12165 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
12166 (ipa_simd_modify_function_body): Handle PHIs.
12167
12168 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
12169
12170 * config/s390/s390.c (s390_option_override_internal): Use more
12171 aggressive inlining parameters.
12172
12173 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
12174
12175 * config/s390/3906.md: New file.
12176 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
12177 (LONGRUNNING_THRESHOLD): Remove.
12178 (MAX_SCHED_MIX_SCORE): Decrease.
12179 (MAX_SCHED_MIX_DISTANCE): Decrease.
12180 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
12181 (struct s390_sched_state): New struct to hold scheduling state.
12182 (S390_SCHED_STATE_NORMAL): Remove.
12183 (S390_SCHED_STATE_CRACKED): Remove.
12184 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
12185 (s390_get_sched_attrmask): Use new attribute.
12186 (s390_get_unit_mask): Use new units.
12187 (s390_is_fpd): New function.
12188 (s390_is_fxd): New function.
12189 (s390_is_longrunning): New function.
12190 (s390_sched_score): Use new functions.
12191 (s390_sched_reorder): Likewise.
12192 (s390_sched_variable_issue): Rework and use new functions.
12193 (s390_sched_init): Use new functions.
12194 * config/s390/s390.h (s390_tune_attr): Add z14.
12195 * config/s390/s390.md: Add z14.
12196
12197 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
12198
12199 * config/s390/2964.md: Update pipeline description.
12200 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
12201 (LONGRUNNING_THRESHOLD): Remove.
12202 (LATENCY_FACTOR): Remove.
12203 (s390_get_unit_mask): Add unit.
12204 (s390_sched_score): Use fxd/fpd.
12205 (s390_sched_variable_issue): Use fxd/fpd.
12206
12207 2019-03-12 Martin Liska <mliska@suse.cz>
12208
12209 * config/i386/i386.c: Reword an error message.
12210
12211 2019-03-12 Martin Jambor <mjambor@suse.cz>
12212
12213 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
12214 terminate with newline.
12215
12216 2019-03-12 Jakub Jelinek <jakub@redhat.com>
12217
12218 PR target/52726
12219 * config/s390/s390.md (tabort): Use %wd instead of
12220 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
12221 letters and periods.
12222 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
12223 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
12224 's with %< and %>.
12225
12226 PR middle-end/89663
12227 * builtins.c (expand_builtin_int_roundingfn,
12228 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
12229 gcc_unreachable if validate_arglist fails.
12230
12231 2019-03-12 Richard Biener <rguenther@suse.de>
12232
12233 PR tree-optimization/89664
12234 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
12235 free the occurance tree after the early out.
12236
12237 2019-03-11 Jakub Jelinek <jakub@redhat.com>
12238
12239 PR middle-end/89655
12240 PR bootstrap/89656
12241 * vr-values.c (vr_values::update_value_range): If
12242 old_vr->varying_p (), don't update it, make new_vr also VARYING
12243 and return false.
12244
12245 2019-03-11 Martin Liska <mliska@suse.cz>
12246
12247 * config/aarch64/aarch64.c (aarch64_override_options_internal):
12248 Fix double string quoting.
12249
12250 2019-03-11 Martin Liska <mliska@suse.cz>
12251
12252 * collect-utils.c (collect_wait): Wrap apostrophes
12253 in gcc internal format with %'.
12254 * collect2.c (main): Likewise.
12255 (scan_prog_file): Likewise.
12256 (scan_libraries): Likewise.
12257 * config/i386/i386.c (ix86_expand_call): Likewise.
12258 (ix86_handle_interrupt_attribute): Likewise.
12259 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
12260 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
12261 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
12262 * lto-wrapper.c (find_crtoffloadtable): Likewise.
12263 * symtab.c (symtab_node::verify_base): Likewise.
12264 * tree-cfg.c (verify_gimple_label): Likewise.
12265 * tree.c (verify_type_variant): Likewise.
12266
12267 2019-03-11 Martin Liska <mliska@suse.cz>
12268
12269 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
12270 in a string format message and fix GNU coding style.
12271 (expand_builtin_set_thread_pointer): Likewise.
12272 * common/config/aarch64/aarch64-common.c
12273 (aarch64_rewrite_selected_cpu): Likewise.
12274 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
12275 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
12276 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
12277 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
12278 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
12279 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
12280 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
12281 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
12282 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
12283 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
12284 Likewise.
12285 * common/config/riscv/riscv-common.c
12286 (riscv_subset_list::parsing_subset_version): Likewise.
12287 (riscv_subset_list::parse_std_ext): Likewise.
12288 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
12289 (riscv_subset_list::parse): Likewise.
12290 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
12291 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
12292 (aarch64_override_options_internal): Likewise.
12293 (aarch64_validate_mcpu): Likewise.
12294 (aarch64_validate_march): Likewise.
12295 (aarch64_validate_mtune): Likewise.
12296 (aarch64_override_options): Likewise.
12297 * config/alpha/alpha.c (alpha_option_override): Likewise.
12298 * config/arc/arc.c (arc_init): Likewise.
12299 (parse_mrgf_banked_regs_option): Likewise.
12300 (arc_override_options): Likewise.
12301 (arc_expand_builtin_aligned): Likewise.
12302 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
12303 (arm_expand_builtin): Likewise.
12304 * config/arm/arm.c (arm_option_check_internal): Likewise.
12305 (arm_configure_build_target): Likewise.
12306 (arm_option_override): Likewise.
12307 (arm_options_perform_arch_sanity_checks): Likewise.
12308 (arm_handle_cmse_nonsecure_entry): Likewise.
12309 (arm_handle_cmse_nonsecure_call): Likewise.
12310 (arm_tls_referenced_p): Likewise.
12311 (thumb1_expand_prologue): Likewise.
12312 * config/avr/avr.c (avr_option_override): Likewise.
12313 * config/bfin/bfin.c (bfin_option_override): Likewise.
12314 * config/c6x/c6x.c (c6x_option_override): Likewise.
12315 * config/cr16/cr16.c (cr16_override_options): Likewise.
12316 * config/cris/cris.c (cris_option_override): Likewise.
12317 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
12318 * config/darwin-c.c (macosx_version_as_macro): Likewise.
12319 * config/darwin.c (darwin_override_options): Likewise.
12320 * config/frv/frv.c (frv_expand_builtin): Likewise.
12321 * config/h8300/h8300.c (h8300_option_override): Likewise.
12322 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
12323 (ix86_option_override_internal): Likewise.
12324 (warn_once_call_ms2sysv_xlogues): Likewise.
12325 (ix86_expand_prologue): Likewise.
12326 (split_stack_prologue_scratch_regno): Likewise.
12327 (ix86_warn_parameter_passing_abi): Likewise.
12328 * config/ia64/ia64.c (fix_range): Likewise.
12329 * config/m68k/m68k.c (m68k_option_override): Likewise.
12330 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
12331 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
12332 (mips_set_compression_mode): Likewise.
12333 * config/mmix/mmix.c (mmix_option_override): Likewise.
12334 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
12335 * config/msp430/msp430.c (msp430_option_override): Likewise.
12336 * config/nds32/nds32.c (nds32_option_override): Likewise.
12337 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
12338 (nios2_option_override): Likewise.
12339 (nios2_expand_custom_builtin): Likewise.
12340 * config/nvptx/mkoffload.c (main): Likewise.
12341 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
12342 * config/pa/pa.c (fix_range): Likewise.
12343 (pa_option_override): Likewise.
12344 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
12345 (riscv_option_override): Likewise.
12346 * config/rl78/rl78.c (rl78_option_override): Likewise.
12347 * config/rs6000/aix61.h: Likewise.
12348 * config/rs6000/aix71.h: Likewise.
12349 * config/rs6000/aix72.h: Likewise.
12350 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
12351 * config/rs6000/freebsd64.h: Likewise.
12352 * config/rs6000/linux64.h: Likewise.
12353 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
12354 (rs6000_expand_zeroop_builtin): Likewise.
12355 (rs6000_expand_mtfsb_builtin): Likewise.
12356 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
12357 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
12358 (rs6000_invalid_builtin): Likewise.
12359 (rs6000_expand_split_stack_prologue): Likewise.
12360 * config/rs6000/rtems.h: Likewise.
12361 * config/rx/rx.c (valid_psw_flag): Likewise.
12362 (rx_expand_builtin): Likewise.
12363 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
12364 * config/s390/s390.c (s390_expand_builtin): Likewise.
12365 (s390_function_profiler): Likewise.
12366 (s390_option_override_internal): Likewise.
12367 (s390_option_override): Likewise.
12368 * config/sh/sh.c (sh_option_override): Likewise.
12369 (sh_builtin_saveregs): Likewise.
12370 (sh_fix_range): Likewise.
12371 * config/sh/vxworks.h: Likewise.
12372 * config/sparc/sparc.c (sparc_option_override): Likewise.
12373 * config/spu/spu.c (spu_option_override): Likewise.
12374 (fix_range): Likewise.
12375 * config/visium/visium.c (visium_option_override): Likewise.
12376 (visium_handle_interrupt_attr): Likewise.
12377 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
12378 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
12379 (dbg_cnt_process_opt): Likewise.
12380 * dwarf2out.c (output_dwarf_version): Likewise.
12381 * except.c (expand_eh_return): Likewise.
12382 * gcc.c (defined): Likewise.
12383 (driver_handle_option): Likewise.
12384 (process_command): Likewise.
12385 (compare_files): Likewise.
12386 (driver::prepare_infiles): Likewise.
12387 (driver::do_spec_on_infiles): Likewise.
12388 (driver::maybe_run_linker): Likewise.
12389 * omp-offload.c (oacc_parse_default_dims): Likewise.
12390 * opts-global.c (handle_common_deferred_options): Likewise.
12391 * opts.c (parse_sanitizer_options): Likewise.
12392 (common_handle_option): Likewise.
12393 (enable_warning_as_error): Likewise.
12394 * passes.c (enable_disable_pass): Likewise.
12395 * plugin.c (parse_plugin_arg_opt): Likewise.
12396 (default_plugin_dir_name): Likewise.
12397 * targhooks.c (default_expand_builtin_saveregs): Likewise.
12398 (default_pch_valid_p): Likewise.
12399 * toplev.c (init_asm_output): Likewise.
12400 (process_options): Likewise.
12401 (toplev::run_self_tests): Likewise.
12402 * tree-cfg.c (verify_gimple_call): Likewise.
12403 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
12404 (tree_inlinable_function_p): Likewise.
12405 * var-tracking.c (vt_find_locations): Likewise.
12406
12407 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
12408
12409 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
12410 only on the else branch.
12411
12412 2019-03-11 Martin Liska <mliska@suse.cz>
12413
12414 * gcov.c (output_intermediate_json_line): Print function
12415 name of each line.
12416 (output_json_intermediate_file): Add new argument.
12417 * doc/gcov.texi: Document the change.
12418
12419 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
12420
12421 PR rtl-optimization/89588
12422 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
12423 explicit unrolling factor more robust.
12424
12425 2019-03-11 Richard Biener <rguenther@suse.de>
12426
12427 PR tree-optimization/89649
12428 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
12429 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
12430 on the prolog and epilog loops.
12431 (vect_loop_versioning): Return copy of loop.
12432 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
12433 on the non-vectorized version of the loop.
12434
12435 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
12436
12437 PR target/68924
12438 * config/i386/sse.md (*vec_extractv2di_0_sse):
12439 Add (=r,x) alternative and corresponding splitter.
12440
12441 2019-03-10 Martin Jambor <mjambor@suse.cz>
12442
12443 PR tree-optimization/85762
12444 PR tree-optimization/87008
12445 PR tree-optimization/85459
12446 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
12447 it points to if there is a type changing MEM_REF. Adjust all callers.
12448 (build_accesses_from_assign): Disable total scalarization if
12449 contains_vce_or_bfcref_p returns true through the new parameter, for
12450 both rhs and lhs.
12451
12452 2019-03-09 Jakub Jelinek <jakub@redhat.com>
12453
12454 PR c/88568
12455 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
12456 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
12457
12458 PR target/79645
12459 * common.opt (fdiagnostics-show-labels,
12460 fdiagnostics-show-line-numbers, fdiagnostics-format=,
12461 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
12462 gas-locview-support, ginline-points, ginternal-reset-location-views):
12463 Terminate description text with a dot.
12464 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
12465 * config/mcore/mcore.opt (m210, m340): Likewise.
12466 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
12467 mnops=): Start description text with a capital letter.
12468 * config/arc/arc.opt (msize-level=): Likewise.
12469 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
12470 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
12471 mnewlib): Likewise.
12472 * config/ft32/ft32.opt (msim): Likewise.
12473 (mft32b, mcompress): Likewise. Terminate description text with a dot.
12474 (mnodiv, mnopm): Terminate description text with a dot.
12475 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
12476 a colon.
12477 * config/i386/i386.opt (prefer_vector_width, instrument_return):
12478 Likewise.
12479 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
12480 text.
12481
12482 PR rtl-optimization/89634
12483 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
12484 are modified in BB_END (e->src) instruction.
12485
12486 2019-03-08 David Malcolm <dmalcolm@redhat.com>
12487
12488 PR target/79926
12489 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
12490 messages more amenable to translation, and improve wording.
12491
12492 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
12493
12494 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
12495 ud- and du-chains between phases.
12496
12497 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
12498
12499 PR debug/89631
12500 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
12501 instead of POLY_INT_CST.
12502
12503 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
12504
12505 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
12506 requirement.
12507
12508 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
12509
12510 PR target/68924
12511 PR target/78782
12512 PR target/87558
12513 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
12514 (_mm_storeu_si64): Ditto.
12515
12516 2019-03-08 Martin Liska <mliska@suse.cz>
12517
12518 PR target/86952
12519 * config/i386/i386.c (ix86_option_override_internal): Disable
12520 jump tables when retpolines are used.
12521
12522 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
12523
12524 PR go/63560
12525 * ipa-split.c (execute_split_functions): Do not split
12526 'noinline' or 'section' function.
12527
12528 2019-03-08 Jakub Jelinek <jakub@redhat.com>
12529
12530 PR target/79846
12531 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
12532 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
12533 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
12534
12535 PR ipa/80000
12536 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
12537 from diagnostics. Formatting fixes.
12538
12539 PR target/85665
12540 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
12541 warn_odr diagnostics.
12542
12543 PR other/80058
12544 * lra-constraints.c (process_alt_operands): Avoid one space before
12545 " at the end of line and another after " on another line in a string
12546 literal.
12547 * attribs.c (handle_dll_attribute): Likewise.
12548 * config/avr/avr-devices.c (avr_texinfo): Likewise.
12549
12550 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
12551 warning_at or inform messages in G_() if there is no ?:.
12552
12553 PR tree-optimization/89550
12554 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
12555 returned true. Formatting fixes.
12556 (expand_builtin_strnlen): Formatting fixes.
12557 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
12558 if warning_at returned true.
12559 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
12560
12561 2019-03-08 Richard Biener <rguenther@suse.de>
12562
12563 PR middle-end/89578
12564 * cfgloop.h (struct loop): Add owned_clique field.
12565 * cfgloopmanip.c (copy_loop_info): Copy it.
12566 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
12567 cliques.
12568 * tree-inline.c (copy_loops): Remap owned_clique.
12569 * lto-streamer-in.c (input_cfg): Stream owned_clique.
12570 * lto-streamer-out.c (output_cfg): Likewise.
12571
12572 2019-03-08 Jakub Jelinek <jakub@redhat.com>
12573
12574 PR target/80190
12575 * config/darwin.c: Include intl.h.
12576 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
12577 composing the message out of two separate parts.
12578
12579 2019-03-07 Jakub Jelinek <jakub@redhat.com>
12580
12581 PR target/80003
12582 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
12583 doesn't start with a capital letter and doesn't end with a dot.
12584 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
12585 with a capital letter.
12586 (ix86_mangle_function_version_assembler_name): Likewise.
12587 (ix86_generate_version_dispatcher_body): Likewise.
12588 (fold_builtin_cpu): Likewise.
12589 (get_builtin_code_for_version): Likewise. Remove extraneous space.
12590 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
12591 translators, wrap full type name in %qs.
12592
12593 PR translation/79999
12594 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
12595 depend clause with source (or sink) modifier.
12596 * omp-expand.c (expand_omp_ordered_sink): Likewise.
12597
12598 PR target/89602
12599 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
12600 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
12601 (avx512f_load<mode>_mask): New define_expand.
12602 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
12603 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
12604 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
12605 __builtin_ia32_movess_mask): New builtins.
12606 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
12607 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
12608 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
12609 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
12610
12611 2019-03-07 Martin Jambor <mjambor@suse.cz>
12612
12613 PR lto/87525
12614 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
12615 for extern inline functions.
12616
12617 2019-03-07 Martin Jambor <mjambor@suse.cz>
12618
12619 PR ipa/88235
12620 * cgraph.h (cgraph_node): New inline method former_thunk_p.
12621 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
12622 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
12623 have multiple callees. At the end check if declarations match as
12624 opposed to cgraph_nodes.
12625
12626 2019-03-07 Martin Liska <mliska@suse.cz>
12627
12628 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
12629 which is equivalent to searching for this in clones chain.
12630 * symtab.c (symtab_node::verify_base): Similarly compare ASM
12631 names with a neighbour and special case first node in a chain.
12632
12633 2019-01-25 Jason Merrill <jason@redhat.com>
12634
12635 PR c++/80916 - spurious "static but not defined" warning.
12636 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
12637 for an internal symbol with DECL_EXTERNAL.
12638
12639 2019-04-07 Richard Biener <rguenther@suse.de>
12640
12641 PR middle-end/89618
12642 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
12643 * tree-inline.c (copy_loops): Simplify.
12644
12645 2019-03-07 Martin Liska <mliska@suse.cz>
12646
12647 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
12648
12649 2019-03-07 Richard Biener <rguenther@suse.de>
12650
12651 PR tree-optimization/89595
12652 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
12653 stmt iterator as reference, take boolean output parameter to
12654 indicate whether the stmt was removed and thus the iterator
12655 already advanced.
12656 (dom_opt_dom_walker::before_dom_children): Re-iterate over
12657 stmts created by folding.
12658
12659 2019-03-07 Jakub Jelinek <jakub@redhat.com>
12660
12661 PR c++/89585
12662 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
12663 at toplevel.
12664
12665 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
12666
12667 PR rtl-optimization/88845
12668 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
12669 LRA.
12670 * lra.c (remove_scratches_1): New function.
12671 (remove_scratches): Use it.
12672 (lra_emit_move): Likewise.
12673
12674 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
12675
12676 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
12677 unaligned_access variable.
12678 * config/arc/arc.c (arc_override_options): Set unaligned access
12679 default on for HS CPUs.
12680 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
12681
12682 2019-03-06 Martin Liska <mliska@suse.cz>
12683
12684 PR gcov-profile/89577
12685 * doc/gcov.texi: Prefer to use --coverage.
12686 * doc/sourcebuild.texi: Likewise.
12687
12688 2019-03-02 Jason Merrill <jason@redhat.com>
12689
12690 PR c++/86485 - -Wmaybe-unused with empty class ?:
12691 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
12692
12693 2019-03-05 Jakub Jelinek <jakub@redhat.com>
12694
12695 PR target/89587
12696 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
12697 if_multiarch.
12698
12699 PR middle-end/89590
12700 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
12701 exactly one argument.
12702
12703 2019-03-05 Jakub Jelinek <jakub@redhat.com>
12704 Richard Sandiford <richard.sandiford@arm.com>
12705
12706 PR tree-optimization/89570
12707 * match.pd (vec_cond into cond_op simplification): Don't use
12708 get_conditional_internal_fn, use as_internal_fn (cond_op).
12709
12710 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
12711
12712 PR target/89222
12713 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
12714 to decide when to split off a non-zero offset from a symbol.
12715 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
12716 in function symbols.
12717
12718 2019-03-05 Richard Biener <rguenther@suse.de>
12719
12720 PR tree-optimization/89594
12721 * tree-if-conv.c (pass_if_conversion::execute): Handle
12722 case where .LOOP_VECTORIZED_FUNCTION was removed.
12723
12724 2019-03-05 Jakub Jelinek <jakub@redhat.com>
12725
12726 PR bootstrap/89560
12727 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
12728 instead alloca it only when needed with the needed size.
12729
12730 PR tree-optimization/89570
12731 * match.pd (vec_cond into cond_op simplification): Guard with
12732 vectorized_internal_fn_supported_p test and #if GIMPLE.
12733
12734 PR tree-optimization/89566
12735 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
12736 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
12737 Punt if get_user_idx_format succeeds, but idx_format argument is
12738 not provided or doesn't have pointer type, or if idx_args is above
12739 number of provided arguments.
12740
12741 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
12742
12743 PR tree-optimization/89437
12744 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
12745
12746 2019-03-04 Richard Biener <rguenther@suse.de>
12747
12748 PR middle-end/89572
12749 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
12750 safe_dyn_cast.
12751
12752 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
12753
12754 PR tree-optimization/89487
12755 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
12756 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
12757 (distribute_loop): Don't do runtime alias check if there is non-
12758 addressable data reference.
12759 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
12760 is a register variable.
12761
12762 2019-03-02 Jakub Jelinek <jakub@redhat.com>
12763
12764 PR target/89506
12765 * config/arm/arm.md (cmpsi2_addneg): Use
12766 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
12767 If operands[2] is 0 or INT_MIN, force use of subs.
12768 (*compare_scc splitter): Use gen_int_mode.
12769 (*negscc): Likewise.
12770 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
12771
12772 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
12773 Monk Chiang <sh.chiang04@gmail.com>
12774
12775 * common/config/riscv/riscv-common.c: Include sstream.
12776 (riscv_subset_list::to_string): New.
12777 (riscv_arch_str): Likewise.
12778 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
12779 * config.in: Regen.
12780 * config/riscv/riscv-protos.h (riscv_arch_str): New.
12781 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
12782 (riscv_emit_attribute): New.
12783 (riscv_file_start): Emit attribute if needed.
12784 (riscv_option_override): Init riscv_emit_attribute_p.
12785 * config/riscv/riscv.opt (mriscv-attribute): New option.
12786 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
12787 * configure: Regen.
12788 * doc/install.texi: Document --with-riscv-attribute.
12789 * doc/invoke.texi: Document -mriscv-attribute.
12790
12791 * common/config/riscv/riscv-common.c:
12792 Include config/riscv/riscv-protos.h.
12793 (INCLUDE_STRING): Defined.
12794 (RISCV_DONT_CARE_VERSION): Defined.
12795 (riscv_subset_t): Declare.
12796 (riscv_subset_t::riscv_subset_t): New.
12797 (riscv_subset_list): Declare.
12798 (riscv_subset_list::riscv_subset_list): New.
12799 (riscv_subset_list::~riscv_subset_list): Likewise.
12800 (riscv_subset_list::parsing_subset_version): Likewise.
12801 (riscv_subset_list::parse_std_ext): Likewise.
12802 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
12803 (riscv_subset_list::add): Likewise.
12804 (riscv_subset_list::lookup): Likewise.
12805 (riscv_subset_list::xlen): Likewise.
12806 (riscv_subset_list::parse): Likewise.
12807 (riscv_supported_std_ext): Likewise.
12808 (current_subset_list): Likewise.
12809 (riscv_parse_arch_string): Using riscv_subset_list::parse to
12810 parse.
12811
12812 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
12813
12814 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
12815 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
12816 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
12817
12818 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
12819
12820 PR rtl-optimization/85899
12821 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
12822 fallthru edges leading to the exit block.
12823
12824 2019-03-01 Tamar Christina <tamar.christina@arm.com>
12825
12826 PR target/89517
12827 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
12828 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
12829
12830 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
12831
12832 PR tree-optimization/89535
12833 * tree-vect-stmts.c (vectorizable_call): Record the vector types
12834 for each operand. Calculate the fallback choice for mask operands
12835 and pass it to vect_get_vec_def_for_operand.
12836
12837 2019-03-01 Richard Biener <rguenther@suse.de>
12838
12839 PR middle-end/89541
12840 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
12841 get virtual operands.
12842 (get_expr_operands): Handle CONST_DECL like other decls.
12843
12844 2019-03-01 Jakub Jelinek <jakub@redhat.com>
12845
12846 PR middle-end/89503
12847 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
12848 on DECL_P and EXPR_P.
12849
12850 2019-03-01 Richard Biener <rguenther@suse.de>
12851
12852 PR middle-end/89497
12853 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
12854 argument, defaulted to zero.
12855 * passes.c (execute_function_todo): Pass down SSA update flags
12856 to cleanup_tree_cfg.
12857 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
12858 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
12859 form if requested.
12860 (cleanup_tree_cfg): Get and pass down SSA update flags.
12861
12862 2019-03-01 Jakub Jelinek <jakub@redhat.com>
12863
12864 PR bootstrap/89539
12865 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
12866 early_lto_debug argument.
12867
12868 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
12869
12870 PR tree-optimization/89536
12871 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
12872 only whether bit #0 of the value is 0 instead of the entire value.
12873
12874 2019-02-28 Marek Polacek <polacek@redhat.com>
12875
12876 PR c++/87068 - missing diagnostic with fallthrough statement.
12877 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
12878 at the end of a seq, save its location to walk_stmt_info.
12879 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
12880 a switch.
12881
12882 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
12883
12884 PR lto/88585
12885 * tree.c (find_atomic_core_type): Move ahead in file.
12886 (check_base_type): Correctly compare alignments of atomic types.
12887
12888 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
12889
12890 PR target/89455
12891 * config/i386/i386.c (get_builtin_code_for_version): Identify
12892 Westmere from PCLMUL, instead of AES.
12893
12894 2019-02-28 Jakub Jelinek <jakub@redhat.com>
12895
12896 PR target/89434
12897 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
12898 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
12899 -UINTVAL (...).
12900
12901 2019-02-28 Tamar Christina <tamar.christina@arm.com>
12902
12903 PR target/88530
12904 * config/aarch64/aarch64-option-extensions.def: Document it.
12905 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
12906 if empty hwcaps.
12907
12908 2019-02-28 Jakub Jelinek <jakub@redhat.com>
12909
12910 PR c/89520
12911 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
12912 builtins if they don't have a single scalar floating point argument.
12913 Formatting fixes.
12914
12915 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
12916
12917 PR rtl-optimization/89490
12918 * varasm.c (get_block_for_section): Bail out for mergeable sections.
12919 (default_use_anchors_for_symbol_p, output_object_block): Assert the
12920 block section is not mergeable.
12921
12922 2019-02-27 Jakub Jelinek <jakub@redhat.com>
12923
12924 PR target/70341
12925 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
12926 old define_insn to ...
12927 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
12928 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
12929 Rename old define_insn to ...
12930 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
12931 (thumb2_casesi_internal_pic): New define_expand. Rename old
12932 define_insn to ...
12933 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
12934 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
12935 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
12936
12937 2019-02-27 Richard Biener <rguenther@suse.de>
12938
12939 PR debug/88878
12940 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
12941
12942 2019-02-27 Richard Biener <rguenther@suse.de>
12943
12944 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
12945 building.
12946
12947 2019-02-27 Richard Biener <rguenther@suse.de>
12948
12949 PR debug/88878
12950 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
12951 parameter, prefix section name with .gnu.debuglto_ if true.
12952 (dwarf2out_finish): Pass false to output_comdat_type_unit.
12953 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
12954
12955 2019-02-27 Richard Biener <rguenther@suse.de>
12956
12957 PR debug/89514
12958 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
12959 rather than on use_debug_types, doing what output_die does.
12960 (value_format): Likewise.
12961
12962 2019-02-27 Martin Jambor <mjambor@suse.cz>
12963 Martin Sebor <msebor@redhat.com>
12964
12965 * doc/invoke.texi (Warning Options): Reword description of
12966 -Wno-absolute-value.
12967
12968 2019-02-27 Jakub Jelinek <jakub@redhat.com>
12969
12970 PR tree-optimization/89280
12971 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
12972 builtin_setjmp_setup_bb): New functions.
12973 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
12974 When visiting __builtin_setjmp_setup block, queue in special
12975 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
12976 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
12977 from visited after the loop if they don't have any visited successor
12978 blocks.
12979
12980 2018-02-26 Steve Ellcey <sellcey@marvell.com>
12981
12982 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
12983 New function.
12984 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
12985
12986 2019-02-26 Jakub Jelinek <jakub@redhat.com>
12987
12988 PR c++/89507
12989 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
12990 with types other than sizetype/ssizetype.
12991
12992 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
12993
12994 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
12995 (enum sparc_processor_type): ...this.
12996 (enum sparc_code_model_type): New enumeration type.
12997 (enum sparc_memory_model_type): Tweak comments.
12998 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
12999 (mtune): Likewise.
13000 (mcmodel): Use sparc_code_model enumeration and variable.
13001 (sparc_code_model): New enumeration.
13002 (mdebug): Add Undocumented marker.
13003 * config/sparc/sparc.h (enum cmodel): Delete.
13004 (sparc_cmodel): Likewise.
13005 (TARGET_CM_MEDLOW): Adjust to above renaming.
13006 (TARGET_CM_MEDMID): Likewise.
13007 (TARGET_CM_MEDANY): Likewise.
13008 (TARGET_CM_EMBMEDANY): Likewise.
13009 * config/sparc/sparc.c (sparc_cmodel): Delete.
13010 (sparc_option_override): Remove string/value mapping support for the
13011 code model. Move code and memory model support to after the handling
13012 of target flags. Do private machine setup last.
13013 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
13014 (sparc_legitimize_reload_address): Likewise.
13015 (sparc_output_mi_thunk): Likewise.
13016 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
13017
13018 2019-02-26 Jakub Jelinek <jakub@redhat.com>
13019
13020 PR tree-optimization/89500
13021 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
13022 (handle_builtin_strlen): Remove noncst_bound variable. Always
13023 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
13024 cst if the first cst bytes starting at x are known to be non-zero,
13025 even if the string is not zero terminated. Don't try to modify
13026 *si for strnlen. Update strlen_to_stridx only for strlen or if
13027 we can prove strnlen returns the same value as strlen would.
13028
13029 2019-02-26 Martin Liska <mliska@suse.cz>
13030
13031 * alloc-pool.h (struct pool_usage): Remove extra
13032 print_dash_line.
13033 * bitmap.h (struct bitmap_usage): Likewise.
13034 * ggc-common.c (struct ggc_usage): Likewise.
13035 * mem-stats.h (struct mem_usage): Likewise.
13036 (mem_alloc_description::dump): Print dash lines
13037 here and repeat header at the end of a table report.
13038 It's then more readable.
13039 * tree-phinodes.c (phinodes_print_statistics): Make
13040 horizontal alignment.
13041 * tree-ssanames.c (ssanames_print_statistics): Likewise.
13042 * vec.c (struct vec_usage): Remove extra print_dash_line.
13043 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
13044
13045 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
13046
13047 * doc/extend.texi (__builtin_object_size):
13048 Use @pxref instead of @xref inside parenthesis.
13049 (__builtin_has_attribute): Add missing comma after @xref.
13050 (__builtin_object_size): Ditto.
13051 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
13052 * fortran/invoke.texi (-ffpe-trap): Use @var for every item
13053 in the list.
13054
13055 2019-02-26 Jeff Law <law@redhat.com>
13056
13057 PR rtl-optimization/87761
13058 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
13059 detect obviously dead insns and delete them.
13060
13061 2019-02-26 Richard Biener <rguenther@suse.de>
13062
13063 PR tree-optimization/89505
13064 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
13065 to handle restrict pointed-to vars with multiple subvars
13066 correctly.
13067
13068 2019-02-26 Richard Biener <rguenther@suse.de>
13069
13070 PR tree-optimization/89489
13071 * tree-parloops.c (create_loop_fn): Copy over last_clique.
13072
13073 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
13074
13075 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
13076 and move around comment.
13077 <BIT_AND_EXPR>: Likewise.
13078 <BIT_NOT_EXPR>: Add specific handling for boolean types.
13079
13080 2019-02-26 Jakub Jelinek <jakub@redhat.com>
13081
13082 PR target/89474
13083 * config/i386/i386.c (remove_partial_avx_dependency): Call
13084 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
13085 after changing possibly many instructions to use that pseudo. Fix up
13086 insertion of v4sf_const0 setter at the start of bb.
13087
13088 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
13089
13090 PR c/80409
13091 * doc/extend.texi (Variadic Pointer Args): New section.
13092
13093 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
13094 Martin Sebor <msebor@gmail.com>
13095
13096 * common.opt (Wattribute-alias): Likewise.
13097 * doc/invoke.texi (Option Summary): List general form of
13098 -Wattribute-alias=. List positive form of -Wmissing-attributes.
13099 (-Wmissing-attributes): Invert entry, rewrite and correct default.
13100 Add cross-references.
13101 (-Wattribute-alias): Rewrite and correct default. Mention
13102 considered attributes (same as for -Wmissing-attributes).
13103
13104 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
13105
13106 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
13107 (_mm_cvtpd_ps): Likewise.
13108 (_mm_cvttpd_epi32): Likewise.
13109
13110 PR target/89338
13111 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
13112 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
13113
13114 PR target/89339
13115 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
13116
13117 2019-02-25 Tamar Christina <tamar.christina@arm.com>
13118
13119 PR target/88530
13120 * common/config/aarch64/aarch64-common.c
13121 (struct aarch64_option_extension): Add is_synthetic.
13122 (all_extensions): Use it.
13123 (TARGET_OPTION_INIT_STRUCT): Define hook.
13124 (struct gcc_targetm_common): Moved to end.
13125 (all_extensions_by_on): New.
13126 (opt_ext_cmp, typedef opt_ext): New.
13127 (aarch64_option_init_struct): New.
13128 (aarch64_contains_opt): New.
13129 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
13130 * config/aarch64/aarch64-option-extensions.def
13131 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
13132 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
13133 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
13134 Set is_synthetic to false.
13135 (crypto): Set is_synthetic to true.
13136 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
13137 SYNTHETIC.
13138
13139 2019-02-25 Tamar Christina <tamar.christina@arm.com>
13140
13141 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
13142 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
13143 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
13144 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
13145 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
13146 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
13147 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
13148 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
13149 Rename ...
13150 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
13151 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
13152 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
13153 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
13154 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
13155 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
13156 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
13157 vfmlsl_laneq_high_f16): ... To this.
13158 * config/arm/neon.md: Update comments.
13159
13160 2019-02-25 Tamar Christina <tamar.christina@arm.com>
13161
13162 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
13163 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
13164 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
13165 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
13166 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
13167 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
13168 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
13169 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
13170 Rename ...
13171 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
13172 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
13173 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
13174 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
13175 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
13176 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
13177 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
13178 vfmlslq_laneq_high_f16): ... To this.
13179
13180 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
13181
13182 PR rtl-optimization/86096
13183 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
13184 comparing mw_order values.
13185
13186 2019-02-25 Jakub Jelinek <jakub@redhat.com>
13187
13188 PR target/89434
13189 * config/arm/arm.md (*subsi3_carryin_const): Use
13190 arm_neg_immediate_operand predicate instead of
13191 arm_not_immediate_operand, "L" constraint instead of "K" and
13192 print it using %n2 instead of %B2.
13193 (*subsi3_carryin_const0): New define_insn.
13194 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
13195 instead of arm_not_operand and "I" constraint instead of "K" and
13196 print it using %n3 instead of %B2. Instead of using match_dup 2 add
13197 another match_operand and in the condition check that it is negation
13198 of operands[2].
13199 (*subsi3_carryin_compare_const0): New define_ins.
13200 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
13201 *subsi3_carryin_const.
13202 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
13203 split into *subsi3_carryin_compare_const0 if the highpart is zero.
13204
13205 PR target/89438
13206 * config/arm.vfp.md (*negdf2_vfp): Use
13207 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
13208 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
13209
13210 2019-02-24 Jakub Jelinek <jakub@redhat.com>
13211
13212 PR rtl-optimization/89445
13213 * simplify-rtx.c (simplify_ternary_operation): Don't use
13214 simplify_merge_mask on operands that may trap.
13215 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
13216 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
13217 second operand is CONST_VECTOR, check if any element could be zero.
13218 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
13219 their operands can trap.
13220
13221 2019-02-23 Martin Sebor <msebor@redhat.com>
13222
13223 * gimple-ssa-sprintf.c (target_strtol): Rename...
13224 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
13225 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
13226 check for range error.
13227
13228 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
13229
13230 PR driver/69471
13231 * opts-common.c (prune_options): Also prune joined switches
13232 with Negative and RejectNegative.
13233 * config/i386/i386.opt (march=): Add Negative(march=).
13234 (mtune=): Add Negative(mtune=).
13235 * doc/options.texi: Document Negative used together with Joined
13236 and RejectNegative.
13237
13238 2019-02-22 Martin Sebor <msebor@redhat.com>
13239
13240 * doc/extend.texi (Other Builtins): Add
13241 __builtin_is_constant_evaluated.
13242
13243 2019-02-22 Richard Biener <rguenther@suse.de>
13244
13245 PR tree-optimization/87609
13246 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
13247
13248 2019-02-22 Jeff Law <law@redhat.com>
13249
13250 PR rtl-optimization/87761
13251 * config/mips/mips.md: Add new combiner pattern to recognize
13252 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
13253
13254 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
13255
13256 PR target/89324
13257 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
13258 destination register in peepholes generating patterns for ADDS/SUBS.
13259 (add<mode>3_compare0,
13260 *addsi3_compare0_uxtw, add<mode>3_compareC,
13261 add<mode>3_compareV_imm, add<mode>3_compareV,
13262 *adds_<optab><ALLX:mode>_<GPI:mode>,
13263 *subs_<optab><ALLX:mode>_<GPI:mode>,
13264 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
13265 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
13266 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
13267 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
13268 sub<mode>3_compare1): Allow stack pointer for source register.
13269 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
13270
13271 2019-02-22 Martin Sebor <msebor@redhat.com>
13272
13273 PR tree-optimization/88993
13274 PR tree-optimization/88853
13275 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
13276 New helper.
13277 (sprintf_dom_walker::call_info::is_string_func): New helper.
13278 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
13279 for formatted string functions.
13280 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
13281
13282 2019-02-22 Martin Sebor <msebor@redhat.com>
13283
13284 PR c/89425
13285 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
13286 unreachable subexpressions.
13287
13288 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
13289 Hongtao Liu <hongtao.liu@intel.com>
13290 Sunil K Pandey <sunil.k.pandey@intel.com>
13291
13292 PR target/87007
13293 * config/i386/i386-passes.def: Add
13294 pass_remove_partial_avx_dependency.
13295 * config/i386/i386-protos.h
13296 (make_pass_remove_partial_avx_dependency): New.
13297 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
13298 New function.
13299 (pass_data_remove_partial_avx_dependency): New.
13300 (pass_remove_partial_avx_dependency): Likewise.
13301 (make_pass_remove_partial_avx_dependency): Likewise.
13302 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
13303 (*extendsfdf2): Add avx_partial_xmm_update.
13304 (truncdfsf2): Likewise.
13305 (*float<SWI48:mode><MODEF:mode>2): Likewise.
13306 (SF/DF conversion splitters): Disabled for TARGET_AVX.
13307
13308 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
13309
13310 PR middle-end/85598
13311 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
13312 analysis for pass.
13313
13314 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
13315
13316 PR target/89444
13317 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
13318 (PTA_SKYLAKE): Add PTA_AES.
13319 (PTA_GOLDMONT): Likewise.
13320
13321 2019-02-22 Sudakshina Das <sudi.das@arm.com>
13322
13323 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
13324 instruction if enabled.
13325 (aarch64_override_options): Remove reference to return address key.
13326
13327 2019-02-22 Richard Biener <rguenther@suse.de>
13328
13329 PR tree-optimization/89440
13330 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
13331 not necessary assert.
13332
13333 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
13334
13335 PR fortran/72741
13336 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
13337 (oacc_replace_fn_attrib_attr): ... this new function.
13338 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
13339 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
13340
13341 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13342
13343 * config/arm/arm-cpus.in (ares): Rename to...
13344 (neoverse-n1): ... This. Add ares as alias.
13345 * config/arm/arm-tables.opt: Regenerate.
13346 * config/arm/arm-tune.md: Likewise.
13347 * doc/invoke.txt (ARM Options): Document neoverse-n1.
13348
13349 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13350
13351 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
13352 * config/aarch64/aarch64-tune.md: Regenerate.
13353 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
13354
13355 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13356
13357 * config/aarch64/aarch64.c (ares_tunings): Rename to...
13358 (neoversen1_tunings): ... This.
13359 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
13360 (neoverse-n1): New CPU.
13361 * config/aarch64/aarch64-tune.md: Regenerate.
13362 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
13363
13364 2019-02-22 Richard Biener <rguenther@suse.de>
13365
13366 PR middle-end/87609
13367 * cfghooks.h (dependence_hash): New typedef.
13368 (struct copy_bb_data): New type.
13369 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
13370 (duplicate_block): Likewise.
13371 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
13372 (copy_bbs): Create and pass down copy_bb_data.
13373 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
13374 (rtl_duplicate_bb): Likewise.
13375 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
13376 remap dependence info.
13377
13378 2019-02-22 Richard Biener <rguenther@suse.de>
13379
13380 PR tree-optimization/87609
13381 * tree-core.h (tree_base): Document special clique values.
13382 * tree-inline.c (remap_dependence_clique): Do not use the
13383 special clique value of one.
13384 (maybe_set_dependence_info): Use clique one.
13385 (clear_dependence_clique): New callback.
13386 (compute_dependence_clique): Clear clique one from all refs
13387 before assigning it (again).
13388
13389 2019-02-21 Martin Sebor <msebor@redhat.com>
13390
13391 * doc/extend.texi (__clear_cache): Correct signature.
13392
13393 2019-02-21 Ian Lance Taylor <iant@golang.org>
13394
13395 PR go/89170
13396 * varasm.c (decode_addr_const): Call lookup_constant_def rather
13397 than output_constant_def.
13398 (add_constant_to_table): New static function.
13399 (output_constant_def): Call add_constant_to_table.
13400 (tree_output_constant_def): Likewise.
13401
13402 2019-02-21 Jakub Jelinek <jakub@redhat.com>
13403
13404 PR c++/89285
13405 * builtins.c (fold_builtin_arith_overflow): If first two args are
13406 INTEGER_CSTs, set intres and ovfres to constants rather than calls
13407 to ifn.
13408
13409 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
13410
13411 PR target/87412
13412 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
13413 error for -mindirect-branch/-mfunction-return with incompatible
13414 -fcf-protection.
13415
13416 2019-02-21 Jakub Jelinek <jakub@redhat.com>
13417
13418 PR bootstrap/88714
13419 * constraints.md (q): Remove.
13420 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
13421 instead of q.
13422
13423 2019-02-21 Martin Jambor <mjambor@suse.cz>
13424
13425 PR hsa/89302
13426 * omp-general.c (omp_extract_for_data): Removed a duplicate call
13427 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
13428 (omp_adjust_for_condition): ...here. Added necessary parameters.
13429 * omp-general.h (omp_adjust_for_condition): Updated declaration.
13430 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
13431 proper values to new parameters of omp_adjust_for_condition.
13432
13433 2019-02-20 Jakub Jelinek <jakub@redhat.com>
13434
13435 PR middle-end/89412
13436 * expr.c (expand_assignment): If result is a MEM, use change_address
13437 instead of simplify_gen_subreg.
13438
13439 2019-02-20 Jakub Jelinek <jakub@redhat.com>
13440 David Malcolm <dmalcolm@redhat.com>
13441
13442 PR middle-end/89091
13443 * fold-const.c (decode_field_reference): Return NULL_TREE if
13444 lang_hooks.types.type_for_size returns NULL. Check it before
13445 overwriting *exp_. Use return NULL_TREE instead of return 0.
13446
13447 2019-02-20 Jakub Jelinek <jakub@redhat.com>
13448
13449 PR middle-end/88074
13450 PR middle-end/89415
13451 * toplev.c (do_compile): Double the emin/emax exponents to workaround
13452 buggy mpc_norm.
13453
13454 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
13455
13456 PR target/89397
13457 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
13458 TARGET_SSE in addition to TARGET_SSE_MATH.
13459
13460 (ix86_excess_precision): Ditto.
13461 (ix86_float_exceptions_rounding_supported_p): Ditto.
13462 (use_rsqrt_p): Ditto.
13463 * config/i386/sse.md (rsqrt<mode>2): Ditto.
13464
13465 2019-02-20 David Malcolm <dmalcolm@redhat.com>
13466
13467 PR c/89410
13468 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
13469 linenum_arith_t when determining if two adjacent line spans are
13470 close enough to merge.
13471 (diagnostic_show_locus): Use linenum_arith_t when iterating over
13472 lines within each line_span.
13473
13474 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
13475
13476 PR target/86487
13477 * lra-constraints.c(uses_hard_regs_p): Fix handling of
13478 paradoxical SUBREGS.
13479
13480 2019-02-20 Li Jia He <helijia@linux.ibm.com>
13481
13482 PR target/88100
13483 * gcc/config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
13484 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
13485 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
13486 range checking it.
13487
13488 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
13489
13490 * config/gcn/gcn.c (print_operand): Fix typo.
13491
13492 2019-02-19 Richard Biener <rguenther@suse.de>
13493
13494 PR middle-end/88074
13495 * toplev.c (do_compile): Initialize mpfr's exponent range
13496 based on available float modes.
13497
13498 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
13499
13500 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
13501 as long as the epilogue isn't completed.
13502
13503 2019-02-18 Martin Sebor <msebor@redhat.com>
13504
13505 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
13506 __has_cpp_attribute, and __has_include.
13507
13508 2019-02-18 Martin Sebor <msebor@redhat.com>
13509
13510 * doc/invoke.texi (-Wreturn-type): Correct and expand.
13511
13512 2019-02-18 Martin Sebor <msebor@redhat.com>
13513
13514 PR middle-end/89294
13515 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
13516 expression.
13517 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
13518
13519 2019-02-18 Richard Biener <rguenther@suse.de>
13520
13521 PR tree-optimization/89296
13522 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
13523 of no-warning flag to cases that might emit the bogus warning.
13524
13525 2019-02-18 Jakub Jelinek <jakub@redhat.com>
13526
13527 PR bootstrap/88714
13528 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
13529 "q" constraint.
13530 * config/arm/vfp.md (*movdi_vfp): Likewise.
13531 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
13532 "q" constraint for operands[0].
13533
13534 PR target/89369
13535 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
13536 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
13537 pattern in a temporary buffer.
13538 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
13539 than 64-operands[2].
13540
13541 PR target/89361
13542 * config/s390/s390.c (s390_indirect_branch_attrvalue,
13543 s390_indirect_branch_settings): Define unconditionally.
13544 (s390_set_current_function): Likewise, but guard the whole body except
13545 the s390_indirect_branch_settings call with
13546 #if S390_USE_TARGET_ATTRIBUTE.
13547 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
13548
13549 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
13550 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
13551 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
13552 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
13553 HOST_WIDE_INT_1U instead of 1ULL.
13554 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
13555 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
13556 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
13557 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
13558 instead of 1UL.
13559 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
13560 instead of 1ul.
13561
13562 2019-02-18 Martin Jambor <mjambor@suse.cz>
13563
13564 PR tree-optimization/89209
13565 * tree-sra.c (create_access_replacement): New optional parameter
13566 reg_tree. Use it as a type if non-NULL and access type is not of
13567 a register type.
13568 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
13569 to create_access_replacement.
13570 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
13571 Check lacc is non-NULL before attempting to re-create it on the RHS.
13572
13573 2019-02-18 Martin Liska <mliska@suse.cz>
13574
13575 PR ipa/89306
13576 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
13577 by default.
13578 (symbol_table::free_edge): Recycle m_summary_id.
13579 * cgraph.h (get_summary_id): New.
13580 (symbol_table::release_symbol): Set m_summary_id to -1
13581 by default.
13582 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
13583 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
13584 function_summary to fast_function_summary.
13585 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
13586 * ipa-pure-const.c (class funct_state_summary_t):
13587 Switch from function_summary to fast_function_summary.
13588 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
13589 (class ipa_ref_opt_summary_t): Switch from function_summary
13590 to fast_function_summary.
13591 * symbol-summary.h (class function_summary_base): New class
13592 that is created from base of former function_summary.
13593 (function_summary_base::unregister_hooks): New.
13594 (class function_summary): Inherit from function_summary_base.
13595 (class call_summary_base): New class
13596 that is created from base of former call_summary.
13597 (class call_summary): Inherit from call_summary_base.
13598 (struct is_same): New.
13599 (class fast_function_summary): New summary class.
13600 (class fast_call_summary): New summary class.
13601 * vec.h (vec_safe_grow_cleared): New function.
13602
13603 2019-02-18 Martin Liska <mliska@suse.cz>
13604
13605 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
13606 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
13607 * doc/tm.texi: Document new target hook.
13608 * doc/tm.texi.in: Likewise.
13609 * target.def: Add new target macro.
13610 * gcc.c (find_fortran_preinclude_file): Do not search multilib
13611 suffixes.
13612
13613 2019-02-17 Alan Modra <amodra@gmail.com>
13614
13615 PR target/89271
13616 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
13617 output reg on add insn.
13618 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
13619
13620 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
13621
13622 PR target/89372
13623 * config/i386/sse.md (ssedoublemode): Remove V4HI.
13624 (PMULHRSW): Likewise.
13625 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
13626 TARGET_AVX2.
13627 (ssse3_pmulhrswv4hi3): New expander.
13628
13629 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
13630
13631 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
13632 MMX. Add isa attribute.
13633
13634 2019-02-16 Jakub Jelinek <jakub@redhat.com>
13635
13636 PR rtl-optimization/66152
13637 * builtins.h (c_readstr): Declare.
13638 * builtins.c (c_readstr): Remove forward declaration. Add
13639 null_terminated_p argument, if false, read all bytes from the
13640 string instead of stopping after '\0'.
13641 * expr.c (string_cst_read_str): New function.
13642 (store_expr): Use string_cst_read_str instead of
13643 builtin_strncpy_read_str. Try to store by pieces the whole
13644 exp_len first, and only if that fails, split it up into
13645 store by pieces followed by clear_storage. Formatting fix.
13646
13647 * config/i386/i386.md (*movqi_internal): Remove static from
13648 buf variable. Use output_asm_insn (buf, operands); return "";
13649 instead of return buf;.
13650 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
13651 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
13652 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
13653
13654 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
13655
13656 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
13657 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
13658 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
13659 (CC1_SPEC): Likewise.
13660 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
13661
13662 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
13663
13664 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
13665 the base address on 64-bit strict-alignment platforms.
13666
13667 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
13668
13669 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
13670
13671 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
13672
13673 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
13674
13675 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
13676
13677 PR rtl-optimization/88308
13678 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
13679 on copied instruction.
13680
13681 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
13682
13683 * final.c (insn_current_reference_address): Replace test on JUMP_P
13684 with test on jump_to_label_p.
13685 * config/visium/visium-passes.def: New file.
13686 * config/visium/t-visium (PASSES_EXTRA): Define.
13687 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
13688 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
13689 (TRAMPOLINE_ALIGNMENT): Define.
13690 * config/visium/visium.c (visium_option_override): Do not register
13691 the machine-specific reorg pass here.
13692 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
13693 for the GR6.
13694 (output_branch): Adjust threshold for long branch instruction.
13695 * config/visium/visium.md (cpu): Move around.
13696 (length): Adjust for the GR6.
13697
13698 2019-02-15 Richard Biener <rguenther@suse.de>
13699 Jakub Jelinek <jakub@redhat.com>
13700
13701 PR tree-optimization/89278
13702 * tree-loop-distribution.c: Include tree-eh.h.
13703 (generate_memset_builtin, generate_memcpy_builtin): Call
13704 rewrite_to_non_trapping_overflow on builtin->size before passing it
13705 to force_gimple_operand_gsi.
13706
13707 2019-02-15 Jakub Jelinek <jakub@redhat.com>
13708
13709 PR other/89342
13710 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
13711 optimize_debug.
13712 * opth-gen.awk: Likewise.
13713
13714 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
13715
13716 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
13717 Enable MMX, SSE and SSE2 by default.
13718 * config/i386/i386.c (ix86_option_override_internal): Do not
13719 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
13720
13721 2019-02-14 Jakub Jelinek <jakub@redhat.com>
13722
13723 PR rtl-optimization/89354
13724 * combine.c (make_extraction): Punt if extraction_mode is narrower
13725 than len bits.
13726
13727 2019-02-14 Maya Rashish <coypu@sdf.org>
13728
13729 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
13730 * config/netbsd-d.c: New file.
13731 * config/t-netbsd: Add netbsd-d.o
13732
13733 2018-02-14 Steve Ellcey <sellcey@marvell.com>
13734
13735 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
13736 affects_type_identity to true for aarch64_vector_pcs.
13737 (aarch64_comp_type_attributes): New function.
13738 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
13739
13740 2019-02-14 Tamar Christina <tamar.christina@arm.com>
13741
13742 PR target/88850
13743 * config/arm/iterators.md (ANY64): Add V4HF.
13744
13745 2019-02-14 Martin Liska <mliska@suse.cz>
13746
13747 PR rtl-optimization/89242
13748 * dce.c (delete_unmarked_insns): Call free_dominance_info we
13749 process a transformation.
13750
13751 2019-02-14 Jakub Jelinek <jakub@redhat.com>
13752
13753 PR tree-optimization/89314
13754 * fold-const.c (fold_binary_loc): Cast strlen argument to
13755 const char * before dereferencing it. Formatting fixes.
13756
13757 PR middle-end/89284
13758 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
13759
13760 2019-02-13 Ian Lance Taylor <iant@golang.org>
13761
13762 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
13763 and set current index for other optimizations.
13764
13765 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
13766
13767 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
13768 nonimmediate_operand as operand 2 predicate.
13769 (vec_set<VF2_512_256:mode>_0): Ditto.
13770 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
13771 (*vec_concatv2si): Remove alternative 2.
13772 (*vec_concatv4si_0): Use vm constraint for alternative 0.
13773 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
13774 (vec_concatv2di): Split alternatives 4,5,6 to ...
13775 (*vec_concatv2di_0) ... new pattern.
13776
13777 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
13778
13779 PR target/89190
13780 * config/arm/arm.c (ldm_stm_operation_p) Set
13781 addr_reg_in_reglist correctly for first register.
13782 (load_multiple_sequence): Remove dead base check.
13783 (gen_ldm_seq): Correctly set write_back for Thumb-1.
13784
13785 2019-02-13 Tamar Christina <tamar.christina@arm.com>
13786
13787 PR target/88847
13788 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
13789 Expose as @aarch64_pred_mov.
13790 * config/aarch64/aarch64.c (aarch64_classify_address):
13791 Use expand_insn which legitimizes operands.
13792
13793 2019-02-13 Martin Liska <mliska@suse.cz>
13794
13795 * builtins.h (expand_builtin_with_bounds): Remove declaration.
13796 * calls.c (struct arg_data): Remove special_slot, pointer_arg
13797 and pointer_offset fields.
13798 (initialize_argument_information): Remove usage of dead
13799 fields.
13800 * cgraph.h (struct cgraph_thunk_info): Remove
13801 add_pointer_bounds_args.
13802 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
13803 fields.
13804 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
13805 fields.
13806 * config/i386/i386.c (ix86_function_arg_advance): Remove
13807 unrelated comment.
13808 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
13809 (def_builtin): Remove usage of dead
13810 fields.
13811 (ix86_add_new_builtins): Likewise.
13812 * ipa-fnsummary.c (compute_fn_summary): Likewise.
13813 * ipa-icf.c (sem_function::equals_wpa): Likewise.
13814 (sem_function::init): Likewise.
13815 (sem_variable::merge): Likewise.
13816 * ipa-visibility.c (function_and_variable_visibility): Likewise.
13817 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
13818 * lto-cgraph.c (lto_output_node): Likewise.
13819 (lto_output_varpool_node): Likewise.
13820 (input_node): Likewise.
13821 (input_varpool_node): Likewise.
13822 * lto-streamer-out.c (lto_output): Likewise.
13823 * tree-inline.c (expand_call_inline): Remove usage of
13824 assign_stmts.
13825 * tree-inline.h (struct copy_body_data): Likewise.
13826 * varpool.c (varpool_node::dump): Likewise.
13827
13828 2019-02-13 Jakub Jelinek <jakub@redhat.com>
13829
13830 PR middle-end/89303
13831 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
13832 into pt->vars_contains_escaped_heap instead of setting
13833 pt->vars_contains_escaped_heap to it.
13834
13835 PR middle-end/89281
13836 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
13837 INTVAL (size), compare it to GET_MODE_MASK instead of
13838 1 << GET_MODE_BITSIZE.
13839
13840 PR target/89290
13841 * config/i386/predicates.md (x86_64_immediate_operand): Allow
13842 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
13843 -mcmodel=large.
13844
13845 2019-02-13 Martin Liska <mliska@suse.cz>
13846
13847 PR lto/88858
13848 * cfgrtl.c (remove_barriers_from_footer): New function.
13849 (try_redirect_by_replacing_jump): Use it.
13850 (cfg_layout_redirect_edge_and_branch): Likewise.
13851
13852 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
13853
13854 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
13855 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
13856 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
13857 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
13858 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
13859 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
13860 New BU_CRYPTO_2.
13861 * config/rs6000/rs6000.c (builtin_function_type)
13862 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
13863 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
13864 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
13865 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
13866 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
13867
13868 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
13869
13870 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
13871 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
13872
13873 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
13874
13875 PR target/89229
13876 * config/i386/i386.md (*movoi_internal_avx): Revert revision
13877 268678 and revision 268657.
13878 (*movti_internal): Likewise.
13879
13880 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
13881
13882 PR target/89233
13883 * config/s390/s390.c (s390_decompose_address): Update comment.
13884 (s390_check_qrst_address): Reject invalid address forms after
13885 LRA.
13886
13887 2019-02-12 Martin Liska <mliska@suse.cz>
13888
13889 PR lto/88876
13890 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
13891 we need default values of funct_state for a function that
13892 is not optimized.
13893
13894 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
13895
13896 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
13897 the object to pick the size of stores on strict-alignment platforms.
13898
13899 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
13900 (*movdi_insn_sp32): Likewise.
13901 (*movdi_insn_sp64): Likewise.
13902
13903 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
13904
13905 PR lto/88677
13906 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
13907 types that needs constructiong.
13908 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
13909
13910 2019-02-12 Richard Biener <rguenther@suse.de>
13911
13912 PR tree-optimization/89253
13913 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
13914 duplicate the loop.
13915
13916 2019-02-11 David Malcolm <dmalcolm@redhat.com>
13917
13918 PR lto/88147
13919 * input.c (selftest::test_line_offset_overflow): New selftest.
13920 (selftest::input_c_tests): Call it.
13921
13922 2019-02-11 Martin Sebor <msebor@redhat.com>
13923
13924 PR tree-optimization/88771
13925 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
13926 when -Wstringop-overflow is set.
13927 (builtin_memref::builtin_memref): Adjust excessive upper bound
13928 only when lower bound is not excessive.
13929 (maybe_diag_overlap): Detect and diagnose excessive bounds via
13930 -Wstringop-ovefflow.
13931 (maybe_diag_offset_bounds): Rename...
13932 (maybe_diag_access_bounds): ...to this.
13933 (check_bounds_or_overlap): Adjust for name change above.
13934
13935 2019-02-11 Martin Sebor <msebor@redhat.com>
13936
13937 PR c++/87996
13938 * builtins.c (max_object_size): Move from here...
13939 * builtins.h (max_object_size): ...and here...
13940 * tree.c (max_object_size): ...to here...
13941 * tree.h (max_object_size): ...and here.
13942
13943 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
13944
13945 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
13946 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
13947 for correct semantics.
13948
13949 2019-02-11 Alan Modra <amodra@gmail.com>
13950
13951 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
13952 -mlongcall and -mpltseq.
13953 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
13954 (RS/6000 and PowerPC Options <-mpltseq>): Document.
13955 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
13956 * config/rs6000/sysv4.opt (mpltseq): New option.
13957 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
13958 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
13959 support is lacking. Don't allow -mpltseq with -mbss-plt.
13960 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
13961 -mpltseq given for ELFv1.
13962 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
13963 Only use UNSPEC_PLTSEQ for inline PLT calls.
13964 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
13965 use UNSPEC_PLTSEQ for inline PLT calls.
13966 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
13967 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
13968 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
13969 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
13970 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
13971 (pltseq_mtctr_<mode>): Likewise.
13972
13973 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13974
13975 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
13976 Solaris ld.
13977 * configure: Regenerate.
13978
13979 2019-02-11 Jakub Jelinek <jakub@redhat.com>
13980
13981 PR bootstrap/88714
13982 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
13983 instead of r.
13984
13985 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
13986
13987 * function.c (assign_parm_setup_block): Use the stored
13988 size, not the passed size, when allocating stack-space,
13989 also for a parameter with alignment larger than
13990 MAX_SUPPORTED_STACK_ALIGNMENT.
13991
13992 2019-02-11 Martin Liska <mliska@suse.cz>
13993
13994 PR ipa/89009
13995 * ipa-cp.c (build_toporder_info): Remove usage of a param.
13996 * ipa-inline.c (inline_small_functions): Likewise.
13997 * ipa-pure-const.c (propagate_pure_const): Likewise.
13998 (propagate_nothrow): Likewise.
13999 * ipa-reference.c (propagate): Likewise.
14000 * ipa-utils.c (struct searchc_env): Remove unused field.
14001 (searchc): Always search across AVAIL_INTERPOSABLE.
14002 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
14003 the only called IPA pure const can properly not propagate
14004 across interposable boundary.
14005 * ipa-utils.h (ipa_reduced_postorder): Remove param.
14006
14007 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
14008
14009 * config/nds32/nds32.md (call_internal, call_value_internal,
14010 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
14011
14012 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
14013
14014 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
14015 typo.
14016
14017 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
14018
14019 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
14020 in comments
14021
14022 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
14023
14024 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
14025
14026 2019-02-10 Jakub Jelinek <jakub@redhat.com>
14027
14028 PR tree-optimization/89268
14029 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
14030 if preds is non-NULL.
14031
14032 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
14033
14034 PR lto/89272
14035 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
14036 polymorphic types.
14037
14038 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
14039
14040 * config/nds32/nds32.md (trap): New pattern.
14041
14042 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
14043
14044 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
14045 dwarf span.
14046
14047 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
14048
14049 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
14050 to split POST_INC.
14051
14052 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
14053
14054 * ipa-visibility.c (localize_node): Also do not localize
14055 LDPR_PREVAILING_DEF_IRONLY_EXP.
14056
14057 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
14058
14059 PR lto/87957
14060 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
14061 instead of type_with_linkage.
14062
14063 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
14064
14065 PR ipa/88755
14066 * params.def (uninlined-function-insns, uninlined-function-time,
14067 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
14068 bound so we don't get overflows.
14069
14070 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
14071
14072 * config/rs6000/rs6000-string.c (expand_compare_loop,
14073 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
14074 memcmp/strncmp.
14075
14076 2019-02-09 Jakub Jelinek <jakub@redhat.com>
14077
14078 PR middle-end/89246
14079 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
14080 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
14081 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
14082
14083 2019-02-09 Alan Modra <amodra@gmail.com>
14084
14085 PR target/88343
14086 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
14087 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
14088 setup.
14089
14090 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
14091
14092 PR middle-end/88560
14093 * lra-constraints.c (process_alt_operands): Don't increase reject
14094 for memory when offset memory is required.
14095
14096 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
14097
14098 * config/s390/vector.md: Implement vector copysign.
14099
14100 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
14101
14102 * expr.c (expand_constructor): Correct indentations.
14103
14104 2019-02-08 Richard Biener <rguenther@suse.de>
14105
14106 PR tree-optimization/89247
14107 * tree-if-conv.c: Include tree-cfgcleanup.h.
14108 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
14109 (tree_if_conversion): Pass through predicate vector.
14110 (pass_if_conversion::execute): Do CFG cleanup and SSA update
14111 inline, see if any if-converted loops we refrece in
14112 LOOP_VECTORIZED calls vanished and fixup.
14113 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
14114
14115 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
14116
14117 * config/s390/constraints.md (jdd): New constraint.
14118
14119 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
14120
14121 PR target/89229
14122 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
14123 upper 16 vector registers without TARGET_AVX512VL.
14124 (*movti_internal): Likewise.
14125
14126 2019-02-08 Jakub Jelinek <jakub@redhat.com>
14127
14128 PR rtl-optimization/89234
14129 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
14130 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
14131 (copy_reg_eh_region_note_backward): Likewise.
14132
14133 2019-02-08 Richard Biener <rguenther@suse.de>
14134
14135 PR middle-end/89223
14136 * tree-data-ref.c (initialize_matrix_A): Fail if constant
14137 doesn't fit in HWI.
14138 (analyze_subscript_affine_affine): Handle failure from
14139 initialize_matrix_A.
14140
14141 2019-02-08 Jakub Jelinek <jakub@redhat.com>
14142
14143 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
14144 cfun everywhere.
14145
14146 2019-02-07 David Malcolm <dmalcolm@redhat.com>
14147
14148 PR tree-optimization/86637
14149 PR tree-optimization/89235
14150 * tree-vect-loop.c (optimize_mask_stores): Add an
14151 auto_purge_vect_location sentinel to ensure that vect_location is
14152 purged on exit.
14153 * tree-vectorizer.c
14154 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
14155 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
14156 to ensure that vect_location is purged on exit.
14157 (pass_slp_vectorize::execute): Likewise, replacing the manual
14158 reset.
14159 * tree-vectorizer.h (class auto_purge_vect_location): New class.
14160
14161 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14162
14163 * config/aarch64/iterators.md (max_opp): New code_attr.
14164 (USMAX): New code iterator.
14165 * config/aarch64/predicates.md (aarch64_smin): New predicate.
14166 (aarch64_smax): Likewise.
14167 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
14168 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
14169 MINUS (MAX MIN).
14170
14171 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
14172
14173 PR target/89229
14174 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
14175 for TARGET_AVX512VL.
14176 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
14177
14178 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
14179
14180 * config/s390/s390-builtin-types.def: Add new types.
14181 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
14182 (s390_vec_xlw4): Make the memory operand into a const pointer.
14183 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
14184 float.
14185 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
14186 a new vector type with the alignment of the scalar memory operand.
14187
14188 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
14189 Jakub Jelinek <jakub@redhat.com>
14190
14191 PR bootstrap/88714
14192 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
14193 arm_count_ldrdstrd_insns): New declarations.
14194 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
14195 MINUS.
14196 (valid_operands_ldrd_strd): New function.
14197 (arm_count_ldrdstrd_insns): New function.
14198 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
14199 sets instead of single DImode set and define new insns to match this.
14200
14201 2019-02-07 Tamar Christina <tamar.christina@arm.com>
14202
14203 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
14204 Make it a C initializer.
14205
14206 2019-02-07 Tamar Christina <tamar.christina@arm.com>
14207
14208 PR/target 88850
14209 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
14210
14211 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14212
14213 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
14214 Use neon_dot<q> for type.
14215 (neon_<sup>dot_lane<vsi2qi>): Likewise.
14216
14217 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14218
14219 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
14220 Use neon_dot<q> for type.
14221 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
14222 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
14223
14224 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
14225
14226 PR rtl-optimization/89225
14227 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
14228 sizes check.
14229
14230 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
14231
14232 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
14233 after restoring registers saved to allocate the frame on Windows.
14234
14235 2019-02-06 Richard Biener <rguenther@suse.de>
14236
14237 PR tree-optimization/89182
14238 * graphite.h (cached_scalar_evolution_in_region): Declare.
14239 * graphite.c (struct seir_cache_key): New.
14240 (struct sese_scev_hash): Likewise.
14241 (seir_cache): New global.
14242 (cached_scalar_evolution_in_region): New function.
14243 (graphite_transform_loops): Allocate and release seir_cache.
14244 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
14245 cached_scalar_evolution_in_region.
14246 * graphite-scop-detection.c (scop_detection::can_represent_loop):
14247 Simplify.
14248 (scop_detection::graphite_can_represent_expr: Use
14249 cached_scalar_evolution_in_region.
14250 (scop_detection::stmt_simple_for_scop_p): Likewise.
14251 (find_params_in_bb): Likewise.
14252 (gather_bbs::before_dom_children): Likewise.
14253 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
14254 (add_loop_constraints): Likewise.
14255
14256 2019-02-06 Jakub Jelinek <jakub@redhat.com>
14257
14258 PR middle-end/89210
14259 * fold-const-call.c (fold_const_vec_convert): Pass true as last
14260 operand to new_unary_operation only if both element types are integral
14261 and it isn't a widening conversion. Return NULL_TREE if
14262 new_unary_operation failed.
14263
14264 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
14265
14266 PR target/88856
14267 * config/s390/s390.md: Remove load and test FP splitter.
14268
14269 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
14270
14271 PR target/89112
14272 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
14273 expand_compare_loop, expand_block_compare_gpr,
14274 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
14275 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
14276 #include "profile-count.h" and "predict.h" for types and functions
14277 needed to work with REG_BR_PROB notes.
14278
14279 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
14280
14281 PR target/89112
14282 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
14283 for the long branch case.
14284
14285 2019-02-05 Jakub Jelinek <jakub@redhat.com>
14286
14287 PR target/89188
14288 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
14289 can throw, non-call exceptions are enabled and we can't delete
14290 dead exceptions or alter cfg. Set must_clean if
14291 delete_insn_and_edges returns true, don't set it blindly for calls.
14292 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
14293
14294 PR rtl-optimization/89195
14295 * combine.c (make_extraction): For MEMs, don't extract bytes outside
14296 of the original MEM.
14297
14298 2019-02-05 Martin Liska <mliska@suse.cz>
14299
14300 PR gcov-profile/89000
14301 * gcov.c (function_summary): Remove argument.
14302 (file_summary): New function.
14303 (print_usage): Replace tabs with spaces.
14304 (generate_results): Use new function file_summary.
14305
14306 2019-02-05 Jakub Jelinek <jakub@redhat.com>
14307
14308 PR target/89186
14309 * optabs.c (prepare_cmp_insn): Pass x and y to
14310 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
14311
14312 2019-02-05 Richard Biener <rguenther@suse.de>
14313
14314 PR middle-end/89150
14315 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
14316 (struct bitmap_element): Drop chain_prev so we properly recurse on
14317 the prev member, supporting tree views.
14318 (struct bitmap_head): GTY skip the obstack member.
14319
14320 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
14321
14322 PR c/88698
14323 * doc/extend.texi (Vector Extensions): Add an example of using vector
14324 types together with x86 intrinsics.
14325
14326 2019-02-04 Alan Modra <amodra@gmail.com>
14327
14328 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
14329 str[] size to 160, and comment.
14330
14331 2019-02-04 Alan Modra <amodra@gmail.com>
14332
14333 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
14334 (rs6000_pltseq_template): Guard output of TLS markers with
14335 TARGET_TLS_MARKERS.
14336 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
14337 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
14338 to use inline PLT sequences.
14339 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
14340 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
14341 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
14342
14343 2019-02-04 Martin Liska <mliska@suse.cz>
14344
14345 PR ipa/88985
14346 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
14347 out when ipa_fn_summaries does not contain entry for callee.
14348
14349 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
14350
14351 * config/sparc/sparc.h: Remove superfluous blank lines.
14352 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
14353 (got_register_rtx): ...this.
14354 (sparc_got): Adjust to above renaming.
14355 (sparc_tls_got): Likewise.
14356 (sparc_delegitimize_address): Likewise.
14357 (sparc_output_mi_thunk): Likewise.
14358 (sparc_init_pic_reg): Likewise.
14359 (save_local_or_in_reg_p): Fix test on the GOT register.
14360 (USE_HIDDEN_LINKONCE): Move around.
14361 (get_pc_thunk_name): Likewise.
14362 (gen_load_pcrel_sym): Likewise.
14363 (load_got_register): Likewise.
14364
14365 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
14366
14367 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
14368 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
14369
14370 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
14371
14372 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
14373 into consideration.
14374
14375 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
14376
14377 * config.gcc (with_nds32_lib, glibc):
14378 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
14379 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
14380 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
14381
14382 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
14383
14384 PR target/89071
14385 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
14386 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
14387 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
14388 (*rcpsf2_sse): Ditto.
14389 (*rsqrtsf2_sse): Ditto.
14390 (sse4_1_round<mode<2): Ditto.
14391
14392 2019-02-03 Richard Biener <rguenther@suse.de>
14393
14394 PR debug/87295
14395 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
14396 orig.
14397
14398 2019-02-02 Jakub Jelinek <jakub@redhat.com>
14399
14400 PR middle-end/87887
14401 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
14402 Punt with warning on aggregate return or argument types. Ignore
14403 type/mode checking for uniform arguments.
14404
14405 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
14406
14407 * combine.c (try_combine): Do not print "Can't combine" messages unless
14408 printing failed combination attempts.
14409
14410 2019-02-01 Martin Jambor <mjambor@suse.cz>
14411
14412 PR hsa/87863
14413 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
14414 segment and global segment variables before making them static.
14415
14416 2019-02-01 Martin Jambor <mjambor@suse.cz>
14417
14418 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
14419 missed optimization dump with dump_enabled_p.
14420
14421 2019-02-01 Richard Biener <rguenther@suse.de>
14422
14423 PR middle-end/88597
14424 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
14425 the instantiate cache.
14426 (instantiate_scev_binary): Elide second operand procesing
14427 if equal to the first.
14428 * tree-chrec.c (chrec_contains_symbols): Add visited set.
14429 (chrec_contains_undetermined): Likewise.
14430 (tree_contains_chrecs): Likewise.
14431
14432 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
14433
14434 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
14435
14436 2019-02-01 Jakub Jelinek <jakub@redhat.com>
14437
14438 PR tree-optimization/89143
14439 * wide-int-range.h (wide_int_range_absu): Declare.
14440 * wide-int-range.cc (wide_int_range_absu): New function.
14441 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
14442
14443 PR tree-optimization/88107
14444 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
14445 instead of assertion that eh_region_outermost is non-NULL, if it
14446 is NULL, set *ALL to true and return NULL.
14447 (move_sese_region_to_fn): Adjust caller, if all is set, call
14448 duplicate_eh_regions with NULL region.
14449
14450 2019-02-01 Richard Biener <rguenth@suse.de>
14451
14452 PR rtl-optimization/88593
14453 * mode-switching.c (optimize_mode_switching): Free dominators before
14454 calling cleanup_cfg.
14455
14456 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
14457
14458 PR tree-optimization/88932
14459 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
14460
14461 2019-01-31 Jakub Jelinek <jakub@redhat.com>
14462
14463 PR middle-end/89137
14464 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
14465 bogus clang warning.
14466
14467 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
14468
14469 PR target/89071
14470 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
14471 alternative to avoid partial SSE register stall for TARGET_AVX.
14472 (truncdfsf2): Ditto.
14473 (sse4_1_round<mode>2): Ditto.
14474
14475 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
14476
14477 PR tree-optimization/89008
14478 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
14479 process anything of the form X * 0.
14480
14481 2019-01-31 Richard Biener <rguenther@suse.de>
14482
14483 PR tree-optimization/89135
14484 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
14485 with abnormal preds.
14486
14487 2019-01-31 Jakub Jelinek <jakub@redhat.com>
14488
14489 PR sanitizer/89124
14490 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
14491 always_inline callees into no_sanitize_address callers.
14492
14493 2019-01-31 Richard Biener <rguenther@suse.de>
14494
14495 PR rtl-optimization/89115
14496 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
14497
14498 2019-01-30 Martin Sebor <msebor@redhat.com>
14499
14500 PR other/89106
14501 * doc/extend.texi (cast to a union): Correct and expand.
14502
14503 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
14504
14505 PR rtl-optimization/87246
14506 * lra-constraints.c (simplify_operand_subreg): Reload memory
14507 in subreg if the address became invalid.
14508
14509 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
14510
14511 PR target/87064
14512 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
14513 Disable for little-endian.
14514
14515 2019-01-30 Richard Biener <rguenther@suse.de>
14516
14517 PR rtl-optimization/89115
14518 * opts.c (default_options_optimization): Reduce
14519 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
14520 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
14521 to the default.
14522
14523 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
14524
14525 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
14526 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
14527 type of vector element when vec_extract is implemented by direct
14528 move.
14529
14530 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
14531
14532 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
14533
14534 2019-01-30 Richard Biener <rguenther@suse.de>
14535
14536 PR tree-optimization/89111
14537 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
14538 canonicalization to appropriately sized access types.
14539
14540 2019-01-30 Jakub Jelinek <jakub@redhat.com>
14541
14542 PR c++/89105
14543 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
14544 for arguments to functions that are TU-local and shouldn't be
14545 referenced by assembly.
14546
14547 2019-01-30 Ulrich Drepper <drepper@redhat.com>
14548
14549 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
14550 after '='.
14551
14552 2019-01-29 Martin Sebor <msebor@redhat.com>
14553
14554 PR c/88956
14555 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
14556
14557 2019-01-29 Jakub Jelinek <jakub@redhat.com>
14558
14559 PR c++/66676
14560 PR ipa/89104
14561 * omp-simd-clone.c (simd_clone_clauses_extract)
14562 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
14563 OMP_CLAUSE_ALIGNED_ALIGNMENT.
14564
14565 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
14566
14567 * config.gcc: Force .init_array for ARC.
14568
14569 2019-01-29 Richard Biener <rguenther@suse.de>
14570
14571 PR debug/87295
14572 * dwarf2out.c (collect_skeleton_dies): New helper.
14573 (copy_decls_for_unworthy_types): Call it.
14574 (build_abbrev_table): Assert we do not try to replace
14575 DW_AT_signature refs with local refs.
14576
14577 2019-01-28 Jakub Jelinek <jakub@redhat.com>
14578
14579 PR middle-end/89002
14580 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
14581 for lastprivate/linear IV, push gimplify context around gimplify_assign
14582 and, if it needed any temporaries, pop it into a gimple bind around the
14583 sequence.
14584
14585 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
14586
14587 * common.opt (-Wattribute-alias): Remove "no-" from name.
14588 Make -Wattribute-alias command line option and
14589 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
14590
14591 2019-01-28 Jakub Jelinek <jakub@redhat.com>
14592
14593 PR target/89073
14594 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
14595 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
14596 x86 ISA options.
14597 (bmi2): Add missing @opindex.
14598 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
14599 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
14600 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
14601 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
14602 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
14603 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
14604 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
14605 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
14606 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
14607 xsavec, xsaveopt and xsaves options.
14608
14609 2019-01-28 Richard Biener <rguenther@suse.de>
14610
14611 PR debug/89076
14612 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
14613 support removal.
14614
14615 2019-01-28 Richard Biener <rguenther@suse.de>
14616
14617 PR tree-optimization/88739
14618 * tree-cfg.c (verify_types_in_gimple_reference): Verify
14619 BIT_FIELD_REFs only are applied to mode-precision operands
14620 when they are integral.
14621 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
14622 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
14623 BIT_FIELD_REFs of non-mode-precision integral operands.
14624
14625 2019-01-27 Jakub Jelinek <jakub@redhat.com>
14626
14627 PR target/87214
14628 * config/i386/sse.md
14629 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
14630 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
14631 first constants in pairs are multiples of 2. Formatting fixes.
14632 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
14633 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
14634 first constants in each quadruple are multiples of 4. Formatting fixes.
14635
14636 2019-01-26 Martin Jambor <mjambor@suse.cz>
14637
14638 PR ipa/88933
14639 * tree-inline.c: Include tree-cfgcleanup.h.
14640 (delete_unreachable_blocks_update_callgraph): Move...
14641 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
14642 ...here, make externally visible, make second argument bool, adjust
14643 all callers.
14644 * tree-cfgcleanup.c: Include cgraph.h.
14645 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
14646 Declare.
14647 * ipa-prop.c: Include tree-cfgcleanup.h.
14648 (ipcp_transform_function): Call
14649 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
14650
14651 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
14652
14653 PR rtl-optimization/88846
14654 * ira.c (process_set_for_memref_referenced_p): New.
14655 (memref_referenced_p): Add new param. Use
14656 process_set_for_memref_referenced_p. Add new switch cases.
14657 (memref_used_between_p): Pass new arg to memref_referenced_p.
14658
14659 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
14660
14661 PR target/88469
14662 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
14663 argument ABI_BREAK. Set to true if the calculated alignment has
14664 changed in gcc-9. Check bit-fields for their base type alignment.
14665 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
14666 (aarch64_function_arg_boundary): Likewise.
14667 (aarch64_gimplify_va_arg_expr): Likewise.
14668
14669 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
14670
14671 PR middle-end/89037
14672 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
14673 instead of accessing TREE_INT_CST_ELT directly.
14674
14675 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
14676
14677 * doc/sourcebuild.texi (Environment attributes): Add fenv and
14678 fenv_exceptions description.
14679
14680 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
14681
14682 PR rtl-optimization/87763
14683 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
14684 Allow SUBREG when matching CC_NZmode compare.
14685
14686 2019-01-25 Richard Biener <rguenther@suse.de>
14687
14688 PR tree-optimization/89049
14689 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
14690 Look at the pattern stmt to determine if the stmt is vectorized.
14691
14692 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
14693
14694 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
14695 (pred_mov<mode>): Handle all-register forms using both a new
14696 alternative and a split.
14697
14698 2019-01-25 Richard Biener <rguenther@suse.de>
14699
14700 PR tree-optimization/86865
14701 * graphite-scop-detection.c (scop_detection::can_represent_loop):
14702 Reject non-do-while loops.
14703
14704 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
14705
14706 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
14707 * config/rs6000/constraints.md (Q constraint): Use REG_P.
14708 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
14709 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
14710 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
14711 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
14712 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
14713 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
14714 vlogical_operand, gpc_reg_operand, int_reg_operand,
14715 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
14716 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
14717 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
14718 (save_world_operation, restore_world_operation, lmw_operation,
14719 stmw_operation): Use MEM_P and REG_P.
14720 (tie_operand): Use MEM_P.
14721 (vrsave_operation, crsave_operation): Use REG_P.
14722 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
14723 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
14724 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
14725 (call_operand): Use HARD_REGISTER_P.
14726 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
14727 Use CONST_INT_P.
14728 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
14729 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
14730 quad_aligned_load_p, replace_swapped_aligned_store,
14731 recombine_lvx_pattern, replace_swapped_aligned_load,
14732 recombine_stvx_pattern): Use MEM_P.
14733 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
14734 Use MEM_P and SYMBOL_REF_P.
14735 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
14736 (insn_is_swappable_p): Use REG_P and MEM_P.
14737 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
14738 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
14739 Use CONST_INT_P.
14740 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
14741 Use CONST_DOUBLE_P.
14742 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
14743 CONST_WIDE_INT_P.
14744 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
14745 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
14746 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
14747 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
14748 reg_or_subregno:
14749 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
14750 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
14751 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
14752 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
14753 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
14754 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
14755 rs6000_split_logical_di): Use CONST_INT_P.
14756 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
14757 REG_P and SYMBOL_REF_P.
14758 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
14759 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
14760 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
14761 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
14762 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
14763 (small_data_operand, print_operand_address): Use CONST_INT_P and
14764 SYMBOL_REF_P.
14765 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
14766 (rs6000_init_hard_regno_mode_ok, direct_move_p):
14767 Use HARD_REGISTER_NUM_P.
14768 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
14769 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
14770 SUBREG_P and SYMBOL_REF_P.
14771 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
14772 and HARD_REGISTER_NUM_P.
14773 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
14774 reg_or_subregno.
14775 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
14776 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
14777 MEM_P and REG_P.
14778 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
14779 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
14780 find_addr_reg): Use REG_P.
14781 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
14782 (rs6000_emit_le_vsx_move): Use SUBREG_P.
14783 (offsettable_ok_by_alignment, constant_pool_expr_p,
14784 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
14785 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
14786 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
14787 rs6000_assemble_integer, create_TOC_reference,
14788 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
14789 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
14790 (rs6000_split_vec_extract_var): Use reg_or_subregno.
14791 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
14792 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
14793 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
14794 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
14795 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
14796 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
14797 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
14798 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
14799 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
14800 and cbranch<mode>4): Use CONST_INT_P.
14801 (multiple define_splits): Use REG_P and SUBREG_P.
14802 (define_expands call, call_value): Use MEM_P.
14803 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
14804 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
14805 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
14806 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
14807 and HARD_REGISTER_NUM_P.
14808 (multiple define_splits): Use HARD_REGISTER_NUM_P.
14809
14810 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
14811
14812 PR rtl-optimization/88948
14813 * rtl.h (prepare_copy_insn): New prototype.
14814 * gcse.c (prepare_copy_insn): New function, split out from
14815 process_insert_insn.
14816 (process_insert_insn): Use prepare_copy_insn.
14817 * store-motion.c (replace_store_insn): Use prepare_copy_insn
14818 instead of gen_move_insn.
14819
14820 2019-01-24 Jakub Jelinek <jakub@redhat.com>
14821
14822 PR debug/89006
14823 * config/i386/i386.c (ix86_pic_register_p): Return true for
14824 UNSPEC_SET_GOT too.
14825
14826 PR tree-optimization/88964
14827 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
14828 punt if HONOR_SNANS (chrec).
14829
14830 PR middle-end/89015
14831 * tree-nested.c (convert_nonlocal_reference_stmt,
14832 convert_local_reference_stmt, convert_tramp_reference_stmt,
14833 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
14834 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
14835 or GIMPLE_OMP_TASK.
14836
14837 PR tree-optimization/89027
14838 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
14839 for "omp simd array" variables.
14840
14841 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
14842
14843 PR target/88469
14844 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
14845 force the alignment of m_val.
14846
14847 2019-01-24 Richard Biener <rguenther@suse.de>
14848
14849 PR lto/87187
14850 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
14851 When in "legacy" debug mode make sure to reset self-origins.
14852
14853 2019-01-24 Martin Liska <mliska@suse.cz>
14854
14855 PR gcov-profile/88994
14856 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
14857 result will be always smaller or equal to the original.
14858 * gcov.c (mangle_name): Fix else branch where we should
14859 also copy to PTR and shift the pointer.
14860
14861 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
14862
14863 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
14864 * vr-values.c (find_case_label_ranges): Fix a comment typo.
14865
14866 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
14867
14868 * common/config/i386/i386-common.c
14869 (OPTION_MASK_ISA_ENQCMD_SET,
14870 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
14871 (ix86_handle_option): Handle -menqcmd.
14872 * config.gcc (enqcmdintrin.h): New header file.
14873 * config/i386/cpuid.h (bit_ENQCMD): New bit.
14874 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
14875 -menqcmd.
14876 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
14877 function type.
14878 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
14879 __builtin_ia32_enqcmds): New builtins.
14880 * config/i386/i386-c.c (__ENQCMD__): New macro.
14881 * config/i386/i386-option.c (ix86_target_string): Add
14882 -menqcmd.
14883 (ix86_valid_target_attribute_inner_p): Likewise.
14884 * config/i386/i386-expand.c
14885 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
14886 IX86_BUILTIN_ENQCMDS.
14887 * config/i386/i386.h (TARGET_ENQCMD): New.
14888 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
14889 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
14890 (movdir64b_<mode>): Parameterize to enable share expansion code
14891 with ENQCMD in function ix86_expand_builtin.
14892 * config/i386/i386.opt: Add -menqcmd.
14893 * config/i386/immintrin.h: Include enqcmdintrin.h.
14894 * config/i386/enqcmdintrin.h: New intrinsic file.
14895 * doc/invoke.texi: Add -menqcmd.
14896
14897 2019-01-23 Bin Cheng <bin.cheng@arm.com>
14898 Steve Ellcey <sellcey@marvell.com>
14899
14900 PR target/85711
14901 * recog.c (address_operand): Return false on wrong mode for address.
14902 (constrain_operands): Check for mode with 'p' constraint.
14903
14904 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
14905
14906 PR target/88998
14907 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
14908 Disparage MMX alternative.
14909 (sse2_cvtpd2pi): Ditto.
14910 (sse2_cvttpd2pi): Ditto.
14911
14912 2019-01-23 David Malcolm <dmalcolm@redhat.com>
14913
14914 PR driver/89014
14915 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
14916 use-after-free of the result of
14917 aarch64_get_extension_string_for_isa_flags.
14918
14919 2019-01-23 Jakub Jelinek <jakub@redhat.com>
14920
14921 PR c/44715
14922 * doc/extend.texi: Document break and continue behavior in
14923 statement expressions.
14924
14925 2019-01-23 Richard Biener <rguenther@suse.de>
14926
14927 PR tree-optimization/89008
14928 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
14929 not leave another stray operand.
14930
14931 2019-01-23 Jakub Jelinek <jakub@redhat.com>
14932
14933 * BASE-VER: Bump to 9.0.1.
14934
14935 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
14936
14937 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
14938 thunk that returns by reference, use the type of the return object
14939 of the thunk instead of that of the alias to build the dereference.
14940
14941 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
14942
14943 * config/arc/atomic.md: Add operand to DMB instruction.
14944
14945 2019-01-23 Jakub Jelinek <jakub@redhat.com>
14946
14947 PR tree-optimization/88964
14948 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
14949 build_zero_cst instead of build_int_cst. Return false for loop
14950 invariants which honor signed zeros.
14951
14952 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
14953
14954 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
14955
14956 2019-01-22 Jakub Jelinek <jakub@redhat.com>
14957
14958 PR target/88965
14959 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
14960 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
14961 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
14962
14963 PR middle-end/88968
14964 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
14965 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
14966
14967 PR target/87064
14968 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
14969 Disable for little endian.
14970
14971 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
14972
14973 PR target/88469
14974 * config/arm/arm.c (arm_needs_double_word_align): Check
14975 DECL_BIT_FIELD_TYPE.
14976
14977 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
14978 H.J. Lu <hongjiu.lu@intel.com>
14979
14980 PR target/88909
14981 * config/i386/i386-builtin.def: Add mask2 to all builtin
14982 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
14983 SPECIAL_ARGS.
14984 * config/i386/i386.c (BDESC): Add mask2 to the definition.
14985 (BDESC_FIRST): Likewise.
14986 (define_builtin): Add an argument for mask2. Updated to handle
14987 both ix86_isa_flags and ix86_isa_flags2.
14988 (define_builtin_const): Likewise.
14989 (define_builtin_pure): Likewise.
14990 (define_builtin2): Deleted.
14991 (define_builtin_const2): Likewise.
14992 (builtin_description): Add a member, mask2.
14993 (bdesc_*): Add mask2 to builtin initializations.
14994 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
14995 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
14996 support.
14997 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
14998
14999 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
15000
15001 PR target/88954
15002 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
15003 noplt attribute.
15004
15005 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
15006
15007 PR target/88469
15008 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
15009 alignment is dominated by a bitfield with 64-bit aligned base type.
15010 (arm_function_arg): Emit a warning if the alignment has changed since
15011 earlier GCC releases.
15012 (arm_function_arg_boundary): Likewise.
15013 (arm_setup_incoming_varargs): Likewise.
15014
15015 2019-01-22 Richard Biener <rguenther@suse.de>
15016
15017 PR tree-optimization/88862
15018 * graphite-scop-detection.c
15019 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
15020
15021 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
15022
15023 * doc/extend.tex (AMD GCN Function Attributes): New section.
15024 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
15025 * doc/invoke.texi (AMD GCN Options): New section.
15026 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
15027
15028 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
15029
15030 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
15031 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
15032
15033 2019-01-22 Jakub Jelinek <jakub@redhat.com>
15034
15035 PR tree-optimization/88044
15036 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
15037 is false in the first iteration, but !every_iteration, return false
15038 instead of true with niter->niter zero.
15039
15040 PR rtl-optimization/88904
15041 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
15042 any nonequal registers before processing BB_END (b).
15043
15044 PR target/88905
15045 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
15046 GET_MODE (op0).
15047 (expand_binop_directly, expand_doubleword_clz,
15048 expand_doubleword_popcount, expand_ctz, expand_ffs,
15049 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
15050
15051 PR rtl-optimization/49429
15052 PR target/49454
15053 PR rtl-optimization/86334
15054 PR target/88906
15055 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
15056 addressable from here...
15057 (emit_block_op_via_libcall): ... to here.
15058
15059 2019-01-22 Richard Biener <rguenther@suse.de>
15060
15061 * tree-vect-loop.c (vect_analyze_loop_operations): Use
15062 auto_vec for cost vector to fix memleak.
15063 (vectorize_fold_left_reduction): Properly gather SLP defs.
15064 (vectorizable_comparison): Do not swap operands to properly
15065 gather SLP defs.
15066
15067 2019-01-22 Alan Modra <amodra@gmail.com>
15068
15069 PR target/88614
15070 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
15071 stays a reg. Allow a const_int.
15072 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
15073 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
15074 (IS_NOMARK_TLSGETADDR): Define.
15075 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
15076 (rs6000_output_tlsargs): New function.
15077 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
15078 __tls_get_addr call takes an arg.
15079 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
15080 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
15081 delete split..
15082 (call_value_nonlocal_sysv): ..or here, delete split.
15083 (tls_gdld_nomark): Delete.
15084 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
15085 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
15086 (call_value_nonlocal_sysv): Likewise.
15087 (call_value_nonlocal_sysv_secure): Likewise.
15088 (call_value_nonlocal_aix): Likewise.
15089 (call_value_indirect_aix): Likewise.
15090 (call_value_indirect_elfv2): Likewise.
15091 (call_value_local32, call_value_local64): Disable for no-mark tls.
15092 (call_value_local_aix): Likewise.
15093
15094 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
15095
15096 PR target/88938
15097 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
15098 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
15099
15100 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
15101
15102 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
15103 string contents as hash_map keys.
15104
15105 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
15106
15107 PR c/88928
15108 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
15109 for rvalue context. Handle rvalues correctly. Use min_align_of_type
15110 instead of TYPE_ALIGN.
15111 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
15112 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
15113 pointer from TYPE_STUB_DECL.
15114
15115 2019-01-21 Richard Biener <rguenther@suse.de>
15116
15117 PR tree-optimization/88934
15118 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
15119 at the possibly non-constant operand.
15120 (vect_get_constant_vectors): Adjust.
15121
15122 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
15123
15124 PR target/71659
15125 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
15126 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
15127 instead of _X86INTRIN_H_INCLUDED.
15128 * onfig/i386/clwbintrin.h: Likewise.
15129 * config/i386/pkuintrin.h: Likewise.
15130 * config/i386/prfchwintrin.h: Likewise.
15131 * config/i386/rdseedintrin.h: Likewise.
15132 * config/i386/wbnoinvdintrin.h: Likewise.
15133 * config/i386/xsavecintrin.h: Likewise.
15134 * config/i386/xsavesintrin.h: Likewise.
15135 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
15136 * config/i386/xsaveintrin.h: Likewise.
15137 * config/i386/xsaveoptintrin.h: Likewise.
15138 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
15139 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
15140 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
15141 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
15142 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
15143 * config/i386/immintrin.h: Here.
15144
15145 2019-01-20 Martin Jambor <mjambor@suse.cz>
15146
15147 PR ipa/87615
15148 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
15149 with aa_walk_budget.
15150 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
15151 aa_walk_budget_p parameter.
15152 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
15153 walk. Updated all callers.
15154 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
15155 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
15156 unmodified_parm.
15157 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
15158 parameter info. Extract info from fbi. Pass fbi to recursive calls
15159 and to unmodified_parm.
15160 (phi_result_unknown_predicate): New parameter fbi, removed parameter
15161 info, updated call to will_be_nonconstant_expr_predicate.
15162 (param_change_prob): New parameter fbi, limit AA walking.
15163 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
15164 calls to various above functions.
15165 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
15166 parameter. Use it to limit AA walking.
15167 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
15168 fbi, limit AA walk.
15169 (detect_type_change): New parameter fbi, pass it on to
15170 detect_type_change_from_memory_writes.
15171 (detect_type_change_ssa): Likewise.
15172 (aa_overwalked): Removed.
15173 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
15174 accordingly, adjust to the neew AA limiting scheme.
15175 (parm_ref_data_preserved_p): Likewise.
15176 (ipa_compute_jump_functions_for_edge): Adjust call to
15177 get_dynamic_type.
15178 (ipa_analyze_call_uses): Likewise.
15179 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
15180 (ipa_analyze_node): Initialize aa_walk_budget.
15181 (ipcp_transform_function): Likewise.
15182 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
15183 to get_dynamic_type.
15184
15185 2019-01-19 Jakub Jelinek <jakub@redhat.com>
15186
15187 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
15188 outside of #if CHECKING_P code.
15189
15190 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
15191
15192 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
15193 New function, split out from...
15194 (loop_versioning::analyze_stride): ...here.
15195 (loop_versioning::find_per_loop_multiplication): Use gassign.
15196 (loop_versioning::analyze_term_using_scevs): Return a success code.
15197 (loop_versioning::analyze_arbitrary_term): New function.
15198 (loop_versioning::analyze_address_fragment): Use
15199 analyze_arbitrary_term if all else fails.
15200
15201 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
15202
15203 PR target/88892
15204 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
15205 operands.
15206
15207 2019-01-18 Richard Biener <rguenther@suse.de>
15208
15209 PR tree-optimization/88903
15210 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
15211 scalar stmts a SLP shift amount is composed of when detecting
15212 shifts by scalars.
15213
15214 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
15215
15216 PR target/88799
15217 * config/arm/arm-cpus.in (mp): New feature.
15218 (sec): New feature.
15219 (fgroup ARMv7ve): Add mp and sec features.
15220 (arch armv7-a): Add options to allow mp and sec extensions.
15221 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
15222 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
15223 extenstions to the base architecture.
15224 (cpu cortex-a8): Add sec extension to the base architecture.
15225 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
15226 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
15227 variants down to the base v7-a varaint.
15228 * config/arm/t-multilib (v7_a_arch_variants): New variable.
15229 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
15230 of permitted extensions for -march=armv7-a and for
15231 -mcpu=generic-armv7-a.
15232
15233 2019-01-18 Martin Liska <mliska@suse.cz>
15234
15235 * params.def: Fix comment.
15236 * tree-profile.c (gimple_init_gcov_profiler): Bump function
15237 name.
15238 (gimple_gen_ic_func_profiler): Likewise.
15239
15240 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15241
15242 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
15243 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
15244 and put in error checks for stack protector guard options.
15245 (aarch64_stack_protect_guard): New.
15246 (TARGET_STACK_PROTECT_GUARD): Define.
15247 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
15248 (reg_stack_protect_address<mode>): New.
15249 (stack_protect_set): Adjust for SSP_GLOBAL.
15250 (stack_protect_test): Likewise.
15251 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
15252 (-mstack-protector-guard): Likewise.
15253 (-mstack-protector-guard-offset): Likewise.
15254
15255 2019-01-18 Jakub Jelinek <jakub@redhat.com>
15256
15257 PR tree-optimization/86214
15258 * tree-inline.h (struct copy_body_data): Add
15259 add_clobbers_to_eh_landing_pads member.
15260 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
15261 (copy_edges_for_bb): Call it if EH edge destination is <
15262 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
15263 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
15264 if flag_stack_reuse != SR_NONE and clear it afterwards.
15265
15266 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
15267
15268 PR target/85596
15269 * doc/install.texi (with-multilib-list): Document for aarch64.
15270
15271 2019-01-18 Jakub Jelinek <jakub@redhat.com>
15272
15273 PR target/88734
15274 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
15275 (("..."))) with ("...").
15276
15277 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
15278
15279 * doc/extend.texi (Built-in Functions for Memory Model Aware
15280 Atomic Operations): Document atomic fetch and nand.
15281
15282 2019-01-18 Martin Liska <mliska@suse.cz>
15283 Richard Biener <rguenther@suse.de>
15284
15285 PR middle-end/88587
15286 * cgraph.h (create_version_clone_with_body): Add new argument
15287 with attributes.
15288 * cgraphclones.c (cgraph_node::create_version_clone): Add
15289 DECL_ATTRIBUTES to a newly created decl. And call
15290 valid_attribute_p so that proper cl_target_optimization_node
15291 is set for the newly created declaration.
15292 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
15293 for declaration.
15294 (expand_target_clones): Do not call valid_attribute_p, it must
15295 be already done.
15296 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
15297 vector types.
15298
15299 2019-01-17 Jakub Jelinek <jakub@redhat.com>
15300
15301 PR target/88734
15302 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
15303 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
15304 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
15305
15306 2019-01-17 Martin Sebor <msebor@redhat.com>
15307
15308 PR middle-end/88273
15309 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
15310 Handle anti-ranges the same as no range at all.
15311
15312 2018-01-17 Steve Ellcey <sellcey@cavium.com>
15313
15314 * config/aarch64/aarch64.c (cgraph.h): New include.
15315 (intl.h): New include.
15316 (supported_simd_type): New function.
15317 (currently_supported_simd_type): Ditto.
15318 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
15319 (aarch64_simd_clone_adjust): Ditto.
15320 (aarch64_simd_clone_usable): Ditto.
15321 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
15322 (TARGET_SIMD_CLONE_ADJUST): Ditto.
15323 (TARGET_SIMD_CLONE_USABLE): Ditto.
15324 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
15325 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
15326 call.
15327
15328 2019-01-17 Martin Sebor <msebor@redhat.com>
15329
15330 PR tree-optimization/88800
15331 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
15332 NO_WARNING bit here. Avoid folding out-of-bounds calls.
15333 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
15334 redundant argument. Add new argument and issue diagnostics under
15335 its control. Detect out-of-bounds access even with warnings
15336 disabled.
15337 (check_bounds_or_overlap): Change return type. Add argument.
15338 (wrestrict_dom_walker::check_call): Adjust.
15339 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
15340 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
15341 check_bounds_or_overlap's return value.
15342 (handle_builtin_stxncpy): Same.
15343 (handle_builtin_strcat): Same.
15344
15345 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
15346 Kwok Cheung Yeung <kcy@codesourcery.com>
15347 Julian Brown <julian@codesourcery.com>
15348 Tom de Vries <tom@codesourcery.com>
15349
15350 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
15351
15352 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
15353
15354 * doc/sourcebuild.texi: Document dg-require-effective-target
15355 llvm_binutils and offload_gcn.
15356
15357 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
15358 Kwok Cheung Yeung <kcy@codesourcery.com>
15359 Julian Brown <julian@codesourcery.com>
15360 Tom de Vries <tom@codesourcery.com>
15361
15362 * doc/sourcebuild.texi: Document dg-required-effective-target
15363 exceptions.
15364
15365 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
15366 Kwok Cheung Yeung <kcy@codesourcery.com>
15367 Julian Brown <julian@codesourcery.com>
15368 Tom de Vries <tom@codesourcery.com>
15369 Jan Hubicka <hubicka@ucw.cz>
15370 Martin Jambor <mjambor@suse.cz>
15371
15372 * config.gcc: Add amdgcn*-*-amdhsa configuration.
15373 * configure.ac: Check for dlopen.
15374 * configure: Regenerate.
15375
15376 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
15377 Kwok Cheung Yeung <kcy@codesourcery.com>
15378 Julian Brown <julian@codesourcery.com>
15379 Tom de Vries <tom@codesourcery.com>
15380 Jan Hubicka <hubicka@ucw.cz>
15381 Martin Jambor <mjambor@suse.cz>
15382
15383 * common/config/gcn/gcn-common.c: New file.
15384 * config/gcn/driver-gcn.c: New file.
15385 * config/gcn/gcn-builtins.def: New file.
15386 * config/gcn/gcn-hsa.h: New file.
15387 * config/gcn/gcn-modes.def: New file.
15388 * config/gcn/gcn-opts.h: New file.
15389 * config/gcn/gcn-passes.def: New file.
15390 * config/gcn/gcn-protos.h: New file.
15391 * config/gcn/gcn-run.c: New file.
15392 * config/gcn/gcn-tree.c: New file.
15393 * config/gcn/gcn.c: New file.
15394 * config/gcn/gcn.h: New file.
15395 * config/gcn/gcn.opt: New file.
15396 * config/gcn/t-gcn-hsa: New file.
15397
15398 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
15399 Kwok Cheung Yeung <kcy@codesourcery.com>
15400 Julian Brown <julian@codesourcery.com>
15401 Tom de Vries <tom@codesourcery.com>
15402 Jan Hubicka <hubicka@ucw.cz>
15403 Martin Jambor <mjambor@suse.cz>
15404
15405 * config/gcn/constraints.md: New file.
15406 * config/gcn/gcn-valu.md: New file.
15407 * config/gcn/gcn.md: New file.
15408 * config/gcn/predicates.md: New file.
15409
15410 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
15411
15412 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
15413 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
15414 (stmt_uses_0_or_null_in_undefined_way): Likewise.
15415 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
15416
15417 2019-01-17 Tamar Christina <tamar.christina@arm.com>
15418
15419 PR target/88851
15420 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
15421 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
15422 it and document registers.
15423
15424 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15425
15426 * config/aarch64/aarch64.c (ares_tunings): Define.
15427 * config/aarch64/aarch64-cores.def (ares): Use the above.
15428
15429 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
15430
15431 PR target/88794
15432 Revert:
15433 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
15434
15435 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
15436 (_mm512_fixupimm_round_pd): Update parameters and builtin.
15437 (_mm512_maskz_fixupimm_round_pd): Ditto.
15438 (_mm512_fixupimm_round_ps): Ditto.
15439 (_mm512_maskz_fixupimm_round_ps): Ditto.
15440 (_mm_fixupimm_round_sd): Ditto.
15441 (_mm_maskz_fixupimm_round_sd): Ditto.
15442 (_mm_fixupimm_round_ss): Ditto.
15443 (_mm_maskz_fixupimm_round_ss): Ditto.
15444 (_mm512_fixupimm_pd): Ditto.
15445 (_mm512_maskz_fixupimm_pd): Ditto.
15446 (_mm512_fixupimm_ps): Ditto.
15447 (_mm512_maskz_fixupimm_ps): Ditto.
15448 (_mm_fixupimm_sd): Ditto.
15449 (_mm_maskz_fixupimm_sd): Ditto.
15450 (_mm_fixupimm_ss): Ditto.
15451 (_mm_maskz_fixupimm_ss): Ditto.
15452 (_mm512_mask_fixupimm_round_pd): Update builtin.
15453 (_mm512_mask_fixupimm_round_ps): Ditto.
15454 (_mm_mask_fixupimm_round_sd): Ditto.
15455 (_mm_mask_fixupimm_round_ss): Ditto.
15456 (_mm512_mask_fixupimm_pd): Ditto.
15457 (_mm512_mask_fixupimm_ps): Ditto.
15458 (_mm_mask_fixupimm_sd): Ditto.
15459 (_mm_mask_fixupimm_ss): Ditto.
15460 * config/i386/avx512vlintrin.h:
15461 (_mm256_fixupimm_pd): Update parameters and builtin.
15462 (_mm256_maskz_fixupimm_pd): Ditto.
15463 (_mm256_fixupimm_ps): Ditto.
15464 (_mm256_maskz_fixupimm_ps): Ditto.
15465 (_mm_fixupimm_pd): Ditto.
15466 (_mm_maskz_fixupimm_pd): Ditto.
15467 (_mm_fixupimm_ps): Ditto.
15468 (_mm_maskz_fixupimm_ps): Ditto.
15469 (_mm256_mask_fixupimm_pd): Update builtin.
15470 (_mm256_mask_fixupimm_ps): Ditto.
15471 (_mm_mask_fixupimm_pd): Ditto.
15472 (_mm_mask_fixupimm_ps): Ditto.
15473 * config/i386/i386-builtin-types.def: Add new types and remove
15474 useless ones.
15475 * config/i386/i386-builtin.def: Update builtin definitions.
15476 * config/i386/i386.c: Handle new builtin types and remove useless ones.
15477 * config/i386/sse.md: Update VFIXUPIMM* patterns.
15478 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
15479 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
15480 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
15481 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
15482 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
15483 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
15484 * config/i386/subst.md:
15485 (round_saeonly_sd_mask_operand4): Add new subst_attr.
15486 (round_saeonly_sd_mask_op4): Ditto.
15487 (round_saeonly_expand_operand5): Ditto.
15488 (round_saeonly_expand): Update.
15489
15490 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
15491
15492 PR target/88794
15493 Revert:
15494 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
15495
15496 * config/i386/sse.md: Combine VFIXUPIMM* patterns
15497 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
15498 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
15499 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
15500 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
15501 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
15502 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
15503
15504 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
15505
15506 PR target/88794
15507 Revert:
15508 2018-12-15 Jakub Jelinek <jakub@redhat.com>
15509
15510 PR target/88489
15511 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
15512 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
15513 instead of UNSPEC_FIXUPIMM.
15514
15515 2019-01-17 Richard Biener <rguenther@suse.de>
15516
15517 PR lto/86736
15518 * dwarf2out.c (want_pubnames): Never generate pubnames sections
15519 and friends for the LTO part of debug info.
15520
15521 2019-01-17 Jakub Jelinek <jakub@redhat.com>
15522
15523 PR tree-optimization/86214
15524 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
15525 if x == y.
15526
15527 PR rtl-optimization/88870
15528 * dce.c (deletable_insn_p): Never delete const/pure calls that can
15529 throw if we can't alter the cfg or delete dead exceptions.
15530 (mark_insn): Don't call find_call_stack_args for such calls.
15531
15532 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
15533
15534 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
15535 prototypes for vec_st.
15536 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
15537 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
15538 mainly on signed/unsigned long long and double.
15539
15540 2019-01-16 David Malcolm <dmalcolm@redhat.com>
15541
15542 PR target/88861
15543 * combine.c (delete_noop_moves): Convert to "bool" return,
15544 returning true if any edges are eliminated.
15545 (combine_instructions): Also return true if delete_noop_moves
15546 returns true.
15547
15548 2019-01-16 Tamar Christina <tamar.christina@arm.com>
15549
15550 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
15551 correct max nunits for endian swap.
15552 (aarch64_expand_fcmla_builtin): Correct subreg code.
15553 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
15554 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
15555 lane endianness.
15556
15557 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
15558
15559 * config/alpha/alpha.c (alpha_gimplify_va_arg):
15560 Handle split indirect COMPLEX_TYPE arguments.
15561
15562 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
15563
15564 PR target/86891
15565 * config/aarch64/aarch64-modes.def: Add comment about how the carry
15566 bit is set by add and compare.
15567 (CC_ADC): New CC_MODE.
15568 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
15569 to cache the code and mode of X. Adjust the shape of a CC_Cmode
15570 comparison. Add detection for CC_ADCmode.
15571 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
15572 CC_ADCmode.
15573 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
15574 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
15575 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
15576 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
15577 to eliminate the need for zero-extending the operands.
15578 (add<mode>3_compareC_imm): Delete. Merge into ...
15579 (add<mode>3_compareC): ... this. Restructure the comparison to
15580 eliminate the need for zero-extending the operands.
15581 (add<mode>3_carryin): Use LTU for the overflow detection.
15582 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
15583 Reexpress comparison for overflow.
15584 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
15585 (add<mode>3_carryinC): Likewise.
15586 (add<mode>3_carryinV): Use LTU for carry between partials.
15587 * config/aarch64/predicates.md (aarch64_carry_operation): Update
15588 handling of CC_Cmode and add CC_ADCmode.
15589 (aarch64_borrow_operation): Likewise.
15590
15591 2019-01-16 Tamar Christina <tamar.christina@arm.com>
15592
15593 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
15594 Remove patternmode.
15595 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
15596 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
15597 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
15598 Remove endianness conversion.
15599
15600 2019-01-16 Martin Liska <mliska@suse.cz>
15601
15602 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
15603 for GCC driver.
15604 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
15605 a new argument.
15606 * gcc.c (add_sysrooted_hdrs_prefix): New function.
15607 (path_prefix_reset): Move up in the source file.
15608 (find_fortran_preinclude_file): Make complex search for the
15609 fortran header files.
15610
15611 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
15612
15613 * godump.c (go_output_typedef): When outputting a typedef, refer
15614 to the underlying type by its name and not its structure.
15615
15616 2019-01-15 David Malcolm <dmalcolm@redhat.com>
15617
15618 PR c++/88795
15619 * tree.c (build_function_type): Assert that arg_types is not
15620 error_mark_node.
15621
15622 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
15623
15624 PR inline-asm/52813
15625 * doc/extend.texi: Document that listing the stack pointer in the
15626 clobber list of an asm is a deprecated feature.
15627 * common.opt (Wdeprecated): Moved from c-family/c.opt.
15628 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
15629 warning instead of an error for clobbers of the stack pointer.
15630 Add a note explaining why.
15631
15632 2019-01-15 Richard Biener <rguenther@suse.de>
15633
15634 PR debug/88046
15635 * dwarf2out.c (gen_member_die): Do not generate inheritance
15636 DIEs late.
15637
15638 2019-01-15 Richard Biener <rguenther@suse.de>
15639
15640 PR tree-optimization/88855
15641 * tree-if-conv.c (combine_blocks): Collect
15642 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
15643
15644 2019-01-15 Tom de Vries <tdevries@suse.de>
15645
15646 PR target/80547
15647 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
15648 lhs == NULL_TREE for gang-level reduction.
15649
15650 2019-01-15 Richard Biener <rguenther@suse.de>
15651 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15652
15653 PR ipa/88788
15654 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
15655 return true if SSA_NAME is already marked in visited bitmap.
15656 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
15657
15658 2019-01-15 Jakub Jelinek <jakub@redhat.com>
15659
15660 PR tree-optimization/88775
15661 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
15662 equal == 0 equality pointer comparisons some more if compared in
15663 integral types and either one points to an automatic var and the
15664 other to a global, or we can prove at least one points to the middle
15665 or both point to start or both point to end.
15666
15667 2019-01-14 Andi Kleen <ak@linux.intel.com>
15668
15669 * Makefile.in: Lower autofdo sampling rate by 10x.
15670 * Makefile.tpl: Dito.
15671
15672 2019-01-14 Tom Honermann <tom@honermann.net>
15673
15674 * defaults.h: Define CHAR8_TYPE.
15675
15676 2019-01-14 Martin Sebor <msebor@redhat.com>
15677
15678 PR target/88638
15679 * doc/extend.texi (Darwin Format Checks): Clarify.
15680
15681 2019-01-14 Richard Biener <rguenther@suse.de>
15682
15683 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
15684 whether we are in (simplify ...) or (match ...) context.
15685
15686 2019-01-14 Jakub Jelinek <jakub@redhat.com>
15687
15688 PR rtl-optimization/88796
15689 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
15690 * cfgexpand.c (stack_protect_prologue): Initialize
15691 crtl->stack_protect_guard_decl.
15692 * function.c (stack_protect_epilogue): Use it instead of calling
15693 targetm.stack_protect_guard again.
15694 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
15695 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
15696 crtl->stack_protect_guard_decl.
15697 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
15698 on the returned MEM_EXPR.
15699
15700 2019-01-12 Tom de Vries <tdevries@suse.de>
15701
15702 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
15703 vector length using -fopenacc-dim.
15704
15705 2019-01-12 Tom de Vries <tdevries@suse.de>
15706
15707 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
15708 lengths into account.
15709
15710 2019-01-12 Svante Signell <svante.signell@gmail.com>
15711
15712 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
15713 (TARGET_CAN_SPLIT_STACK): Define.
15714 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
15715
15716 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
15717
15718 * params.def (inline-unit-growth): Set to 40.
15719
15720 2019-01-12 Jakub Jelinek <jakub@redhat.com>
15721
15722 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
15723
15724 2019-01-12 Tom de Vries <tdevries@suse.de>
15725
15726 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
15727 region calling vector-partitionable routine, set default_vector_length
15728 to WARP_SIZE.
15729
15730 2019-01-12 Tom de Vries <tdevries@suse.de>
15731
15732 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
15733 variable default_vector_length.
15734
15735 2019-01-12 Tom de Vries <tdevries@suse.de>
15736
15737 PR middle-end/88703
15738 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
15739 from oacc_default_dims, as oacc_validate_dims would do it, and apply
15740 dimensions limits.
15741
15742 2019-01-12 Tom de Vries <tdevries@suse.de>
15743
15744 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
15745 (nvptx_goacc_validate_dims): Add used parameter.
15746 * doc/tm.texi: Regenerate.
15747 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
15748 argument to call to targetm.goacc.validate_dims.
15749 (default_goacc_validate_dims): Add used
15750 parameter.
15751 * target.def (validate_dims): Add used parameter in DEFHOOK.
15752 * targhooks.h (default_goacc_validate_dims): Add used parameter.
15753
15754 2019-01-11 Jakub Jelinek <jakub@redhat.com>
15755
15756 PR middle-end/85956
15757 PR lto/88733
15758 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
15759 field.
15760 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
15761 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
15762 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
15763 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
15764
15765 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
15766
15767 PR rtl-optimization/87305
15768 * lra-assigns.c
15769 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
15770 for little endian pseudos used as paradoxical subreg.
15771
15772 2019-01-11 Jakub Jelinek <jakub@redhat.com>
15773
15774 PR tree-optimization/88693
15775 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
15776 for STRING_CSTs that don't contain any NUL characters in the first
15777 TREE_STRING_LENGTH bytes.
15778
15779 2019-01-11 Alan Modra <amodra@gmail.com>
15780
15781 PR 88777
15782 PR 88614
15783 * genattrtab.c (min_fn): Don't translate values.
15784 (min_attr_value): Return INT_MAX when the value can't be calculated.
15785 Return minimum among any values that can be calculated.
15786 (max_attr_value): Adjust.
15787
15788 2019-01-11 Jakub Jelinek <jakub@redhat.com>
15789
15790 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
15791
15792 2019-01-11 Steve Ellcey <sellcey@marvell.com>
15793
15794 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
15795 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
15796 (aarch64_return_call_with_max_clobbers): New function.
15797 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
15798 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
15799 argument.
15800 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
15801 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
15802 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
15803 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
15804 * cselib.c (cselib_process_insn): Add argument to
15805 targetm.hard_regno_call_part_clobbered call.
15806 * ira-conflicts.c (ira_build_conflicts): Ditto.
15807 * ira-costs.c (ira_tune_allocno_costs): Ditto.
15808 * lra-constraints.c (inherit_reload_reg): Ditto.
15809 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
15810 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
15811 argument. Call targetm.return_call_with_max_clobbers.
15812 Add argument to targetm.hard_regno_call_part_clobbered call.
15813 (calls_have_same_clobbers_p): New function.
15814 (process_bb_lives): Add call_insn and last_call_insn variables.
15815 Pass call_insn to check_pseudos_live_through_calls.
15816 Modify if stmt to check targetm.return_call_with_max_clobbers.
15817 Update setting of flush variable.
15818 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
15819 to false.
15820 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
15821 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
15822 targetm.hard_regno_call_part_clobbered call.
15823 * reginfo.c (choose_hard_reg_mode): Ditto.
15824 * regrename.c (check_new_reg_p): Ditto.
15825 * reload.c (find_equiv_reg): Ditto.
15826 * reload1.c (emit_reload_insns): Ditto.
15827 * sched-deps.c (deps_analyze_insn): Ditto.
15828 * sel-sched.c (init_regs_for_mode): Ditto.
15829 (mark_unavailable_hard_regs): Ditto.
15830 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
15831 * target.def (hard_regno_call_part_clobbered): Add insn argument.
15832 (return_call_with_max_clobbers): New target function.
15833 * doc/tm.texi: Regenerate.
15834 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
15835 * hooks.c (hook_bool_uint_mode_false): Change to
15836 hook_bool_insn_uint_mode_false.
15837 * hooks.h (hook_bool_uint_mode_false): Ditto.
15838
15839 2019-01-11 Steve Ellcey <sellcey@marvell.com>
15840
15841 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
15842 (aarch64_remove_extra_call_preserved_regs): New function.
15843 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
15844 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
15845 * doc/tm.texi: Regenerate.
15846 * final.c (get_call_reg_set_usage): Call new hook.
15847 * target.def (remove_extra_call_preserved_regs): New hook.
15848 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
15849 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
15850
15851 2019-01-11 Jakub Jelinek <jakub@redhat.com>
15852
15853 PR bootstrap/88714
15854 * passes.c (finish_optimization_passes): Call print_combine_total_stats
15855 inside of pass_combine_1 dump rather than pass_profile_1.
15856
15857 2019-01-11 Tom de Vries <tdevries@suse.de>
15858
15859 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
15860 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
15861 (PTX_NUM_PER_WORKER_BARRIERS): Define.
15862 (nvptx_apply_dim_limits): Prevent vector_length 64 and
15863 num_workers 16.
15864
15865 2019-01-11 Tom de Vries <tdevries@suse.de>
15866
15867 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
15868
15869 2019-01-11 Jan Beulich <jbeulich@suse.com>
15870
15871 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
15872 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
15873 sse2_cvtsi2sd): Add {l}.
15874 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
15875 syntax.
15876
15877 2019-01-10 Jakub Jelinek <jakub@redhat.com>
15878
15879 PR target/88785
15880 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
15881 define_expand.
15882 (*float<floatunssuffix>v2div2sf2): New define_insn.
15883 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
15884 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
15885 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
15886 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
15887 match_operands with "const0_operand" "C".
15888
15889 2019-01-10 Tamar Christina <tamar.christina@arm.com>
15890
15891 * config/aarch64/aarch64-builtins.c
15892 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
15893 (aarch64_init_simd_builtins): ...Here
15894
15895 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
15896
15897 PR rtl-optimization/87305
15898 * lra-assigns.c
15899 (setup_live_pseudos_and_spill_after_risky_transforms): Check
15900 allocation for big endian pseudos used as paradoxical subregs and
15901 spill them if it is wrong.
15902 * lra-constraints.c (lra_constraints): Add a comment.
15903
15904 2019-01-10 Richard Biener <rguenther@suse.de>
15905
15906 PR tree-optimization/88792
15907 * tree-ssa-pre.c (get_representative_for): Do not return a
15908 value-number here.
15909
15910 2019-01-10 Jakub Jelinek <jakub@redhat.com>
15911
15912 PR middle-end/84877
15913 PR bootstrap/88450
15914 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
15915 (assign_parm_setup_block): Do the argument slot realignment here
15916 instead.
15917
15918 2019-01-10 Stefan Agner <stefan@agner.ch>
15919
15920 PR target/88648
15921 * config/arm/arm.c (arm_option_override_internal): Force
15922 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
15923
15924 2019-01-10 Jakub Jelinek <jakub@redhat.com>
15925
15926 PR c/88568
15927 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
15928 DECL_EXTERNAL.
15929
15930 2019-01-10 Tamar Christina <tamar.christina@arm.com>
15931
15932 * config/arm/arm-builtins.c
15933 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
15934 (MAC_LANE_PAIR_QUALIFIERS): New.
15935 (arm_expand_builtin_args): Use it.
15936 (arm_expand_builtin_1): Likewise.
15937 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
15938 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
15939 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
15940 * config/arm/arm_neon.h:
15941 (vcadd_rot90_f16): New.
15942 (vcaddq_rot90_f16): New.
15943 (vcadd_rot270_f16): New.
15944 (vcaddq_rot270_f16): New.
15945 (vcmla_f16): New.
15946 (vcmlaq_f16): New.
15947 (vcmla_lane_f16): New.
15948 (vcmla_laneq_f16): New.
15949 (vcmlaq_lane_f16): New.
15950 (vcmlaq_laneq_f16): New.
15951 (vcmla_rot90_f16): New.
15952 (vcmlaq_rot90_f16): New.
15953 (vcmla_rot90_lane_f16): New.
15954 (vcmla_rot90_laneq_f16): New.
15955 (vcmlaq_rot90_lane_f16): New.
15956 (vcmlaq_rot90_laneq_f16): New.
15957 (vcmla_rot180_f16): New.
15958 (vcmlaq_rot180_f16): New.
15959 (vcmla_rot180_lane_f16): New.
15960 (vcmla_rot180_laneq_f16): New.
15961 (vcmlaq_rot180_lane_f16): New.
15962 (vcmlaq_rot180_laneq_f16): New.
15963 (vcmla_rot270_f16): New.
15964 (vcmlaq_rot270_f16): New.
15965 (vcmla_rot270_lane_f16): New.
15966 (vcmla_rot270_laneq_f16): New.
15967 (vcmlaq_rot270_lane_f16): New.
15968 (vcmlaq_rot270_laneq_f16): New.
15969 (vcadd_rot90_f32): New.
15970 (vcaddq_rot90_f32): New.
15971 (vcadd_rot270_f32): New.
15972 (vcaddq_rot270_f32): New.
15973 (vcmla_f32): New.
15974 (vcmlaq_f32): New.
15975 (vcmla_lane_f32): New.
15976 (vcmla_laneq_f32): New.
15977 (vcmlaq_lane_f32): New.
15978 (vcmlaq_laneq_f32): New.
15979 (vcmla_rot90_f32): New.
15980 (vcmlaq_rot90_f32): New.
15981 (vcmla_rot90_lane_f32): New.
15982 (vcmla_rot90_laneq_f32): New.
15983 (vcmlaq_rot90_lane_f32): New.
15984 (vcmlaq_rot90_laneq_f32): New.
15985 (vcmla_rot180_f32): New.
15986 (vcmlaq_rot180_f32): New.
15987 (vcmla_rot180_lane_f32): New.
15988 (vcmla_rot180_laneq_f32): New.
15989 (vcmlaq_rot180_lane_f32): New.
15990 (vcmlaq_rot180_laneq_f32): New.
15991 (vcmla_rot270_f32): New.
15992 (vcmlaq_rot270_f32): New.
15993 (vcmla_rot270_lane_f32): New.
15994 (vcmla_rot270_laneq_f32): New.
15995 (vcmlaq_rot270_lane_f32): New.
15996 (vcmlaq_rot270_laneq_f32): New.
15997 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
15998 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
15999 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
16000 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
16001 vcmlaq_lane270): New.
16002 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
16003 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
16004 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
16005 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
16006 (arm_option_reconfigure_globals): Use them.
16007 * config/arm/iterators.md (VDF, VQ_HSF): New.
16008 (VCADD, VCMLA): New.
16009 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
16010 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
16011 New.
16012 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
16013 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
16014
16015 2019-01-10 Tamar Christina <tamar.christina@arm.com>
16016
16017 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
16018 Add qualifier_lane_pair_index.
16019 (emit-rtl.h): Include.
16020 (TYPES_QUADOP_LANE_PAIR): New.
16021 (aarch64_simd_expand_args): Use it.
16022 (aarch64_simd_expand_builtin): Likewise.
16023 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
16024 New.
16025 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
16026 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
16027 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
16028 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
16029 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
16030 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
16031 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
16032 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
16033 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
16034 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
16035 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
16036 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
16037 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
16038 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
16039 Add __ARM_FEATURE_COMPLEX.
16040 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
16041 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
16042 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
16043 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
16044 fcmlaq_lane270): New.
16045 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
16046 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
16047 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
16048 * config/aarch64/arm_neon.h:
16049 (vcadd_rot90_f16): New.
16050 (vcaddq_rot90_f16): New.
16051 (vcadd_rot270_f16): New.
16052 (vcaddq_rot270_f16): New.
16053 (vcmla_f16): New.
16054 (vcmlaq_f16): New.
16055 (vcmla_lane_f16): New.
16056 (vcmla_laneq_f16): New.
16057 (vcmlaq_lane_f16): New.
16058 (vcmlaq_rot90_lane_f16): New.
16059 (vcmla_rot90_laneq_f16): New.
16060 (vcmla_rot90_lane_f16): New.
16061 (vcmlaq_rot90_f16): New.
16062 (vcmla_rot90_f16): New.
16063 (vcmlaq_laneq_f16): New.
16064 (vcmla_rot180_laneq_f16): New.
16065 (vcmla_rot180_lane_f16): New.
16066 (vcmlaq_rot180_f16): New.
16067 (vcmla_rot180_f16): New.
16068 (vcmlaq_rot90_laneq_f16): New.
16069 (vcmlaq_rot270_laneq_f16): New.
16070 (vcmlaq_rot270_lane_f16): New.
16071 (vcmla_rot270_laneq_f16): New.
16072 (vcmlaq_rot270_f16): New.
16073 (vcmla_rot270_f16): New.
16074 (vcmlaq_rot180_laneq_f16): New.
16075 (vcmlaq_rot180_lane_f16): New.
16076 (vcmla_rot270_lane_f16): New.
16077 (vcadd_rot90_f32): New.
16078 (vcaddq_rot90_f32): New.
16079 (vcaddq_rot90_f64): New.
16080 (vcadd_rot270_f32): New.
16081 (vcaddq_rot270_f32): New.
16082 (vcaddq_rot270_f64): New.
16083 (vcmla_f32): New.
16084 (vcmlaq_f32): New.
16085 (vcmlaq_f64): New.
16086 (vcmla_lane_f32): New.
16087 (vcmla_laneq_f32): New.
16088 (vcmlaq_lane_f32): New.
16089 (vcmlaq_laneq_f32): New.
16090 (vcmla_rot90_f32): New.
16091 (vcmlaq_rot90_f32): New.
16092 (vcmlaq_rot90_f64): New.
16093 (vcmla_rot90_lane_f32): New.
16094 (vcmla_rot90_laneq_f32): New.
16095 (vcmlaq_rot90_lane_f32): New.
16096 (vcmlaq_rot90_laneq_f32): New.
16097 (vcmla_rot180_f32): New.
16098 (vcmlaq_rot180_f32): New.
16099 (vcmlaq_rot180_f64): New.
16100 (vcmla_rot180_lane_f32): New.
16101 (vcmla_rot180_laneq_f32): New.
16102 (vcmlaq_rot180_lane_f32): New.
16103 (vcmlaq_rot180_laneq_f32): New.
16104 (vcmla_rot270_f32): New.
16105 (vcmlaq_rot270_f32): New.
16106 (vcmlaq_rot270_f64): New.
16107 (vcmla_rot270_lane_f32): New.
16108 (vcmla_rot270_laneq_f32): New.
16109 (vcmlaq_rot270_lane_f32): New.
16110 (vcmlaq_rot270_laneq_f32): New.
16111 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
16112 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
16113 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
16114 (FCADD, FCMLA): New.
16115 (rot): New.
16116 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
16117
16118 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
16119
16120 PR other/16615
16121
16122 * config/pa/pa.c: Change "can not" to "cannot".
16123 * gimple-ssa-evrp-analyze.c: Likewise.
16124 * ipa-icf.c: Likewise.
16125 * ipa-polymorphic-call.c: Likewise.
16126 * ipa-pure-const.c: Likewise.
16127 * lra-constraints.c: Likewise.
16128 * lra-remat.c: Likewise.
16129 * reload1.c: Likewise.
16130 * reorg.c: Likewise.
16131 * tree-ssa-uninit.c: Likewise.
16132
16133 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
16134
16135 PR other/16615
16136
16137 * Makefile.in: Mechanically replace "can not" with "cannot".
16138 * alias.c: Likewise.
16139 * builtins.c: Likewise.
16140 * calls.c: Likewise.
16141 * cgraph.c: Likewise.
16142 * cgraph.h: Likewise.
16143 * cgraphclones.c: Likewise.
16144 * cgraphunit.c: Likewise.
16145 * combine-stack-adj.c: Likewise.
16146 * combine.c: Likewise.
16147 * common/config/i386/i386-common.c: Likewise.
16148 * config/aarch64/aarch64.c: Likewise.
16149 * config/alpha/sync.md: Likewise.
16150 * config/arc/arc.c: Likewise.
16151 * config/arc/predicates.md: Likewise.
16152 * config/arm/arm-c.c: Likewise.
16153 * config/arm/arm.c: Likewise.
16154 * config/arm/arm.h: Likewise.
16155 * config/arm/arm.md: Likewise.
16156 * config/arm/cortex-r4f.md: Likewise.
16157 * config/csky/csky.c: Likewise.
16158 * config/csky/csky.h: Likewise.
16159 * config/darwin-f.c: Likewise.
16160 * config/epiphany/epiphany.md: Likewise.
16161 * config/i386/i386.c: Likewise.
16162 * config/i386/sol2.h: Likewise.
16163 * config/m68k/m68k.c: Likewise.
16164 * config/mcore/mcore.h: Likewise.
16165 * config/microblaze/microblaze.md: Likewise.
16166 * config/mips/20kc.md: Likewise.
16167 * config/mips/sb1.md: Likewise.
16168 * config/nds32/nds32.c: Likewise.
16169 * config/nds32/predicates.md: Likewise.
16170 * config/pa/pa.c: Likewise.
16171 * config/rs6000/e300c2c3.md: Likewise.
16172 * config/rs6000/rs6000.c: Likewise.
16173 * config/s390/s390.h: Likewise.
16174 * config/sh/sh.c: Likewise.
16175 * config/sh/sh.md: Likewise.
16176 * config/spu/vmx2spu.h: Likewise.
16177 * cprop.c: Likewise.
16178 * dbxout.c: Likewise.
16179 * df-scan.c: Likewise.
16180 * doc/cfg.texi: Likewise.
16181 * doc/extend.texi: Likewise.
16182 * doc/fragments.texi: Likewise.
16183 * doc/gty.texi: Likewise.
16184 * doc/invoke.texi: Likewise.
16185 * doc/lto.texi: Likewise.
16186 * doc/md.texi: Likewise.
16187 * doc/objc.texi: Likewise.
16188 * doc/rtl.texi: Likewise.
16189 * doc/tm.texi: Likewise.
16190 * dse.c: Likewise.
16191 * emit-rtl.c: Likewise.
16192 * emit-rtl.h: Likewise.
16193 * except.c: Likewise.
16194 * expmed.c: Likewise.
16195 * expr.c: Likewise.
16196 * fold-const.c: Likewise.
16197 * genautomata.c: Likewise.
16198 * gimple-fold.c: Likewise.
16199 * hard-reg-set.h: Likewise.
16200 * ifcvt.c: Likewise.
16201 * ipa-comdats.c: Likewise.
16202 * ipa-cp.c: Likewise.
16203 * ipa-devirt.c: Likewise.
16204 * ipa-fnsummary.c: Likewise.
16205 * ipa-icf.c: Likewise.
16206 * ipa-inline-transform.c: Likewise.
16207 * ipa-inline.c: Likewise.
16208 * ipa-polymorphic-call.c: Likewise.
16209 * ipa-profile.c: Likewise.
16210 * ipa-prop.c: Likewise.
16211 * ipa-pure-const.c: Likewise.
16212 * ipa-reference.c: Likewise.
16213 * ipa-split.c: Likewise.
16214 * ipa-visibility.c: Likewise.
16215 * ipa.c: Likewise.
16216 * ira-build.c: Likewise.
16217 * ira-color.c: Likewise.
16218 * ira-conflicts.c: Likewise.
16219 * ira-costs.c: Likewise.
16220 * ira-int.h: Likewise.
16221 * ira-lives.c: Likewise.
16222 * ira.c: Likewise.
16223 * ira.h: Likewise.
16224 * loop-invariant.c: Likewise.
16225 * loop-unroll.c: Likewise.
16226 * lower-subreg.c: Likewise.
16227 * lra-assigns.c: Likewise.
16228 * lra-constraints.c: Likewise.
16229 * lra-eliminations.c: Likewise.
16230 * lra-lives.c: Likewise.
16231 * lra-remat.c: Likewise.
16232 * lra-spills.c: Likewise.
16233 * lra.c: Likewise.
16234 * lto-cgraph.c: Likewise.
16235 * lto-streamer-out.c: Likewise.
16236 * postreload-gcse.c: Likewise.
16237 * predict.c: Likewise.
16238 * profile-count.h: Likewise.
16239 * profile.c: Likewise.
16240 * recog.c: Likewise.
16241 * ree.c: Likewise.
16242 * reload.c: Likewise.
16243 * reload1.c: Likewise.
16244 * reorg.c: Likewise.
16245 * resource.c: Likewise.
16246 * rtl.def: Likewise.
16247 * rtl.h: Likewise.
16248 * rtlanal.c: Likewise.
16249 * sched-deps.c: Likewise.
16250 * sched-ebb.c: Likewise.
16251 * sched-rgn.c: Likewise.
16252 * sel-sched-ir.c: Likewise.
16253 * sel-sched.c: Likewise.
16254 * shrink-wrap.c: Likewise.
16255 * simplify-rtx.c: Likewise.
16256 * symtab.c: Likewise.
16257 * target.def: Likewise.
16258 * toplev.c: Likewise.
16259 * tree-call-cdce.c: Likewise.
16260 * tree-cfg.c: Likewise.
16261 * tree-complex.c: Likewise.
16262 * tree-core.h: Likewise.
16263 * tree-eh.c: Likewise.
16264 * tree-inline.c: Likewise.
16265 * tree-loop-distribution.c: Likewise.
16266 * tree-nrv.c: Likewise.
16267 * tree-profile.c: Likewise.
16268 * tree-sra.c: Likewise.
16269 * tree-ssa-alias.c: Likewise.
16270 * tree-ssa-dce.c: Likewise.
16271 * tree-ssa-dom.c: Likewise.
16272 * tree-ssa-forwprop.c: Likewise.
16273 * tree-ssa-loop-im.c: Likewise.
16274 * tree-ssa-loop-ivcanon.c: Likewise.
16275 * tree-ssa-loop-ivopts.c: Likewise.
16276 * tree-ssa-loop-niter.c: Likewise.
16277 * tree-ssa-phionlycprop.c: Likewise.
16278 * tree-ssa-phiopt.c: Likewise.
16279 * tree-ssa-propagate.c: Likewise.
16280 * tree-ssa-threadedge.c: Likewise.
16281 * tree-ssa-threadupdate.c: Likewise.
16282 * tree-ssa-uninit.c: Likewise.
16283 * tree-ssanames.c: Likewise.
16284 * tree-streamer-out.c: Likewise.
16285 * tree.c: Likewise.
16286 * tree.h: Likewise.
16287 * vr-values.c: Likewise.
16288
16289 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
16290
16291 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
16292 (ix86_split_xorsign): Ditto.
16293 * config/i386/i386.c (ix86_expand_xorsign): New function.
16294 (ix86_split_xorsign): Ditto.
16295 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
16296 (xorsign<mode>3): New expander.
16297 (xorsign<mode>3_1): New insn_and_split pattern.
16298 * config/i386/sse.md (xorsign<mode>3): New expander.
16299
16300 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
16301
16302 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
16303 (*tablejump_sp64): Likewise.
16304 (*tablejump<P:mode>): ...this.
16305 (*call_address_sp32): Merge into...
16306 (*call_address_sp64): Likewise.
16307 (*call_address<P:mode>): ...this.
16308 (*call_symbolic_sp32): Merge into...
16309 (*call_symbolic_sp64): Likewise.
16310 (*call_symbolic<P:mode>): ...this.
16311 (call_value): Remove constraint and add predicate.
16312 (*call_value_address_sp32): Merge into...
16313 (*call_value_address_sp64): Likewise.
16314 (*call_value_address<P:mode>): ...this.
16315 (*call_value_symbolic_sp32): Merge into...
16316 (*call_value_symbolic_sp64): Likewise.
16317 (*call_value_symbolic<P:mode>): ...this.
16318 (*sibcall_symbolic_sp32): Merge into...
16319 (*sibcall_symbolic_sp64): Likewise.
16320 (*sibcall_symbolic<P:mode>): ...this.
16321 (sibcall_value): Remove constraint and add predicate.
16322 (*sibcall_value_symbolic_sp32): Merge into...
16323 (*sibcall_value_symbolic_sp64): Likewise.
16324 (*sibcall_value_symbolic<P:mode>): ...this.
16325 (window_save): Minor tweak.
16326 (*branch_sp32): Merge into...
16327 (*branch_sp64): Likewise.
16328 (*branch<P:mode>): ...this.
16329
16330 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
16331 James Clarke <jrtc27@jrtc27.com>
16332
16333 PR target/84010
16334 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
16335 consistently in TLS address generation and adjust code to the renaming
16336 of patterns. Mark calls to __tls_get_addr as const.
16337 * config/sparc/sparc.md (tgd_hi22): Turn into...
16338 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
16339 (tgd_lo10): Turn into...
16340 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
16341 (tgd_add32): Merge into...
16342 (tgd_add64): Likewise.
16343 (tgd_add<P:mode>): ...this and use Pmode throughout.
16344 (tldm_hi22): Turn into...
16345 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
16346 (tldm_lo10): Turn into...
16347 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
16348 (tldm_add32): Merge into...
16349 (tldm_add64): Likewise.
16350 (tldm_add<P:mode>): ...this and use Pmode throughout.
16351 (tldm_call32): Merge into...
16352 (tldm_call64): Likewise.
16353 (tldm_call<P:mode>): ...this and use Pmode throughout.
16354 (tldo_hix22): Turn into...
16355 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
16356 (tldo_lox10): Turn into...
16357 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
16358 (tldo_add32): Merge into...
16359 (tldo_add64): Likewise.
16360 (tldo_add<P:mode>): ...this and use Pmode throughout.
16361 (tie_hi22): Turn into...
16362 (tie_hi22<P:mode>): ...this and use Pmode throughout.
16363 (tie_lo10): Turn into...
16364 (tie_lo10<P:mode>): ...this and use Pmode throughout.
16365 (tie_ld64): Use DImode throughout.
16366 (tie_add32): Merge into...
16367 (tie_add64): Likewise.
16368 (tie_add<P:mode>): ...this and use Pmode throughout.
16369 (tle_hix22_sp32): Merge into...
16370 (tle_hix22_sp64): Likewise.
16371 (tle_hix22<P:mode>): ...this and use Pmode throughout.
16372 (tle_lox22_sp32): Merge into...
16373 (tle_lox22_sp64): Likewise.
16374 (tle_lox22<P:mode>): ...this and use Pmode throughout.
16375 (*tldo_ldub_sp32): Merge into...
16376 (*tldo_ldub_sp64): Likewise.
16377 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
16378 (*tldo_ldub1_sp32): Merge into...
16379 (*tldo_ldub1_sp64): Likewise.
16380 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
16381 (*tldo_ldub2_sp32): Merge into...
16382 (*tldo_ldub2_sp64): Likewise.
16383 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
16384 (*tldo_ldsb1_sp32): Merge into...
16385 (*tldo_ldsb1_sp64): Likewise.
16386 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
16387 (*tldo_ldsb2_sp32): Merge into...
16388 (*tldo_ldsb2_sp64): Likewise.
16389 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
16390 (*tldo_ldub3_sp64): Use DImode throughout.
16391 (*tldo_ldsb3_sp64): Likewise.
16392 (*tldo_lduh_sp32): Merge into...
16393 (*tldo_lduh_sp64): Likewise.
16394 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
16395 (*tldo_lduh1_sp32): Merge into...
16396 (*tldo_lduh1_sp64): Likewise.
16397 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
16398 (*tldo_ldsh1_sp32): Merge into...
16399 (*tldo_ldsh1_sp64): Likewise.
16400 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
16401 (*tldo_lduh2_sp64): Use DImode throughout.
16402 (*tldo_ldsh2_sp64): Likewise.
16403 (*tldo_lduw_sp32): Merge into...
16404 (*tldo_lduw_sp64): Likewise.
16405 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
16406 (*tldo_lduw1_sp64): Use DImode throughout.
16407 (*tldo_ldsw1_sp64): Likewise.
16408 (*tldo_ldx_sp64): Likewise.
16409 (*tldo_stb_sp32): Merge into...
16410 (*tldo_stb_sp64): Likewise.
16411 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
16412 (*tldo_sth_sp32): Merge into...
16413 (*tldo_sth_sp64): Likewise.
16414 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
16415 (*tldo_stw_sp32): Merge into...
16416 (*tldo_stw_sp64): Likewise.
16417 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
16418 (*tldo_stx_sp64): Use DImode throughout.
16419
16420 2018-01-09 Sudakshina Das <sudi.das@arm.com>
16421
16422 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
16423 check configure option to set BTI and Return Address Signing.
16424 * configure.ac: Add --enable-standard-branch-protection and
16425 --disable-standard-branch-protection.
16426 * configure: Regenerated.
16427 * doc/install.texi: Document the same.
16428
16429 2018-01-09 Sudakshina Das <sudi.das@arm.com>
16430 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16431
16432 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
16433 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
16434 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
16435 if bti is enabled.
16436 * config/aarch64/aarch64-bti-insert.c: New file.
16437 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
16438 pass.
16439 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
16440 new bti pass.
16441 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
16442 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
16443 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
16444 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
16445
16446 2018-01-09 Sudakshina Das <sudi.das@arm.com>
16447
16448 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
16449 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
16450 Disable bti for -mbranch-protection=none.
16451 (aarch64_handle_standard_branch_protection): Enable bti for
16452 -mbranch-protection=standard.
16453 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
16454 -mbranch-protection.
16455 (aarch64_bti_enabled): Check if bti is enabled.
16456 * config/aarch64/aarch64.opt: Declare target variable.
16457 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
16458
16459 2018-01-09 Sudakshina Das <sudi.das@arm.com>
16460
16461 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
16462 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
16463 (aarch64_expand_epilogue): Likewise.
16464 (aarch64_output_mi_thunk): Likewise
16465 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
16466 TAILCALL_ADDR_REGS to x16 and x17.
16467 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
16468
16469 2018-01-09 Sudakshina Das <sudi.das@arm.com>
16470
16471 * config/aarch64/aarch64-option-extensions.def: Define
16472 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
16473 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
16474 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
16475 (AARCH64_FL_PREDRES): New.
16476 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
16477 AARCH64_FL_PREDRES by default.
16478 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
16479
16480 2018-01-09 Sudakshina Das <sudi.das@arm.com>
16481
16482 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
16483 ARMv8.5-A.
16484 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
16485 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
16486 * doc/invoke.texi: Document ARMv8.5-A.
16487
16488 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
16489
16490 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
16491 (xorsign<mode>3): Likewise.
16492
16493 2019-01-09 Jelinek <jakub@redhat.com>
16494
16495 PR middle-end/88758
16496 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
16497 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
16498
16499 PR rtl-optimization/88331
16500 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
16501 not currently_expanding_to_rtl.
16502
16503 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
16504
16505 * doc/invoke.texi (-Os): Remove trailing spaces.
16506 (-finline-functions): Remove reference to -O2.
16507
16508 2019-01-08 Jakub Jelinek <jakub@redhat.com>
16509
16510 PR rtl-optimization/79593
16511 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
16512
16513 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
16514 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
16515
16516 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
16517
16518 PR bootstrap/88721
16519 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
16520 to -1 on entry.
16521
16522 PR debug/88723
16523 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
16524 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
16525
16526 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
16527
16528 PR target/88717
16529 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
16530 ix86_avx_u128_mode_entry.
16531
16532 2019-01-08 Martin Liska <mliska@suse.cz>
16533
16534 PR tree-optimization/88753
16535 * tree-switch-conversion.c (switch_conversion::build_one_array):
16536 Come up with local variable constructor. Convert first to
16537 type of constructor values.
16538
16539 2019-01-08 Richard Biener <rguenther@suse.de>
16540
16541 PR tree-optimization/86554
16542 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
16543 rpo_avail): Move earlier.
16544 (visit_nary_op): When value-numbering to expressions
16545 with different overflow behavior make sure there's an
16546 available expression on the path.
16547
16548 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
16549
16550 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
16551 aarch64_parse_branch_protection,
16552 struct aarch64_branch_protect_type,
16553 aarch64_handle_no_branch_protection,
16554 aarch64_handle_standard_branch_protection,
16555 aarch64_validate_mbranch_protection,
16556 aarch64_handle_pac_ret_protection,
16557 aarch64_handle_attr_branch_protection,
16558 accepted_branch_protection_string,
16559 aarch64_pac_ret_subtypes,
16560 aarch64_branch_protect_types,
16561 aarch64_handle_pac_ret_leaf): Define.
16562 (aarch64_override_options_after_change_1, aarch64_override_options):
16563 Add check for accepted_branch_protection_string.
16564 (aarch64_option_save): Save accepted_branch_protection_string.
16565 (aarch64_option_restore): Save accepted_branch_protection_string.
16566 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
16567 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
16568 msign-return-address.
16569 * doc/invoke.texi: Add mbranch-protection.
16570
16571 2019-01-08 Alan Modra <amodra@gmail.com>
16572
16573 PR target/88614
16574 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
16575 Delete "unknownp" parameter. Adjust callers. Handle
16576 CONST_INT, PLUS, MINUS, and MULT.
16577 (attr_value_aligned): Renamed from or_attr_value.
16578 (min_attr_value): Return INT_MIN for unhandled rtl case..
16579 (min_fn): ..and translate to INT_MAX here.
16580 (write_length_unit_log): Modify to cope without "unknown".
16581 (write_attr_value): Handle IF_THEN_ELSE.
16582
16583 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
16584
16585 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
16586 optimization for masked stores.
16587
16588 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
16589
16590 PR middle-end/88567
16591 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
16592 output vector directly to duplicate_and_interleave instead of
16593 going through a temporary. Postpone insertion of ctor_seq to
16594 the end of the loop.
16595
16596 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
16597
16598 PR target/86891
16599 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
16600 unsigned_p. Handle signed and unsigned overflow correction as
16601 required.
16602 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
16603 prototype.
16604 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
16605 for operand 2.
16606 (add<mode>3_compareV_imm): Make this callable for expanding.
16607 (subv<GPI:mode>4): Use register_operand for operand 1. Use
16608 aarch64_plus_operand for operand 2.
16609 (subv<GPI:mode>_insn): New insn pattern.
16610 (subv<GPI:mode>_imm): Likewise.
16611 (negv<GPI:mode>3): New expand pattern.
16612 (negv<GPI:mode>_insn): New insn pattern.
16613 (negv<GPI:mode>_cmp_only): Likewise.
16614 (cmpv<GPI:mode>_insn): Likewise.
16615 (subvti4): Use register_operand for operand 1. Update call to
16616 aarch64_expand_subvti.
16617 (usubvti4): Likewise.
16618 (negvti3): New expand pattern.
16619 (negdi_carryout): New insn pattern.
16620 (negvdi_carryinV): New insn pattern.
16621 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
16622 version the named version.
16623 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
16624 operands.
16625 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
16626 patterns.
16627 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
16628 patterns.
16629 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
16630 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
16631 (sub<mode>3_carryinCV): Delete.
16632 (sub<GPI:mode>3_carryinV): New expand pattern.
16633 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
16634
16635 2019-01-07 Richard Biener <rguenther@suse.de>
16636
16637 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
16638 of tree_operand_hash.
16639
16640 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
16641
16642 PR tree-optimization/88598
16643 * tree.h (single_nonzero_element): Declare.
16644 * tree.c (single_nonzero_element): New function.
16645 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
16646 if I is the only nonzero element of CST.
16647
16648 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
16649
16650 PR tree-optimization/88598
16651 * tree.h (initializer_each_zero_or_onep): Declare.
16652 * tree.c (initializer_each_zero_or_onep): New function.
16653 (signed_or_unsigned_type_for): Handle float types too.
16654 (unsigned_type_for, signed_type_for): Update comments accordingly.
16655 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
16656 x & { 0 or -1, 0 or -1, ... }.
16657
16658 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
16659
16660 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
16661 with x86_64-pc-linux-gnu.
16662
16663 2019-01-07 Tom de Vries <tdevries@suse.de>
16664
16665 PR target/85486
16666 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
16667 function.
16668 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
16669 routines.
16670
16671 2019-01-07 Jakub Jelinek <jakub@redhat.com>
16672
16673 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
16674 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
16675 TARGET_AVX512F as condition.
16676
16677 PR debug/88723
16678 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
16679 const_not_ok_for_debug_p target hook.
16680 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
16681 on UNSPEC and subexpressions thereof if all subexpressions of the
16682 UNSPEC are CONSTANT_P.
16683
16684 PR tree-optimization/88676
16685 * tree-ssa-phiopt.c (two_value_replacement): New function.
16686 (tree_ssa_phiopt_worker): Call it.
16687
16688 PR sanitizer/88619
16689 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
16690 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
16691
16692 PR c++/85052
16693 * tree-vect-generic.c: Include insn-config.h and recog.h.
16694 (expand_vector_piecewise): Add defaulted ret_type argument,
16695 if non-NULL, use that in preference to type for the result type.
16696 (expand_vector_parallel): Formatting fix.
16697 (do_vec_conversion, do_vec_narrowing_conversion,
16698 expand_vector_conversion): New functions.
16699 (expand_vector_operations_1): Call expand_vector_conversion
16700 for VEC_CONVERT ifn calls.
16701 * internal-fn.def (VEC_CONVERT): New internal function.
16702 * internal-fn.c (expand_VEC_CONVERT): New function.
16703 * fold-const-call.c (fold_const_vec_convert): New function.
16704 (fold_const_call): Use it for CFN_VEC_CONVERT.
16705 * doc/extend.texi (__builtin_convertvector): Document.
16706
16707 2019-01-07 Tom de Vries <tdevries@suse.de>
16708
16709 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
16710 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
16711 vector_red_partition, vector_red_sym): New global variables.
16712 (nvptx_option_override): Initialize vector_red_sym.
16713 (nvptx_declare_function_name): Restore red_partition register.
16714 (nvptx_file_end): Emit code to declare the vector reduction variables.
16715 (nvptx_output_red_partition): New function.
16716 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
16717 large vector reductions.
16718 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
16719 (nvptx_init_builtins): Add VECTOR_ADDR.
16720 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
16721 Handle nvptx_expand_shared_addr.
16722 (nvptx_get_shared_red_addr): Add vector argument and handle large
16723 vectors.
16724 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
16725 large vectors.
16726 (nvptx_goacc_reduction_init): Likewise.
16727 (nvptx_goacc_reduction_fini): Likewise.
16728 (nvptx_goacc_reduction_teardown): Likewise.
16729 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
16730 init,fini,teardown}.
16731 (nvptx_init_axis_predicate): Initialize vector_red_partition.
16732 (nvptx_set_current_function): Init vector_red_partition.
16733 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
16734 (nvptx_red_partition): New insn.
16735 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
16736
16737 2019-01-07 Tom de Vries <tdevries@suse.de>
16738
16739 PR target/85381
16740 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
16741 empty loops.
16742
16743 2019-01-07 Tom de Vries <tdevries@suse.de>
16744
16745 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
16746 (nvptx_option_override): Init oacc_bcast_partition.
16747 (nvptx_init_oacc_workers): New function.
16748 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
16749 (nvptx_needs_shared_bcast): New function.
16750 (nvptx_find_par): Generalize to enable vectors to use shared-memory
16751 to propagate state.
16752 (nvptx_shared_propagate): Initialize vector bcast partition and
16753 synchronization state.
16754 (nvptx_single): Generalize to enable vectors to use shared-memory
16755 to propagate state.
16756 (nvptx_process_pars): Likewise.
16757 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
16758 * config/nvptx/nvptx.h (struct machine_function): Add
16759 bcast_partition and sync_bar members.
16760
16761 2019-01-07 Tom de Vries <tdevries@suse.de>
16762
16763 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
16764 (nvptx_apply_dim_limits): New function.
16765 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
16766 PTX_WARP_SIZE.
16767
16768 2019-01-07 Tom de Vries <tdevries@suse.de>
16769
16770 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
16771 as late as possible.
16772
16773 2019-01-07 Tom de Vries <tdevries@suse.de>
16774
16775 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
16776 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
16777 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
16778 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
16779 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
16780
16781 2019-01-07 Tom de Vries <tdevries@suse.de>
16782
16783 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
16784
16785 2019-01-07 Tom de Vries <tdevries@suse.de>
16786
16787 * omp-offload.c (oacc_get_min_dim): New function.
16788 * omp-offload.h (oacc_get_min_dim): Declare.
16789
16790 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
16791
16792 PR target/88521
16793 * config/i386/i386.c (function_value_ms_64): Return small sturct in
16794 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
16795
16796 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
16797
16798 PR tree-opt/86020
16799 Revert:
16800 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
16801
16802 * ipa-inline.c (edge_badness): Use inlined_time instead of
16803 inline_summaries->get.
16804
16805 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
16806
16807 * opts.c (enable_fdo_optimizations): Enable
16808 version-loops-for-strides, loop-interchange, unrol-and-jam
16809 and tree-loop-distribution.
16810 * invoke.texi: Document newly enabled options.
16811
16812 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
16813
16814 * doc/invoke.texi (max-inline-insns-small): New parameters.
16815 * ipa-inline.c (want_early_inline_function_p): simplify.
16816 (want_inline_small_function_p): Fix pasto from previous patch;
16817 use max-inline-insns-small bound.
16818 * params.def (max-inline-insns-small): New param.
16819 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
16820 variables correctly.
16821
16822 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
16823
16824 * doc/invoke.texi: Document max-inline-insns-size,
16825 uninlined-function-insns, uninlined-function-time,
16826 uninlined-thunk-insns and uninlined-thunk-time.
16827 * params.def: Add max-inline-insns-size,
16828 uninlined-function-insns, uninlined-function-time,
16829 uninlined-thunk-insns and uninlined-thunk-time.
16830 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
16831 new parameters.
16832 * ipa-inline.c (can_inline_edge_by_limits_p,
16833 want_inline_small_function_p): Use new parameters.
16834
16835 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
16836
16837 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
16838
16839 2019-01-05 Jakub Jelinek <jakub@redhat.com>
16840
16841 PR middle-end/82564
16842 PR target/88620
16843 * expr.c (expand_assignment): For calls returning VLA structures
16844 if to_rtx is not a MEM, force it into a stack temporary.
16845
16846 PR debug/88635
16847 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
16848 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
16849 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
16850 subexpressions of both operands.
16851 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
16852 subrtxes are CONSTANT_P.
16853 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
16854 2018-11-09 changes.
16855
16856 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
16857
16858 * params.def (hot-bb-count-ws-permille): Set to 990.
16859
16860 2019-01-04 Martin Sebor <msebor@redhat.com>
16861
16862 PR c/88546
16863 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
16864 leaf.
16865
16866 2019-01-04 Martin Sebor <msebor@redhat.com>
16867
16868 PR c/88363
16869 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
16870
16871 2019-01-04 Jakub Jelinek <jakub@redhat.com>
16872
16873 * gdbinit.in: Turn off pagination for the skip commands, restore
16874 it to previous state afterwards.
16875
16876 2019-01-04 Jakub Jelinek <jakub@redhat.com>
16877
16878 PR target/88594
16879 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
16880 of GET_MODE (opN) as modes of the libcall arguments.
16881
16882 2019-01-04 Jan Beulich <jbeulich@suse.com>
16883
16884 * config/i386/sse.md
16885 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
16886 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
16887 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
16888 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
16889 avx512f_vmcmp<mode>3<round_saeonly_name>,
16890 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
16891 avx512f_maskcmp<mode>3,
16892 <avx512>_cvt<ssemodesuffix>2mask<mode>,
16893 <avx512>_cvt<ssemodesuffix>2mask<mode>,
16894 *<avx512>_cvtmask2<ssemodesuffix><mode>,
16895 *<avx512>_cvtmask2<ssemodesuffix><mode>,
16896 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
16897 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
16898 <avx512>_gt<mode>3<mask_scalar_merge_name>,
16899 <avx512>_gt<mode>3<mask_scalar_merge_name>,
16900 <avx512>_testm<mode>3<mask_scalar_merge_name>,
16901 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
16902 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
16903 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
16904 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
16905 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
16906 avx512cd_maskb_vec_dup<mode>,
16907 avx512cd_maskw_vec_dup<mode>,
16908 avx512dq_fpclass<mode><mask_scalar_merge_name>,
16909 avx512dq_vmfpclass<mode>,
16910 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
16911 instead of =Yk.
16912
16913 2019-01-03 Martin Sebor <msebor@redhat.com>
16914
16915 PR tree-optimization/88659
16916 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
16917
16918 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
16919
16920 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
16921 unaligned vsx and avoid lxvd2x/stxvd2x.
16922 (gen_lvx_v4si_move): New function.
16923
16924 2019-01-03 Tom de Vries <tdevries@suse.de>
16925
16926 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
16927 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
16928 function.
16929 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
16930
16931 2019-01-03 Tom de Vries <tdevries@suse.de>
16932
16933 * config/nvptx/nvptx.c (struct offload_attrs): New.
16934 (populate_offload_attrs): New function. Factor mask extraction out of
16935 nvptx_reorg. Add extraction of dimensions.
16936 (nvptx_reorg): Use populate_offload_attrs.
16937
16938 2019-01-03 Tom de Vries <tdevries@suse.de>
16939
16940 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
16941 cases for oacc_min_dims_p and routine_p. Add asserts for
16942 oacc_default_dims_p and offload_region_p.
16943
16944 2019-01-03 Tom de Vries <tdevries@suse.de>
16945
16946 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
16947 factored out of ...
16948 (nvptx_goacc_validate_dims): ... here.
16949
16950 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
16951
16952 PR tree-optimization/85574
16953 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
16954 structure.
16955 (struct ssa_equip_hash_traits): Declare.
16956 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
16957
16958 2019-01-03 Jakub Jelinek <jakub@redhat.com>
16959
16960 PR debug/88644
16961 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
16962 change it to qualified_type.
16963
16964 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
16965
16966 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
16967 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
16968
16969 2019-01-02 Martin Sebor <msebor@redhat.com>
16970 Jeff Law <law@redhat.com>
16971
16972 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
16973 (get_range_strlen_tree): Update appropriately.
16974 (get_range_strlen)
16975 * gimple-fold.h (get_range_strlen): Drop unused last argument.
16976
16977 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
16978 rather than set_range_info.
16979 * tree-ssa-strlen.c (set_strlen_range): Extracted from
16980 maybe_set_strlen_range. Handle potentially boundary crossing
16981 cases more conservatively.
16982 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
16983 Call set_strlen_range.
16984 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
16985
16986 PR middle-end/88663
16987 * gimple-fold.c (get_range_strlen): Update prototype to no longer
16988 need the flexp argument.
16989 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
16990 from calls to get_range_strlen. Update comments. Just update
16991 VAL for an unterminated const char array and let the reset of the
16992 code handle it normally. No longer try to set *flexp. Adjust
16993 return value.
16994 (get_range_strlen): Update for the new get_range_strlen API.
16995 (get_maxval_strlen): Similarly.
16996 (gimple_fold_builtin_strlen): Handle update meaning of return value
16997 from get_range_strlen.
16998 * gimple-ssa-sprintf.c (get_string_length): Update for the new
16999 get_range_strlen API.
17000
17001 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
17002
17003 PR lto/88130
17004 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
17005 false at WPA time when body was removed.
17006
17007 2019-01-02 Martin Liska <mliska@suse.cz>
17008
17009 PR tree-optimization/88650
17010 * predict.c (set_even_probabilities): Calculate probability
17011 remainer only when really used.
17012
17013 2019-01-02 Richard Biener <rguenther@suse.de>
17014
17015 PR middle-end/88651
17016 * tree-data-ref.c (analyze_subscript_affine_affine): Use
17017 widest_ints when mangling max_stmt_execution results.
17018
17019 2019-01-02 Richard Biener <rguenther@suse.de>
17020
17021 PR tree-optimization/88621
17022 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
17023 bitfields when canoncalizing.
17024
17025 2019-01-02 Richard Biener <rguenther@suse.de>
17026
17027 PR target/87545
17028 * config/i386/x86-tune-costs.h (intel_cost): Adjust
17029 cost of cheap SSE instruction.
17030
17031 2019-01-02 Richard Biener <rguenther@suse.de>
17032
17033 PR ipa/85574
17034 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
17035 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
17036 function.
17037 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
17038 set after UIDs before splitting them.
17039
17040 2019-01-01 Martin Sebor <msebor@redhat.com>
17041 Jeff Law <law@redhat.com>
17042
17043 * gimple-fold.c (get_range_strlen_tree): Record if the computed
17044 length is optimistic. If it is, then arrange to compute the
17045 conservative length as well.
17046
17047 * gimple-fold.h (get_range_strlen): Update prototype.
17048 * builtins.c (check_access): Update call to get_range_strlen to use
17049 c_strlen_data pointer. Change various variable accesses to instead
17050 pull data from the c_strlen_data structure.
17051 (check_strncat_sizes, expand_builtin_strncat): Likewise.
17052 * calls.c (maybe_warn_nonstring_arg): Likewise.
17053 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
17054 minimum length if maximum lengh is unknown.
17055 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
17056 that used c_strlen, it's no longer needed. Restructure slightly.
17057 (format_string): Set unlikely range appropriately.
17058 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
17059 formatting issues.
17060 (get_range_strlen): Accept c_strlen_data pointer for external
17061 call sites as well. Pass through to call to internal get_range_strlen.
17062 Adjust minlen, maxlen and maxbound as needed.
17063 (get_maxval_strlen): Update comments.
17064 (gimple_fold_builtin_strlen): Update call to get_range_strlen
17065 to use c_strlen_data pointer. Change variable accesses to instead
17066 use c_strlen_data data members.
17067
17068 * gimple-fold.c (get_range_strlen): Update prototype.
17069 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
17070 local variables. Use pdata to return information to caller.
17071 Update calls to get_range_strlen. Update pdata->maxbound.
17072 (get_range_strlen -- static version): Similarly.
17073 (get_range_strlen -- extern version): Update for internal
17074 get_range_strlen API change. Convert to external data format.
17075 (get_maxval_strlen): Similarly.
17076
17077 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
17078
17079 * coverage.c (get_coverage_counts): Use current_function_decl.
17080 * profile.c (read_thunk_profile): New function.
17081 (branch_prob): Add THUNK parameter.
17082 * tree-profile.c (tree_profiling): Handle thunks.
17083 * value-prof.c (init_node_map): Handle thunks.
17084 * value-prof.h (branch_prob): Upate prototype.
17085 (read_thunk_profile): Declare.
17086
17087 2019-01-01 Jakub Jelinek <jakub@redhat.com>
17088
17089 Update copyright years.
17090
17091 * gcc.c (process_command): Update copyright notice dates.
17092 * gcov-dump.c (print_version): Ditto.
17093 * gcov.c (print_version): Ditto.
17094 * gcov-tool.c (print_version): Ditto.
17095 * gengtype.c (create_file): Ditto.
17096 * doc/cpp.texi: Bump @copying's copyright year.
17097 * doc/cppinternals.texi: Ditto.
17098 * doc/gcc.texi: Ditto.
17099 * doc/gccint.texi: Ditto.
17100 * doc/gcov.texi: Ditto.
17101 * doc/install.texi: Ditto.
17102 * doc/invoke.texi: Ditto.
17103 \f
17104 Copyright (C) 2019 Free Software Foundation, Inc.
17105
17106 Copying and distribution of this file, with or without modification,
17107 are permitted in any medium without royalty provided the copyright
17108 notice and this notice are preserved.