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