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