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