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