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