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