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