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