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