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