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