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