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