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