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