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