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