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