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