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