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