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