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