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