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